编译RT5572 RT3572

问题一:

scripts/Makefile.build:49: *** CFLAGS was changed in "/opt/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.

解决方式:make  KBUILD_NOPEDANTIC=1

There are two kind of method to solve this problem:

(1)Rplace all CFLAGS with EXTRA_CFLAGS in the Makefile.

(2)Using the KBUILD_NOPEDANTIC arg


问题二:

/opt/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_md5.c:28:23: error: rt_config.h: No such file or directory

解决方法:修改os/linux/config.mk

ifeq ($(PLATFORM),MVL5)
CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -I$(RT28xx_DIR)/include -mlittle-endian -Wall -Wundef -Wstrict-protot
ypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-omit-fr
ame-pointer -mapcs -mno-sched-prolog -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm926ej-s --param
 max-inline-insns-single=40000  -Uarm -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE $(WFLAGS) 
export CFLAGS

CFLAGS :=改为EXTRA_CFLAGS :

你可能感兴趣的:(linux驱动)