]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
build: imx: Fix 'u-boot.imx' build without full OBJTREE reference
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 11 Feb 2013 04:33:51 +0000 (04:33 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Feb 2013 17:39:08 +0000 (18:39 +0100)
When calling 'make u-boot.imx' the build were failing as it were
expecting the full path for the file; this regression has been
included by commit 71a988a (imximage.cfg: run files through C
preprocessor).

The direct references for u-boot.imx were replaced by $(obj) as
config.mk handles the proper setting of it making it set to $(OBJTREE)
when required.

The build has been test using:

 - ./MAKEALL -s mx5 -s mx6
 - make u-boot.imx
 - make O=/tmp/build

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Makefile
arch/arm/cpu/arm926ejs/config.mk
arch/arm/cpu/armv7/config.mk

index f4a9b336bd92f3120a49552c9ecac6a24c6624a5..a8c7b7b77a9ba988e1d8b5cdf1414c4c4be09aa6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -467,8 +467,8 @@ $(obj)u-boot.img:   $(obj)u-boot.bin
                        sed -e 's/"[     ]*$$/ for $(BOARD) board"/') \
                -d $< $@
 
-$(OBJTREE)/u-boot.imx : $(obj)u-boot.bin $(SUBDIR_TOOLS) depend
-               $(MAKE) -C $(SRCTREE)/arch/arm/imx-common $@
+$(obj)u-boot.imx: $(obj)u-boot.bin depend
+               $(MAKE) -C $(SRCTREE)/arch/arm/imx-common $(OBJTREE)/u-boot.imx
 
 $(obj)u-boot.kwb:       $(obj)u-boot.bin
                $(obj)tools/mkimage -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \
index 47f24f580e555b7fa151d4adf44be065ea2cc56a..6a3a1bb354102f967718ef96061e9cfb59c9469a 100644 (file)
@@ -34,6 +34,6 @@ PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
 
 ifneq ($(CONFIG_IMX_CONFIG),)
 
-ALL-y  += $(OBJTREE)/u-boot.imx
+ALL-y  += $(obj)u-boot.imx
 
 endif
index 350e94639260016411f16cf78704fc4d8073f041..9c3e2f3ce421e3e24013f013dac85085d74286a1 100644 (file)
@@ -40,5 +40,5 @@ PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
 PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED)
 
 ifneq ($(CONFIG_IMX_CONFIG),)
-ALL-y  += $(OBJTREE)/u-boot.imx
+ALL-y  += $(obj)u-boot.imx
 endif