2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
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
10 # published by the Free Software Foundatio; either version 2 of
11 # the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
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,
28 U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 VERSION_FILE = $(obj)include/version_autogenerated.h
31 HOSTARCH := $(shell uname -m | \
39 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
40 sed -e 's/\(cygwin\).*/cygwin/')
42 export HOSTARCH HOSTOS
44 # Deal with colliding definitions from tcsh etc.
47 #########################################################################
49 # U-boot build supports producing a object files to the separate external
50 # directory. Two use cases are supported:
52 # 1) Add O= to the make command line
53 # 'make O=/tmp/build all'
55 # 2) Set environement variable BUILD_DIR to point to the desired location
56 # 'export BUILD_DIR=/tmp/build'
59 # The second approach can also be used with a MAKEALL script
60 # 'export BUILD_DIR=/tmp/build'
63 # Command line 'O=' setting overrides BUILD_DIR environent variable.
65 # When none of the above methods is used the local build is performed and
66 # the object files are placed in the source directory.
70 ifeq ("$(origin O)", "command line")
76 saved-output := $(BUILD_DIR)
78 # Attempt to create a output directory.
79 $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
81 # Verify if it was successful.
82 BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
83 $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
84 endif # ifneq ($(BUILD_DIR),)
86 OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
90 export TOPDIR SRCTREE OBJTREE
92 MKCONFIG := $(SRCTREE)/mkconfig
95 ifneq ($(OBJTREE),$(SRCTREE))
100 # $(obj) and (src) are defined in config.mk but here in main Makefile
101 # we also need them before config.mk is included which is the case for
102 # some targets like unconfig, clean, clobber, distclean, etc.
103 ifneq ($(OBJTREE),$(SRCTREE))
112 #########################################################################
114 ifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
116 # load ARCH, BOARD, and CPU configuration
117 include $(OBJTREE)/include/config.mk
118 export ARCH CPU BOARD VENDOR SOC
121 ifeq ($(HOSTARCH),$(ARCH))
125 CROSS_COMPILE = ppc_8xx-
128 CROSS_COMPILE = arm-linux-
131 CROSS_COMPILE = i386-linux-
134 CROSS_COMPILE = mips_4KC-
137 CROSS_COMPILE = nios-elf-
140 CROSS_COMPILE = nios2-elf-
143 CROSS_COMPILE = m68k-elf-
145 ifeq ($(ARCH),microblaze)
148 ifeq ($(ARCH),blackfin)
149 CROSS_COMPILE = bfin-uclinux-
152 CROSS_COMPILE = avr32-linux-
159 # load other configuration
160 include $(TOPDIR)/config.mk
162 #########################################################################
163 # U-Boot objects....order is important (i.e. start must be first)
165 OBJS = cpu/$(CPU)/start.o
167 OBJS += cpu/$(CPU)/start16.o
168 OBJS += cpu/$(CPU)/reset.o
171 OBJS += cpu/$(CPU)/resetvec.o
173 ifeq ($(CPU),mpc85xx)
174 OBJS += cpu/$(CPU)/resetvec.o
176 ifeq ($(CPU),mpc86xx)
177 OBJS += cpu/$(CPU)/resetvec.o
180 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
181 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
184 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
185 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
188 OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
189 OBJS += cpu/$(CPU)/flush.o cpu/$(CPU)/init_sdram.o
192 OBJS := $(addprefix $(obj),$(OBJS))
194 LIBS = lib_generic/libgeneric.a
195 LIBS += board/$(BOARDDIR)/lib$(BOARD).a
196 LIBS += cpu/$(CPU)/lib$(CPU).a
198 LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
201 LIBS += cpu/ixp/npe/libnpe.a
203 LIBS += lib_$(ARCH)/lib$(ARCH).a
204 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
205 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
207 LIBS += disk/libdisk.a
210 LIBS += drivers/libdrivers.a
211 LIBS += drivers/nand/libnand.a
212 LIBS += drivers/nand_legacy/libnand_legacy.a
213 ifeq ($(CPU),mpc83xx)
214 LIBS += drivers/qe/qe.a
216 LIBS += drivers/sk98lin/libsk98lin.a
217 LIBS += post/libpost.a post/drivers/libpostdrivers.a
218 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
219 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
220 LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
221 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
222 LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
223 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
224 LIBS += common/libcommon.a
225 LIBS += libfdt/libfdt.a
227 LIBS := $(addprefix $(obj),$(LIBS))
231 PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
233 # The "tools" are needed early, so put this first
234 # Don't include stuff already done in $(LIBS)
240 ifeq ($(CONFIG_NAND_U_BOOT),y)
242 U_BOOT_NAND = $(obj)u-boot-nand.bin
245 __OBJS := $(subst $(obj),,$(OBJS))
246 __LIBS := $(subst $(obj),,$(LIBS))
248 #########################################################################
249 #########################################################################
251 ALL = $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
255 $(obj)u-boot.hex: $(obj)u-boot
256 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
258 $(obj)u-boot.srec: $(obj)u-boot
259 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
261 $(obj)u-boot.bin: $(obj)u-boot
262 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
264 $(obj)u-boot.img: $(obj)u-boot.bin
265 ./tools/mkimage -A $(ARCH) -T firmware -C none \
266 -a $(TEXT_BASE) -e 0 \
267 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
268 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
271 $(obj)u-boot.dis: $(obj)u-boot
272 $(OBJDUMP) -d $< > $@
274 $(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
275 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
276 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
277 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
278 -Map u-boot.map -o u-boot
281 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
284 $(MAKE) -C $(dir $(subst $(obj),,$@))
290 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
292 $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
293 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
296 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
297 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
298 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
299 $(TOPDIR)) >> $(VERSION_FILE); \
300 echo "\"" >> $(VERSION_FILE)
303 $(MAKE) -C tools/gdb all || exit 1
306 $(MAKE) -C tools/updater all || exit 1
309 $(MAKE) -C tools/env all || exit 1
312 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
315 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
316 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
317 fs/cramfs fs/fat fs/fdos fs/jffs2 \
318 net disk rtc dtt drivers drivers/sk98lin common \
319 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
322 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
323 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
324 fs/cramfs fs/fat fs/fdos fs/jffs2 \
325 net disk rtc dtt drivers drivers/sk98lin common \
326 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
328 $(obj)System.map: $(obj)u-boot
330 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
331 sort > $(obj)System.map
333 #########################################################################
335 all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
336 $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
337 $(SUBDIRS) version gdbtools updater env depend \
338 dep tags ctags etags $(obj)System.map:
339 @echo "System not configured - see README" >&2
345 git log --no-merges U-Boot-1_1_5.. | \
346 unexpand -a | sed -e 's/\s\s*$$//' > $@
348 #########################################################################
351 @rm -f $(obj)include/config.h $(obj)include/config.mk \
352 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
354 #========================================================================
356 #========================================================================
358 #########################################################################
360 #########################################################################
362 canmb_config: unconfig
363 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
365 cmi_mpc5xx_config: unconfig
366 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
368 PATI_config: unconfig
369 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
371 #########################################################################
373 #########################################################################
376 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
378 BC3450_config: unconfig
379 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
381 cpci5200_config: unconfig
382 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
384 hmi1001_config: unconfig
385 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
388 Lite5200_LOWBOOT_config \
389 Lite5200_LOWBOOT08_config \
390 icecube_5200_config \
391 icecube_5200_LOWBOOT_config \
392 icecube_5200_LOWBOOT08_config \
393 icecube_5200_DDR_config \
394 icecube_5200_DDR_LOWBOOT_config \
395 icecube_5200_DDR_LOWBOOT08_config \
396 icecube_5100_config: unconfig
397 @mkdir -p $(obj)include
398 @mkdir -p $(obj)board/icecube
399 @ >$(obj)include/config.h
400 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
401 { if [ "$(findstring DDR,$@)" ] ; \
402 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
403 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
405 echo "... with LOWBOOT configuration" ; \
407 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
408 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
409 echo "... with 8 MB flash only" ; \
410 echo "... with LOWBOOT configuration" ; \
412 @[ -z "$(findstring DDR,$@)" ] || \
413 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
414 echo "... DDR memory revision" ; \
416 @[ -z "$(findstring 5200,$@)" ] || \
417 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
418 echo "... with MPC5200 processor" ; \
420 @[ -z "$(findstring 5100,$@)" ] || \
421 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
422 echo "... with MGT5100 processor" ; \
424 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
426 jupiter_config: unconfig
427 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
429 v38b_config: unconfig
430 @./mkconfig -a v38b ppc mpc5xxx v38b
432 inka4x0_config: unconfig
433 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
436 lite5200b_PM_config \
437 lite5200b_LOWBOOT_config: unconfig
438 @mkdir -p $(obj)include
439 @mkdir -p $(obj)board/icecube
440 @ >$(obj)include/config.h
441 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
442 @ echo "... DDR memory revision"
443 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
444 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
445 @[ -z "$(findstring _PM_,$@)" ] || \
446 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
447 echo "... with power management (low-power mode) support" ; \
449 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
450 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
451 echo "... with LOWBOOT configuration" ; \
453 @ echo "... with MPC5200B processor"
454 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
457 mcc200_SDRAM_config \
458 mcc200_highboot_config \
459 mcc200_COM12_config \
460 mcc200_COM12_SDRAM_config \
461 mcc200_COM12_highboot_config \
462 mcc200_COM12_highboot_SDRAM_config \
463 mcc200_highboot_SDRAM_config \
466 prs200_highboot_config \
467 prs200_highboot_DDR_config: unconfig
468 @mkdir -p $(obj)include
469 @mkdir -p $(obj)board/mcc200
470 @ >$(obj)include/config.h
471 @[ -n "$(findstring highboot,$@)" ] || \
472 { echo "... with lowboot configuration" ; \
474 @[ -z "$(findstring highboot,$@)" ] || \
475 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
476 echo "... with highboot configuration" ; \
478 @[ -n "$(findstring _SDRAM,$@)" ] || \
479 { if [ -n "$(findstring mcc200,$@)" ]; \
481 echo "... with DDR" ; \
483 if [ -n "$(findstring _DDR,$@)" ];\
485 echo "... with DDR" ; \
487 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
488 echo "... with SDRAM" ; \
492 @[ -z "$(findstring _SDRAM,$@)" ] || \
493 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
494 echo "... with SDRAM" ; \
496 @[ -z "$(findstring COM12,$@)" ] || \
497 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
498 echo "... with console on COM12" ; \
500 @[ -z "$(findstring prs200,$@)" ] || \
501 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
503 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
505 mecp5200_config: unconfig
506 @$(MKCONFIG) -a mecp5200 ppc mpc5xxx mecp5200 esd
509 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
511 pf5200_config: unconfig
512 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
516 PM520_ROMBOOT_config \
517 PM520_ROMBOOT_DDR_config: unconfig
518 @mkdir -p $(obj)include
519 @ >$(obj)include/config.h
520 @[ -z "$(findstring DDR,$@)" ] || \
521 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
522 echo "... DDR memory revision" ; \
524 @[ -z "$(findstring ROMBOOT,$@)" ] || \
525 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
526 echo "... booting from 8-bit flash" ; \
528 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
530 smmaco4_config: unconfig
531 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
533 spieval_config: unconfig
534 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
537 TB5200_config: unconfig
538 @mkdir -p $(obj)include
539 @[ -z "$(findstring _B,$@)" ] || \
540 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
541 echo "... with MPC5200B processor" ; \
543 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
547 TOP5200_config: unconfig
548 @mkdir -p $(obj)include
549 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
550 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
554 Total5200_lowboot_config \
555 Total5200_Rev2_config \
556 Total5200_Rev2_lowboot_config: unconfig
557 @mkdir -p $(obj)include
558 @mkdir -p $(obj)board/total5200
559 @ >$(obj)include/config.h
560 @[ -z "$(findstring 5100,$@)" ] || \
561 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
562 echo "... with MGT5100 processor" ; \
564 @[ -z "$(findstring 5200,$@)" ] || \
565 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
566 echo "... with MPC5200 processor" ; \
568 @[ -n "$(findstring Rev,$@)" ] || \
569 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
570 echo "... revision 1 board" ; \
572 @[ -z "$(findstring Rev2_,$@)" ] || \
573 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
574 echo "... revision 2 board" ; \
576 @[ -z "$(findstring lowboot_,$@)" ] || \
577 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
578 echo "... with lowboot configuration" ; \
580 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
583 cam5200_niosflash_config \
587 TQM5200S_HIGHBOOT_config \
589 TQM5200_B_HIGHBOOT_config \
591 TQM5200_STK100_config: unconfig
592 @mkdir -p $(obj)include
593 @mkdir -p $(obj)board/tqm5200
594 @ >$(obj)include/config.h
595 @[ -z "$(findstring cam5200,$@)" ] || \
596 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
597 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
598 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
599 echo "... TQM5200S on Cam5200" ; \
601 @[ -z "$(findstring niosflash,$@)" ] || \
602 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
603 echo "... with NIOS flash driver" ; \
605 @[ -z "$(findstring fo300,$@)" ] || \
606 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
607 echo "... TQM5200 on FO300" ; \
609 @[ -z "$(findstring MiniFAP,$@)" ] || \
610 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
611 echo "... TQM5200_AC on MiniFAP" ; \
613 @[ -z "$(findstring STK100,$@)" ] || \
614 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
615 echo "... on a STK52XX.100 base board" ; \
617 @[ -z "$(findstring TQM5200_B,$@)" ] || \
618 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
620 @[ -z "$(findstring TQM5200S,$@)" ] || \
621 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
622 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
624 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
625 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
627 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
628 uc101_config: unconfig
629 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
630 motionpro_config: unconfig
631 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
634 #########################################################################
636 #########################################################################
642 @mkdir -p $(obj)include
643 $(if $(findstring AdderII,$@), \
644 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
645 @$(MKCONFIG) -a Adder ppc mpc8xx adder
647 AdderUSB_config: unconfig
648 @./mkconfig -a AdderUSB ppc mpc8xx adder
655 FADS860T_config: unconfig
656 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
658 AMX860_config : unconfig
659 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
661 c2mon_config: unconfig
662 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
665 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
667 cogent_mpc8xx_config: unconfig
668 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
670 ELPT860_config: unconfig
671 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
673 EP88x_config: unconfig
674 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
676 ESTEEM192E_config: unconfig
677 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
679 ETX094_config : unconfig
680 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
682 FLAGADM_config: unconfig
683 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
685 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
688 GEN860T_config: unconfig
689 @mkdir -p $(obj)include
690 @ >$(obj)include/config.h
691 @[ -z "$(findstring _SC,$@)" ] || \
692 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
693 echo "With reduced H/W feature set (SC)..." ; \
695 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
697 GENIETV_config: unconfig
698 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
701 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
703 hermes_config : unconfig
704 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
706 HMI10_config : unconfig
707 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
709 IAD210_config: unconfig
710 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
712 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
714 ICU862_100MHz_config \
715 ICU862_config: unconfig
716 @mkdir -p $(obj)include
717 @ >$(obj)include/config.h
718 @[ -z "$(findstring _100MHz,$@)" ] || \
719 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
720 echo "... with 100MHz system clock" ; \
722 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
724 IP860_config : unconfig
725 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
729 IVML24_config: unconfig
730 @mkdir -p $(obj)include
731 @ >$(obj)include/config.h
732 @[ -z "$(findstring IVML24_config,$@)" ] || \
733 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
735 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
736 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
738 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
739 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
741 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
745 IVMS8_config: unconfig
746 @mkdir -p $(obj)include
747 @ >$(obj)include/config.h
748 @[ -z "$(findstring IVMS8_config,$@)" ] || \
749 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
751 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
752 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
754 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
755 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
757 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
759 KUP4K_config : unconfig
760 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
762 KUP4X_config : unconfig
763 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
765 LANTEC_config : unconfig
766 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
768 lwmon_config: unconfig
769 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
772 MBX860T_config: unconfig
773 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
775 MHPC_config: unconfig
776 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
778 MVS1_config : unconfig
779 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
781 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
784 NETVIA_config: unconfig
785 @mkdir -p $(obj)include
786 @ >$(obj)include/config.h
787 @[ -z "$(findstring NETVIA_config,$@)" ] || \
788 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
789 echo "... Version 1" ; \
791 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
792 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
793 echo "... Version 2" ; \
795 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
797 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
800 NETPHONE_config: unconfig
801 @mkdir -p $(obj)include
802 @ >$(obj)include/config.h
803 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
804 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
806 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
807 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
809 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
811 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
813 NETTA_ISDN_6412_SWAPHOOK_config \
814 NETTA_ISDN_SWAPHOOK_config \
815 NETTA_6412_SWAPHOOK_config \
816 NETTA_SWAPHOOK_config \
817 NETTA_ISDN_6412_config \
820 NETTA_config: unconfig
821 @mkdir -p $(obj)include
822 @ >$(obj)include/config.h
823 @[ -z "$(findstring ISDN_,$@)" ] || \
824 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
826 @[ -n "$(findstring ISDN_,$@)" ] || \
827 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
829 @[ -z "$(findstring 6412_,$@)" ] || \
830 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
832 @[ -n "$(findstring 6412_,$@)" ] || \
833 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
835 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
836 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
838 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
839 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
841 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
843 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
846 NETTA2_config: unconfig
847 @mkdir -p $(obj)include
848 @ >$(obj)include/config.h
849 @[ -z "$(findstring NETTA2_config,$@)" ] || \
850 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
852 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
853 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
855 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
859 CP850_config: unconfig
860 @mkdir -p $(obj)include
861 @ >$(obj)include/config.h
862 @[ -z "$(findstring CP850,$@)" ] || \
863 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
864 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
866 @[ -z "$(findstring Rev1,$@)" ] || \
867 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
869 @[ -z "$(findstring Rev2,$@)" ] || \
870 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
872 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
874 NX823_config: unconfig
875 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
877 pcu_e_config: unconfig
878 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
880 QS850_config: unconfig
881 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
883 QS823_config: unconfig
884 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
886 QS860T_config: unconfig
887 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
889 quantum_config: unconfig
890 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
892 R360MPI_config: unconfig
893 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
895 RBC823_config: unconfig
896 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
898 RPXClassic_config: unconfig
899 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
901 RPXlite_config: unconfig
902 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
904 RPXlite_DW_64_config \
905 RPXlite_DW_LCD_config \
906 RPXlite_DW_64_LCD_config \
907 RPXlite_DW_NVRAM_config \
908 RPXlite_DW_NVRAM_64_config \
909 RPXlite_DW_NVRAM_LCD_config \
910 RPXlite_DW_NVRAM_64_LCD_config \
911 RPXlite_DW_config: unconfig
912 @mkdir -p $(obj)include
913 @ >$(obj)include/config.h
914 @[ -z "$(findstring _64,$@)" ] || \
915 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
916 echo "... with 64MHz system clock ..."; \
918 @[ -z "$(findstring _LCD,$@)" ] || \
919 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
920 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
921 echo "... with LCD display ..."; \
923 @[ -z "$(findstring _NVRAM,$@)" ] || \
924 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
925 echo "... with ENV in NVRAM ..."; \
927 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
930 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
932 RRvision_config: unconfig
933 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
935 RRvision_LCD_config: unconfig
936 @mkdir -p $(obj)include
937 @echo "#define CONFIG_LCD" >$(obj)include/config.h
938 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
939 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
941 SM850_config : unconfig
942 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
945 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
947 SPD823TS_config: unconfig
948 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
950 stxxtc_config: unconfig
951 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
953 svm_sc8xx_config: unconfig
954 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
956 SXNI855T_config: unconfig
957 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
959 # EMK MPC8xx based modules
960 TOP860_config: unconfig
961 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
963 # Play some tricks for configuration selection
964 # Only 855 and 860 boards may come with FEC
965 # and only 823 boards may have LCD support
966 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
984 virtlab2_config: unconfig
985 @mkdir -p $(obj)include
986 @ >$(obj)include/config.h
987 @[ -z "$(findstring _LCD,$@)" ] || \
988 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
989 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
990 echo "... with LCD display" ; \
992 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
994 TTTech_config: unconfig
995 @mkdir -p $(obj)include
996 @echo "#define CONFIG_LCD" >$(obj)include/config.h
997 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
998 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1000 uc100_config : unconfig
1001 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1003 v37_config: unconfig
1004 @mkdir -p $(obj)include
1005 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1006 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1007 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1009 wtk_config: unconfig
1010 @mkdir -p $(obj)include
1011 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1012 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1013 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1015 #########################################################################
1017 #########################################################################
1018 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1020 acadia_config: unconfig
1021 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1023 ADCIOP_config: unconfig
1024 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1026 alpr_config: unconfig
1027 @./mkconfig $(@:_config=) ppc ppc4xx alpr prodrive
1029 AP1000_config:unconfig
1030 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1032 APC405_config: unconfig
1033 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1035 AR405_config: unconfig
1036 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1038 ASH405_config: unconfig
1039 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1041 bamboo_config: unconfig
1042 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1044 bamboo_nand_config: unconfig
1045 @mkdir -p $(obj)include
1046 @mkdir -p $(obj)nand_spl
1047 @mkdir -p $(obj)board/amcc/bamboo
1048 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1049 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1050 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1051 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1053 bubinga_config: unconfig
1054 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1056 CANBT_config: unconfig
1057 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1060 CATcenter_25_config \
1061 CATcenter_33_config: unconfig
1062 @mkdir -p $(obj)include
1063 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1064 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1065 @[ -z "$(findstring _25,$@)" ] || \
1066 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1067 echo "SysClk = 25MHz" ; \
1069 @[ -z "$(findstring _33,$@)" ] || \
1070 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1071 echo "SysClk = 33MHz" ; \
1073 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1075 CPCI2DP_config: unconfig
1076 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1081 CPCI405AB_config: unconfig
1082 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1083 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1085 CPCI440_config: unconfig
1086 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1088 CPCIISER4_config: unconfig
1089 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1091 CRAYL1_config: unconfig
1092 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1094 csb272_config: unconfig
1095 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1097 csb472_config: unconfig
1098 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1100 DASA_SIM_config: unconfig
1101 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1103 DP405_config: unconfig
1104 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1106 DU405_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1109 ebony_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1112 ERIC_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1115 EXBITGEN_config: unconfig
1116 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1118 G2000_config: unconfig
1119 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1121 HH405_config: unconfig
1122 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1124 HUB405_config: unconfig
1125 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1127 JSE_config: unconfig
1128 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1130 KAREF_config: unconfig
1131 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1133 katmai_config: unconfig
1134 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1136 luan_config: unconfig
1137 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1139 METROBOX_config: unconfig
1140 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1142 MIP405_config: unconfig
1143 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1145 MIP405T_config: unconfig
1146 @mkdir -p $(obj)include
1147 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1148 @echo "Enable subset config for MIP405T"
1149 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1151 ML2_config: unconfig
1152 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1154 ml300_config: unconfig
1155 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1157 ocotea_config: unconfig
1158 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1161 ORSG_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1164 p3p440_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1167 PCI405_config: unconfig
1168 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1170 pcs440ep_config: unconfig
1171 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1173 PIP405_config: unconfig
1174 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1176 PLU405_config: unconfig
1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1179 PMC405_config: unconfig
1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1182 PPChameleonEVB_config \
1183 PPChameleonEVB_BA_25_config \
1184 PPChameleonEVB_ME_25_config \
1185 PPChameleonEVB_HI_25_config \
1186 PPChameleonEVB_BA_33_config \
1187 PPChameleonEVB_ME_33_config \
1188 PPChameleonEVB_HI_33_config: unconfig
1189 @mkdir -p $(obj)include
1190 @ >$(obj)include/config.h
1191 @[ -z "$(findstring EVB_BA,$@)" ] || \
1192 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1193 echo "... BASIC model" ; \
1195 @[ -z "$(findstring EVB_ME,$@)" ] || \
1196 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1197 echo "... MEDIUM model" ; \
1199 @[ -z "$(findstring EVB_HI,$@)" ] || \
1200 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1201 echo "... HIGH-END model" ; \
1203 @[ -z "$(findstring _25,$@)" ] || \
1204 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1205 echo "SysClk = 25MHz" ; \
1207 @[ -z "$(findstring _33,$@)" ] || \
1208 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1209 echo "SysClk = 33MHz" ; \
1211 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1213 sbc405_config: unconfig
1214 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1217 rainier_config: unconfig
1218 @mkdir -p $(obj)include
1219 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1220 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1221 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1223 sequoia_nand_config \
1224 rainier_nand_config: unconfig
1225 @mkdir -p $(obj)include
1226 @mkdir -p $(obj)nand_spl
1227 @mkdir -p $(obj)board/amcc/sequoia
1228 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1229 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1230 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1231 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1232 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1233 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1236 @./mkconfig $(@:_config=) ppc ppc4xx sc3
1238 taishan_config: unconfig
1239 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1241 VOH405_config: unconfig
1242 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1244 VOM405_config: unconfig
1245 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1247 CMS700_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1251 W7OLMG_config: unconfig
1252 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1254 # Walnut & Sycamore images are identical (recognized via PVR)
1256 sycamore_config: unconfig
1257 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1259 WUH405_config: unconfig
1260 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1262 XPEDITE1K_config: unconfig
1263 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1266 yellowstone_config: unconfig
1267 @mkdir -p $(obj)include
1268 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1269 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1270 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1272 yucca_config: unconfig
1273 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1275 #########################################################################
1277 #########################################################################
1280 Yukon8220_config: unconfig
1281 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1283 sorcery_config: unconfig
1284 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1286 #########################################################################
1288 #########################################################################
1289 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1291 A3000_config: unconfig
1292 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1294 barco_config: unconfig
1295 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1297 BMW_config: unconfig
1298 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1301 CPC45_ROMBOOT_config: unconfig
1302 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1303 @cd $(obj)include ; \
1304 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1305 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1306 echo "... booting from 8-bit flash" ; \
1308 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1309 echo "... booting from 64-bit flash" ; \
1311 echo "export CONFIG_BOOT_ROM" >> config.mk;
1313 CU824_config: unconfig
1314 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1316 debris_config: unconfig
1317 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1319 eXalion_config: unconfig
1320 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1322 HIDDEN_DRAGON_config: unconfig
1323 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1325 kvme080_config: unconfig
1326 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1328 MOUSSE_config: unconfig
1329 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1331 MUSENKI_config: unconfig
1332 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1334 MVBLUE_config: unconfig
1335 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1337 OXC_config: unconfig
1338 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1340 PN62_config: unconfig
1341 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1343 Sandpoint8240_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1346 Sandpoint8245_config: unconfig
1347 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1349 sbc8240_config: unconfig
1350 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1352 SL8245_config: unconfig
1353 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1355 utx8245_config: unconfig
1356 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1358 #########################################################################
1360 #########################################################################
1362 atc_config: unconfig
1363 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1365 cogent_mpc8260_config: unconfig
1366 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1369 CPU86_ROMBOOT_config: unconfig
1370 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1371 @cd $(obj)include ; \
1372 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1373 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1374 echo "... booting from 8-bit flash" ; \
1376 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1377 echo "... booting from 64-bit flash" ; \
1379 echo "export CONFIG_BOOT_ROM" >> config.mk;
1382 CPU87_ROMBOOT_config: unconfig
1383 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1384 @cd $(obj)include ; \
1385 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1386 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1387 echo "... booting from 8-bit flash" ; \
1389 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1390 echo "... booting from 64-bit flash" ; \
1392 echo "export CONFIG_BOOT_ROM" >> config.mk;
1395 ep8248E_config : unconfig
1396 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1398 ep8260_config: unconfig
1399 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1401 ep82xxm_config: unconfig
1402 @./mkconfig $(@:_config=) ppc mpc8260 ep82xxm
1404 gw8260_config: unconfig
1405 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1407 hymod_config: unconfig
1408 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1410 IDS8247_config: unconfig
1411 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1413 IPHASE4539_config: unconfig
1414 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1417 ISPAN_REVB_config: unconfig
1418 @mkdir -p $(obj)include
1419 @if [ "$(findstring _REVB_,$@)" ] ; then \
1420 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1422 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1425 MPC8260ADS_lowboot_config \
1426 MPC8260ADS_33MHz_config \
1427 MPC8260ADS_33MHz_lowboot_config \
1428 MPC8260ADS_40MHz_config \
1429 MPC8260ADS_40MHz_lowboot_config \
1431 MPC8272ADS_lowboot_config \
1433 PQ2FADS_lowboot_config \
1435 PQ2FADS-VR_lowboot_config \
1437 PQ2FADS-ZU_lowboot_config \
1438 PQ2FADS-ZU_66MHz_config \
1439 PQ2FADS-ZU_66MHz_lowboot_config \
1441 @mkdir -p $(obj)include
1442 @mkdir -p $(obj)board/mpc8260ads
1443 $(if $(findstring PQ2FADS,$@), \
1444 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1445 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1446 $(if $(findstring MHz,$@), \
1447 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1448 $(if $(findstring VR,$@), \
1449 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1450 @[ -z "$(findstring lowboot_,$@)" ] || \
1451 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1452 echo "... with lowboot configuration" ; \
1454 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1456 MPC8266ADS_config: unconfig
1457 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1459 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1461 PM825_ROMBOOT_config \
1462 PM825_BIGFLASH_config \
1463 PM825_ROMBOOT_BIGFLASH_config \
1465 PM826_ROMBOOT_config \
1466 PM826_BIGFLASH_config \
1467 PM826_ROMBOOT_BIGFLASH_config: unconfig
1468 @mkdir -p $(obj)include
1469 @mkdir -p $(obj)board/pm826
1470 @if [ "$(findstring PM825_,$@)" ] ; then \
1471 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1473 >$(obj)include/config.h ; \
1475 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1476 echo "... booting from 8-bit flash" ; \
1477 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1478 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1479 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1480 echo "... with 32 MB Flash" ; \
1481 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1484 echo "... booting from 64-bit flash" ; \
1485 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1486 echo "... with 32 MB Flash" ; \
1487 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1488 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1490 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1493 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1497 PM828_ROMBOOT_config \
1498 PM828_ROMBOOT_PCI_config: unconfig
1499 @mkdir -p $(obj)include
1500 @mkdir -p $(obj)board/pm826
1501 @if [ "$(findstring _PCI_,$@)" ] ; then \
1502 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1503 echo "... with PCI enabled" ; \
1505 >$(obj)include/config.h ; \
1507 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1508 echo "... booting from 8-bit flash" ; \
1509 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1510 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1512 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1514 ppmc8260_config: unconfig
1515 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1517 Rattler8248_config \
1518 Rattler_config: unconfig
1519 @mkdir -p $(obj)include
1520 $(if $(findstring 8248,$@), \
1521 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1522 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1524 RPXsuper_config: unconfig
1525 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1527 rsdproto_config: unconfig
1528 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1530 sacsng_config: unconfig
1531 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1533 sbc8260_config: unconfig
1534 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1536 SCM_config: unconfig
1537 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1549 TQM8265_AA_config: unconfig
1550 @mkdir -p $(obj)include
1552 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1553 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1554 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1555 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1556 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1557 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1558 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1559 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1560 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1561 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1562 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1564 >$(obj)include/config.h ; \
1565 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1566 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1568 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1569 echo "... with $${CFREQ}MHz system clock" ; \
1570 if [ "$${CACHE}" == "yes" ] ; then \
1571 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1572 echo "... with L2 Cache support" ; \
1574 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1575 echo "... without L2 Cache support" ; \
1577 if [ "$${BMODE}" == "60x" ] ; then \
1578 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1579 echo "... with 60x Bus Mode" ; \
1581 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1582 echo "... without 60x Bus Mode" ; \
1584 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1586 TQM8272_config: unconfig
1587 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1589 VoVPN-GW_66MHz_config \
1590 VoVPN-GW_100MHz_config: unconfig
1591 @mkdir -p $(obj)include
1592 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1593 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1595 ZPC1900_config: unconfig
1596 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1598 #########################################################################
1600 #########################################################################
1602 cobra5272_config : unconfig
1603 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1605 EB+MCF-EV123_config : unconfig
1606 @mkdir -p $(obj)include
1607 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1608 @ >$(obj)include/config.h
1609 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1610 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1612 EB+MCF-EV123_internal_config : unconfig
1613 @mkdir -p $(obj)include
1614 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1615 @ >$(obj)include/config.h
1616 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1617 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1619 idmr_config : unconfig
1620 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1622 M5271EVB_config : unconfig
1623 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1625 M5272C3_config : unconfig
1626 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1628 M5282EVB_config : unconfig
1629 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1631 TASREG_config : unconfig
1632 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1634 r5200_config : unconfig
1635 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1637 #########################################################################
1639 #########################################################################
1641 MPC8313ERDB_33_config \
1642 MPC8313ERDB_66_config: unconfig
1643 @echo "" >include/config.h ; \
1644 if [ "$(findstring _33_,$@)" ] ; then \
1645 echo -n "...33M ..." ; \
1646 echo "#define CFG_33MHZ" >>include/config.h ; \
1648 if [ "$(findstring _66_,$@)" ] ; then \
1649 echo -n "...66M..." ; \
1650 echo "#define CFG_66MHZ" >>include/config.h ; \
1652 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
1654 MPC832XEMDS_config \
1655 MPC832XEMDS_HOST_33_config \
1656 MPC832XEMDS_HOST_66_config \
1657 MPC832XEMDS_SLAVE_config: unconfig
1658 @echo "" >include/config.h ; \
1659 if [ "$(findstring _HOST_,$@)" ] ; then \
1660 echo -n "... PCI HOST " ; \
1661 echo "#define CONFIG_PCI" >>include/config.h ; \
1663 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1664 echo "...PCI SLAVE 66M" ; \
1665 echo "#define CONFIG_PCI" >>include/config.h ; \
1666 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1668 if [ "$(findstring _33_,$@)" ] ; then \
1669 echo -n "...33M ..." ; \
1670 echo "#define PCI_33M" >>include/config.h ; \
1672 if [ "$(findstring _66_,$@)" ] ; then \
1673 echo -n "...66M..." ; \
1674 echo "#define PCI_66M" >>include/config.h ; \
1676 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1678 MPC8349EMDS_config: unconfig
1679 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1682 MPC8349ITX_LOWBOOT_config \
1683 MPC8349ITXGP_config: unconfig
1684 @mkdir -p $(obj)include
1685 @mkdir -p $(obj)board/mpc8349itx
1686 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1687 @if [ "$(findstring GP,$@)" ] ; then \
1688 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1690 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1691 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1693 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
1695 MPC8360EMDS_config \
1696 MPC8360EMDS_HOST_33_config \
1697 MPC8360EMDS_HOST_66_config \
1698 MPC8360EMDS_SLAVE_config: unconfig
1699 @echo "" >include/config.h ; \
1700 if [ "$(findstring _HOST_,$@)" ] ; then \
1701 echo -n "... PCI HOST " ; \
1702 echo "#define CONFIG_PCI" >>include/config.h ; \
1704 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1705 echo "...PCI SLAVE 66M" ; \
1706 echo "#define CONFIG_PCI" >>include/config.h ; \
1707 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1709 if [ "$(findstring _33_,$@)" ] ; then \
1710 echo -n "...33M ..." ; \
1711 echo "#define PCI_33M" >>include/config.h ; \
1713 if [ "$(findstring _66_,$@)" ] ; then \
1714 echo -n "...66M..." ; \
1715 echo "#define PCI_66M" >>include/config.h ; \
1717 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1719 sbc8349_config: unconfig
1720 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1722 TQM834x_config: unconfig
1723 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1726 #########################################################################
1728 #########################################################################
1730 MPC8540ADS_config: unconfig
1731 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1733 MPC8540EVAL_config \
1734 MPC8540EVAL_33_config \
1735 MPC8540EVAL_66_config \
1736 MPC8540EVAL_33_slave_config \
1737 MPC8540EVAL_66_slave_config: unconfig
1738 @mkdir -p $(obj)include
1739 @echo "" >$(obj)include/config.h ; \
1740 if [ "$(findstring _33_,$@)" ] ; then \
1741 echo -n "... 33 MHz PCI" ; \
1743 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1744 echo -n "... 66 MHz PCI" ; \
1746 if [ "$(findstring _slave_,$@)" ] ; then \
1747 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1752 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1754 MPC8560ADS_config: unconfig
1755 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1757 MPC8541CDS_config: unconfig
1758 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1760 MPC8544DS_config: unconfig
1761 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1763 MPC8548CDS_config: unconfig
1764 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1766 MPC8555CDS_config: unconfig
1767 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1769 MPC8568MDS_config: unconfig
1770 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1772 PM854_config: unconfig
1773 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1775 PM856_config: unconfig
1776 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1780 sbc8540_66_config: unconfig
1781 @mkdir -p $(obj)include
1782 @if [ "$(findstring _66_,$@)" ] ; then \
1783 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1784 echo "... 66 MHz PCI" ; \
1786 >$(obj)include/config.h ; \
1787 echo "... 33 MHz PCI" ; \
1789 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1793 sbc8560_66_config: unconfig
1794 @mkdir -p $(obj)include
1795 @if [ "$(findstring _66_,$@)" ] ; then \
1796 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1797 echo "... 66 MHz PCI" ; \
1799 >$(obj)include/config.h ; \
1800 echo "... 33 MHz PCI" ; \
1802 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1804 stxgp3_config: unconfig
1805 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1808 stxssa_4M_config: unconfig
1809 @mkdir -p $(obj)include
1810 @if [ "$(findstring _4M_,$@)" ] ; then \
1811 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
1812 echo "... with 4 MiB flash memory" ; \
1814 >$(obj)include/config.h ; \
1816 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
1821 TQM8560_config: unconfig
1822 @mkdir -p $(obj)include
1823 @CTYPE=$(subst TQM,,$(@:_config=)); \
1824 >$(obj)include/config.h ; \
1825 echo "... TQM"$${CTYPE}; \
1826 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1827 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1828 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1829 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1830 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1831 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1833 #########################################################################
1835 #########################################################################
1837 MPC8641HPCN_config: unconfig
1838 @./mkconfig $(@:_config=) ppc mpc86xx mpc8641hpcn
1841 #########################################################################
1843 #########################################################################
1845 AmigaOneG3SE_config: unconfig
1846 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1848 BAB7xx_config: unconfig
1849 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1851 CPCI750_config: unconfig
1852 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1854 DB64360_config: unconfig
1855 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1857 DB64460_config: unconfig
1858 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1860 ELPPC_config: unconfig
1861 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1864 EVB64260_750CX_config: unconfig
1865 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1867 mpc7448hpc2_config: unconfig
1868 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
1870 P3G4_config: unconfig
1871 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1874 p3m7448_config: unconfig
1875 @mkdir -p $(obj)include
1876 @if [ "$(findstring 750_,$@)" ] ; then \
1877 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1879 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1881 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1884 PCIPPC6_config: unconfig
1885 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1887 ZUMA_config: unconfig
1888 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1890 ppmc7xx_config: unconfig
1891 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1893 #========================================================================
1895 #========================================================================
1896 #########################################################################
1897 ## StrongARM Systems
1898 #########################################################################
1900 assabet_config : unconfig
1901 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1903 dnp1110_config : unconfig
1904 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1906 gcplus_config : unconfig
1907 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1909 lart_config : unconfig
1910 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1912 shannon_config : unconfig
1913 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1915 #########################################################################
1917 #########################################################################
1919 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1921 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1923 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1925 at91rm9200dk_config : unconfig
1926 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1928 cmc_pu2_config : unconfig
1929 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1931 csb637_config : unconfig
1932 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1934 mp2usb_config : unconfig
1935 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1938 ########################################################################
1939 ## ARM Integrator boards - see doc/README-integrator for more info.
1940 integratorap_config \
1949 ap946es_config: unconfig
1950 @board/integratorap/split_by_variant.sh $@
1952 integratorcp_config \
1961 cp1026_config: unconfig
1962 @board/integratorcp/split_by_variant.sh $@
1964 kb9202_config : unconfig
1965 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1968 lpd7a404_config: unconfig
1969 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1971 mx1ads_config : unconfig
1972 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1974 mx1fs2_config : unconfig
1975 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
1978 netstar_config: unconfig
1979 @mkdir -p $(obj)include
1980 @if [ "$(findstring _32_,$@)" ] ; then \
1981 echo "... 32MB SDRAM" ; \
1982 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
1984 echo "... 64MB SDRAM" ; \
1985 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
1987 @$(MKCONFIG) -a netstar arm arm925t netstar
1989 omap1510inn_config : unconfig
1990 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
1992 omap5912osk_config : unconfig
1993 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
1995 omap1610inn_config \
1996 omap1610inn_cs0boot_config \
1997 omap1610inn_cs3boot_config \
1998 omap1610inn_cs_autoboot_config \
2000 omap1610h2_cs0boot_config \
2001 omap1610h2_cs3boot_config \
2002 omap1610h2_cs_autoboot_config: unconfig
2003 @mkdir -p $(obj)include
2004 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2005 echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
2006 echo "... configured for CS0 boot"; \
2007 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2008 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
2009 echo "... configured for CS_AUTO boot"; \
2011 echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
2012 echo "... configured for CS3 boot"; \
2014 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
2017 omap730p2_cs0boot_config \
2018 omap730p2_cs3boot_config : unconfig
2019 @mkdir -p $(obj)include
2020 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2021 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2022 echo "... configured for CS0 boot"; \
2024 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2025 echo "... configured for CS3 boot"; \
2027 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2029 sbc2410x_config: unconfig
2030 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2032 scb9328_config : unconfig
2033 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2035 smdk2400_config : unconfig
2036 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2038 smdk2410_config : unconfig
2039 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2041 SX1_config : unconfig
2042 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2044 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2046 trab_bigram_config \
2047 trab_bigflash_config \
2048 trab_old_config: unconfig
2049 @mkdir -p $(obj)include
2050 @mkdir -p $(obj)board/trab
2051 @ >$(obj)include/config.h
2052 @[ -z "$(findstring _bigram,$@)" ] || \
2053 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2054 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2055 echo "... with 8 MB Flash, 32 MB RAM" ; \
2057 @[ -z "$(findstring _bigflash,$@)" ] || \
2058 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2059 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2060 echo "... with 16 MB Flash, 16 MB RAM" ; \
2061 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2063 @[ -z "$(findstring _old,$@)" ] || \
2064 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2065 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2066 echo "... with 8 MB Flash, 16 MB RAM" ; \
2067 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2069 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2071 VCMA9_config : unconfig
2072 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2074 #========================================================================
2075 # ARM supplied Versatile development boards
2076 #========================================================================
2078 versatileab_config \
2079 versatilepb_config : unconfig
2080 @board/versatile/split_by_variant.sh $@
2082 voiceblue_smallflash_config \
2083 voiceblue_config: unconfig
2084 @mkdir -p $(obj)include
2085 @mkdir -p $(obj)board/voiceblue
2086 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2087 echo "... boot from lower flash bank" ; \
2088 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2089 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2091 echo "... boot from upper flash bank" ; \
2092 >$(obj)include/config.h ; \
2093 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2095 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2097 cm4008_config : unconfig
2098 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2100 cm41xx_config : unconfig
2101 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2103 gth2_config : unconfig
2104 @mkdir -p $(obj)include
2105 @ >$(obj)include/config.h
2106 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2107 @$(MKCONFIG) -a gth2 mips mips gth2
2109 #########################################################################
2111 #########################################################################
2113 B2_config : unconfig
2114 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2116 #########################################################################
2118 #########################################################################
2120 armadillo_config: unconfig
2121 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2123 ep7312_config : unconfig
2124 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2126 impa7_config : unconfig
2127 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2129 modnet50_config : unconfig
2130 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2132 evb4510_config : unconfig
2133 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2135 lpc2292sodimm_config: unconfig
2136 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm
2138 #########################################################################
2140 #########################################################################
2142 adsvix_config : unconfig
2143 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2145 cerf250_config : unconfig
2146 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2148 cradle_config : unconfig
2149 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2151 csb226_config : unconfig
2152 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2155 @$(MKCONFIG) $(@:_config=) arm pxa delta
2157 innokom_config : unconfig
2158 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2160 ixdp425_config : unconfig
2161 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2163 ixdpg425_config : unconfig
2164 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2166 lubbock_config : unconfig
2167 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2169 pleb2_config : unconfig
2170 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2172 logodl_config : unconfig
2173 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2176 scpu_config: unconfig
2177 @if [ "$(findstring scpu_,$@)" ] ; then \
2178 echo "#define CONFIG_SCPU" >>include/config.h ; \
2179 echo "... on SCPU board variant" ; \
2181 >include/config.h ; \
2183 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2185 pxa255_idp_config: unconfig
2186 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2188 wepep250_config : unconfig
2189 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2191 xaeniax_config : unconfig
2192 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2194 xm250_config : unconfig
2195 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2197 xsengine_config : unconfig
2198 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2201 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2203 #########################################################################
2205 #########################################################################
2206 omap2420h4_config : unconfig
2207 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2209 #========================================================================
2211 #========================================================================
2212 #########################################################################
2214 #########################################################################
2215 sc520_cdp_config : unconfig
2216 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2218 sc520_spunk_config : unconfig
2219 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2221 sc520_spunk_rel_config : unconfig
2222 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2224 #========================================================================
2226 #========================================================================
2227 #########################################################################
2229 #########################################################################
2231 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2233 incaip_100MHz_config \
2234 incaip_133MHz_config \
2235 incaip_150MHz_config \
2236 incaip_config: unconfig
2237 @mkdir -p $(obj)include
2238 @ >$(obj)include/config.h
2239 @[ -z "$(findstring _100MHz,$@)" ] || \
2240 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2241 echo "... with 100MHz system clock" ; \
2243 @[ -z "$(findstring _133MHz,$@)" ] || \
2244 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2245 echo "... with 133MHz system clock" ; \
2247 @[ -z "$(findstring _150MHz,$@)" ] || \
2248 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2249 echo "... with 150MHz system clock" ; \
2251 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2253 tb0229_config: unconfig
2254 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2256 #########################################################################
2258 #########################################################################
2259 dbau1000_config : unconfig
2260 @mkdir -p $(obj)include
2261 @ >$(obj)include/config.h
2262 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2263 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2265 dbau1100_config : unconfig
2266 @mkdir -p $(obj)include
2267 @ >$(obj)include/config.h
2268 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2269 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2271 dbau1500_config : unconfig
2272 @mkdir -p $(obj)include
2273 @ >$(obj)include/config.h
2274 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2275 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2277 dbau1550_config : unconfig
2278 @mkdir -p $(obj)include
2279 @ >$(obj)include/config.h
2280 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2281 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2283 dbau1550_el_config : unconfig
2284 @mkdir -p $(obj)include
2285 @ >$(obj)include/config.h
2286 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2287 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2289 pb1000_config : unconfig
2290 @mkdir -p $(obj)include
2291 @ >$(obj)include/config.h
2292 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2293 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2295 #########################################################################
2297 #########################################################################
2299 purple_config : unconfig
2300 @$(MKCONFIG) $(@:_config=) mips mips purple
2302 #========================================================================
2304 #========================================================================
2305 #########################################################################
2307 #########################################################################
2309 DK1C20_safe_32_config \
2310 DK1C20_standard_32_config \
2311 DK1C20_config: unconfig
2312 @mkdir -p $(obj)include
2313 @ >$(obj)include/config.h
2314 @[ -z "$(findstring _safe_32,$@)" ] || \
2315 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2316 echo "... NIOS 'safe_32' configuration" ; \
2318 @[ -z "$(findstring _standard_32,$@)" ] || \
2319 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2320 echo "... NIOS 'standard_32' configuration" ; \
2322 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2323 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2324 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2326 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2328 DK1S10_safe_32_config \
2329 DK1S10_standard_32_config \
2330 DK1S10_mtx_ldk_20_config \
2331 DK1S10_config: unconfig
2332 @mkdir -p $(obj)include
2333 @ >$(obj)include/config.h
2334 @[ -z "$(findstring _safe_32,$@)" ] || \
2335 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2336 echo "... NIOS 'safe_32' configuration" ; \
2338 @[ -z "$(findstring _standard_32,$@)" ] || \
2339 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2340 echo "... NIOS 'standard_32' configuration" ; \
2342 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2343 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2344 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2346 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2347 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2348 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2350 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2352 ADNPESC1_DNPEVA2_base_32_config \
2353 ADNPESC1_base_32_config \
2354 ADNPESC1_config: unconfig
2355 @mkdir -p $(obj)include
2356 @ >$(obj)include/config.h
2357 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2358 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2359 echo "... DNP/EVA2 configuration" ; \
2361 @[ -z "$(findstring _base_32,$@)" ] || \
2362 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2363 echo "... NIOS 'base_32' configuration" ; \
2365 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2366 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2367 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2369 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2371 #########################################################################
2373 #########################################################################
2375 EP1C20_config : unconfig
2376 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2378 EP1S10_config : unconfig
2379 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2381 EP1S40_config : unconfig
2382 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2384 PK1C20_config : unconfig
2385 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2387 PCI5441_config : unconfig
2388 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2390 #========================================================================
2392 #========================================================================
2393 #########################################################################
2395 #########################################################################
2396 suzaku_config: unconfig
2397 @mkdir -p $(obj)include
2398 @ >$(obj)include/config.h
2399 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2400 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2402 ml401_config: unconfig
2404 @echo "#define CONFIG_ML401 1" >> include/config.h
2405 @./mkconfig -a $(@:_config=) microblaze microblaze ml401 xilinx
2407 xupv2p_config: unconfig
2409 @echo "#define CONFIG_XUPV2P 1" >> include/config.h
2410 @./mkconfig -a $(@:_config=) microblaze microblaze xupv2p xilinx
2412 #########################################################################
2414 #########################################################################
2415 bf533-ezkit_config: unconfig
2416 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2418 bf533-stamp_config: unconfig
2419 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2421 bf537-stamp_config: unconfig
2422 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2424 bf561-ezkit_config: unconfig
2425 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2427 #========================================================================
2429 #========================================================================
2430 #########################################################################
2432 #########################################################################
2434 atstk1002_config : unconfig
2435 @./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2437 #########################################################################
2438 #########################################################################
2439 #########################################################################
2442 find $(OBJTREE) -type f \
2443 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2444 -o -name '*.o' -o -name '*.a' \) -print \
2446 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2447 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2448 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2449 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2450 $(obj)examples/test_burst
2451 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2452 $(obj)tools/gen_eth_addr
2453 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2454 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2455 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2456 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2457 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2458 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2459 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2460 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2461 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2462 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2463 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2464 rm -f $(obj)include/bmp_logo.h
2465 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2468 find $(OBJTREE) -type f \( -name .depend \
2469 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2472 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2474 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2475 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
2476 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2477 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2478 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2480 ifeq ($(OBJTREE),$(SRCTREE))
2482 distclean: clobber unconfig
2485 distclean: clobber unconfig
2490 F=`basename $(TOPDIR)` ; cd .. ; \
2491 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2493 #########################################################################