]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/Makefile
Merge branch 'master' of /home/stefan/git/u-boot/u-boot
[karo-tx-uboot.git] / post / Makefile
index 02b51544c2025124b75aa9f5b45c425e4ac90648..a402e6adccaae32e3f2b37b7495c8d1b1ae6961e 100644 (file)
@@ -21,7 +21,8 @@
 # MA 02111-1307 USA
 #
 
-include $(TOPDIR)/include/autoconf.mk
+include $(TOPDIR)/config.mk
+include $(OBJTREE)/include/autoconf.mk
 
 LIB                            = libpost.a
 GPLIB-$(CONFIG_HAS_POST)       += libgenpost.a
@@ -37,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))