[fixed]cc1: error: unrecognized command line option "-mlittle-endian"
For later download to s3c2410x board which emulated by skyeye, so I build the Linux kernel :
 make ARCH=arm
 but got error:
 ……
 cc1: error: unrecognized command line option "-mlittle-endian"
 cc1: error: unrecognized command line option "-mapcs"
 ……
google then find the reason is can not find the cross compile tools, mine is arm-linux-uclibc-XXXX
 then I found that, although I have add the needed export the variable into .bashrc:
export PATH=$PATH:/usr/crifan/develop/buildroot/buildroot/build_arm/staging_dir/usr/bin
export CROSS_COMPILE="arm-linux-uclibc-"
 
and change the arch and cross coompile in makefile:
#ARCH    ?= $(SUBARCH)
 ARCH = arm
 #CROSS_COMPILE ?=
 CROSS_COMPILE = arm-linux-uclibc-
but forgot to close the terminal and restrat it to let the environment variable to take effect,
 so close and restart the terminal, then do:
 make ARCH=arm
 then can continue build….
转载请注明:在路上 » [fixed]cc1: error: unrecognized command line option “-mlittle-endian”