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