//参考 u-boot-1.1.4/config.mk
cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
> /dev/null 2>&1; then echo "$(1)";else echo "$(2)";fi;)
//参考u-boot-1.1.4/cpu/arm920t/config.mk
PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
//call函数参考GnuMakeMenual 8.6
阅读(3455) | 评论(0) | 转发(0) |