summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--post/Makefile6
-rw-r--r--post/board/lwmon5/Makefile2
-rw-r--r--post/cpu/ppc4xx/Makefile2
3 files changed, 5 insertions, 5 deletions
diff --git a/post/Makefile b/post/Makefile
index c737729f9e..a402e6adcc 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))
diff --git a/post/board/lwmon5/Makefile b/post/board/lwmon5/Makefile
index 3cb6426e4d..4e95515ef1 100644
--- a/post/board/lwmon5/Makefile
+++ b/post/board/lwmon5/Makefile
@@ -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
diff --git a/post/cpu/ppc4xx/Makefile b/post/cpu/ppc4xx/Makefile
index 7b13413b9d..87ecd7c907 100644
--- a/post/cpu/ppc4xx/Makefile
+++ b/post/cpu/ppc4xx/Makefile
@@ -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
OpenPOWER on IntegriCloud