From 71f84ef0730e992f50bd82d17a003daafd149cad Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Thu, 17 Oct 2013 17:34:53 +0900 Subject: 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 --- spl/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'spl/Makefile') diff --git a/spl/Makefile b/spl/Makefile index 64ebfb7090..d24c1cd4da 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 -- cgit v1.2.1