Linux cross-compilation for ARM architecture

后端 未结 7 1335
你的背包
你的背包 2020-12-07 14:40

I am interested in cross-compiling a Linux kernel for an ARM target on a x86 host. Are there some good practices you recommend? Which is the best cross-compile suite in your

7条回答
  •  情深已故
    2020-12-07 15:32

    I use the emdebian toolchain for compiling stuff for my ARM machines that isn't happy being compiled natively in the small resources available (/me glares at the kernel). The main package is gcc-4.X-arm-linux-gnueabi (X = 1,2,3), and provides appropriately suffixed gcc/cpp/ld/etc commands. I add this to my sources.list:

    deb http://www.emdebian.org/debian/ unstable main
    

    Of course, if you're not using Debian, this probably isn't so useful, but by gum it works well for me.

提交回复
热议问题