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