diff options
author | Yuri Tikhonov <yur@emcraft.com> | 2008-03-31 10:51:37 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-22 14:40:19 +0200 |
commit | 2d2b994a30bb100774dc747ae9865b7f95285a88 (patch) | |
tree | ab0325bd8261b84fa1101b0a47c058fd5fbb215d /post/drivers | |
parent | 0a51e9248e2d27e0a02ef1e740c576ce90a39ee1 (diff) | |
download | u-boot-2d2b994a30bb100774dc747ae9865b7f95285a88.tar.gz |
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/drivers')
-rw-r--r-- | post/drivers/Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/post/drivers/Makefile b/post/drivers/Makefile index cb2f1deacd..0b6cdf58c9 100644 --- a/post/drivers/Makefile +++ b/post/drivers/Makefile @@ -20,12 +20,10 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # - - -SUBDIRS = +include $(TOPDIR)/config.mk LIB = libpostdrivers.a -COBJS = i2c.o memory.o rtc.o +COBJS-$(CONFIG_HAS_POST) += i2c.o memory.o rtc.o include $(TOPDIR)/post/rules.mk |