diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-02-24 11:12:21 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-02-25 11:01:29 -0500 |
commit | 630d23455bf01ef92dba41589fdb338984717f2f (patch) | |
tree | 7742b710c5a9e6ed701e786b029c73ae807eafb8 /arch/arm/config.mk | |
parent | 4e0c8abcdd8748b20e1652bd35351d077baad2f2 (diff) |
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>
Diffstat (limited to 'arch/arm/config.mk')
-rw-r--r-- | arch/arm/config.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 8a65c34b86..17b7408835 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -112,3 +112,13 @@ OBJCOPYFLAGS += -j .text -j .rodata -j .data -j .u_boot_list -j .rela.dyn else OBJCOPYFLAGS += -j .text -j .rodata -j .hash -j .data -j .got.plt -j .u_boot_list -j .rel.dyn endif + +ifneq ($(CONFIG_IMX_CONFIG),) +ifdef CONFIG_SPL +ifndef CONFIG_SPL_BUILD +ALL-y += SPL +endif +else +ALL-y += u-boot.imx +endif +endif |