]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sh7785lcr: fix out of tree build
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Thu, 4 Jun 2009 10:06:43 +0000 (12:06 +0200)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 8 Jul 2009 02:43:14 +0000 (11:43 +0900)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Makefile
board/renesas/sh7785lcr/Makefile

index 2a06440249577b5fefae4a6f8dcefa2b010b2f9b..cf96900b1bca4a127328862f257c14649f2f3577 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3529,8 +3529,9 @@ sh7763rdp_config  :   unconfig
 xtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1))
 sh7785lcr_32bit_config \
 sh7785lcr_config  :   unconfig
-       @ >include/config.h
-       @echo "#define CONFIG_SH7785LCR 1" >> include/config.h
+       @mkdir -p $(obj)include
+       @mkdir -p $(obj)board/renesas/sh7785lcr
+       @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
        @if [ "$(findstring 32bit, $@)" ] ; then \
                echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
                cp $(obj)board/renesas/sh7785lcr/u-boot_32bit \
index b1b538c9d809474272907f092bb9b5d1f366a08f..b8e43f7d6dbb6470a94cf9ccb14e7d6e447f7758 100644 (file)
@@ -18,7 +18,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).a
 
 COBJS  := sh7785lcr.o selfcheck.o rtl8169_mac.o
 SOBJS  := lowlevel_init.o