編譯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 :

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章