1. build linux kernel的错误
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mapcs"
cc1: error: unrecognized command line option "-mno-sched-prolog"
cc1: error: unrecognized command line option "-mabi=aapcs-linux"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
arch/arm/kernel/asm-offsets.c:1: error: bad value (armv5t) for -march= switch
arch/arm/kernel/asm-offsets.c:1: error: bad value (strongarm) for -mtune= switch
原因是CROSS_COMPILER路径没有设置正确
使用命令:
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
或修改
makefile:
#ARCH ?= $(SUBARCH)
ARCH = arm
#CROSS_COMPILE ?=
CROSS_COMPILE = arm-linux-uclibc-