summaryrefslogtreecommitdiff
path: root/post/lib_ppc/Makefile
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/lib_ppc/Makefile
parent0a51e9248e2d27e0a02ef1e740c576ce90a39ee1 (diff)
downloadu-boot-imx-2d2b994a30bb100774dc747ae9865b7f95285a88.zip
u-boot-imx-2d2b994a30bb100774dc747ae9865b7f95285a88.tar.gz
u-boot-imx-2d2b994a30bb100774dc747ae9865b7f95285a88.tar.bz2
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/lib_ppc/Makefile')
-rw-r--r--post/lib_ppc/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/post/lib_ppc/Makefile b/post/lib_ppc/Makefile
index 9f1b329..bd7a232 100644
--- a/post/lib_ppc/Makefile
+++ b/post/lib_ppc/Makefile
@@ -20,14 +20,13 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
-
-SUBDIRS = fpu
+include $(TOPDIR)/config.mk
LIB = libpostppc.a
-AOBJS = asm.o
-COBJS = cpu.o cmp.o cmpi.o two.o twox.o three.o threex.o
-COBJS += threei.o andi.o srawi.o rlwnm.o rlwinm.o rlwimi.o
-COBJS += store.o load.o cr.o b.o multi.o string.o complex.o
+AOBJS-$(CONFIG_HAS_POST) += asm.o
+COBJS-$(CONFIG_HAS_POST) += cpu.o cmp.o cmpi.o two.o twox.o three.o threex.o
+COBJS-$(CONFIG_HAS_POST) += threei.o andi.o srawi.o rlwnm.o rlwinm.o rlwimi.o
+COBJS-$(CONFIG_HAS_POST) += store.o load.o cr.o b.o multi.o string.o complex.o
include $(TOPDIR)/post/rules.mk