]>
Commit | Line | Data |
---|---|---|
7ebf7443 | 1 | # |
63640019 | 2 | # (C) Copyright 2000-2007 |
7ebf7443 WD |
3 | # Wolfgang Denk, DENX Software Engineering, [email protected]. |
4 | # | |
5 | # See file CREDITS for list of people who contributed to this | |
6 | # project. | |
7 | # | |
8 | # This program is free software; you can redistribute it and/or | |
9 | # modify it under the terms of the GNU General Public License as | |
45a212c4 | 10 | # published by the Free Software Foundatio; either version 2 of |
7ebf7443 WD |
11 | # the License, or (at your option) any later version. |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | # | |
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with this program; if not, write to the Free Software | |
20 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, | |
21 | # MA 02111-1307 USA | |
22 | # | |
23 | ||
881a87ec | 24 | VERSION = 1 |
754bac48 | 25 | PATCHLEVEL = 3 |
f4eb5452 | 26 | SUBLEVEL = 0 |
63640019 | 27 | EXTRAVERSION = -rc3 |
881a87ec | 28 | U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) |
f9328639 | 29 | VERSION_FILE = $(obj)include/version_autogenerated.h |
881a87ec | 30 | |
7ebf7443 WD |
31 | HOSTARCH := $(shell uname -m | \ |
32 | sed -e s/i.86/i386/ \ | |
33 | -e s/sun4u/sparc64/ \ | |
34 | -e s/arm.*/arm/ \ | |
35 | -e s/sa110/arm/ \ | |
36 | -e s/powerpc/ppc/ \ | |
a2280646 | 37 | -e s/ppc64/ppc/ \ |
7ebf7443 WD |
38 | -e s/macppc/ppc/) |
39 | ||
f9d77ed3 | 40 | HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ |
7ebf7443 WD |
41 | sed -e 's/\(cygwin\).*/cygwin/') |
42 | ||
f9d77ed3 | 43 | export HOSTARCH HOSTOS |
7ebf7443 WD |
44 | |
45 | # Deal with colliding definitions from tcsh etc. | |
46 | VENDOR= | |
47 | ||
48 | ######################################################################### | |
f9328639 MB |
49 | # |
50 | # U-boot build supports producing a object files to the separate external | |
51 | # directory. Two use cases are supported: | |
887e2ec9 | 52 | # |
f9328639 MB |
53 | # 1) Add O= to the make command line |
54 | # 'make O=/tmp/build all' | |
55 | # | |
56 | # 2) Set environement variable BUILD_DIR to point to the desired location | |
57 | # 'export BUILD_DIR=/tmp/build' | |
58 | # 'make' | |
59 | # | |
60 | # The second approach can also be used with a MAKEALL script | |
61 | # 'export BUILD_DIR=/tmp/build' | |
62 | # './MAKEALL' | |
887e2ec9 | 63 | # |
f9328639 | 64 | # Command line 'O=' setting overrides BUILD_DIR environent variable. |
887e2ec9 | 65 | # |
f9328639 MB |
66 | # When none of the above methods is used the local build is performed and |
67 | # the object files are placed in the source directory. | |
887e2ec9 | 68 | # |
f9328639 MB |
69 | |
70 | ifdef O | |
71 | ifeq ("$(origin O)", "command line") | |
72 | BUILD_DIR := $(O) | |
73 | endif | |
74 | endif | |
75 | ||
76 | ifneq ($(BUILD_DIR),) | |
77 | saved-output := $(BUILD_DIR) | |
4f0645eb MB |
78 | |
79 | # Attempt to create a output directory. | |
80 | $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) | |
81 | ||
a73c8dbb | 82 | # Verify if it was successful. |
f9328639 MB |
83 | BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) |
84 | $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) | |
85 | endif # ifneq ($(BUILD_DIR),) | |
86 | ||
87 | OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) | |
88 | SRCTREE := $(CURDIR) | |
89 | TOPDIR := $(SRCTREE) | |
90 | LNDIR := $(OBJTREE) | |
91 | export TOPDIR SRCTREE OBJTREE | |
92 | ||
93 | MKCONFIG := $(SRCTREE)/mkconfig | |
94 | export MKCONFIG | |
7ebf7443 | 95 | |
f9328639 | 96 | ifneq ($(OBJTREE),$(SRCTREE)) |
dd520bf3 | 97 | REMOTE_BUILD := 1 |
f9328639 MB |
98 | export REMOTE_BUILD |
99 | endif | |
100 | ||
101 | # $(obj) and (src) are defined in config.mk but here in main Makefile | |
102 | # we also need them before config.mk is included which is the case for | |
103 | # some targets like unconfig, clean, clobber, distclean, etc. | |
104 | ifneq ($(OBJTREE),$(SRCTREE)) | |
105 | obj := $(OBJTREE)/ | |
106 | src := $(SRCTREE)/ | |
107 | else | |
108 | obj := | |
109 | src := | |
887e2ec9 | 110 | endif |
f9328639 MB |
111 | export obj src |
112 | ||
7ebf7443 WD |
113 | ######################################################################### |
114 | ||
f9328639 | 115 | ifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk)) |
7ebf7443 | 116 | |
7ebf7443 | 117 | # load ARCH, BOARD, and CPU configuration |
f9328639 | 118 | include $(OBJTREE)/include/config.mk |
1d9f4105 | 119 | export ARCH CPU BOARD VENDOR SOC |
f9328639 | 120 | |
7ebf7443 | 121 | ifndef CROSS_COMPILE |
a5284efd | 122 | ifeq ($(HOSTARCH),$(ARCH)) |
7ebf7443 WD |
123 | CROSS_COMPILE = |
124 | else | |
7ebf7443 | 125 | ifeq ($(ARCH),ppc) |
16c8d5e7 | 126 | CROSS_COMPILE = ppc_8xx- |
7ebf7443 WD |
127 | endif |
128 | ifeq ($(ARCH),arm) | |
dc7c9a1a | 129 | CROSS_COMPILE = arm-linux- |
7ebf7443 | 130 | endif |
2262cfee | 131 | ifeq ($(ARCH),i386) |
7a8e9bed WD |
132 | CROSS_COMPILE = i386-linux- |
133 | endif | |
43d9616c WD |
134 | ifeq ($(ARCH),mips) |
135 | CROSS_COMPILE = mips_4KC- | |
136 | endif | |
4a551709 WD |
137 | ifeq ($(ARCH),nios) |
138 | CROSS_COMPILE = nios-elf- | |
139 | endif | |
5c952cf0 WD |
140 | ifeq ($(ARCH),nios2) |
141 | CROSS_COMPILE = nios2-elf- | |
142 | endif | |
4e5ca3eb WD |
143 | ifeq ($(ARCH),m68k) |
144 | CROSS_COMPILE = m68k-elf- | |
145 | endif | |
507bbe3e WD |
146 | ifeq ($(ARCH),microblaze) |
147 | CROSS_COMPILE = mb- | |
148 | endif | |
0afe519a | 149 | ifeq ($(ARCH),blackfin) |
ef26a08f | 150 | CROSS_COMPILE = bfin-uclinux- |
0afe519a | 151 | endif |
7b64fef3 | 152 | ifeq ($(ARCH),avr32) |
5374b36d | 153 | CROSS_COMPILE = avr32-linux- |
7b64fef3 | 154 | endif |
7ebf7443 WD |
155 | endif |
156 | endif | |
157 | ||
158 | export CROSS_COMPILE | |
159 | ||
92b197f0 WD |
160 | # load other configuration |
161 | include $(TOPDIR)/config.mk | |
162 | ||
7ebf7443 WD |
163 | ######################################################################### |
164 | # U-Boot objects....order is important (i.e. start must be first) | |
165 | ||
9fd5e31f | 166 | OBJS = cpu/$(CPU)/start.o |
2262cfee | 167 | ifeq ($(CPU),i386) |
9fd5e31f WD |
168 | OBJS += cpu/$(CPU)/start16.o |
169 | OBJS += cpu/$(CPU)/reset.o | |
2262cfee | 170 | endif |
7ebf7443 | 171 | ifeq ($(CPU),ppc4xx) |
9fd5e31f | 172 | OBJS += cpu/$(CPU)/resetvec.o |
7ebf7443 | 173 | endif |
42d1f039 WD |
174 | ifeq ($(CPU),mpc85xx) |
175 | OBJS += cpu/$(CPU)/resetvec.o | |
176 | endif | |
0afe519a WD |
177 | ifeq ($(CPU),bf533) |
178 | OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o | |
ef26a08f | 179 | OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o |
0afe519a | 180 | endif |
26bf7dec AL |
181 | ifeq ($(CPU),bf537) |
182 | OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o | |
65458987 AL |
183 | OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o |
184 | endif | |
185 | ifeq ($(CPU),bf561) | |
186 | OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o | |
187 | OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o | |
0afe519a | 188 | endif |
7ebf7443 | 189 | |
f9328639 MB |
190 | OBJS := $(addprefix $(obj),$(OBJS)) |
191 | ||
9fd5e31f | 192 | LIBS = lib_generic/libgeneric.a |
7608d75f KP |
193 | LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ |
194 | "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) | |
9fd5e31f | 195 | LIBS += board/$(BOARDDIR)/lib$(BOARD).a |
7ebf7443 | 196 | LIBS += cpu/$(CPU)/lib$(CPU).a |
1d9f4105 WD |
197 | ifdef SOC |
198 | LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a | |
199 | endif | |
323bfa8f SR |
200 | ifeq ($(CPU),ixp) |
201 | LIBS += cpu/ixp/npe/libnpe.a | |
202 | endif | |
7ebf7443 | 203 | LIBS += lib_$(ARCH)/lib$(ARCH).a |
518e2e1a | 204 | LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ |
c419d1d6 | 205 | fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a |
7ebf7443 WD |
206 | LIBS += net/libnet.a |
207 | LIBS += disk/libdisk.a | |
208 | LIBS += rtc/librtc.a | |
209 | LIBS += dtt/libdtt.a | |
210 | LIBS += drivers/libdrivers.a | |
0f460a1e | 211 | LIBS += drivers/bios_emulator/libatibiosemu.a |
6db39708 MB |
212 | LIBS += drivers/nand/libnand.a |
213 | LIBS += drivers/nand_legacy/libnand_legacy.a | |
d7e8ce10 | 214 | LIBS += drivers/onenand/libonenand.a |
8e585f02 | 215 | LIBS += drivers/net/libnet.a |
7737d5c6 DL |
216 | ifeq ($(CPU),mpc83xx) |
217 | LIBS += drivers/qe/qe.a | |
218 | endif | |
da9d4610 AF |
219 | ifeq ($(CPU),mpc85xx) |
220 | LIBS += drivers/qe/qe.a | |
221 | endif | |
8e585f02 | 222 | LIBS += drivers/serial/libserial.a |
7152b1d0 | 223 | LIBS += drivers/sk98lin/libsk98lin.a |
ad5bb451 WD |
224 | LIBS += post/libpost.a post/drivers/libpostdrivers.a |
225 | LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \ | |
226 | "post/lib_$(ARCH)/libpost$(ARCH).a"; fi) | |
b4489621 SP |
227 | LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \ |
228 | "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi) | |
ad5bb451 WD |
229 | LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \ |
230 | "post/cpu/$(CPU)/libpost$(CPU).a"; fi) | |
231 | LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \ | |
232 | "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi) | |
7ebf7443 | 233 | LIBS += common/libcommon.a |
7651f8bd | 234 | LIBS += libfdt/libfdt.a |
f9328639 MB |
235 | |
236 | LIBS := $(addprefix $(obj),$(LIBS)) | |
9fd5e31f | 237 | .PHONY : $(LIBS) |
a8c7c708 | 238 | |
4f7cb08e | 239 | # Add GCC lib |
1a344f29 | 240 | PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc |
3d3befa7 | 241 | |
a8c7c708 WD |
242 | # The "tools" are needed early, so put this first |
243 | # Don't include stuff already done in $(LIBS) | |
244 | SUBDIRS = tools \ | |
ad5bb451 WD |
245 | examples |
246 | ||
b028f715 | 247 | .PHONY : $(SUBDIRS) |
a8c7c708 | 248 | |
887e2ec9 SR |
249 | ifeq ($(CONFIG_NAND_U_BOOT),y) |
250 | NAND_SPL = nand_spl | |
251 | U_BOOT_NAND = $(obj)u-boot-nand.bin | |
252 | endif | |
253 | ||
f9328639 MB |
254 | __OBJS := $(subst $(obj),,$(OBJS)) |
255 | __LIBS := $(subst $(obj),,$(LIBS)) | |
256 | ||
bdccc4fe | 257 | ######################################################################### |
7ebf7443 WD |
258 | ######################################################################### |
259 | ||
566a494f | 260 | ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) |
7ebf7443 | 261 | |
bdccc4fe | 262 | all: $(ALL) |
7ebf7443 | 263 | |
f9328639 | 264 | $(obj)u-boot.hex: $(obj)u-boot |
6310eb9d WD |
265 | $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ |
266 | ||
f9328639 | 267 | $(obj)u-boot.srec: $(obj)u-boot |
7ebf7443 WD |
268 | $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ |
269 | ||
f9328639 | 270 | $(obj)u-boot.bin: $(obj)u-boot |
7ebf7443 WD |
271 | $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ |
272 | ||
f9328639 | 273 | $(obj)u-boot.img: $(obj)u-boot.bin |
bdccc4fe WD |
274 | ./tools/mkimage -A $(ARCH) -T firmware -C none \ |
275 | -a $(TEXT_BASE) -e 0 \ | |
881a87ec | 276 | -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ |
bdccc4fe WD |
277 | sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ |
278 | -d $< $@ | |
279 | ||
566a494f | 280 | $(obj)u-boot.sha1: $(obj)u-boot.bin |
01159530 | 281 | $(obj)tools/ubsha1 $(obj)u-boot.bin |
566a494f | 282 | |
f9328639 | 283 | $(obj)u-boot.dis: $(obj)u-boot |
7ebf7443 WD |
284 | $(OBJDUMP) -d $< > $@ |
285 | ||
f9328639 | 286 | $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) |
8bde7f77 | 287 | UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ |
f9328639 MB |
288 | cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ |
289 | --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ | |
b2184c31 | 290 | -Map u-boot.map -o u-boot |
7ebf7443 | 291 | |
f9328639 MB |
292 | $(OBJS): |
293 | $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) | |
294 | ||
a8c7c708 | 295 | $(LIBS): |
f9328639 | 296 | $(MAKE) -C $(dir $(subst $(obj),,$@)) |
a8c7c708 WD |
297 | |
298 | $(SUBDIRS): | |
b028f715 | 299 | $(MAKE) -C $@ all |
7ebf7443 | 300 | |
887e2ec9 | 301 | $(NAND_SPL): version |
8318fbf8 | 302 | $(MAKE) -C nand_spl/board/$(BOARDDIR) all |
887e2ec9 SR |
303 | |
304 | $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin | |
8318fbf8 | 305 | cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin |
887e2ec9 | 306 | |
881a87ec WD |
307 | version: |
308 | @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \ | |
309 | echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \ | |
310 | echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \ | |
311 | $(TOPDIR)) >> $(VERSION_FILE); \ | |
312 | echo "\"" >> $(VERSION_FILE) | |
313 | ||
8f713fdf | 314 | gdbtools: |
f9328639 MB |
315 | $(MAKE) -C tools/gdb all || exit 1 |
316 | ||
317 | updater: | |
318 | $(MAKE) -C tools/updater all || exit 1 | |
319 | ||
320 | env: | |
321 | $(MAKE) -C tools/env all || exit 1 | |
8f713fdf | 322 | |
f8d3ca7b | 323 | depend dep: version |
f9328639 | 324 | for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done |
7ebf7443 | 325 | |
f9328639 MB |
326 | tags ctags: |
327 | ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \ | |
bda6c8ae WD |
328 | lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \ |
329 | fs/cramfs fs/fat fs/fdos fs/jffs2 \ | |
330 | net disk rtc dtt drivers drivers/sk98lin common \ | |
7ebf7443 WD |
331 | \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` |
332 | ||
333 | etags: | |
f9328639 | 334 | etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \ |
eedcd078 WD |
335 | lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \ |
336 | fs/cramfs fs/fat fs/fdos fs/jffs2 \ | |
337 | net disk rtc dtt drivers drivers/sk98lin common \ | |
7ebf7443 WD |
338 | \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` |
339 | ||
f9328639 | 340 | $(obj)System.map: $(obj)u-boot |
7ebf7443 WD |
341 | @$(NM) $< | \ |
342 | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ | |
f9328639 | 343 | sort > $(obj)System.map |
7ebf7443 WD |
344 | |
345 | ######################################################################### | |
346 | else | |
f9328639 MB |
347 | all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ |
348 | $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ | |
349 | $(SUBDIRS) version gdbtools updater env depend \ | |
350 | dep tags ctags etags $(obj)System.map: | |
7ebf7443 WD |
351 | @echo "System not configured - see README" >&2 |
352 | @ exit 1 | |
353 | endif | |
354 | ||
4e53a258 WD |
355 | .PHONY : CHANGELOG |
356 | CHANGELOG: | |
b985b5d6 BW |
357 | git log --no-merges U-Boot-1_1_5.. | \ |
358 | unexpand -a | sed -e 's/\s\s*$$//' > $@ | |
4e53a258 | 359 | |
7ebf7443 WD |
360 | ######################################################################### |
361 | ||
362 | unconfig: | |
887e2ec9 SR |
363 | @rm -f $(obj)include/config.h $(obj)include/config.mk \ |
364 | $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp | |
7ebf7443 WD |
365 | |
366 | #======================================================================== | |
367 | # PowerPC | |
368 | #======================================================================== | |
0db5bca8 WD |
369 | |
370 | ######################################################################### | |
371 | ## MPC5xx Systems | |
372 | ######################################################################### | |
373 | ||
5e5f9ed2 | 374 | canmb_config: unconfig |
f9328639 | 375 | @$(MKCONFIG) -a canmb ppc mpc5xxx canmb |
5e5f9ed2 | 376 | |
0db5bca8 | 377 | cmi_mpc5xx_config: unconfig |
f9328639 | 378 | @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi |
0db5bca8 | 379 | |
db01a2ea | 380 | PATI_config: unconfig |
f9328639 | 381 | @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl |
b6e4c403 | 382 | |
945af8d7 WD |
383 | ######################################################################### |
384 | ## MPC5xxx Systems | |
385 | ######################################################################### | |
a87589da | 386 | |
dafba16e | 387 | aev_config: unconfig |
f9328639 | 388 | @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 |
dafba16e | 389 | |
6ca24c64 | 390 | BC3450_config: unconfig |
f9328639 | 391 | @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 |
6ca24c64 | 392 | |
5e4b3361 | 393 | cpci5200_config: unconfig |
f9328639 | 394 | @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd |
5e4b3361 | 395 | |
05bf4919 | 396 | hmi1001_config: unconfig |
f9328639 | 397 | @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 |
a87589da | 398 | |
e35745bb WD |
399 | Lite5200_config \ |
400 | Lite5200_LOWBOOT_config \ | |
401 | Lite5200_LOWBOOT08_config \ | |
402 | icecube_5200_config \ | |
403 | icecube_5200_LOWBOOT_config \ | |
404 | icecube_5200_LOWBOOT08_config \ | |
dd520bf3 WD |
405 | icecube_5200_DDR_config \ |
406 | icecube_5200_DDR_LOWBOOT_config \ | |
e35745bb WD |
407 | icecube_5200_DDR_LOWBOOT08_config \ |
408 | icecube_5100_config: unconfig | |
f9328639 MB |
409 | @mkdir -p $(obj)include |
410 | @mkdir -p $(obj)board/icecube | |
411 | @ >$(obj)include/config.h | |
17d704eb WD |
412 | @[ -z "$(findstring LOWBOOT_,$@)" ] || \ |
413 | { if [ "$(findstring DDR,$@)" ] ; \ | |
f9328639 MB |
414 | then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ |
415 | else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ | |
17d704eb | 416 | fi ; \ |
5cf9da48 WD |
417 | echo "... with LOWBOOT configuration" ; \ |
418 | } | |
419 | @[ -z "$(findstring LOWBOOT08,$@)" ] || \ | |
f9328639 | 420 | { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ |
5cf9da48 | 421 | echo "... with 8 MB flash only" ; \ |
17d704eb | 422 | echo "... with LOWBOOT configuration" ; \ |
5cf9da48 | 423 | } |
b2001f27 | 424 | @[ -z "$(findstring DDR,$@)" ] || \ |
f9328639 | 425 | { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ |
b2001f27 WD |
426 | echo "... DDR memory revision" ; \ |
427 | } | |
d4ca31c4 | 428 | @[ -z "$(findstring 5200,$@)" ] || \ |
f9328639 | 429 | { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ |
d4ca31c4 WD |
430 | echo "... with MPC5200 processor" ; \ |
431 | } | |
a0f2fe52 | 432 | @[ -z "$(findstring 5100,$@)" ] || \ |
f9328639 | 433 | { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ |
945af8d7 WD |
434 | echo "... with MGT5100 processor" ; \ |
435 | } | |
f9328639 | 436 | @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube |
945af8d7 | 437 | |
05bf4919 | 438 | jupiter_config: unconfig |
2605e90b HS |
439 | @$(MKCONFIG) jupiter ppc mpc5xxx jupiter |
440 | ||
4707fb50 | 441 | v38b_config: unconfig |
90b1b2d6 | 442 | @$(MKCONFIG) -a v38b ppc mpc5xxx v38b |
4707fb50 | 443 | |
86ea5f93 | 444 | inka4x0_config: unconfig |
f9328639 | 445 | @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 |
138ff60c | 446 | |
09e4b0c5 | 447 | lite5200b_config \ |
d3832e8f | 448 | lite5200b_PM_config \ |
09e4b0c5 | 449 | lite5200b_LOWBOOT_config: unconfig |
f9328639 MB |
450 | @mkdir -p $(obj)include |
451 | @mkdir -p $(obj)board/icecube | |
452 | @ >$(obj)include/config.h | |
453 | @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h | |
09e4b0c5 | 454 | @ echo "... DDR memory revision" |
f9328639 MB |
455 | @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h |
456 | @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h | |
d3832e8f DP |
457 | @[ -z "$(findstring _PM_,$@)" ] || \ |
458 | { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ | |
459 | echo "... with power management (low-power mode) support" ; \ | |
460 | } | |
09e4b0c5 | 461 | @[ -z "$(findstring LOWBOOT_,$@)" ] || \ |
f9328639 | 462 | { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ |
09e4b0c5 WD |
463 | echo "... with LOWBOOT configuration" ; \ |
464 | } | |
465 | @ echo "... with MPC5200B processor" | |
f9328639 | 466 | @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube |
09e4b0c5 | 467 | |
f1ee9825 | 468 | mcc200_config \ |
ed1cf845 WD |
469 | mcc200_SDRAM_config \ |
470 | mcc200_highboot_config \ | |
471 | mcc200_COM12_config \ | |
472 | mcc200_COM12_SDRAM_config \ | |
113f64e0 WD |
473 | mcc200_COM12_highboot_config \ |
474 | mcc200_COM12_highboot_SDRAM_config \ | |
ed1cf845 WD |
475 | mcc200_highboot_SDRAM_config \ |
476 | prs200_config \ | |
477 | prs200_DDR_config \ | |
478 | prs200_highboot_config \ | |
479 | prs200_highboot_DDR_config: unconfig | |
f9328639 MB |
480 | @mkdir -p $(obj)include |
481 | @mkdir -p $(obj)board/mcc200 | |
482 | @ >$(obj)include/config.h | |
4819fad9 WD |
483 | @[ -n "$(findstring highboot,$@)" ] || \ |
484 | { echo "... with lowboot configuration" ; \ | |
f1ee9825 | 485 | } |
4819fad9 | 486 | @[ -z "$(findstring highboot,$@)" ] || \ |
f9328639 | 487 | { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ |
4819fad9 WD |
488 | echo "... with highboot configuration" ; \ |
489 | } | |
490 | @[ -n "$(findstring _SDRAM,$@)" ] || \ | |
ed1cf845 WD |
491 | { if [ -n "$(findstring mcc200,$@)" ]; \ |
492 | then \ | |
dd520bf3 | 493 | echo "... with DDR" ; \ |
ed1cf845 WD |
494 | else \ |
495 | if [ -n "$(findstring _DDR,$@)" ];\ | |
496 | then \ | |
497 | echo "... with DDR" ; \ | |
498 | else \ | |
f9328639 | 499 | echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ |
ed1cf845 WD |
500 | echo "... with SDRAM" ; \ |
501 | fi; \ | |
502 | fi; \ | |
4819fad9 WD |
503 | } |
504 | @[ -z "$(findstring _SDRAM,$@)" ] || \ | |
f9328639 | 505 | { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ |
4819fad9 WD |
506 | echo "... with SDRAM" ; \ |
507 | } | |
463764c8 | 508 | @[ -z "$(findstring COM12,$@)" ] || \ |
f9328639 | 509 | { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ |
463764c8 WD |
510 | echo "... with console on COM12" ; \ |
511 | } | |
ed1cf845 | 512 | @[ -z "$(findstring prs200,$@)" ] || \ |
f9328639 | 513 | { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ |
ed1cf845 | 514 | } |
f9328639 | 515 | @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 |
86ea5f93 | 516 | |
8b7d1f0a SR |
517 | mecp5200_config: unconfig |
518 | @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd | |
519 | ||
df04a3df | 520 | o2dnt_config: |
f9328639 | 521 | @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt |
df04a3df | 522 | |
5e4b3361 | 523 | pf5200_config: unconfig |
f9328639 | 524 | @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd |
5e4b3361 | 525 | |
89394047 WD |
526 | PM520_config \ |
527 | PM520_DDR_config \ | |
528 | PM520_ROMBOOT_config \ | |
529 | PM520_ROMBOOT_DDR_config: unconfig | |
f9328639 MB |
530 | @mkdir -p $(obj)include |
531 | @ >$(obj)include/config.h | |
89394047 | 532 | @[ -z "$(findstring DDR,$@)" ] || \ |
f9328639 | 533 | { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ |
89394047 WD |
534 | echo "... DDR memory revision" ; \ |
535 | } | |
536 | @[ -z "$(findstring ROMBOOT,$@)" ] || \ | |
f9328639 | 537 | { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ |
89394047 WD |
538 | echo "... booting from 8-bit flash" ; \ |
539 | } | |
f9328639 | 540 | @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 |
89394047 | 541 | |
6624b687 | 542 | smmaco4_config: unconfig |
f9328639 | 543 | @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 |
9cdc8386 | 544 | |
86b116b1 BS |
545 | cm5200_config: unconfig |
546 | @./mkconfig -a cm5200 ppc mpc5xxx cm5200 | |
fa1df308 | 547 | |
9cdc8386 | 548 | spieval_config: unconfig |
f9328639 | 549 | @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 |
9cdc8386 | 550 | |
45a212c4 | 551 | TB5200_B_config \ |
b87dfd28 | 552 | TB5200_config: unconfig |
f9328639 | 553 | @mkdir -p $(obj)include |
45a212c4 | 554 | @[ -z "$(findstring _B,$@)" ] || \ |
f9328639 | 555 | { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ |
45a212c4 WD |
556 | echo "... with MPC5200B processor" ; \ |
557 | } | |
f9328639 | 558 | @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 |
b87dfd28 | 559 | |
d4ca31c4 WD |
560 | MINI5200_config \ |
561 | EVAL5200_config \ | |
562 | TOP5200_config: unconfig | |
f9328639 MB |
563 | @mkdir -p $(obj)include |
564 | @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h | |
565 | @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk | |
d4ca31c4 | 566 | |
6c7a1408 WD |
567 | Total5100_config \ |
568 | Total5200_config \ | |
569 | Total5200_lowboot_config \ | |
570 | Total5200_Rev2_config \ | |
571 | Total5200_Rev2_lowboot_config: unconfig | |
f9328639 MB |
572 | @mkdir -p $(obj)include |
573 | @mkdir -p $(obj)board/total5200 | |
574 | @ >$(obj)include/config.h | |
6c7a1408 | 575 | @[ -z "$(findstring 5100,$@)" ] || \ |
f9328639 | 576 | { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ |
6c7a1408 WD |
577 | echo "... with MGT5100 processor" ; \ |
578 | } | |
579 | @[ -z "$(findstring 5200,$@)" ] || \ | |
f9328639 | 580 | { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ |
6c7a1408 WD |
581 | echo "... with MPC5200 processor" ; \ |
582 | } | |
583 | @[ -n "$(findstring Rev,$@)" ] || \ | |
f9328639 | 584 | { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ |
6c7a1408 WD |
585 | echo "... revision 1 board" ; \ |
586 | } | |
587 | @[ -z "$(findstring Rev2_,$@)" ] || \ | |
f9328639 | 588 | { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ |
6c7a1408 WD |
589 | echo "... revision 2 board" ; \ |
590 | } | |
591 | @[ -z "$(findstring lowboot_,$@)" ] || \ | |
f9328639 | 592 | { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ |
6c7a1408 WD |
593 | echo "... with lowboot configuration" ; \ |
594 | } | |
f9328639 | 595 | @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 |
6c7a1408 | 596 | |
135ae006 | 597 | cam5200_config \ |
d9384de2 | 598 | cam5200_niosflash_config \ |
5196a7a0 | 599 | fo300_config \ |
6d3bc9b8 | 600 | MiniFAP_config \ |
5078cce8 WD |
601 | TQM5200S_config \ |
602 | TQM5200S_HIGHBOOT_config \ | |
5196a7a0 WD |
603 | TQM5200_B_config \ |
604 | TQM5200_B_HIGHBOOT_config \ | |
605 | TQM5200_config \ | |
606 | TQM5200_STK100_config: unconfig | |
f9328639 MB |
607 | @mkdir -p $(obj)include |
608 | @mkdir -p $(obj)board/tqm5200 | |
609 | @ >$(obj)include/config.h | |
135ae006 | 610 | @[ -z "$(findstring cam5200,$@)" ] || \ |
f9328639 MB |
611 | { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ |
612 | echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ | |
613 | echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ | |
135ae006 | 614 | echo "... TQM5200S on Cam5200" ; \ |
5078cce8 | 615 | } |
d9384de2 MB |
616 | @[ -z "$(findstring niosflash,$@)" ] || \ |
617 | { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ | |
618 | echo "... with NIOS flash driver" ; \ | |
619 | } | |
6d3bc9b8 | 620 | @[ -z "$(findstring fo300,$@)" ] || \ |
f9328639 | 621 | { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ |
6d3bc9b8 MB |
622 | echo "... TQM5200 on FO300" ; \ |
623 | } | |
89394047 | 624 | @[ -z "$(findstring MiniFAP,$@)" ] || \ |
f9328639 | 625 | { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ |
89394047 | 626 | echo "... TQM5200_AC on MiniFAP" ; \ |
56523f12 | 627 | } |
cd65a3dc | 628 | @[ -z "$(findstring STK100,$@)" ] || \ |
f9328639 | 629 | { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ |
cd65a3dc | 630 | echo "... on a STK52XX.100 base board" ; \ |
7e6bf358 | 631 | } |
5078cce8 | 632 | @[ -z "$(findstring TQM5200_B,$@)" ] || \ |
f9328639 | 633 | { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ |
5078cce8 WD |
634 | } |
635 | @[ -z "$(findstring TQM5200S,$@)" ] || \ | |
f9328639 MB |
636 | { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ |
637 | echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ | |
45a212c4 | 638 | } |
978b1096 | 639 | @[ -z "$(findstring HIGHBOOT,$@)" ] || \ |
f9328639 | 640 | { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ |
978b1096 | 641 | } |
f9328639 | 642 | @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 |
05bf4919 | 643 | uc101_config: unconfig |
6dedf3d4 | 644 | @$(MKCONFIG) uc101 ppc mpc5xxx uc101 |
05bf4919 | 645 | motionpro_config: unconfig |
53d4a498 BS |
646 | @$(MKCONFIG) motionpro ppc mpc5xxx motionpro |
647 | ||
56523f12 | 648 | |
8993e54b RJ |
649 | ######################################################################### |
650 | ## MPC512x Systems | |
651 | ######################################################################### | |
652 | ads5121_config: unconfig | |
653 | @$(MKCONFIG) ads5121 ppc mpc512x ads5121 | |
654 | ||
655 | ||
7ebf7443 WD |
656 | ######################################################################### |
657 | ## MPC8xx Systems | |
658 | ######################################################################### | |
659 | ||
2d24a3a7 WD |
660 | Adder_config \ |
661 | Adder87x_config \ | |
26238132 | 662 | AdderII_config \ |
2d24a3a7 | 663 | : unconfig |
f9328639 | 664 | @mkdir -p $(obj)include |
26238132 | 665 | $(if $(findstring AdderII,$@), \ |
f9328639 MB |
666 | @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) |
667 | @$(MKCONFIG) -a Adder ppc mpc8xx adder | |
2d24a3a7 | 668 | |
16c8d5e7 WD |
669 | AdderUSB_config: unconfig |
670 | @./mkconfig -a AdderUSB ppc mpc8xx adder | |
671 | ||
180d3f74 | 672 | ADS860_config \ |
180d3f74 WD |
673 | FADS823_config \ |
674 | FADS850SAR_config \ | |
675 | MPC86xADS_config \ | |
1114257c | 676 | MPC885ADS_config \ |
180d3f74 | 677 | FADS860T_config: unconfig |
f9328639 | 678 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads |
7ebf7443 WD |
679 | |
680 | AMX860_config : unconfig | |
f9328639 | 681 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel |
7ebf7443 WD |
682 | |
683 | c2mon_config: unconfig | |
f9328639 | 684 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon |
7ebf7443 WD |
685 | |
686 | CCM_config: unconfig | |
f9328639 | 687 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens |
7ebf7443 WD |
688 | |
689 | cogent_mpc8xx_config: unconfig | |
f9328639 | 690 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent |
7ebf7443 | 691 | |
3bac3513 | 692 | ELPT860_config: unconfig |
f9328639 | 693 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX |
3bac3513 | 694 | |
84c960ce | 695 | EP88x_config: unconfig |
f9328639 | 696 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x |
84c960ce | 697 | |
7ebf7443 | 698 | ESTEEM192E_config: unconfig |
f9328639 | 699 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e |
7ebf7443 WD |
700 | |
701 | ETX094_config : unconfig | |
f9328639 | 702 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 |
7ebf7443 | 703 | |
7ebf7443 | 704 | FLAGADM_config: unconfig |
f9328639 | 705 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm |
7ebf7443 | 706 | |
7aa78614 WD |
707 | xtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) |
708 | ||
709 | GEN860T_SC_config \ | |
7ebf7443 | 710 | GEN860T_config: unconfig |
f9328639 MB |
711 | @mkdir -p $(obj)include |
712 | @ >$(obj)include/config.h | |
7aa78614 | 713 | @[ -z "$(findstring _SC,$@)" ] || \ |
f9328639 | 714 | { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ |
7aa78614 WD |
715 | echo "With reduced H/W feature set (SC)..." ; \ |
716 | } | |
f9328639 | 717 | @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t |
7ebf7443 WD |
718 | |
719 | GENIETV_config: unconfig | |
f9328639 | 720 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv |
7ebf7443 WD |
721 | |
722 | GTH_config: unconfig | |
f9328639 | 723 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth |
7ebf7443 WD |
724 | |
725 | hermes_config : unconfig | |
f9328639 | 726 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes |
7ebf7443 | 727 | |
c40b2956 | 728 | HMI10_config : unconfig |
f9328639 | 729 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx |
c40b2956 | 730 | |
7ebf7443 | 731 | IAD210_config: unconfig |
f9328639 | 732 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens |
7ebf7443 WD |
733 | |
734 | xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) | |
735 | ||
736 | ICU862_100MHz_config \ | |
737 | ICU862_config: unconfig | |
f9328639 MB |
738 | @mkdir -p $(obj)include |
739 | @ >$(obj)include/config.h | |
7ebf7443 | 740 | @[ -z "$(findstring _100MHz,$@)" ] || \ |
f9328639 | 741 | { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ |
7ebf7443 WD |
742 | echo "... with 100MHz system clock" ; \ |
743 | } | |
f9328639 | 744 | @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 |
7ebf7443 WD |
745 | |
746 | IP860_config : unconfig | |
f9328639 | 747 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 |
7ebf7443 WD |
748 | |
749 | IVML24_256_config \ | |
750 | IVML24_128_config \ | |
751 | IVML24_config: unconfig | |
f9328639 MB |
752 | @mkdir -p $(obj)include |
753 | @ >$(obj)include/config.h | |
7ebf7443 | 754 | @[ -z "$(findstring IVML24_config,$@)" ] || \ |
f9328639 | 755 | { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ |
7ebf7443 WD |
756 | } |
757 | @[ -z "$(findstring IVML24_128_config,$@)" ] || \ | |
f9328639 | 758 | { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ |
7ebf7443 WD |
759 | } |
760 | @[ -z "$(findstring IVML24_256_config,$@)" ] || \ | |
f9328639 | 761 | { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ |
7ebf7443 | 762 | } |
f9328639 | 763 | @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm |
7ebf7443 WD |
764 | |
765 | IVMS8_256_config \ | |
766 | IVMS8_128_config \ | |
767 | IVMS8_config: unconfig | |
f9328639 MB |
768 | @mkdir -p $(obj)include |
769 | @ >$(obj)include/config.h | |
7ebf7443 | 770 | @[ -z "$(findstring IVMS8_config,$@)" ] || \ |
f9328639 | 771 | { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ |
7ebf7443 WD |
772 | } |
773 | @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ | |
f9328639 | 774 | { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ |
7ebf7443 WD |
775 | } |
776 | @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ | |
f9328639 | 777 | { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ |
7ebf7443 | 778 | } |
f9328639 | 779 | @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm |
7ebf7443 | 780 | |
56f94be3 | 781 | KUP4K_config : unconfig |
f9328639 | 782 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup |
0608e04d WD |
783 | |
784 | KUP4X_config : unconfig | |
f9328639 | 785 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup |
56f94be3 | 786 | |
7ebf7443 | 787 | LANTEC_config : unconfig |
f9328639 | 788 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec |
7ebf7443 WD |
789 | |
790 | lwmon_config: unconfig | |
f9328639 | 791 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon |
7ebf7443 WD |
792 | |
793 | MBX_config \ | |
794 | MBX860T_config: unconfig | |
f9328639 | 795 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx |
7ebf7443 WD |
796 | |
797 | MHPC_config: unconfig | |
f9328639 | 798 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec |
7ebf7443 WD |
799 | |
800 | MVS1_config : unconfig | |
f9328639 | 801 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1 |
7ebf7443 | 802 | |
993cad93 WD |
803 | xtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) |
804 | ||
805 | NETVIA_V2_config \ | |
7ebf7443 | 806 | NETVIA_config: unconfig |
f9328639 MB |
807 | @mkdir -p $(obj)include |
808 | @ >$(obj)include/config.h | |
993cad93 | 809 | @[ -z "$(findstring NETVIA_config,$@)" ] || \ |
f9328639 | 810 | { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ |
993cad93 WD |
811 | echo "... Version 1" ; \ |
812 | } | |
813 | @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ | |
f9328639 | 814 | { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ |
993cad93 WD |
815 | echo "... Version 2" ; \ |
816 | } | |
f9328639 | 817 | @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia |
7ebf7443 | 818 | |
c26e454d WD |
819 | xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) |
820 | ||
821 | NETPHONE_V2_config \ | |
04a85b3b | 822 | NETPHONE_config: unconfig |
f9328639 MB |
823 | @mkdir -p $(obj)include |
824 | @ >$(obj)include/config.h | |
c26e454d | 825 | @[ -z "$(findstring NETPHONE_config,$@)" ] || \ |
f9328639 | 826 | { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ |
c26e454d WD |
827 | } |
828 | @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ | |
f9328639 | 829 | { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ |
c26e454d | 830 | } |
f9328639 | 831 | @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone |
04a85b3b | 832 | |
79fa88f3 | 833 | xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) |
04a85b3b | 834 | |
79fa88f3 WD |
835 | NETTA_ISDN_6412_SWAPHOOK_config \ |
836 | NETTA_ISDN_SWAPHOOK_config \ | |
837 | NETTA_6412_SWAPHOOK_config \ | |
838 | NETTA_SWAPHOOK_config \ | |
839 | NETTA_ISDN_6412_config \ | |
04a85b3b | 840 | NETTA_ISDN_config \ |
79fa88f3 | 841 | NETTA_6412_config \ |
04a85b3b | 842 | NETTA_config: unconfig |
f9328639 MB |
843 | @mkdir -p $(obj)include |
844 | @ >$(obj)include/config.h | |
79fa88f3 | 845 | @[ -z "$(findstring ISDN_,$@)" ] || \ |
f9328639 | 846 | { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ |
79fa88f3 WD |
847 | } |
848 | @[ -n "$(findstring ISDN_,$@)" ] || \ | |
f9328639 | 849 | { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ |
04a85b3b | 850 | } |
79fa88f3 | 851 | @[ -z "$(findstring 6412_,$@)" ] || \ |
f9328639 | 852 | { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ |
79fa88f3 WD |
853 | } |
854 | @[ -n "$(findstring 6412_,$@)" ] || \ | |
f9328639 | 855 | { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ |
79fa88f3 WD |
856 | } |
857 | @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ | |
f9328639 | 858 | { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ |
79fa88f3 WD |
859 | } |
860 | @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ | |
f9328639 | 861 | { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ |
04a85b3b | 862 | } |
f9328639 | 863 | @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta |
04a85b3b | 864 | |
79fa88f3 WD |
865 | xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) |
866 | ||
867 | NETTA2_V2_config \ | |
868 | NETTA2_config: unconfig | |
f9328639 MB |
869 | @mkdir -p $(obj)include |
870 | @ >$(obj)include/config.h | |
79fa88f3 | 871 | @[ -z "$(findstring NETTA2_config,$@)" ] || \ |
f9328639 | 872 | { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ |
79fa88f3 WD |
873 | } |
874 | @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ | |
f9328639 | 875 | { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ |
79fa88f3 | 876 | } |
f9328639 | 877 | @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 |
79fa88f3 | 878 | |
a367d426 | 879 | NC650_Rev1_config \ |
880 | NC650_Rev2_config \ | |
881 | CP850_config: unconfig | |
f9328639 MB |
882 | @mkdir -p $(obj)include |
883 | @ >$(obj)include/config.h | |
a367d426 | 884 | @[ -z "$(findstring CP850,$@)" ] || \ |
f9328639 MB |
885 | { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ |
886 | echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ | |
a367d426 | 887 | } |
888 | @[ -z "$(findstring Rev1,$@)" ] || \ | |
f9328639 | 889 | { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ |
a367d426 | 890 | } |
891 | @[ -z "$(findstring Rev2,$@)" ] || \ | |
f9328639 | 892 | { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ |
a367d426 | 893 | } |
f9328639 | 894 | @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 |
7ca202f5 | 895 | |
7ebf7443 | 896 | NX823_config: unconfig |
f9328639 | 897 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 |
7ebf7443 WD |
898 | |
899 | pcu_e_config: unconfig | |
f9328639 | 900 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens |
7ebf7443 | 901 | |
3bbc899f | 902 | QS850_config: unconfig |
f9328639 | 903 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc |
3bbc899f WD |
904 | |
905 | QS823_config: unconfig | |
f9328639 | 906 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc |
3bbc899f WD |
907 | |
908 | QS860T_config: unconfig | |
f9328639 | 909 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc |
3bbc899f | 910 | |
da93ed81 | 911 | quantum_config: unconfig |
f9328639 | 912 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum |
da93ed81 | 913 | |
7ebf7443 | 914 | R360MPI_config: unconfig |
f9328639 | 915 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi |
7ebf7443 | 916 | |
682011ff | 917 | RBC823_config: unconfig |
f9328639 | 918 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 |
682011ff | 919 | |
7ebf7443 | 920 | RPXClassic_config: unconfig |
f9328639 | 921 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic |
7ebf7443 WD |
922 | |
923 | RPXlite_config: unconfig | |
f9328639 | 924 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite |
7ebf7443 | 925 | |
dd520bf3 WD |
926 | RPXlite_DW_64_config \ |
927 | RPXlite_DW_LCD_config \ | |
928 | RPXlite_DW_64_LCD_config \ | |
e63c8ee3 WD |
929 | RPXlite_DW_NVRAM_config \ |
930 | RPXlite_DW_NVRAM_64_config \ | |
931 | RPXlite_DW_NVRAM_LCD_config \ | |
932 | RPXlite_DW_NVRAM_64_LCD_config \ | |
05bf4919 | 933 | RPXlite_DW_config: unconfig |
f9328639 MB |
934 | @mkdir -p $(obj)include |
935 | @ >$(obj)include/config.h | |
e63c8ee3 | 936 | @[ -z "$(findstring _64,$@)" ] || \ |
f9328639 | 937 | { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ |
e63c8ee3 WD |
938 | echo "... with 64MHz system clock ..."; \ |
939 | } | |
940 | @[ -z "$(findstring _LCD,$@)" ] || \ | |
dd520bf3 | 941 | { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ |
f9328639 | 942 | echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ |
e63c8ee3 WD |
943 | echo "... with LCD display ..."; \ |
944 | } | |
945 | @[ -z "$(findstring _NVRAM,$@)" ] || \ | |
dd520bf3 | 946 | { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ |
e63c8ee3 WD |
947 | echo "... with ENV in NVRAM ..."; \ |
948 | } | |
f9328639 | 949 | @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw |
e63c8ee3 | 950 | |
73a8b27c | 951 | rmu_config: unconfig |
f9328639 | 952 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu |
73a8b27c | 953 | |
7ebf7443 | 954 | RRvision_config: unconfig |
f9328639 | 955 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision |
7ebf7443 WD |
956 | |
957 | RRvision_LCD_config: unconfig | |
f9328639 MB |
958 | @mkdir -p $(obj)include |
959 | @echo "#define CONFIG_LCD" >$(obj)include/config.h | |
960 | @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h | |
961 | @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision | |
7ebf7443 WD |
962 | |
963 | SM850_config : unconfig | |
f9328639 | 964 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx |
7ebf7443 | 965 | |
b02d0177 | 966 | spc1920_config: |
f9328639 | 967 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 |
b02d0177 | 968 | |
7ebf7443 | 969 | SPD823TS_config: unconfig |
f9328639 | 970 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx |
7ebf7443 | 971 | |
6bdf4306 | 972 | stxxtc_config: unconfig |
f9328639 | 973 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc |
6bdf4306 | 974 | |
dc7c9a1a | 975 | svm_sc8xx_config: unconfig |
f9328639 | 976 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx |
dc7c9a1a | 977 | |
7ebf7443 | 978 | SXNI855T_config: unconfig |
f9328639 | 979 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet |
7ebf7443 | 980 | |
db2f721f WD |
981 | # EMK MPC8xx based modules |
982 | TOP860_config: unconfig | |
f9328639 | 983 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk |
db2f721f | 984 | |
7ebf7443 | 985 | # Play some tricks for configuration selection |
e9132ea9 WD |
986 | # Only 855 and 860 boards may come with FEC |
987 | # and only 823 boards may have LCD support | |
988 | xtract_8xx = $(subst _LCD,,$(subst _config,,$1)) | |
7ebf7443 WD |
989 | |
990 | FPS850L_config \ | |
384ae025 | 991 | FPS860L_config \ |
f12e568c | 992 | NSCU_config \ |
7ebf7443 | 993 | TQM823L_config \ |
7ebf7443 | 994 | TQM823L_LCD_config \ |
7ebf7443 | 995 | TQM850L_config \ |
7ebf7443 | 996 | TQM855L_config \ |
7ebf7443 | 997 | TQM860L_config \ |
d126bfbd | 998 | TQM862L_config \ |
ae3af05e | 999 | TQM823M_config \ |
ae3af05e | 1000 | TQM850M_config \ |
f12e568c | 1001 | TQM855M_config \ |
f12e568c | 1002 | TQM860M_config \ |
f12e568c | 1003 | TQM862M_config \ |
8cba090c | 1004 | TQM866M_config \ |
090eb735 | 1005 | TQM885D_config \ |
8cba090c | 1006 | virtlab2_config: unconfig |
f9328639 MB |
1007 | @mkdir -p $(obj)include |
1008 | @ >$(obj)include/config.h | |
7ebf7443 | 1009 | @[ -z "$(findstring _LCD,$@)" ] || \ |
f9328639 MB |
1010 | { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ |
1011 | echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ | |
7ebf7443 WD |
1012 | echo "... with LCD display" ; \ |
1013 | } | |
f9328639 | 1014 | @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx |
7ebf7443 WD |
1015 | |
1016 | TTTech_config: unconfig | |
f9328639 MB |
1017 | @mkdir -p $(obj)include |
1018 | @echo "#define CONFIG_LCD" >$(obj)include/config.h | |
1019 | @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h | |
1020 | @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx | |
7ebf7443 | 1021 | |
ec0aee7b | 1022 | uc100_config : unconfig |
f9328639 | 1023 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 |
f7d1572b | 1024 | |
608c9146 | 1025 | v37_config: unconfig |
f9328639 MB |
1026 | @mkdir -p $(obj)include |
1027 | @echo "#define CONFIG_LCD" >$(obj)include/config.h | |
1028 | @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h | |
1029 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 | |
608c9146 | 1030 | |
91e940d9 | 1031 | wtk_config: unconfig |
f9328639 MB |
1032 | @mkdir -p $(obj)include |
1033 | @echo "#define CONFIG_LCD" >$(obj)include/config.h | |
1034 | @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h | |
1035 | @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx | |
91e940d9 | 1036 | |
7ebf7443 WD |
1037 | ######################################################################### |
1038 | ## PPC4xx Systems | |
1039 | ######################################################################### | |
e55ca7e2 | 1040 | xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) |
7ebf7443 | 1041 | |
16c0cc1c SR |
1042 | acadia_config: unconfig |
1043 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc | |
1044 | ||
c440bfe6 | 1045 | acadia_nand_config: unconfig |
63e22764 WD |
1046 | @mkdir -p $(obj)include $(obj)board/amcc/acadia |
1047 | @mkdir -p $(obj)nand_spl/board/amcc/acadia | |
c440bfe6 SR |
1048 | @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h |
1049 | @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc | |
1050 | @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp | |
1051 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk | |
1052 | ||
7ebf7443 | 1053 | ADCIOP_config: unconfig |
f9328639 | 1054 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd |
7ebf7443 | 1055 | |
899620c2 | 1056 | alpr_config: unconfig |
35d22f95 | 1057 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive |
899620c2 | 1058 | |
7521af1c | 1059 | AP1000_config:unconfig |
f9328639 | 1060 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix |
7521af1c | 1061 | |
c419d1d6 | 1062 | APC405_config: unconfig |
f9328639 | 1063 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd |
c419d1d6 | 1064 | |
7ebf7443 | 1065 | AR405_config: unconfig |
f9328639 | 1066 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd |
7ebf7443 | 1067 | |
549826ea | 1068 | ASH405_config: unconfig |
f9328639 | 1069 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd |
549826ea | 1070 | |
8a316c9b | 1071 | bamboo_config: unconfig |
f9328639 | 1072 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc |
8a316c9b | 1073 | |
cf959c7d | 1074 | bamboo_nand_config: unconfig |
63e22764 WD |
1075 | @mkdir -p $(obj)include $(obj)board/amcc/bamboo |
1076 | @mkdir -p $(obj)nand_spl/board/amcc/bamboo | |
cf959c7d | 1077 | @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h |
f3679aa1 | 1078 | @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc |
cf959c7d SR |
1079 | @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp |
1080 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk | |
1081 | ||
8a316c9b | 1082 | bubinga_config: unconfig |
f9328639 | 1083 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc |
549826ea | 1084 | |
7ebf7443 | 1085 | CANBT_config: unconfig |
f9328639 | 1086 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd |
7ebf7443 | 1087 | |
1d6f9720 WD |
1088 | CATcenter_config \ |
1089 | CATcenter_25_config \ | |
1090 | CATcenter_33_config: unconfig | |
f9328639 MB |
1091 | @mkdir -p $(obj)include |
1092 | @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h | |
1093 | @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h | |
1d6f9720 | 1094 | @[ -z "$(findstring _25,$@)" ] || \ |
f9328639 | 1095 | { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ |
1d6f9720 WD |
1096 | echo "SysClk = 25MHz" ; \ |
1097 | } | |
1098 | @[ -z "$(findstring _33,$@)" ] || \ | |
f9328639 | 1099 | { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ |
1d6f9720 WD |
1100 | echo "SysClk = 33MHz" ; \ |
1101 | } | |
f9328639 | 1102 | @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave |
10767ccb | 1103 | |
7644f16f | 1104 | CPCI2DP_config: unconfig |
f9328639 | 1105 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd |
7644f16f | 1106 | |
549826ea SR |
1107 | CPCI405_config \ |
1108 | CPCI4052_config \ | |
c419d1d6 | 1109 | CPCI405DT_config \ |
549826ea | 1110 | CPCI405AB_config: unconfig |
f9328639 MB |
1111 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd |
1112 | @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk | |
7ebf7443 WD |
1113 | |
1114 | CPCI440_config: unconfig | |
f9328639 | 1115 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd |
7ebf7443 WD |
1116 | |
1117 | CPCIISER4_config: unconfig | |
f9328639 | 1118 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd |
7ebf7443 | 1119 | |
db01a2ea | 1120 | CRAYL1_config: unconfig |
f9328639 | 1121 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray |
7ebf7443 | 1122 | |
cd0a9de6 | 1123 | csb272_config: unconfig |
f9328639 | 1124 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 |
cd0a9de6 | 1125 | |
aa245090 | 1126 | csb472_config: unconfig |
f9328639 | 1127 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 |
aa245090 | 1128 | |
7ebf7443 | 1129 | DASA_SIM_config: unconfig |
f9328639 | 1130 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd |
7ebf7443 | 1131 | |
72cd5aa7 | 1132 | DP405_config: unconfig |
f9328639 | 1133 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd |
72cd5aa7 | 1134 | |
7ebf7443 | 1135 | DU405_config: unconfig |
f9328639 | 1136 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd |
7ebf7443 | 1137 | |
8a316c9b | 1138 | ebony_config: unconfig |
f9328639 | 1139 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc |
7ebf7443 | 1140 | |
db01a2ea | 1141 | ERIC_config: unconfig |
f9328639 | 1142 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric |
7ebf7443 | 1143 | |
db01a2ea | 1144 | EXBITGEN_config: unconfig |
f9328639 | 1145 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen |
d1cbe85b | 1146 | |
c419d1d6 | 1147 | G2000_config: unconfig |
f9328639 | 1148 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 |
c419d1d6 | 1149 | |
ac982ea5 | 1150 | hcu4_config: unconfig |
35d22f95 | 1151 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal |
ac982ea5 NG |
1152 | |
1153 | hcu5_config: unconfig | |
35d22f95 | 1154 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal |
ac982ea5 | 1155 | |
c419d1d6 | 1156 | HH405_config: unconfig |
f9328639 | 1157 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd |
c419d1d6 | 1158 | |
72cd5aa7 | 1159 | HUB405_config: unconfig |
f9328639 | 1160 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd |
72cd5aa7 | 1161 | |
db01a2ea | 1162 | JSE_config: unconfig |
f9328639 | 1163 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse |
db01a2ea | 1164 | |
b79316f2 | 1165 | KAREF_config: unconfig |
f9328639 | 1166 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst |
b79316f2 | 1167 | |
4745acaa SR |
1168 | katmai_config: unconfig |
1169 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc | |
1170 | ||
566806ca SR |
1171 | kilauea_config: unconfig |
1172 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx kilauea amcc | |
1173 | ||
6e7fb6ea | 1174 | luan_config: unconfig |
f9328639 | 1175 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc |
6e7fb6ea | 1176 | |
b765ffb7 SR |
1177 | lwmon5_config: unconfig |
1178 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 | |
1179 | ||
b79316f2 | 1180 | METROBOX_config: unconfig |
f9328639 | 1181 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst |
b79316f2 | 1182 | |
db01a2ea | 1183 | MIP405_config: unconfig |
f9328639 | 1184 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl |
7ebf7443 | 1185 | |
db01a2ea | 1186 | MIP405T_config: unconfig |
f9328639 MB |
1187 | @mkdir -p $(obj)include |
1188 | @echo "#define CONFIG_MIP405T" >$(obj)include/config.h | |
f3e0de60 | 1189 | @echo "Enable subset config for MIP405T" |
f9328639 | 1190 | @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl |
f3e0de60 | 1191 | |
db01a2ea | 1192 | ML2_config: unconfig |
f9328639 | 1193 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 |
7ebf7443 | 1194 | |
db01a2ea | 1195 | ml300_config: unconfig |
f9328639 | 1196 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx |
028ab6b5 | 1197 | |
8a316c9b | 1198 | ocotea_config: unconfig |
f9328639 | 1199 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc |
0e6d798c | 1200 | |
7ebf7443 WD |
1201 | OCRTC_config \ |
1202 | ORSG_config: unconfig | |
f9328639 | 1203 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd |
7ebf7443 | 1204 | |
5568e613 | 1205 | p3p440_config: unconfig |
f9328639 | 1206 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive |
5568e613 | 1207 | |
7ebf7443 | 1208 | PCI405_config: unconfig |
f9328639 | 1209 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd |
7ebf7443 | 1210 | |
a4c8d138 | 1211 | pcs440ep_config: unconfig |
f9328639 | 1212 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep |
a4c8d138 | 1213 | |
db01a2ea | 1214 | PIP405_config: unconfig |
f9328639 | 1215 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl |
7ebf7443 | 1216 | |
72cd5aa7 | 1217 | PLU405_config: unconfig |
f9328639 | 1218 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd |
72cd5aa7 | 1219 | |
549826ea | 1220 | PMC405_config: unconfig |
f9328639 | 1221 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd |
549826ea | 1222 | |
281e00a3 | 1223 | PPChameleonEVB_config \ |
e55ca7e2 WD |
1224 | PPChameleonEVB_BA_25_config \ |
1225 | PPChameleonEVB_ME_25_config \ | |
1226 | PPChameleonEVB_HI_25_config \ | |
1227 | PPChameleonEVB_BA_33_config \ | |
1228 | PPChameleonEVB_ME_33_config \ | |
1229 | PPChameleonEVB_HI_33_config: unconfig | |
f9328639 MB |
1230 | @mkdir -p $(obj)include |
1231 | @ >$(obj)include/config.h | |
1d6f9720 | 1232 | @[ -z "$(findstring EVB_BA,$@)" ] || \ |
f9328639 | 1233 | { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ |
fbe4b5cb WD |
1234 | echo "... BASIC model" ; \ |
1235 | } | |
1d6f9720 | 1236 | @[ -z "$(findstring EVB_ME,$@)" ] || \ |
f9328639 | 1237 | { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ |
fbe4b5cb WD |
1238 | echo "... MEDIUM model" ; \ |
1239 | } | |
1d6f9720 | 1240 | @[ -z "$(findstring EVB_HI,$@)" ] || \ |
f9328639 | 1241 | { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ |
fbe4b5cb WD |
1242 | echo "... HIGH-END model" ; \ |
1243 | } | |
e55ca7e2 | 1244 | @[ -z "$(findstring _25,$@)" ] || \ |
f9328639 | 1245 | { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ |
1d6f9720 | 1246 | echo "SysClk = 25MHz" ; \ |
e55ca7e2 WD |
1247 | } |
1248 | @[ -z "$(findstring _33,$@)" ] || \ | |
f9328639 | 1249 | { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ |
1d6f9720 | 1250 | echo "SysClk = 33MHz" ; \ |
e55ca7e2 | 1251 | } |
f9328639 | 1252 | @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave |
12f34241 | 1253 | |
652a10c0 | 1254 | sbc405_config: unconfig |
f9328639 | 1255 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 |
652a10c0 | 1256 | |
430f1b0f SR |
1257 | sequoia_config \ |
1258 | rainier_config: unconfig | |
1259 | @mkdir -p $(obj)include | |
1260 | @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ | |
1261 | tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h | |
1262 | @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc | |
887e2ec9 | 1263 | |
430f1b0f SR |
1264 | sequoia_nand_config \ |
1265 | rainier_nand_config: unconfig | |
63e22764 WD |
1266 | @mkdir -p $(obj)include $(obj)board/amcc/sequoia |
1267 | @mkdir -p $(obj)nand_spl/board/amcc/sequoia | |
8318fbf8 | 1268 | @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h |
430f1b0f SR |
1269 | @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ |
1270 | tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h | |
1271 | @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc | |
8318fbf8 MB |
1272 | @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp |
1273 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk | |
652a10c0 | 1274 | |
6d3e0107 | 1275 | sc3_config:unconfig |
35d22f95 | 1276 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 |
ca43ba18 | 1277 | |
d4024bb7 JO |
1278 | taihu_config: unconfig |
1279 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc | |
1280 | ||
5fb692ca SR |
1281 | taishan_config: unconfig |
1282 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc | |
1283 | ||
72cd5aa7 | 1284 | VOH405_config: unconfig |
f9328639 | 1285 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd |
72cd5aa7 | 1286 | |
c419d1d6 | 1287 | VOM405_config: unconfig |
f9328639 | 1288 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd |
c419d1d6 | 1289 | |
feaedfcf | 1290 | CMS700_config: unconfig |
f9328639 | 1291 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd |
feaedfcf | 1292 | |
7ebf7443 WD |
1293 | W7OLMC_config \ |
1294 | W7OLMG_config: unconfig | |
f9328639 | 1295 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o |
7ebf7443 | 1296 | |
430f1b0f SR |
1297 | # Walnut & Sycamore images are identical (recognized via PVR) |
1298 | walnut_config \ | |
1299 | sycamore_config: unconfig | |
1300 | @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc | |
7ebf7443 | 1301 | |
c419d1d6 | 1302 | WUH405_config: unconfig |
f9328639 | 1303 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd |
c419d1d6 | 1304 | |
db01a2ea | 1305 | XPEDITE1K_config: unconfig |
f9328639 | 1306 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k |
ba56f625 | 1307 | |
430f1b0f SR |
1308 | yosemite_config \ |
1309 | yellowstone_config: unconfig | |
700200c6 | 1310 | @mkdir -p $(obj)include |
430f1b0f SR |
1311 | @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ |
1312 | tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h | |
2aa54f65 | 1313 | @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc |
8a316c9b | 1314 | |
6c5879f3 | 1315 | yucca_config: unconfig |
f9328639 | 1316 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc |
6c5879f3 | 1317 | |
779e9751 SR |
1318 | zeus_config: unconfig |
1319 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus | |
1320 | ||
7ebf7443 | 1321 | ######################################################################### |
983fda83 WD |
1322 | ## MPC8220 Systems |
1323 | ######################################################################### | |
dc17fb6d WD |
1324 | |
1325 | Alaska8220_config \ | |
1326 | Yukon8220_config: unconfig | |
f9328639 | 1327 | @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska |
983fda83 | 1328 | |
12b43d51 | 1329 | sorcery_config: unconfig |
f9328639 | 1330 | @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery |
12b43d51 | 1331 | |
983fda83 | 1332 | ######################################################################### |
7ebf7443 WD |
1333 | ## MPC824x Systems |
1334 | ######################################################################### | |
efa329cb | 1335 | xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) |
3bac3513 | 1336 | |
0332990b | 1337 | A3000_config: unconfig |
f9328639 | 1338 | @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 |
0332990b | 1339 | |
8e6f1a8e | 1340 | barco_config: unconfig |
f9328639 | 1341 | @$(MKCONFIG) $(@:_config=) ppc mpc824x barco |
8e6f1a8e | 1342 | |
7ebf7443 | 1343 | BMW_config: unconfig |
f9328639 | 1344 | @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw |
7ebf7443 | 1345 | |
3bac3513 WD |
1346 | CPC45_config \ |
1347 | CPC45_ROMBOOT_config: unconfig | |
f9328639 MB |
1348 | @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 |
1349 | @cd $(obj)include ; \ | |
3bac3513 WD |
1350 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
1351 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ | |
1352 | echo "... booting from 8-bit flash" ; \ | |
1353 | else \ | |
1354 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ | |
1355 | echo "... booting from 64-bit flash" ; \ | |
1356 | fi; \ | |
1357 | echo "export CONFIG_BOOT_ROM" >> config.mk; | |
1358 | ||
7ebf7443 | 1359 | CU824_config: unconfig |
f9328639 | 1360 | @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 |
7ebf7443 | 1361 | |
7abf0c58 | 1362 | debris_config: unconfig |
f9328639 | 1363 | @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin |
7abf0c58 | 1364 | |
80885a9d | 1365 | eXalion_config: unconfig |
f9328639 | 1366 | @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion |
80885a9d | 1367 | |
756f586a | 1368 | HIDDEN_DRAGON_config: unconfig |
f9328639 | 1369 | @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon |
756f586a | 1370 | |
53dd6ce4 | 1371 | kvme080_config: unconfig |
f9328639 | 1372 | @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin |
53dd6ce4 | 1373 | |
7ebf7443 | 1374 | MOUSSE_config: unconfig |
f9328639 | 1375 | @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse |
7ebf7443 WD |
1376 | |
1377 | MUSENKI_config: unconfig | |
f9328639 | 1378 | @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki |
7ebf7443 | 1379 | |
b4676a25 | 1380 | MVBLUE_config: unconfig |
f9328639 | 1381 | @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue |
b4676a25 | 1382 | |
7ebf7443 | 1383 | OXC_config: unconfig |
f9328639 | 1384 | @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc |
7ebf7443 WD |
1385 | |
1386 | PN62_config: unconfig | |
f9328639 | 1387 | @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 |
7ebf7443 WD |
1388 | |
1389 | Sandpoint8240_config: unconfig | |
f9328639 | 1390 | @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint |
7ebf7443 WD |
1391 | |
1392 | Sandpoint8245_config: unconfig | |
f9328639 | 1393 | @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint |
7ebf7443 | 1394 | |
466b7410 | 1395 | sbc8240_config: unconfig |
f9328639 | 1396 | @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 |
466b7410 | 1397 | |
d1cbe85b | 1398 | SL8245_config: unconfig |
f9328639 | 1399 | @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 |
d1cbe85b | 1400 | |
7ebf7443 | 1401 | utx8245_config: unconfig |
f9328639 | 1402 | @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 |
7ebf7443 WD |
1403 | |
1404 | ######################################################################### | |
1405 | ## MPC8260 Systems | |
1406 | ######################################################################### | |
7ebf7443 | 1407 | |
54387ac9 | 1408 | atc_config: unconfig |
f9328639 | 1409 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc |
54387ac9 | 1410 | |
7ebf7443 | 1411 | cogent_mpc8260_config: unconfig |
f9328639 | 1412 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent |
7ebf7443 WD |
1413 | |
1414 | CPU86_config \ | |
1415 | CPU86_ROMBOOT_config: unconfig | |
f9328639 MB |
1416 | @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 |
1417 | @cd $(obj)include ; \ | |
7ebf7443 WD |
1418 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
1419 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ | |
1420 | echo "... booting from 8-bit flash" ; \ | |
1421 | else \ | |
1422 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ | |
1423 | echo "... booting from 64-bit flash" ; \ | |
1424 | fi; \ | |
1425 | echo "export CONFIG_BOOT_ROM" >> config.mk; | |
1426 | ||
384cc687 WD |
1427 | CPU87_config \ |
1428 | CPU87_ROMBOOT_config: unconfig | |
f9328639 MB |
1429 | @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 |
1430 | @cd $(obj)include ; \ | |
384cc687 WD |
1431 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
1432 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ | |
1433 | echo "... booting from 8-bit flash" ; \ | |
1434 | else \ | |
1435 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ | |
1436 | echo "... booting from 64-bit flash" ; \ | |
1437 | fi; \ | |
1438 | echo "export CONFIG_BOOT_ROM" >> config.mk; | |
1439 | ||
f901a83b WD |
1440 | ep8248_config \ |
1441 | ep8248E_config : unconfig | |
f9328639 | 1442 | @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 |
f901a83b | 1443 | |
7ebf7443 | 1444 | ep8260_config: unconfig |
f9328639 | 1445 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 |
7ebf7443 | 1446 | |
8d4ac794 | 1447 | ep82xxm_config: unconfig |
90b1b2d6 | 1448 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm |
8d4ac794 | 1449 | |
7ebf7443 | 1450 | gw8260_config: unconfig |
f9328639 | 1451 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 |
7ebf7443 WD |
1452 | |
1453 | hymod_config: unconfig | |
f9328639 | 1454 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod |
7ebf7443 | 1455 | |
9dd41a7b | 1456 | IDS8247_config: unconfig |
f9328639 | 1457 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 |
9dd41a7b | 1458 | |
7ebf7443 | 1459 | IPHASE4539_config: unconfig |
f9328639 | 1460 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 |
7ebf7443 | 1461 | |
c3c7f861 WD |
1462 | ISPAN_config \ |
1463 | ISPAN_REVB_config: unconfig | |
f9328639 | 1464 | @mkdir -p $(obj)include |
c3c7f861 | 1465 | @if [ "$(findstring _REVB_,$@)" ] ; then \ |
f9328639 | 1466 | echo "#define CFG_REV_B" > $(obj)include/config.h ; \ |
c3c7f861 | 1467 | fi |
f9328639 | 1468 | @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan |
c3c7f861 | 1469 | |
04a85b3b | 1470 | MPC8260ADS_config \ |
901787d6 | 1471 | MPC8260ADS_lowboot_config \ |
04a85b3b | 1472 | MPC8260ADS_33MHz_config \ |
901787d6 | 1473 | MPC8260ADS_33MHz_lowboot_config \ |
04a85b3b | 1474 | MPC8260ADS_40MHz_config \ |
901787d6 | 1475 | MPC8260ADS_40MHz_lowboot_config \ |
04a85b3b | 1476 | MPC8272ADS_config \ |
901787d6 | 1477 | MPC8272ADS_lowboot_config \ |
04a85b3b | 1478 | PQ2FADS_config \ |
901787d6 | 1479 | PQ2FADS_lowboot_config \ |
04a85b3b | 1480 | PQ2FADS-VR_config \ |
901787d6 | 1481 | PQ2FADS-VR_lowboot_config \ |
04a85b3b | 1482 | PQ2FADS-ZU_config \ |
901787d6 | 1483 | PQ2FADS-ZU_lowboot_config \ |
04a85b3b | 1484 | PQ2FADS-ZU_66MHz_config \ |
901787d6 | 1485 | PQ2FADS-ZU_66MHz_lowboot_config \ |
04a85b3b | 1486 | : unconfig |
f9328639 MB |
1487 | @mkdir -p $(obj)include |
1488 | @mkdir -p $(obj)board/mpc8260ads | |
04a85b3b | 1489 | $(if $(findstring PQ2FADS,$@), \ |
f9328639 MB |
1490 | @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \ |
1491 | @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) | |
04a85b3b | 1492 | $(if $(findstring MHz,$@), \ |
f9328639 | 1493 | @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ |
04a85b3b | 1494 | $(if $(findstring VR,$@), \ |
f9328639 | 1495 | @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) |
901787d6 | 1496 | @[ -z "$(findstring lowboot_,$@)" ] || \ |
f9328639 | 1497 | { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \ |
901787d6 WD |
1498 | echo "... with lowboot configuration" ; \ |
1499 | } | |
f9328639 | 1500 | @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads |
7ebf7443 | 1501 | |
db2f721f | 1502 | MPC8266ADS_config: unconfig |
f9328639 | 1503 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads |
db2f721f | 1504 | |
efa329cb | 1505 | # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash |
10f67017 | 1506 | PM825_config \ |
efa329cb WD |
1507 | PM825_ROMBOOT_config \ |
1508 | PM825_BIGFLASH_config \ | |
1509 | PM825_ROMBOOT_BIGFLASH_config \ | |
1510 | PM826_config \ | |
1511 | PM826_ROMBOOT_config \ | |
1512 | PM826_BIGFLASH_config \ | |
1513 | PM826_ROMBOOT_BIGFLASH_config: unconfig | |
f9328639 MB |
1514 | @mkdir -p $(obj)include |
1515 | @mkdir -p $(obj)board/pm826 | |
efa329cb | 1516 | @if [ "$(findstring PM825_,$@)" ] ; then \ |
f9328639 | 1517 | echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ |
efa329cb | 1518 | else \ |
f9328639 | 1519 | >$(obj)include/config.h ; \ |
efa329cb WD |
1520 | fi |
1521 | @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ | |
10f67017 | 1522 | echo "... booting from 8-bit flash" ; \ |
f9328639 MB |
1523 | echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ |
1524 | echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ | |
efa329cb WD |
1525 | if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ |
1526 | echo "... with 32 MB Flash" ; \ | |
f9328639 | 1527 | echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ |
efa329cb | 1528 | fi; \ |
10f67017 | 1529 | else \ |
10f67017 | 1530 | echo "... booting from 64-bit flash" ; \ |
efa329cb WD |
1531 | if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ |
1532 | echo "... with 32 MB Flash" ; \ | |
f9328639 MB |
1533 | echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ |
1534 | echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ | |
efa329cb | 1535 | else \ |
f9328639 | 1536 | echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ |
efa329cb WD |
1537 | fi; \ |
1538 | fi | |
f9328639 | 1539 | @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 |
10f67017 | 1540 | |
efa329cb WD |
1541 | PM828_config \ |
1542 | PM828_PCI_config \ | |
1543 | PM828_ROMBOOT_config \ | |
1544 | PM828_ROMBOOT_PCI_config: unconfig | |
f9328639 MB |
1545 | @mkdir -p $(obj)include |
1546 | @mkdir -p $(obj)board/pm826 | |
17076266 | 1547 | @if [ "$(findstring _PCI_,$@)" ] ; then \ |
f9328639 | 1548 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
efa329cb | 1549 | echo "... with PCI enabled" ; \ |
7ebf7443 | 1550 | else \ |
f9328639 | 1551 | >$(obj)include/config.h ; \ |
efa329cb WD |
1552 | fi |
1553 | @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ | |
1554 | echo "... booting from 8-bit flash" ; \ | |
f9328639 MB |
1555 | echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ |
1556 | echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ | |
efa329cb | 1557 | fi |
f9328639 | 1558 | @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 |
7ebf7443 WD |
1559 | |
1560 | ppmc8260_config: unconfig | |
f9328639 | 1561 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 |
7ebf7443 | 1562 | |
8b0bfc68 WD |
1563 | Rattler8248_config \ |
1564 | Rattler_config: unconfig | |
f9328639 | 1565 | @mkdir -p $(obj)include |
8b0bfc68 | 1566 | $(if $(findstring 8248,$@), \ |
f9328639 MB |
1567 | @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) |
1568 | @$(MKCONFIG) -a Rattler ppc mpc8260 rattler | |
8b0bfc68 | 1569 | |
7ebf7443 | 1570 | RPXsuper_config: unconfig |
f9328639 | 1571 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper |
7ebf7443 WD |
1572 | |
1573 | rsdproto_config: unconfig | |
f9328639 | 1574 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto |
7ebf7443 WD |
1575 | |
1576 | sacsng_config: unconfig | |
f9328639 | 1577 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng |
7ebf7443 WD |
1578 | |
1579 | sbc8260_config: unconfig | |
f9328639 | 1580 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 |
7ebf7443 WD |
1581 | |
1582 | SCM_config: unconfig | |
f9328639 | 1583 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens |
7ebf7443 | 1584 | |
27b207fd WD |
1585 | TQM8255_AA_config \ |
1586 | TQM8260_AA_config \ | |
1587 | TQM8260_AB_config \ | |
1588 | TQM8260_AC_config \ | |
1589 | TQM8260_AD_config \ | |
1590 | TQM8260_AE_config \ | |
1591 | TQM8260_AF_config \ | |
1592 | TQM8260_AG_config \ | |
1593 | TQM8260_AH_config \ | |
1f62bc2d | 1594 | TQM8260_AI_config \ |
27b207fd | 1595 | TQM8265_AA_config: unconfig |
f9328639 | 1596 | @mkdir -p $(obj)include |
27b207fd | 1597 | @case "$@" in \ |
1f62bc2d WD |
1598 | TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ |
1599 | TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ | |
1600 | TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ | |
1601 | TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ | |
1602 | TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ | |
1603 | TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ | |
1604 | TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ | |
1605 | TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ | |
1606 | TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ | |
1607 | TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ | |
1608 | TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ | |
27b207fd | 1609 | esac; \ |
f9328639 | 1610 | >$(obj)include/config.h ; \ |
27b207fd | 1611 | if [ "$${CTYPE}" != "MPC8260" ] ; then \ |
f9328639 | 1612 | echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ |
27b207fd | 1613 | fi; \ |
f9328639 | 1614 | echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ |
27b207fd WD |
1615 | echo "... with $${CFREQ}MHz system clock" ; \ |
1616 | if [ "$${CACHE}" == "yes" ] ; then \ | |
f9328639 | 1617 | echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ |
27b207fd | 1618 | echo "... with L2 Cache support" ; \ |
7ebf7443 | 1619 | else \ |
f9328639 | 1620 | echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ |
7ebf7443 | 1621 | echo "... without L2 Cache support" ; \ |
27b207fd WD |
1622 | fi; \ |
1623 | if [ "$${BMODE}" == "60x" ] ; then \ | |
f9328639 | 1624 | echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ |
27b207fd WD |
1625 | echo "... with 60x Bus Mode" ; \ |
1626 | else \ | |
f9328639 | 1627 | echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ |
27b207fd | 1628 | echo "... without 60x Bus Mode" ; \ |
7ebf7443 | 1629 | fi |
f9328639 | 1630 | @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 |
7ebf7443 | 1631 | |
fa230445 HS |
1632 | TQM8272_config: unconfig |
1633 | @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272 | |
1634 | ||
ba91e26a WD |
1635 | VoVPN-GW_66MHz_config \ |
1636 | VoVPN-GW_100MHz_config: unconfig | |
f9328639 MB |
1637 | @mkdir -p $(obj)include |
1638 | @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h | |
1639 | @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk | |
ba91e26a | 1640 | |
54387ac9 | 1641 | ZPC1900_config: unconfig |
f9328639 | 1642 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 |
7aa78614 | 1643 | |
4e5ca3eb WD |
1644 | ######################################################################### |
1645 | ## Coldfire | |
1646 | ######################################################################### | |
1647 | ||
4a442d31 TL |
1648 | M5235EVB_config \ |
1649 | M5235EVB_Flash16_config \ | |
1650 | M5235EVB_Flash32_config: unconfig | |
1651 | @case "$@" in \ | |
1652 | M5235EVB_config) FLASH=16;; \ | |
1653 | M5235EVB_Flash16_config) FLASH=16;; \ | |
1654 | M5235EVB_Flash32_config) FLASH=32;; \ | |
1655 | esac; \ | |
1656 | >include/config.h ; \ | |
1657 | if [ "$${FLASH}" != "16" ] ; then \ | |
1658 | echo "#define NORFLASH_PS32BIT 1" >> include/config.h ; \ | |
1659 | echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ | |
1660 | cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ | |
1661 | else \ | |
1662 | echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ | |
1663 | cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ | |
1664 | fi | |
1665 | @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale | |
1666 | ||
a605aacd TL |
1667 | M5249EVB_config : unconfig |
1668 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale | |
1669 | ||
a1436a84 TL |
1670 | M5253EVBE_config : unconfig |
1671 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale | |
1672 | ||
7481266e | 1673 | cobra5272_config : unconfig |
f9328639 | 1674 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 |
7481266e | 1675 | |
4176c799 | 1676 | EB+MCF-EV123_config : unconfig |
f9328639 MB |
1677 | @mkdir -p $(obj)include |
1678 | @mkdir -p $(obj)board/BuS/EB+MCF-EV123 | |
1679 | @ >$(obj)include/config.h | |
1680 | @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk | |
1681 | @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS | |
4176c799 WD |
1682 | |
1683 | EB+MCF-EV123_internal_config : unconfig | |
f9328639 MB |
1684 | @mkdir -p $(obj)include |
1685 | @mkdir -p $(obj)board/BuS/EB+MCF-EV123 | |
1686 | @ >$(obj)include/config.h | |
1687 | @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk | |
1688 | @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS | |
4176c799 | 1689 | |
daa6e418 BS |
1690 | idmr_config : unconfig |
1691 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr | |
1692 | ||
4176c799 | 1693 | M5271EVB_config : unconfig |
f9328639 | 1694 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb |
4176c799 | 1695 | |
4e5ca3eb | 1696 | M5272C3_config : unconfig |
f9328639 | 1697 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 |
4e5ca3eb WD |
1698 | |
1699 | M5282EVB_config : unconfig | |
f9328639 | 1700 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb |
4e5ca3eb | 1701 | |
c419d1d6 | 1702 | TASREG_config : unconfig |
f9328639 | 1703 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd |
c419d1d6 | 1704 | |
3a108ed8 | 1705 | r5200_config : unconfig |
f9328639 | 1706 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200 |
3a108ed8 | 1707 | |
8e585f02 TL |
1708 | M5329AFEE_config \ |
1709 | M5329BFEE_config : unconfig | |
1710 | @case "$@" in \ | |
1711 | M5329AFEE_config) NAND=0;; \ | |
1712 | M5329BFEE_config) NAND=16;; \ | |
1713 | esac; \ | |
1714 | >include/config.h ; \ | |
1715 | if [ "$${NAND}" != "0" ] ; then \ | |
ab77bc54 | 1716 | echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ |
8e585f02 TL |
1717 | fi |
1718 | @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale | |
1719 | ||
8ae158cd TL |
1720 | M54455EVB_config \ |
1721 | M54455EVB_atmel_config \ | |
1722 | M54455EVB_intel_config \ | |
1723 | M54455EVB_a33_config \ | |
1724 | M54455EVB_a66_config \ | |
1725 | M54455EVB_i33_config \ | |
1726 | M54455EVB_i66_config : unconfig | |
1727 | @case "$@" in \ | |
1728 | M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ | |
1729 | M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ | |
1730 | M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ | |
1731 | M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ | |
1732 | M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ | |
1733 | M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ | |
1734 | M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ | |
1735 | esac; \ | |
1736 | >include/config.h ; \ | |
1737 | if [ "$${FLASH}" == "INTEL" ] ; then \ | |
4a442d31 | 1738 | echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ |
8ae158cd TL |
1739 | echo "... with INTEL boot..." ; \ |
1740 | else \ | |
4a442d31 | 1741 | echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \ |
8ae158cd TL |
1742 | echo "... with ATMEL boot..." ; \ |
1743 | fi; \ | |
4a442d31 | 1744 | echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ |
8ae158cd TL |
1745 | echo "... with $${FREQ}Hz input clock" |
1746 | @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale | |
1747 | ||
f046ccd1 EL |
1748 | ######################################################################### |
1749 | ## MPC83xx Systems | |
1750 | ######################################################################### | |
1751 | ||
5c5d3242 KP |
1752 | MPC8313ERDB_33_config \ |
1753 | MPC8313ERDB_66_config: unconfig | |
cdd917a4 WD |
1754 | @mkdir -p $(obj)include |
1755 | @echo "" >$(obj)include/config.h ; \ | |
5c5d3242 KP |
1756 | if [ "$(findstring _33_,$@)" ] ; then \ |
1757 | echo -n "...33M ..." ; \ | |
cdd917a4 | 1758 | echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \ |
5c5d3242 KP |
1759 | fi ; \ |
1760 | if [ "$(findstring _66_,$@)" ] ; then \ | |
1761 | echo -n "...66M..." ; \ | |
cdd917a4 | 1762 | echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \ |
5c5d3242 | 1763 | fi ; |
e58fe957 | 1764 | @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale |
5c5d3242 | 1765 | |
1c274c4e KP |
1766 | MPC8323ERDB_config: unconfig |
1767 | @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale | |
1768 | ||
4decd84e KP |
1769 | MPC832XEMDS_config \ |
1770 | MPC832XEMDS_HOST_33_config \ | |
1771 | MPC832XEMDS_HOST_66_config \ | |
281df457 TL |
1772 | MPC832XEMDS_SLAVE_config \ |
1773 | MPC832XEMDS_ATM_config: unconfig | |
cdd917a4 WD |
1774 | @mkdir -p $(obj)include |
1775 | @echo "" >$(obj)include/config.h ; \ | |
5f820439 DL |
1776 | if [ "$(findstring _HOST_,$@)" ] ; then \ |
1777 | echo -n "... PCI HOST " ; \ | |
cdd917a4 | 1778 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
5f820439 DL |
1779 | fi ; \ |
1780 | if [ "$(findstring _SLAVE_,$@)" ] ; then \ | |
1781 | echo "...PCI SLAVE 66M" ; \ | |
cdd917a4 WD |
1782 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
1783 | echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ | |
5f820439 DL |
1784 | fi ; \ |
1785 | if [ "$(findstring _33_,$@)" ] ; then \ | |
1786 | echo -n "...33M ..." ; \ | |
cdd917a4 | 1787 | echo "#define PCI_33M" >>$(obj)include/config.h ; \ |
281df457 | 1788 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ |
5f820439 DL |
1789 | fi ; \ |
1790 | if [ "$(findstring _66_,$@)" ] ; then \ | |
1791 | echo -n "...66M..." ; \ | |
cdd917a4 | 1792 | echo "#define PCI_66M" >>$(obj)include/config.h ; \ |
281df457 TL |
1793 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ |
1794 | fi ; \ | |
1795 | if [ "$(findstring _ATM_,$@)" ] ; then \ | |
1796 | echo -n "...ATM..." ; \ | |
1797 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ | |
1798 | echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ | |
05bf4919 | 1799 | fi ; |
e58fe957 | 1800 | @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale |
e6f2e902 | 1801 | |
991425fe | 1802 | MPC8349EMDS_config: unconfig |
e58fe957 | 1803 | @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale |
991425fe | 1804 | |
7a78f148 TT |
1805 | MPC8349ITX_config \ |
1806 | MPC8349ITX_LOWBOOT_config \ | |
1807 | MPC8349ITXGP_config: unconfig | |
1808 | @mkdir -p $(obj)include | |
e21659e3 | 1809 | @mkdir -p $(obj)board/freescale/mpc8349itx |
7a78f148 TT |
1810 | @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h |
1811 | @if [ "$(findstring GP,$@)" ] ; then \ | |
e21659e3 | 1812 | echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ |
7a78f148 TT |
1813 | fi |
1814 | @if [ "$(findstring LOWBOOT,$@)" ] ; then \ | |
e21659e3 | 1815 | echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ |
7a78f148 | 1816 | fi |
e58fe957 | 1817 | @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale |
2ad6b513 | 1818 | |
5f820439 DL |
1819 | MPC8360EMDS_config \ |
1820 | MPC8360EMDS_HOST_33_config \ | |
1821 | MPC8360EMDS_HOST_66_config \ | |
281df457 TL |
1822 | MPC8360EMDS_SLAVE_config \ |
1823 | MPC8360EMDS_ATM_config: unconfig | |
cdd917a4 WD |
1824 | @mkdir -p $(obj)include |
1825 | @echo "" >$(obj)include/config.h ; \ | |
5f820439 DL |
1826 | if [ "$(findstring _HOST_,$@)" ] ; then \ |
1827 | echo -n "... PCI HOST " ; \ | |
cdd917a4 | 1828 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
5f820439 DL |
1829 | fi ; \ |
1830 | if [ "$(findstring _SLAVE_,$@)" ] ; then \ | |
1831 | echo "...PCI SLAVE 66M" ; \ | |
cdd917a4 WD |
1832 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
1833 | echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ | |
5f820439 DL |
1834 | fi ; \ |
1835 | if [ "$(findstring _33_,$@)" ] ; then \ | |
1836 | echo -n "...33M ..." ; \ | |
cdd917a4 | 1837 | echo "#define PCI_33M" >>$(obj)include/config.h ; \ |
281df457 | 1838 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ |
5f820439 DL |
1839 | fi ; \ |
1840 | if [ "$(findstring _66_,$@)" ] ; then \ | |
1841 | echo -n "...66M..." ; \ | |
cdd917a4 | 1842 | echo "#define PCI_66M" >>$(obj)include/config.h ; \ |
281df457 TL |
1843 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ |
1844 | fi ; \ | |
1845 | if [ "$(findstring _ATM_,$@)" ] ; then \ | |
1846 | echo -n "...ATM..." ; \ | |
1847 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ | |
1848 | echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ | |
5f820439 | 1849 | fi ; |
e58fe957 | 1850 | @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale |
5f820439 | 1851 | |
4decd84e KP |
1852 | sbc8349_config: unconfig |
1853 | @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349 | |
1854 | ||
1855 | TQM834x_config: unconfig | |
1856 | @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x | |
1857 | ||
2ad6b513 | 1858 | |
42d1f039 WD |
1859 | ######################################################################### |
1860 | ## MPC85xx Systems | |
1861 | ######################################################################### | |
1862 | ||
0ac6f8b7 | 1863 | MPC8540ADS_config: unconfig |
f9328639 | 1864 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads |
42d1f039 | 1865 | |
b0e32949 LW |
1866 | MPC8540EVAL_config \ |
1867 | MPC8540EVAL_33_config \ | |
1868 | MPC8540EVAL_66_config \ | |
1869 | MPC8540EVAL_33_slave_config \ | |
1870 | MPC8540EVAL_66_slave_config: unconfig | |
f9328639 MB |
1871 | @mkdir -p $(obj)include |
1872 | @echo "" >$(obj)include/config.h ; \ | |
b0e32949 | 1873 | if [ "$(findstring _33_,$@)" ] ; then \ |
cdd917a4 | 1874 | echo "... 33 MHz PCI" ; \ |
b0e32949 | 1875 | else \ |
f9328639 | 1876 | echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ |
cdd917a4 | 1877 | echo "... 66 MHz PCI" ; \ |
b0e32949 LW |
1878 | fi ; \ |
1879 | if [ "$(findstring _slave_,$@)" ] ; then \ | |
f9328639 | 1880 | echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ |
b0e32949 LW |
1881 | echo " slave" ; \ |
1882 | else \ | |
1883 | echo " host" ; \ | |
1884 | fi | |
f9328639 | 1885 | @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval |
b0e32949 | 1886 | |
0ac6f8b7 | 1887 | MPC8560ADS_config: unconfig |
f9328639 | 1888 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads |
42d1f039 | 1889 | |
7f3f2bd2 | 1890 | MPC8541CDS_legacy_config \ |
03f5c550 | 1891 | MPC8541CDS_config: unconfig |
7f3f2bd2 RV |
1892 | @mkdir -p $(obj)include |
1893 | @echo "" >$(obj)include/config.h ; \ | |
1894 | if [ "$(findstring _legacy_,$@)" ] ; then \ | |
1895 | echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ | |
1896 | echo "... legacy" ; \ | |
1897 | fi | |
1898 | @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds cds | |
03f5c550 | 1899 | |
81f481ca AF |
1900 | MPC8544DS_config: unconfig |
1901 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale | |
1902 | ||
7f3f2bd2 | 1903 | MPC8548CDS_legacy_config \ |
d9b94f28 | 1904 | MPC8548CDS_config: unconfig |
7f3f2bd2 RV |
1905 | @mkdir -p $(obj)include |
1906 | @echo "" >$(obj)include/config.h ; \ | |
1907 | if [ "$(findstring _legacy_,$@)" ] ; then \ | |
1908 | echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ | |
1909 | echo "... legacy" ; \ | |
1910 | fi | |
1911 | @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds cds | |
d9b94f28 | 1912 | |
7f3f2bd2 | 1913 | MPC8555CDS_legacy_config \ |
03f5c550 | 1914 | MPC8555CDS_config: unconfig |
7f3f2bd2 RV |
1915 | @mkdir -p $(obj)include |
1916 | @echo "" >$(obj)include/config.h ; \ | |
1917 | if [ "$(findstring _legacy_,$@)" ] ; then \ | |
1918 | echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ | |
1919 | echo "... legacy" ; \ | |
1920 | fi | |
1921 | @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds cds | |
7abf0c58 | 1922 | |
67431059 AF |
1923 | MPC8568MDS_config: unconfig |
1924 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds | |
1925 | ||
384cc687 | 1926 | PM854_config: unconfig |
f9328639 | 1927 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 |
384cc687 | 1928 | |
b20d0032 | 1929 | PM856_config: unconfig |
f9328639 | 1930 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 |
b20d0032 | 1931 | |
c15f3120 WD |
1932 | sbc8540_config \ |
1933 | sbc8540_33_config \ | |
1934 | sbc8540_66_config: unconfig | |
f9328639 | 1935 | @mkdir -p $(obj)include |
c15f3120 | 1936 | @if [ "$(findstring _66_,$@)" ] ; then \ |
f9328639 | 1937 | echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ |
c15f3120 WD |
1938 | echo "... 66 MHz PCI" ; \ |
1939 | else \ | |
f9328639 | 1940 | >$(obj)include/config.h ; \ |
c15f3120 WD |
1941 | echo "... 33 MHz PCI" ; \ |
1942 | fi | |
f9328639 | 1943 | @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 |
c15f3120 | 1944 | |
466b7410 WD |
1945 | sbc8560_config \ |
1946 | sbc8560_33_config \ | |
1947 | sbc8560_66_config: unconfig | |
f9328639 | 1948 | @mkdir -p $(obj)include |
8b07a110 | 1949 | @if [ "$(findstring _66_,$@)" ] ; then \ |
f9328639 | 1950 | echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ |
8b07a110 WD |
1951 | echo "... 66 MHz PCI" ; \ |
1952 | else \ | |
f9328639 | 1953 | >$(obj)include/config.h ; \ |
8b07a110 WD |
1954 | echo "... 33 MHz PCI" ; \ |
1955 | fi | |
f9328639 | 1956 | @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 |
8b07a110 | 1957 | |
03f5c550 | 1958 | stxgp3_config: unconfig |
f9328639 | 1959 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 |
03f5c550 | 1960 | |
ee152983 WD |
1961 | stxssa_config \ |
1962 | stxssa_4M_config: unconfig | |
1963 | @mkdir -p $(obj)include | |
1964 | @if [ "$(findstring _4M_,$@)" ] ; then \ | |
1965 | echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ | |
1966 | echo "... with 4 MiB flash memory" ; \ | |
1967 | else \ | |
1968 | >$(obj)include/config.h ; \ | |
1969 | fi | |
1970 | @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa | |
35171dc0 | 1971 | |
d96f41e0 SR |
1972 | TQM8540_config \ |
1973 | TQM8541_config \ | |
1974 | TQM8555_config \ | |
1975 | TQM8560_config: unconfig | |
f9328639 | 1976 | @mkdir -p $(obj)include |
a889bd27 | 1977 | @CTYPE=$(subst TQM,,$(@:_config=)); \ |
f9328639 | 1978 | >$(obj)include/config.h ; \ |
d96f41e0 | 1979 | echo "... TQM"$${CTYPE}; \ |
f9328639 MB |
1980 | echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ |
1981 | echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \ | |
1982 | echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ | |
1983 | echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \ | |
8a783a65 | 1984 | echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h |
f9328639 | 1985 | @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx |
f5c5ef4a | 1986 | |
debb7354 JL |
1987 | ######################################################################### |
1988 | ## MPC86xx Systems | |
1989 | ######################################################################### | |
1990 | ||
1991 | MPC8641HPCN_config: unconfig | |
4ce91774 | 1992 | @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale |
debb7354 | 1993 | |
c646bba6 JH |
1994 | sbc8641d_config: unconfig |
1995 | @./mkconfig $(@:_config=) ppc mpc86xx sbc8641d | |
debb7354 | 1996 | |
7ebf7443 WD |
1997 | ######################################################################### |
1998 | ## 74xx/7xx Systems | |
1999 | ######################################################################### | |
2000 | ||
c7de829c | 2001 | AmigaOneG3SE_config: unconfig |
f9328639 | 2002 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI |
c7de829c | 2003 | |
15647dc7 | 2004 | BAB7xx_config: unconfig |
f9328639 | 2005 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec |
15647dc7 | 2006 | |
05bf4919 | 2007 | CPCI750_config: unconfig |
f9328639 | 2008 | @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd |
c419d1d6 | 2009 | |
05bf4919 | 2010 | DB64360_config: unconfig |
f9328639 | 2011 | @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell |
3a473b2a | 2012 | |
05bf4919 | 2013 | DB64460_config: unconfig |
f9328639 | 2014 | @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell |
3a473b2a | 2015 | |
15647dc7 | 2016 | ELPPC_config: unconfig |
f9328639 | 2017 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec |
15647dc7 | 2018 | |
7ebf7443 WD |
2019 | EVB64260_config \ |
2020 | EVB64260_750CX_config: unconfig | |
f9328639 | 2021 | @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 |
7ebf7443 | 2022 | |
4c52783b | 2023 | mpc7448hpc2_config: unconfig |
ee311214 | 2024 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 |
4c52783b | 2025 | |
15647dc7 | 2026 | P3G4_config: unconfig |
f9328639 | 2027 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 |
7ebf7443 | 2028 | |
1eac2a71 SR |
2029 | p3m750_config \ |
2030 | p3m7448_config: unconfig | |
2031 | @mkdir -p $(obj)include | |
2032 | @if [ "$(findstring 750_,$@)" ] ; then \ | |
2033 | echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ | |
2034 | else \ | |
2035 | echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ | |
2036 | fi | |
2037 | @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive | |
2038 | ||
7ebf7443 WD |
2039 | PCIPPC2_config \ |
2040 | PCIPPC6_config: unconfig | |
f9328639 | 2041 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 |
7ebf7443 | 2042 | |
15647dc7 | 2043 | ZUMA_config: unconfig |
f9328639 | 2044 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 |
12f34241 | 2045 | |
f5e0d039 | 2046 | ppmc7xx_config: unconfig |
f9328639 | 2047 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx |
b87dfd28 | 2048 | |
7ebf7443 WD |
2049 | #======================================================================== |
2050 | # ARM | |
2051 | #======================================================================== | |
2052 | ######################################################################### | |
2053 | ## StrongARM Systems | |
2054 | ######################################################################### | |
2055 | ||
ea66bc88 | 2056 | assabet_config : unconfig |
f9328639 | 2057 | @$(MKCONFIG) $(@:_config=) arm sa1100 assabet |
ea66bc88 | 2058 | |
7ebf7443 | 2059 | dnp1110_config : unconfig |
f9328639 | 2060 | @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 |
7ebf7443 | 2061 | |
855a496f | 2062 | gcplus_config : unconfig |
f9328639 | 2063 | @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus |
855a496f WD |
2064 | |
2065 | lart_config : unconfig | |
f9328639 | 2066 | @$(MKCONFIG) $(@:_config=) arm sa1100 lart |
855a496f | 2067 | |
7ebf7443 | 2068 | shannon_config : unconfig |
f9328639 | 2069 | @$(MKCONFIG) $(@:_config=) arm sa1100 shannon |
7ebf7443 WD |
2070 | |
2071 | ######################################################################### | |
2e5983d2 | 2072 | ## ARM92xT Systems |
7ebf7443 WD |
2073 | ######################################################################### |
2074 | ||
b0639ca3 | 2075 | xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) |
43d9616c | 2076 | |
3ff02c27 | 2077 | xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) |
63e73c9a | 2078 | |
a56bd922 WD |
2079 | xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) |
2080 | ||
a85f9f21 | 2081 | at91rm9200dk_config : unconfig |
f9328639 | 2082 | @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200 |
a85f9f21 WD |
2083 | |
2084 | cmc_pu2_config : unconfig | |
f9328639 | 2085 | @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 |
a85f9f21 | 2086 | |
645da510 | 2087 | csb637_config : unconfig |
f9328639 | 2088 | @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 |
645da510 | 2089 | |
0e4018d2 | 2090 | mp2usb_config : unconfig |
f9328639 | 2091 | @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 |
0e4018d2 | 2092 | |
3d3befa7 | 2093 | |
87cb6862 WD |
2094 | ######################################################################## |
2095 | ## ARM Integrator boards - see doc/README-integrator for more info. | |
2096 | integratorap_config \ | |
2097 | ap_config \ | |
2098 | ap966_config \ | |
2099 | ap922_config \ | |
2100 | ap922_XA10_config \ | |
2101 | ap7_config \ | |
dd520bf3 | 2102 | ap720t_config \ |
87cb6862 WD |
2103 | ap920t_config \ |
2104 | ap926ejs_config \ | |
2105 | ap946es_config: unconfig | |
96782c63 | 2106 | @board/integratorap/split_by_variant.sh $@ |
87cb6862 WD |
2107 | |
2108 | integratorcp_config \ | |
2109 | cp_config \ | |
2110 | cp920t_config \ | |
2111 | cp926ejs_config \ | |
2112 | cp946es_config \ | |
2113 | cp1136_config \ | |
2114 | cp966_config \ | |
2115 | cp922_config \ | |
2116 | cp922_XA10_config \ | |
2117 | cp1026_config: unconfig | |
96782c63 | 2118 | @board/integratorcp/split_by_variant.sh $@ |
25d6712a | 2119 | |
99b0d285 | 2120 | kb9202_config : unconfig |
f9328639 | 2121 | @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 |
99b0d285 | 2122 | |
f832d8a1 WD |
2123 | lpd7a400_config \ |
2124 | lpd7a404_config: unconfig | |
f9328639 | 2125 | @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x |
3d3befa7 | 2126 | |
281e00a3 | 2127 | mx1ads_config : unconfig |
f9328639 | 2128 | @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx |
281e00a3 WD |
2129 | |
2130 | mx1fs2_config : unconfig | |
f9328639 | 2131 | @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx |
281e00a3 | 2132 | |
ac7eb8a3 WD |
2133 | netstar_32_config \ |
2134 | netstar_config: unconfig | |
f9328639 | 2135 | @mkdir -p $(obj)include |
ac7eb8a3 WD |
2136 | @if [ "$(findstring _32_,$@)" ] ; then \ |
2137 | echo "... 32MB SDRAM" ; \ | |
f9328639 | 2138 | echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \ |
ac7eb8a3 WD |
2139 | else \ |
2140 | echo "... 64MB SDRAM" ; \ | |
f9328639 | 2141 | echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \ |
ac7eb8a3 | 2142 | fi |
f9328639 | 2143 | @$(MKCONFIG) -a netstar arm arm925t netstar |
ac7eb8a3 | 2144 | |
2e5983d2 | 2145 | omap1510inn_config : unconfig |
f9328639 | 2146 | @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn |
2e5983d2 | 2147 | |
1eaeb58e | 2148 | omap5912osk_config : unconfig |
f9328639 | 2149 | @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap |
1eaeb58e | 2150 | |
c74b2108 SK |
2151 | davinci_dvevm_config : unconfig |
2152 | @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci | |
2153 | ||
2154 | davinci_schmoogie_config : unconfig | |
2155 | @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci | |
2156 | ||
2157 | davinci_sonata_config : unconfig | |
2158 | @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci | |
2159 | ||
63e73c9a WD |
2160 | omap1610inn_config \ |
2161 | omap1610inn_cs0boot_config \ | |
2162 | omap1610inn_cs3boot_config \ | |
3ff02c27 | 2163 | omap1610inn_cs_autoboot_config \ |
63e73c9a WD |
2164 | omap1610h2_config \ |
2165 | omap1610h2_cs0boot_config \ | |
3ff02c27 WD |
2166 | omap1610h2_cs3boot_config \ |
2167 | omap1610h2_cs_autoboot_config: unconfig | |
f9328639 | 2168 | @mkdir -p $(obj)include |
63e73c9a | 2169 | @if [ "$(findstring _cs0boot_, $@)" ] ; then \ |
cdd917a4 | 2170 | echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ |
b79a11cc | 2171 | echo "... configured for CS0 boot"; \ |
3ff02c27 | 2172 | elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ |
cdd917a4 | 2173 | echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ |
3ff02c27 | 2174 | echo "... configured for CS_AUTO boot"; \ |
63e73c9a | 2175 | else \ |
cdd917a4 | 2176 | echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ |
b79a11cc | 2177 | echo "... configured for CS3 boot"; \ |
63e73c9a | 2178 | fi; |
f9328639 | 2179 | @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap |
6f21347d | 2180 | |
a56bd922 WD |
2181 | omap730p2_config \ |
2182 | omap730p2_cs0boot_config \ | |
2183 | omap730p2_cs3boot_config : unconfig | |
f9328639 | 2184 | @mkdir -p $(obj)include |
a56bd922 | 2185 | @if [ "$(findstring _cs0boot_, $@)" ] ; then \ |
f9328639 | 2186 | echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ |
a56bd922 WD |
2187 | echo "... configured for CS0 boot"; \ |
2188 | else \ | |
f9328639 | 2189 | echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ |
a56bd922 WD |
2190 | echo "... configured for CS3 boot"; \ |
2191 | fi; | |
f9328639 | 2192 | @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap |
a56bd922 | 2193 | |
32cb2c70 | 2194 | sbc2410x_config: unconfig |
f9328639 | 2195 | @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 |
32cb2c70 | 2196 | |
281e00a3 | 2197 | scb9328_config : unconfig |
f9328639 | 2198 | @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx |
281e00a3 | 2199 | |
7ebf7443 | 2200 | smdk2400_config : unconfig |
f9328639 | 2201 | @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0 |
7ebf7443 WD |
2202 | |
2203 | smdk2410_config : unconfig | |
f9328639 | 2204 | @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0 |
7ebf7443 | 2205 | |
2d24a3a7 | 2206 | SX1_config : unconfig |
f9328639 | 2207 | @$(MKCONFIG) $(@:_config=) arm arm925t sx1 |
2d24a3a7 | 2208 | |
b2001f27 | 2209 | # TRAB default configuration: 8 MB Flash, 32 MB RAM |
43d9616c | 2210 | trab_config \ |
b0639ca3 WD |
2211 | trab_bigram_config \ |
2212 | trab_bigflash_config \ | |
f54ebdfa | 2213 | trab_old_config: unconfig |
f9328639 MB |
2214 | @mkdir -p $(obj)include |
2215 | @mkdir -p $(obj)board/trab | |
2216 | @ >$(obj)include/config.h | |
b0639ca3 | 2217 | @[ -z "$(findstring _bigram,$@)" ] || \ |
f9328639 MB |
2218 | { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ |
2219 | echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ | |
b0639ca3 WD |
2220 | echo "... with 8 MB Flash, 32 MB RAM" ; \ |
2221 | } | |
2222 | @[ -z "$(findstring _bigflash,$@)" ] || \ | |
f9328639 MB |
2223 | { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ |
2224 | echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ | |
b0639ca3 | 2225 | echo "... with 16 MB Flash, 16 MB RAM" ; \ |
f9328639 | 2226 | echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ |
b0639ca3 | 2227 | } |
f54ebdfa | 2228 | @[ -z "$(findstring _old,$@)" ] || \ |
f9328639 MB |
2229 | { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ |
2230 | echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ | |
b2001f27 | 2231 | echo "... with 8 MB Flash, 16 MB RAM" ; \ |
f9328639 | 2232 | echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ |
43d9616c | 2233 | } |
f9328639 | 2234 | @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 |
7ebf7443 | 2235 | |
1cb8e980 | 2236 | VCMA9_config : unconfig |
f9328639 | 2237 | @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 |
1cb8e980 | 2238 | |
87cb6862 WD |
2239 | #======================================================================== |
2240 | # ARM supplied Versatile development boards | |
2241 | #======================================================================== | |
2242 | versatile_config \ | |
2243 | versatileab_config \ | |
2244 | versatilepb_config : unconfig | |
96782c63 | 2245 | @board/versatile/split_by_variant.sh $@ |
074cff0d | 2246 | |
3c2b3d45 WD |
2247 | voiceblue_smallflash_config \ |
2248 | voiceblue_config: unconfig | |
f9328639 MB |
2249 | @mkdir -p $(obj)include |
2250 | @mkdir -p $(obj)board/voiceblue | |
3c2b3d45 WD |
2251 | @if [ "$(findstring _smallflash_,$@)" ] ; then \ |
2252 | echo "... boot from lower flash bank" ; \ | |
f9328639 MB |
2253 | echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \ |
2254 | echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \ | |
3c2b3d45 WD |
2255 | else \ |
2256 | echo "... boot from upper flash bank" ; \ | |
f9328639 MB |
2257 | >$(obj)include/config.h ; \ |
2258 | echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \ | |
3c2b3d45 | 2259 | fi |
f9328639 | 2260 | @$(MKCONFIG) -a voiceblue arm arm925t voiceblue |
3c2b3d45 | 2261 | |
16b013e7 | 2262 | cm4008_config : unconfig |
f9328639 | 2263 | @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 |
16b013e7 WD |
2264 | |
2265 | cm41xx_config : unconfig | |
f9328639 | 2266 | @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 |
16b013e7 | 2267 | |
dd520bf3 | 2268 | gth2_config : unconfig |
f9328639 MB |
2269 | @mkdir -p $(obj)include |
2270 | @ >$(obj)include/config.h | |
2271 | @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h | |
2272 | @$(MKCONFIG) -a gth2 mips mips gth2 | |
0c32d96d | 2273 | |
074cff0d WD |
2274 | ######################################################################### |
2275 | ## S3C44B0 Systems | |
2276 | ######################################################################### | |
2277 | ||
2278 | B2_config : unconfig | |
f9328639 | 2279 | @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave |
074cff0d | 2280 | |
2d24a3a7 WD |
2281 | ######################################################################### |
2282 | ## ARM720T Systems | |
2283 | ######################################################################### | |
7ebf7443 | 2284 | |
c570b2fd | 2285 | armadillo_config: unconfig |
f9328639 | 2286 | @$(MKCONFIG) $(@:_config=) arm arm720t armadillo |
c570b2fd | 2287 | |
7ebf7443 | 2288 | ep7312_config : unconfig |
f9328639 | 2289 | @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 |
7ebf7443 | 2290 | |
2d24a3a7 | 2291 | impa7_config : unconfig |
f9328639 | 2292 | @$(MKCONFIG) $(@:_config=) arm arm720t impa7 |
2d24a3a7 | 2293 | |
2d1a537d | 2294 | modnet50_config : unconfig |
f9328639 | 2295 | @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 |
2d1a537d | 2296 | |
39539887 | 2297 | evb4510_config : unconfig |
f9328639 | 2298 | @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 |
39539887 | 2299 | |
6bd2447e | 2300 | lpc2292sodimm_config: unconfig |
b0d8f5bf PP |
2301 | @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 |
2302 | ||
2303 | SMN42_config : unconfig | |
2304 | @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 | |
6bd2447e | 2305 | |
7ebf7443 | 2306 | ######################################################################### |
43d9616c | 2307 | ## XScale Systems |
7ebf7443 WD |
2308 | ######################################################################### |
2309 | ||
20787e23 | 2310 | adsvix_config : unconfig |
f9328639 | 2311 | @$(MKCONFIG) $(@:_config=) arm pxa adsvix |
20787e23 | 2312 | |
fabd46ac | 2313 | cerf250_config : unconfig |
f9328639 | 2314 | @$(MKCONFIG) $(@:_config=) arm pxa cerf250 |
fabd46ac | 2315 | |
7ebf7443 | 2316 | cradle_config : unconfig |
f9328639 | 2317 | @$(MKCONFIG) $(@:_config=) arm pxa cradle |
7ebf7443 WD |
2318 | |
2319 | csb226_config : unconfig | |
f9328639 | 2320 | @$(MKCONFIG) $(@:_config=) arm pxa csb226 |
7ebf7443 | 2321 | |
0be248fa | 2322 | delta_config : |
f9328639 | 2323 | @$(MKCONFIG) $(@:_config=) arm pxa delta |
0be248fa | 2324 | |
43d9616c | 2325 | innokom_config : unconfig |
f9328639 | 2326 | @$(MKCONFIG) $(@:_config=) arm pxa innokom |
43d9616c | 2327 | |
2d5b561e | 2328 | ixdp425_config : unconfig |
f9328639 | 2329 | @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 |
2d5b561e | 2330 | |
ba94a1bb | 2331 | ixdpg425_config : unconfig |
f9328639 | 2332 | @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 |
ba94a1bb | 2333 | |
43d9616c | 2334 | lubbock_config : unconfig |
f9328639 | 2335 | @$(MKCONFIG) $(@:_config=) arm pxa lubbock |
43d9616c | 2336 | |
5720df78 | 2337 | pleb2_config : unconfig |
f9328639 | 2338 | @$(MKCONFIG) $(@:_config=) arm pxa pleb2 |
5720df78 | 2339 | |
52f52c14 | 2340 | logodl_config : unconfig |
f9328639 | 2341 | @$(MKCONFIG) $(@:_config=) arm pxa logodl |
52f52c14 | 2342 | |
9d8d5a5b SR |
2343 | pdnb3_config \ |
2344 | scpu_config: unconfig | |
cdd917a4 | 2345 | @mkdir -p $(obj)include |
9d8d5a5b | 2346 | @if [ "$(findstring scpu_,$@)" ] ; then \ |
cdd917a4 | 2347 | echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ |
9d8d5a5b SR |
2348 | echo "... on SCPU board variant" ; \ |
2349 | else \ | |
cdd917a4 | 2350 | >$(obj)include/config.h ; \ |
9d8d5a5b SR |
2351 | fi |
2352 | @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive | |
ba94a1bb | 2353 | |
f57f70aa | 2354 | pxa255_idp_config: unconfig |
f9328639 | 2355 | @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp |
f57f70aa | 2356 | |
5e5803e1 SB |
2357 | trizepsiv_config : unconfig |
2358 | @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv | |
2359 | ||
3e38691e | 2360 | wepep250_config : unconfig |
f9328639 | 2361 | @$(MKCONFIG) $(@:_config=) arm pxa wepep250 |
3e38691e | 2362 | |
4ec3a7f0 | 2363 | xaeniax_config : unconfig |
f9328639 | 2364 | @$(MKCONFIG) $(@:_config=) arm pxa xaeniax |
4ec3a7f0 | 2365 | |
efa329cb | 2366 | xm250_config : unconfig |
f9328639 | 2367 | @$(MKCONFIG) $(@:_config=) arm pxa xm250 |
efa329cb | 2368 | |
ca0e7748 | 2369 | xsengine_config : unconfig |
f9328639 | 2370 | @$(MKCONFIG) $(@:_config=) arm pxa xsengine |
ca0e7748 | 2371 | |