我Uboot的版本是2010.09
在顶层Makefile中,发现有这样两处:
all:
sinclude $(obj)include/autoconf.mk.dep
sinclude $(obj)include/autoconf.mk
# load ARCH, BOARD, and CPU configuration
include $(obj)include/config.mk
export ARCH CPU BOARD VENDOR SOC
……
……
……
# Always append ALL so that arch config.mk's can add custom ones
ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
all: $(ALL)
$(obj)u-boot.hex: $(obj)u-boot
$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
$(obj)u-boot.srec: $(obj)u-boot
$(OBJCOPY) -O srec $< $@
这里“all:”这个目标怎么被定义了两次?Makefile允许这样?
第一个all是放在if-endif里的,只在为TRUE情况有效。
两个都生效时,则有一个合并和覆盖
同时出现,先执行第一条别。。。,没啥哈