summaryrefslogtreecommitdiff
path: root/spl/Makefile
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@googlemail.com>2011-07-13 05:11:08 +0000
committerWolfgang Denk <wd@denx.de>2011-07-26 14:44:38 +0200
commitefcc6096d6d8ba6afff69a7510b0078f9bd02629 (patch)
treeeaacfaceae96f278384b72b903d1918ac33d7131 /spl/Makefile
parent401bb30b6d5ee18642e95086af51e39de454bd30 (diff)
downloadu-boot-imx-efcc6096d6d8ba6afff69a7510b0078f9bd02629.zip
u-boot-imx-efcc6096d6d8ba6afff69a7510b0078f9bd02629.tar.gz
u-boot-imx-efcc6096d6d8ba6afff69a7510b0078f9bd02629.tar.bz2
spl: Add support for common libraries and drivers
Signed-off-by: Aneesh V <aneesh@ti.com> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Diffstat (limited to 'spl/Makefile')
-rw-r--r--spl/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/spl/Makefile b/spl/Makefile
index 32e6a09..0a916bc 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -36,6 +36,17 @@ endif
LIBS-y += board/$(BOARDDIR)/lib$(BOARD).o
LIBS-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/lib$(VENDOR).o
+LIBS-$(CONFIG_SPL_LIBCOMMON_SUPPORT) += common/libcommon.o
+LIBS-$(CONFIG_SPL_LIBDISK_SUPPORT) += disk/libdisk.o
+LIBS-$(CONFIG_SPL_I2C_SUPPORT) += drivers/i2c/libi2c.o
+LIBS-$(CONFIG_SPL_GPIO_SUPPORT) += drivers/gpio/libgpio.o
+LIBS-$(CONFIG_SPL_MMC_SUPPORT) += drivers/mmc/libmmc.o
+LIBS-$(CONFIG_SPL_SERIAL_SUPPORT) += drivers/serial/libserial.o
+LIBS-$(CONFIG_SPL_SPI_FLASH_SUPPORT) += drivers/mtd/spi/libspi_flash.o
+LIBS-$(CONFIG_SPL_SPI_SUPPORT) += drivers/spi/libspi.o
+LIBS-$(CONFIG_SPL_FAT_SUPPORT) += fs/fat/libfat.o
+LIBS-$(CONFIG_SPL_LIBGENERIC_SUPPORT) += lib/libgeneric.o
+
START := $(addprefix $(SPLTREE)/,$(START))
LIBS := $(addprefix $(SPLTREE)/,$(sort $(LIBS-y)))