summaryrefslogtreecommitdiffstats
path: root/post/rules.mk
diff options
context:
space:
mode:
authorYuri Tikhonov <yur@emcraft.com>2008-03-31 10:51:37 +0200
committerWolfgang Denk <wd@denx.de>2008-04-22 14:40:19 +0200
commit2d2b994a30bb100774dc747ae9865b7f95285a88 (patch)
treeab0325bd8261b84fa1101b0a47c058fd5fbb215d /post/rules.mk
parent0a51e9248e2d27e0a02ef1e740c576ce90a39ee1 (diff)
downloadtalos-obmc-uboot-2d2b994a30bb100774dc747ae9865b7f95285a88.tar.gz
talos-obmc-uboot-2d2b994a30bb100774dc747ae9865b7f95285a88.zip
POST: move CONFIG_POST to Makefiles
Introduce the new logical option CONFIG_HAS_POST which is set when the platform has CONFIG_POST set. Use CONFIG_HAS_POST in the post/ Makefiles to determine should the POST libs be compiled for the selected target platform, or not. To avoid breaking u-boot linking process, the empty post/libpost.a file is created for platforms which do not have POSTs. Signed-off-by: Yuri Tikhonov <yur@emcraft.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'post/rules.mk')
-rw-r--r--post/rules.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/post/rules.mk b/post/rules.mk
index e2c73c6004..94e72bec62 100644
--- a/post/rules.mk
+++ b/post/rules.mk
@@ -23,6 +23,8 @@
include $(TOPDIR)/config.mk
+COBJS := $(COBJS-y)
+AOBJS := $(AOBJS-y)
SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS))
LIB := $(obj)$(LIB)
OpenPOWER on IntegriCloud