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