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