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