]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/drivers/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / post / drivers / Makefile
index cb2f1deacd7083f50238c571c8fcd90c2226c148..0d87ae0f9d65469580d26d101aa20d434f99d0e0 100644 (file)
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
+include $(TOPDIR)/config.mk
 
+LIB    = libpostdrivers.o
 
-SUBDIRS =
-
-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