summaryrefslogtreecommitdiff
path: root/post/Makefile
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-04-26 11:44:44 -0500
committerWolfgang Denk <wd@denx.de>2008-04-28 00:55:04 +0200
commit03c6cd39f9184143fd8c537872b3d4b2e03f1466 (patch)
treeee105688215db83b074a473c50dd98bbb8707036 /post/Makefile
parentfd7531c1e9d56b9e5e06d2c0e02b798dab72f70c (diff)
downloadu-boot-imx-03c6cd39f9184143fd8c537872b3d4b2e03f1466.zip
u-boot-imx-03c6cd39f9184143fd8c537872b3d4b2e03f1466.tar.gz
u-boot-imx-03c6cd39f9184143fd8c537872b3d4b2e03f1466.tar.bz2
post: Fix building with O=
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'post/Makefile')
-rw-r--r--post/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/post/Makefile b/post/Makefile
index c737729..a402e6a 100644
--- a/post/Makefile
+++ b/post/Makefile
@@ -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))