Hi all,
First things first, sorry if this is in the wrong place. I couldn't find a forum on here that this question fits neatly into, so if the mods think it's in the wrong place, I apologize, and invite you to move it if you see fit.
With that out of the way, here's the problem: I'm trying to cross compile Linux 3.15.1 for ARM, as I am developing a new board. So far so good. I've built a cross-compiler, and associated toolchain, and I've installed U-boot mkimage. Great. I've configured the kernel, but when I try to build it, the compiler complains:
Code:
bash-4.2$ make bzImage
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
arm-none-eabi-gcc: error: unrecognized command line option '-m64'
arm-none-eabi-gcc: error: unrecognized command line option '-mno-mmx'
arm-none-eabi-gcc: error: unrecognized command line option '-mno-sse'
arm-none-eabi-gcc: error: unrecognized command line option '-mno-red-zone'
arm-none-eabi-gcc: error: unrecognized command line option '-mcmodel=kernel'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Clearly, this is due to the fact that the kernel makefile is trying to build for the x86 architecture, however, I am unaware of how to change the target to 32 bit ARM. Several hours of Googling seems to indicate that I need a patch for the kernel when cross-compiling. As to the accuracy and releventness of this I'm not too sure, as the only instructions I could find were pertaining to the 2.6 line of kernels.
As such, my question is this: Do I need to find an ARM patch, and if so, where can I find one for 3.15.1? If not, how do I retarget the compilation scripts to ARM 32-bit, to kill these errors so I can get an image booting?
Thanks in advance, and let me know if there's any more information I've left out
Connor