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