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