summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/omap-common/Makefile
diff options
context:
space:
mode:
authorSimon Schwarz <simonschwarzcor@googlemail.com>2011-09-14 15:33:34 -0400
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-30 22:00:55 +0200
commit9ea5c6efd8cc2f799ee0dba303754911848231d0 (patch)
tree0fcdb44e9f313ef1032a2fb2797430febbd27b28 /arch/arm/cpu/armv7/omap-common/Makefile
parent409ef1bcfbadf71059477feda1d88e717a4b7e62 (diff)
downloadu-boot-imx-9ea5c6efd8cc2f799ee0dba303754911848231d0.zip
u-boot-imx-9ea5c6efd8cc2f799ee0dba303754911848231d0.tar.gz
u-boot-imx-9ea5c6efd8cc2f799ee0dba303754911848231d0.tar.bz2
omap-common: reorganize spl.c
split-up spl.c into spl.c, spl_mmc.c and spl_nand.c. This avoids problems with missing defines if a board does not use mmc or nand. This includes adding spl_ prefix to some functions which are now public. spl_image_t is now a public type. Added some of the common functions to omap-common.h Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/omap-common/Makefile')
-rw-r--r--arch/arm/cpu/armv7/omap-common/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/Makefile b/arch/arm/cpu/armv7/omap-common/Makefile
index ea9f8ec..0b96b47 100644
--- a/arch/arm/cpu/armv7/omap-common/Makefile
+++ b/arch/arm/cpu/armv7/omap-common/Makefile
@@ -33,6 +33,12 @@ COBJS += gpio.o
ifdef CONFIG_SPL_BUILD
COBJS += spl.o
+ifdef CONFIG_SPL_NAND_SUPPORT
+COBJS += spl_nand.o
+endif
+ifdef CONFIG_SPL_MMC_SUPPORT
+COBJS += spl_mmc.o
+endif
endif
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)