summaryrefslogtreecommitdiff
path: root/spl/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2013-10-17 17:34:53 +0900
committerTom Rini <trini@ti.com>2013-10-31 13:20:39 -0400
commit71f84ef0730e992f50bd82d17a003daafd149cad (patch)
treea4b78c33f0c2554c2377fcdb37ee9131819f5854 /spl/Makefile
parentfa8f95084d06bd29c4ca75994a41c557345f53f6 (diff)
downloadu-boot-imx-71f84ef0730e992f50bd82d17a003daafd149cad.zip
u-boot-imx-71f84ef0730e992f50bd82d17a003daafd149cad.tar.gz
u-boot-imx-71f84ef0730e992f50bd82d17a003daafd149cad.tar.bz2
ARM: imx-common: convert makefiles to Kbuild style
Multiple targets are included in arch/arm/imx-common/Makefile In order to refactor it, we need to tweak Makefile and spl/Makefile. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'spl/Makefile')
-rw-r--r--spl/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/spl/Makefile b/spl/Makefile
index 64ebfb7..d24c1cd 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -154,6 +154,8 @@ ifeq ($(wildcard $(LDSCRIPT)),)
$(error could not find linker script)
endif
+build := -f $(TOPDIR)/scripts/Makefile.build -C
+
# Special flags for CPP when processing the linker script.
# Pass the version down so we can handle backwards compatibility
# on the fly.
@@ -173,7 +175,7 @@ $(OBJTREE)/MLO.byteswap: $(obj)u-boot-spl.bin
-a $(CONFIG_SPL_TEXT_BASE) -d $< $@
$(OBJTREE)/SPL : $(obj)u-boot-spl.bin depend
- $(MAKE) -C $(SRCTREE)/arch/arm/imx-common $@
+ $(MAKE) $(build) $(SRCTREE)/arch/arm/imx-common $@
ALL-y += $(obj)$(SPL_BIN).bin