指定交叉編譯工具路徑
ifeq ($(ARCH),mips)
CROSS_COMPILE = $(CONFIG_CROSS_COMPILER_PATH)/mipsel-linux-
endif
指定DDR
ifeq ($(ON_BOARD_DDR2),y)
DRAM_TYPE=DDR2
指定DRAM大小
ifeq ($(ON_BOARD_256M_DRAM_COMPONENT),y)
DRAM_SIZE=32
指定需要的檔案
ifeq ($(MT7621_MP), y)
OBJS = cpu/$(CPU)/start_1004k.o
else
OBJS = cpu/$(CPU)/start.o
ifeq ($(CPU),i386)
OBJS += cpu/$(CPU)/start16.o
OBJS += cpu/$(CPU)/reset.o
ifeq ($(CPU),ppc4xx)
OBJS += cpu/$(CPU)/resetvec.o
ifeq ($(CPU),mpc85xx)
LIBS = lib_generic/libgeneric.a
LIBS += board/$(BOARDDIR)/lib$(BOARD).a
LIBS += cpu/$(CPU)/lib$(CPU).a
ifdef SOC
LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
LIBS += lib_$(ARCH)/lib$(ARCH).a
LIBS += net/libnet.a
LIBS += httpd/libhttpd.a
LIBS += rtc/librtc.a
LIBS += drivers/libdrivers.a
ifeq ($(RALINK_USB),ON)
LIBS += fs/fat/libfat.a
LIBS += disk/libdisk.a