Commit 630d23455bf01ef92dba41589fdb338984717f2f
Committed by
Tom Rini
1 parent
4e0c8abcdd
Exists in
master
and in
50 other branches
kbuild: refactor more IMX image rules
This commit avoids generating ./SPL twice. - Fist time descending to spl/ - Second time as a prerequisite of u-boot-with-spl.imx, u-boot-with-nand-spl.imx. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Showing 6 changed files with 14 additions and 34 deletions Side-by-side Diff
Makefile
... | ... | @@ -839,7 +839,10 @@ |
839 | 839 | tpl/u-boot-with-tpl.bin: tpl/u-boot-tpl.bin u-boot.bin FORCE |
840 | 840 | $(call if_changed,pad_cat) |
841 | 841 | |
842 | -u-boot-with-spl.imx u-boot-with-nand-spl.imx: spl/u-boot-spl.bin u-boot.bin | |
842 | +SPL: spl/u-boot-spl.bin FORCE | |
843 | + $(Q)$(MAKE) $(build)=arch/arm/imx-common $@ | |
844 | + | |
845 | +u-boot-with-spl.imx u-boot-with-nand-spl.imx: SPL u-boot.bin FORCE | |
843 | 846 | $(Q)$(MAKE) $(build)=arch/arm/imx-common $@ |
844 | 847 | |
845 | 848 | MKIMAGEFLAGS_u-boot.ubl = -n $(UBL_CONFIG) -T ublimage -e $(CONFIG_SYS_TEXT_BASE) |
arch/arm/config.mk
... | ... | @@ -112,4 +112,14 @@ |
112 | 112 | else |
113 | 113 | OBJCOPYFLAGS += -j .text -j .rodata -j .hash -j .data -j .got.plt -j .u_boot_list -j .rel.dyn |
114 | 114 | endif |
115 | + | |
116 | +ifneq ($(CONFIG_IMX_CONFIG),) | |
117 | +ifdef CONFIG_SPL | |
118 | +ifndef CONFIG_SPL_BUILD | |
119 | +ALL-y += SPL | |
120 | +endif | |
121 | +else | |
122 | +ALL-y += u-boot.imx | |
123 | +endif | |
124 | +endif |
arch/arm/cpu/arm1136/config.mk
... | ... | @@ -7,14 +7,4 @@ |
7 | 7 | |
8 | 8 | # Make ARMv5 to allow more compilers to work, even though its v6. |
9 | 9 | PLATFORM_CPPFLAGS += -march=armv5 |
10 | - | |
11 | -ifneq ($(CONFIG_IMX_CONFIG),) | |
12 | -ifdef CONFIG_SPL | |
13 | -ifdef CONFIG_SPL_BUILD | |
14 | -ALL-y += SPL | |
15 | -endif | |
16 | -else | |
17 | -ALL-y += u-boot.imx | |
18 | -endif | |
19 | -endif |
arch/arm/cpu/arm926ejs/config.mk
arch/arm/cpu/armv7/config.mk
... | ... | @@ -13,14 +13,4 @@ |
13 | 13 | # SEE README.arm-unaligned-accesses |
14 | 14 | PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,) |
15 | 15 | PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED) |
16 | - | |
17 | -ifneq ($(CONFIG_IMX_CONFIG),) | |
18 | -ifdef CONFIG_SPL | |
19 | -ifdef CONFIG_SPL_BUILD | |
20 | -ALL-y += SPL | |
21 | -endif | |
22 | -else | |
23 | -ALL-y += u-boot.imx | |
24 | -endif | |
25 | -endif |
spl/Makefile