path: root/post/cpu/ppc4xx/Makefile
diff options
authorYuri Tikhonov <>2008-03-31 10:51:37 +0200
committerWolfgang Denk <>2008-04-22 14:40:19 +0200
commit2d2b994a30bb100774dc747ae9865b7f95285a88 (patch)
treeab0325bd8261b84fa1101b0a47c058fd5fbb215d /post/cpu/ppc4xx/Makefile
parent0a51e9248e2d27e0a02ef1e740c576ce90a39ee1 (diff)
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 <> Signed-off-by: Wolfgang Denk <>
Diffstat (limited to 'post/cpu/ppc4xx/Makefile')
1 files changed, 3 insertions, 2 deletions
diff --git a/post/cpu/ppc4xx/Makefile b/post/cpu/ppc4xx/Makefile
index e3f44b7774..7b13413b9d 100644
--- a/post/cpu/ppc4xx/Makefile
+++ b/post/cpu/ppc4xx/Makefile
@@ -20,10 +20,11 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
+include $(TOPDIR)/include/
LIB = libpostppc4xx.a
-AOBJS = cache_4xx.o
-COBJS = cache.o denali_ecc.o ether.o fpu.o spr.o uart.o watchdog.o
+AOBJS-$(CONFIG_HAS_POST) += cache_4xx.o
+COBJS-$(CONFIG_HAS_POST) += cache.o denali_ecc.o ether.o fpu.o spr.o uart.o watchdog.o
include $(TOPDIR)/post/
OpenPOWER on IntegriCloud