]> git.sur5r.net Git - u-boot/commitdiff
ppc4xx: Fix O=buildir builds
authorNiklaus Giger <niklaus.giger@nestal.com>
Mon, 25 Jun 2007 14:50:55 +0000 (16:50 +0200)
committerStefan Roese <sr@denx.de>
Mon, 25 Jun 2007 14:50:55 +0000 (16:50 +0200)
This patch fixes the problem to assemble cpu/ppc4xx/start.S
experienced last week where building failed having specified
O=../build.sequoia.

Signed-off-by: Niklaus Giger <niklaus.giger@nestal.com>
cpu/ppc4xx/config.mk

index e7fc3f636e61d5f6be654e72a21c50ab1af20f2a..4fd510899c59c1c42143804612f8bbf875d89926 100644 (file)
@@ -24,7 +24,7 @@
 PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi -fno-strict-aliasing
 PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -msoft-float
 
-cfg=$(shell grep configs $(TOPDIR)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
+cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
 is440=$(shell grep CONFIG_440 $(TOPDIR)/include/$(cfg))
 
 ifneq (,$(findstring CONFIG_440,$(is440)))