Before porting the driver to our own iMX6 board I'm trying to build for the iMX SabreSD board using the steps outlined in the wik. I can then be confident the build process works ok before starting the porting. The build script fails when trying to build crda. The failure message is:
File "./utils/key2pub.py", line 6
except ImportError, e:
^
SyntaxError: invalid syntax
Makefile:126: recipe for target 'keys-ssl.c' failed
make: *** [keys-ssl.c] Error 1
make: *** Waiting for unfinished jobs....
crda.c:13:31: fatal error: netlink/genl/genl.h: No such file or directory
#include <netlink/genl/genl.h>
^
compilation terminated.
Makefile:150: recipe for target 'crda.o' failed
make: *** [crda.o] Error 1
My setup-env is
# if DEFAULT toolchain path is set toolchain will be downloaded to ./toolchain.
export TOOLCHAIN_PATH=~/projects/buildroot/output/host/usr/bin
# if DEFAULT path to root filesystem is set ./fs folder will be used.
export ROOTFS=~/projects/applications/wl8_build_test/fs
#if DEFAULT kernel path is set - kernel will be downloaded (set branch to match kernel version)
export KERNEL_PATH=~/projects/kernel/linux-2.6-imx
# if KERNEL_VARIANT below is set the build script will look for kernel specific
# patches under the patches directory:
# - patches under the pathces/driver_patches/$KERNEL_VARIANT directory would be
# applied during "modules" build.
# - patches under the patches/kernel_patches/$/$KERNEL_VARIANT directory would
# be applied to the kernel pointed by KERNEL_PATH in case the "patch_kernel"
# command is used.
# Note: the kernel is not built automatically after the patches are applied
export KERNEL_VARIANT=imx-3.10.53
export CROSS_COMPILE=arm-linux-
export ARCH=arm
[ "$TOOLCHAIN_PATH" != "DEFAULT" ] && export PATH=$TOOLCHAIN_PATH:$PATH
I ma using the Buildroot built-in toolchain.
Thanks
Ian Craig