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