]> git.sur5r.net Git - u-boot/commitdiff
post: Fix building with O=
authorKumar Gala <galak@kernel.crashing.org>
Sat, 26 Apr 2008 16:44:44 +0000 (11:44 -0500)
committerWolfgang Denk <wd@denx.de>
Sun, 27 Apr 2008 22:55:04 +0000 (00:55 +0200)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
post/Makefile
post/board/lwmon5/Makefile
post/cpu/ppc4xx/Makefile

index c737729f9e0c366b19907733c35a73fb268e1824..a402e6adccaae32e3f2b37b7495c8d1b1ae6961e 100644 (file)
@@ -22,7 +22,7 @@
 #
 
 include $(TOPDIR)/config.mk
-include $(TOPDIR)/include/autoconf.mk
+include $(OBJTREE)/include/autoconf.mk
 
 LIB                            = libpost.a
 GPLIB-$(CONFIG_HAS_POST)       += libgenpost.a
@@ -38,8 +38,8 @@ SPLIB-$(CONFIG_HAS_POST) += $(shell if [ -d cpu/$(CPU) ]; then echo \
 SPLIB-$(CONFIG_HAS_POST) += $(shell if [ -d board/$(BOARD) ]; then echo \
                            "board/$(BOARD)/libpost$(BOARD).a"; fi)
 
-GPLIB  := $(GPLIB-y)
-SPLIB  := $(SPLIB-y)
+GPLIB  := $(addprefix $(obj),$(GPLIB-y))
+SPLIB  := $(addprefix $(obj),$(SPLIB-y))
 COBJS  := $(COBJS-y)
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
index 3cb6426e4dd8903f29efb901434634170827597d..4e95515ef1fcff00e705c7c921e3f21aec669ba6 100644 (file)
@@ -20,7 +20,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
-include $(TOPDIR)/include/autoconf.mk
+include $(OBJTREE)/include/autoconf.mk
 
 LIB    = libpostlwmon5.a
 
index 7b13413b9d7e817bfa0edcdfa46b7d570bde249c..87ecd7c907458ead56ce5014ce597b31f1b23854 100644 (file)
@@ -20,7 +20,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
-include $(TOPDIR)/include/autoconf.mk
+include $(OBJTREE)/include/autoconf.mk
 
 LIB    = libpostppc4xx.a