[英]Cross compile Kernel drivers
I am new at Linux kernel and I try to make a cross compile to build a driver for imx6, previusly I created the kernel using Yocto1.8 (this works ok). 我是Linux内核的新手,我尝试进行交叉编译以构建imx6的驱动程序,以前我是使用Yocto1.8创建内核的(此方法可以)。 I have a linux distribution of 64 bits, and the arm inside imx6 is based in 32 bits
我有一个64位的Linux发行版,而imx6内的arm是基于32位的
I have this configuration in my makefile: 我的makefile中有以下配置:
export CROSS_COMPILE=arm-poky-linux-gnueabi-
export PRODUCT_NAME PRODUCT_VERSION
export ROOTDIR
export PCIE X86 PL330
export KDIR=~/src/imx6/yocto/build/tmp/work-shared/cgtqmx6/kernel-source/
but doing "make" the compilation generates these errors: 但是进行“ make”编译会产生以下错误:
I think the problem is due to the differents distribution (64 and 32bits) but I don´t know sure. 我认为问题是由于分布不同(64位和32位)造成的,但我不确定。
If anybody can help me ... thanks!!! 如果有人可以帮助我...谢谢!!!
Those are x86 compiler options. 这些是x86编译器选项。
You probably need to add ARCH=arm
. 您可能需要添加
ARCH=arm
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.