提交 4e0fbb98 编写于 作者: D Daniel Schwierzeck 提交者: Wolfgang Denk

Use ALL-y style instead of ifeq blocks for better readability

Signed-off-by: NDaniel Schwierzeck <daniel.schwierzeck@googlemail.com>
上级 a16a84b7
...@@ -341,22 +341,14 @@ BOARD_SIZE_CHECK = ...@@ -341,22 +341,14 @@ BOARD_SIZE_CHECK =
endif endif
# Always append ALL so that arch config.mk's can add custom ones # 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 ALL-y += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map
ifeq ($(CONFIG_NAND_U_BOOT),y) ALL-$(CONFIG_NAND_U_BOOT) += $(obj)u-boot-nand.bin
ALL += $(obj)u-boot-nand.bin ALL-$(CONFIG_ONENAND_U_BOOT) += $(obj)u-boot-onenand.bin
endif
ifeq ($(CONFIG_ONENAND_U_BOOT),y)
ALL += $(obj)u-boot-onenand.bin
ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin
endif ALL-$(CONFIG_MMC_U_BOOT) += $(obj)mmc_spl/u-boot-mmc-spl.bin
ifeq ($(CONFIG_MMC_U_BOOT),y)
ALL += $(obj)mmc_spl/u-boot-mmc-spl.bin
endif
all: $(ALL) all: $(ALL-y)
$(obj)u-boot.hex: $(obj)u-boot $(obj)u-boot.hex: $(obj)u-boot
$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
...@@ -1096,7 +1088,7 @@ clobber: clean ...@@ -1096,7 +1088,7 @@ clobber: clean
| xargs -0 rm -f | xargs -0 rm -f
@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
$(obj)cscope.* $(obj)*.*~ $(obj)cscope.* $(obj)*.*~
@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL-y)
@rm -f $(obj)u-boot.kwb @rm -f $(obj)u-boot.kwb
@rm -f $(obj)u-boot.imx @rm -f $(obj)u-boot.imx
@rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes} @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
......
...@@ -44,7 +44,7 @@ PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections ...@@ -44,7 +44,7 @@ PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
PLATFORM_RELFLAGS += -mcpu=$(CONFIG_BFIN_CPU) PLATFORM_RELFLAGS += -mcpu=$(CONFIG_BFIN_CPU)
ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS) ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)
ALL += $(obj)u-boot.ldr ALL-y += $(obj)u-boot.ldr
endif endif
ifeq ($(CONFIG_ENV_IS_EMBEDDED_IN_LDR),y) ifeq ($(CONFIG_ENV_IS_EMBEDDED_IN_LDR),y)
CREATE_LDR_ENV = $(obj)tools/envcrc --binary > $(obj)env-ldr.o CREATE_LDR_ENV = $(obj)tools/envcrc --binary > $(obj)env-ldr.o
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
# #
# Check the U-Boot Image with a SHA1 checksum # Check the U-Boot Image with a SHA1 checksum
ALL += $(obj)u-boot.sha1 ALL-y += $(obj)u-boot.sha1
PLATFORM_CPPFLAGS += -DCONFIG_440=1 PLATFORM_CPPFLAGS += -DCONFIG_440=1
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
CONFIG_SYS_TEXT_BASE = 0x00700000 CONFIG_SYS_TEXT_BASE = 0x00700000
ALL += $(obj)u-boot.img ALL-y += $(obj)u-boot.img
# Environment variables in NAND # Environment variables in NAND
ifeq ($(ENV),NAND) ifeq ($(ENV),NAND)
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
CONFIG_SYS_TEXT_BASE = 0x00700000 CONFIG_SYS_TEXT_BASE = 0x00700000
ALL += $(obj)u-boot.img ALL-y += $(obj)u-boot.img
# Environment variables in NAND # Environment variables in NAND
ifeq ($(ENV),NAND) ifeq ($(ENV),NAND)
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
CONFIG_SYS_TEXT_BASE = 0x00700000 CONFIG_SYS_TEXT_BASE = 0x00700000
ALL += $(obj)u-boot.img ALL-y += $(obj)u-boot.img
# Environment variables in NAND # Environment variables in NAND
ifeq ($(ENV),NAND) ifeq ($(ENV),NAND)
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
CONFIG_SYS_TEXT_BASE = 0x00700000 CONFIG_SYS_TEXT_BASE = 0x00700000
ALL += $(obj)u-boot.img ALL-y += $(obj)u-boot.img
# Environment variables in NAND # Environment variables in NAND
ifeq ($(ENV),NAND) ifeq ($(ENV),NAND)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册