X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=post%2FMakefile;h=a402e6adccaae32e3f2b37b7495c8d1b1ae6961e;hb=908261f3fdb418091d8c60bfbd7eb85e5869b579;hp=c737729f9e0c366b19907733c35a73fb268e1824;hpb=19cf2ec90d8ce52da60c1693693c4048cb810967;p=u-boot 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))