Cross compiling a kernel module

后端 未结 6 2025
囚心锁ツ
囚心锁ツ 2020-12-04 18:22

I\'m trying to cross compile a helloworld kernel (2.6.x) module for ARM architecture on my intel x86 host.

The codesourcery tool chain for ARM is located at: /ho

6条回答
  •  猫巷女王i
    2020-12-04 18:47

    Putting ARCH and CROSS_COMPILE in the Makefile doesn't work. You need to put them on the command line:

    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
    

提交回复
热议问题