summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMagnus Lilja <lilja.magnus@gmail.com>2009-07-04 10:31:24 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-07-06 21:53:18 +0200
commitd08e5ca301b69ab77ecdd34e2b06aee30d6057d1 (patch)
tree664a681d606a8bc689b7c4381d720bb3debf7998 /Makefile
parent78eabb90b793fafe875a7469526d1715fa56cbb4 (diff)
downloadu-boot-imx-d08e5ca301b69ab77ecdd34e2b06aee30d6057d1.zip
u-boot-imx-d08e5ca301b69ab77ecdd34e2b06aee30d6057d1.tar.gz
u-boot-imx-d08e5ca301b69ab77ecdd34e2b06aee30d6057d1.tar.bz2
MX31: Add NAND SPL boot support to i.MX31 PDK board.
Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d486b55..763a202 100644
--- a/Makefile
+++ b/Makefile
@@ -3143,8 +3143,16 @@ imx31_phycore_config : unconfig
mx31ads_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
-mx31pdk_config : unconfig
- @$(MKCONFIG) $(@:_config=) arm arm1136 mx31pdk freescale mx31
+mx31pdk_config \
+mx31pdk_nand_config : unconfig
+ @mkdir -p $(obj)include
+ @if [ -n "$(findstring _nand_,$@)" ]; then \
+ echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \
+ else \
+ echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \
+ echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \
+ fi
+ @$(MKCONFIG) -a mx31pdk arm arm1136 mx31pdk freescale mx31
omap2420h4_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx