diff options
author | Stefan Roese | 2006-09-07 04:51:23 -0500 |
---|---|---|
committer | Stefan Roese | 2006-09-07 04:51:23 -0500 |
commit | 887e2ec9ecf49366a60a49b32b73825804909865 (patch) | |
tree | 341f14d99461653aa75f213933a5669b42f46df9 /Makefile | |
parent | 0dab03ba8fb20ede7233f497b6c6db188986e7a8 (diff) | |
download | u-boot-887e2ec9ecf49366a60a49b32b73825804909865.tar.gz u-boot-887e2ec9ecf49366a60a49b32b73825804909865.tar.xz u-boot-887e2ec9ecf49366a60a49b32b73825804909865.zip |
Add support for AMCC Sequoia PPC440EPx eval board
- Add support for PPC440EPx & PPC440GRx
- Add support for PPC440EP(x)/GR(x) NAND controller
in cpu/ppc4xx directory
- Add NAND boot functionality for Sequoia board,
please see doc/README.nand-boot-ppc440 for details
- This Sequoia NAND image doesn't support environment
in NAND for now. This will be added in a short while.
Patch by Stefan Roese, 07 Sep 2006
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 32 insertions, 7 deletions
@@ -48,7 +48,7 @@ VENDOR= | |||
48 | # | 48 | # |
49 | # U-boot build supports producing a object files to the separate external | 49 | # U-boot build supports producing a object files to the separate external |
50 | # directory. Two use cases are supported: | 50 | # directory. Two use cases are supported: |
51 | # | 51 | # |
52 | # 1) Add O= to the make command line | 52 | # 1) Add O= to the make command line |
53 | # 'make O=/tmp/build all' | 53 | # 'make O=/tmp/build all' |
54 | # | 54 | # |
@@ -59,12 +59,12 @@ VENDOR= | |||
59 | # The second approach can also be used with a MAKEALL script | 59 | # The second approach can also be used with a MAKEALL script |
60 | # 'export BUILD_DIR=/tmp/build' | 60 | # 'export BUILD_DIR=/tmp/build' |
61 | # './MAKEALL' | 61 | # './MAKEALL' |
62 | # | 62 | # |
63 | # Command line 'O=' setting overrides BUILD_DIR environent variable. | 63 | # Command line 'O=' setting overrides BUILD_DIR environent variable. |
64 | # | 64 | # |
65 | # When none of the above methods is used the local build is performed and | 65 | # When none of the above methods is used the local build is performed and |
66 | # the object files are placed in the source directory. | 66 | # the object files are placed in the source directory. |
67 | # | 67 | # |
68 | 68 | ||
69 | ifdef O | 69 | ifdef O |
70 | ifeq ("$(origin O)", "command line") | 70 | ifeq ("$(origin O)", "command line") |
@@ -101,7 +101,7 @@ src := $(SRCTREE)/ | |||
101 | else | 101 | else |
102 | obj := | 102 | obj := |
103 | src := | 103 | src := |
104 | endif | 104 | endif |
105 | export obj src | 105 | export obj src |
106 | 106 | ||
107 | ######################################################################### | 107 | ######################################################################### |
@@ -214,13 +214,18 @@ SUBDIRS = tools \ | |||
214 | post/cpu | 214 | post/cpu |
215 | .PHONY : $(SUBDIRS) | 215 | .PHONY : $(SUBDIRS) |
216 | 216 | ||
217 | ifeq ($(CONFIG_NAND_U_BOOT),y) | ||
218 | NAND_SPL = nand_spl | ||
219 | U_BOOT_NAND = $(obj)u-boot-nand.bin | ||
220 | endif | ||
221 | |||
217 | __OBJS := $(subst $(obj),,$(OBJS)) | 222 | __OBJS := $(subst $(obj),,$(OBJS)) |
218 | __LIBS := $(subst $(obj),,$(LIBS)) | 223 | __LIBS := $(subst $(obj),,$(LIBS)) |
219 | 224 | ||
220 | ######################################################################### | 225 | ######################################################################### |
221 | ######################################################################### | 226 | ######################################################################### |
222 | 227 | ||
223 | ALL = $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map | 228 | ALL = $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) |
224 | 229 | ||
225 | all: $(ALL) | 230 | all: $(ALL) |
226 | 231 | ||
@@ -258,6 +263,12 @@ $(LIBS): | |||
258 | $(SUBDIRS): | 263 | $(SUBDIRS): |
259 | $(MAKE) -C $@ all | 264 | $(MAKE) -C $@ all |
260 | 265 | ||
266 | $(NAND_SPL): version | ||
267 | $(MAKE) -C nand_spl all | ||
268 | |||
269 | $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin | ||
270 | cat nand_spl/u-boot-spl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin | ||
271 | |||
261 | version: | 272 | version: |
262 | @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \ | 273 | @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \ |
263 | echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \ | 274 | echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \ |
@@ -309,7 +320,8 @@ endif | |||
309 | ######################################################################### | 320 | ######################################################################### |
310 | 321 | ||
311 | unconfig: | 322 | unconfig: |
312 | @rm -f $(obj)include/config.h $(obj)include/config.mk $(obj)board/*/config.tmp | 323 | @rm -f $(obj)include/config.h $(obj)include/config.mk \ |
324 | $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp | ||
313 | 325 | ||
314 | #======================================================================== | 326 | #======================================================================== |
315 | # PowerPC | 327 | # PowerPC |
@@ -1128,6 +1140,17 @@ PPChameleonEVB_HI_33_config: unconfig | |||
1128 | sbc405_config: unconfig | 1140 | sbc405_config: unconfig |
1129 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 | 1141 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 |
1130 | 1142 | ||
1143 | sequoia_config: unconfig | ||
1144 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx sequoia amcc | ||
1145 | |||
1146 | sequoia_nand_config: unconfig | ||
1147 | @ln -s board/amcc/sequoia/Makefile nand_spl/Makefile | ||
1148 | @echo "#define CONFIG_NAND_U_BOOT" >include/config.h | ||
1149 | @echo "Compile NAND boot image for sequoia" | ||
1150 | @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc | ||
1151 | @echo "TEXT_BASE = 0x01000000" >board/amcc/sequoia/config.tmp | ||
1152 | @echo "CONFIG_NAND_U_BOOT = y" >> include/config.mk | ||
1153 | |||
1131 | sycamore_config: unconfig | 1154 | sycamore_config: unconfig |
1132 | @echo "Configuring for sycamore board as subset of walnut..." | 1155 | @echo "Configuring for sycamore board as subset of walnut..." |
1133 | @$(MKCONFIG) -a walnut ppc ppc4xx walnut amcc | 1156 | @$(MKCONFIG) -a walnut ppc ppc4xx walnut amcc |
@@ -2195,6 +2218,8 @@ clean: | |||
2195 | rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom | 2218 | rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom |
2196 | rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds | 2219 | rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds |
2197 | rm -f $(obj)include/bmp_logo.h | 2220 | rm -f $(obj)include/bmp_logo.h |
2221 | find nand_spl -lname "*" -print | xargs rm -f | ||
2222 | rm -f nand_spl/u-boot-spl nand_spl/u-boot-spl.map | ||
2198 | 2223 | ||
2199 | clobber: clean | 2224 | clobber: clean |
2200 | find $(OBJTREE) -type f \( -name .depend \ | 2225 | find $(OBJTREE) -type f \( -name .depend \ |