summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorPoonam Aggrwal <poonam.aggrwal@freescale.com>2009-06-01 10:31:21 +0530
committerJustin Waters <justin.waters@timesys.com>2009-10-07 15:47:48 -0400
commitb121fdc5d24e8ec6e32e5570e3e019214c41b68f (patch)
treec8ef5d3ff435ec858ad65ae99f15ef7eff752c0a /config.mk
parentb4a7ef6f8871fe73c848fa31075971c83ff5e129 (diff)
NAND boot support for P1 P2 RDB Platforms
Switch options for NAND boot are SW[1:4]='0101" To Boot from NAND 1. tftp 1000000 u-boot-nand.bin 2. nand erase 0 80000 3. nand write 1000000 0 80000 4. Change the Switch settings to boot from NAND. 5. reset the board. Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index 3300b7531c..118bb656aa 100644
--- a/config.mk
+++ b/config.mk
@@ -112,12 +112,16 @@ DBGFLAGS= -g # -DDEBUG
OPTFLAGS= -Os #-fomit-frame-pointer
ifndef LDSCRIPT
#LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds.debug
+ifeq ($(CONFIG_NAND_U_BOOT),y)
+LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds
+else
ifeq ($(CONFIG_SDCARD_U_BOOT),y)
LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot-sdboot.lds
else
LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds
endif
endif
+endif
OBJCFLAGS += --gap-fill=0xff
gccincdir := $(shell $(CC) -print-file-name=include)