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 = powerpc-linux-
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
652 FADS860T_config: unconfig
653 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
655 AMX860_config : unconfig
656 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
658 c2mon_config: unconfig
659 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
662 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
664 cogent_mpc8xx_config: unconfig
665 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
667 ELPT860_config: unconfig
668 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
670 EP88x_config: unconfig
671 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
673 ESTEEM192E_config: unconfig
674 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
676 ETX094_config : unconfig
677 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
679 FLAGADM_config: unconfig
680 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
682 xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
685 GEN860T_config: unconfig
686 @mkdir -p $(obj)include
687 @ >$(obj)include/config.h
688 @[ -z "$(findstring _SC,$@)" ] || \
689 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
690 echo "With reduced H/W feature set (SC)..." ; \
692 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
694 GENIETV_config: unconfig
695 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
698 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
700 hermes_config : unconfig
701 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
703 HMI10_config : unconfig
704 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
706 IAD210_config: unconfig
707 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
709 xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
711 ICU862_100MHz_config \
712 ICU862_config: unconfig
713 @mkdir -p $(obj)include
714 @ >$(obj)include/config.h
715 @[ -z "$(findstring _100MHz,$@)" ] || \
716 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
717 echo "... with 100MHz system clock" ; \
719 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
721 IP860_config : unconfig
722 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
726 IVML24_config: unconfig
727 @mkdir -p $(obj)include
728 @ >$(obj)include/config.h
729 @[ -z "$(findstring IVML24_config,$@)" ] || \
730 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
732 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
733 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
735 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
736 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
738 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
742 IVMS8_config: unconfig
743 @mkdir -p $(obj)include
744 @ >$(obj)include/config.h
745 @[ -z "$(findstring IVMS8_config,$@)" ] || \
746 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
748 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
749 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
751 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
752 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
754 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
756 KUP4K_config : unconfig
757 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
759 KUP4X_config : unconfig
760 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
762 LANTEC_config : unconfig
763 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
765 lwmon_config: unconfig
766 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
769 MBX860T_config: unconfig
770 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
772 MHPC_config: unconfig
773 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
775 MVS1_config : unconfig
776 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
778 xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
781 NETVIA_config: unconfig
782 @mkdir -p $(obj)include
783 @ >$(obj)include/config.h
784 @[ -z "$(findstring NETVIA_config,$@)" ] || \
785 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
786 echo "... Version 1" ; \
788 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
789 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
790 echo "... Version 2" ; \
792 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
794 xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
797 NETPHONE_config: unconfig
798 @mkdir -p $(obj)include
799 @ >$(obj)include/config.h
800 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
801 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
803 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
804 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
806 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
808 xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
810 NETTA_ISDN_6412_SWAPHOOK_config \
811 NETTA_ISDN_SWAPHOOK_config \
812 NETTA_6412_SWAPHOOK_config \
813 NETTA_SWAPHOOK_config \
814 NETTA_ISDN_6412_config \
817 NETTA_config: unconfig
818 @mkdir -p $(obj)include
819 @ >$(obj)include/config.h
820 @[ -z "$(findstring ISDN_,$@)" ] || \
821 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
823 @[ -n "$(findstring ISDN_,$@)" ] || \
824 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
826 @[ -z "$(findstring 6412_,$@)" ] || \
827 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
829 @[ -n "$(findstring 6412_,$@)" ] || \
830 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
832 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
833 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
835 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
836 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
838 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
840 xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
843 NETTA2_config: unconfig
844 @mkdir -p $(obj)include
845 @ >$(obj)include/config.h
846 @[ -z "$(findstring NETTA2_config,$@)" ] || \
847 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
849 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
850 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
852 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
856 CP850_config: unconfig
857 @mkdir -p $(obj)include
858 @ >$(obj)include/config.h
859 @[ -z "$(findstring CP850,$@)" ] || \
860 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
861 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
863 @[ -z "$(findstring Rev1,$@)" ] || \
864 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
866 @[ -z "$(findstring Rev2,$@)" ] || \
867 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
869 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
871 NX823_config: unconfig
872 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
874 pcu_e_config: unconfig
875 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
877 QS850_config: unconfig
878 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
880 QS823_config: unconfig
881 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
883 QS860T_config: unconfig
884 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
886 quantum_config: unconfig
887 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
889 R360MPI_config: unconfig
890 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
892 RBC823_config: unconfig
893 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
895 RPXClassic_config: unconfig
896 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
898 RPXlite_config: unconfig
899 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
901 RPXlite_DW_64_config \
902 RPXlite_DW_LCD_config \
903 RPXlite_DW_64_LCD_config \
904 RPXlite_DW_NVRAM_config \
905 RPXlite_DW_NVRAM_64_config \
906 RPXlite_DW_NVRAM_LCD_config \
907 RPXlite_DW_NVRAM_64_LCD_config \
908 RPXlite_DW_config: unconfig
909 @mkdir -p $(obj)include
910 @ >$(obj)include/config.h
911 @[ -z "$(findstring _64,$@)" ] || \
912 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
913 echo "... with 64MHz system clock ..."; \
915 @[ -z "$(findstring _LCD,$@)" ] || \
916 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
917 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
918 echo "... with LCD display ..."; \
920 @[ -z "$(findstring _NVRAM,$@)" ] || \
921 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
922 echo "... with ENV in NVRAM ..."; \
924 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
927 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
929 RRvision_config: unconfig
930 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
932 RRvision_LCD_config: unconfig
933 @mkdir -p $(obj)include
934 @echo "#define CONFIG_LCD" >$(obj)include/config.h
935 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
936 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
938 SM850_config : unconfig
939 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
942 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
944 SPD823TS_config: unconfig
945 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
947 stxxtc_config: unconfig
948 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
950 svm_sc8xx_config: unconfig
951 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
953 SXNI855T_config: unconfig
954 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
956 # EMK MPC8xx based modules
957 TOP860_config: unconfig
958 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
960 # Play some tricks for configuration selection
961 # Only 855 and 860 boards may come with FEC
962 # and only 823 boards may have LCD support
963 xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
981 virtlab2_config: unconfig
982 @mkdir -p $(obj)include
983 @ >$(obj)include/config.h
984 @[ -z "$(findstring _LCD,$@)" ] || \
985 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
986 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
987 echo "... with LCD display" ; \
989 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
991 TTTech_config: unconfig
992 @mkdir -p $(obj)include
993 @echo "#define CONFIG_LCD" >$(obj)include/config.h
994 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
995 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
997 uc100_config : unconfig
998 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1000 v37_config: unconfig
1001 @mkdir -p $(obj)include
1002 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1003 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1004 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1006 wtk_config: unconfig
1007 @mkdir -p $(obj)include
1008 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1009 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1010 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
1012 #########################################################################
1014 #########################################################################
1015 xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
1017 acadia_config: unconfig
1018 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1020 ADCIOP_config: unconfig
1021 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
1023 alpr_config: unconfig
1024 @./mkconfig $(@:_config=) ppc ppc4xx alpr prodrive
1026 AP1000_config:unconfig
1027 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1029 APC405_config: unconfig
1030 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1032 AR405_config: unconfig
1033 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1035 ASH405_config: unconfig
1036 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1038 bamboo_config: unconfig
1039 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1041 bubinga_config: unconfig
1042 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1044 CANBT_config: unconfig
1045 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1048 CATcenter_25_config \
1049 CATcenter_33_config: unconfig
1050 @mkdir -p $(obj)include
1051 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1052 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1053 @[ -z "$(findstring _25,$@)" ] || \
1054 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1055 echo "SysClk = 25MHz" ; \
1057 @[ -z "$(findstring _33,$@)" ] || \
1058 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1059 echo "SysClk = 33MHz" ; \
1061 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1063 CPCI2DP_config: unconfig
1064 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1069 CPCI405AB_config: unconfig
1070 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1071 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
1073 CPCI440_config: unconfig
1074 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1076 CPCIISER4_config: unconfig
1077 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1079 CRAYL1_config: unconfig
1080 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1082 csb272_config: unconfig
1083 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1085 csb472_config: unconfig
1086 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1088 DASA_SIM_config: unconfig
1089 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1091 DP405_config: unconfig
1092 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1094 DU405_config: unconfig
1095 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1097 ebony_config: unconfig
1098 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1100 ERIC_config: unconfig
1101 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1103 EXBITGEN_config: unconfig
1104 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1106 G2000_config: unconfig
1107 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1109 HH405_config: unconfig
1110 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1112 HUB405_config: unconfig
1113 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1115 JSE_config: unconfig
1116 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1118 KAREF_config: unconfig
1119 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1121 katmai_config: unconfig
1122 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1124 luan_config: unconfig
1125 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1127 METROBOX_config: unconfig
1128 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1130 MIP405_config: unconfig
1131 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1133 MIP405T_config: unconfig
1134 @mkdir -p $(obj)include
1135 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1136 @echo "Enable subset config for MIP405T"
1137 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1139 ML2_config: unconfig
1140 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1142 ml300_config: unconfig
1143 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1145 ocotea_config: unconfig
1146 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1149 ORSG_config: unconfig
1150 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1152 p3p440_config: unconfig
1153 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1155 PCI405_config: unconfig
1156 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1158 pcs440ep_config: unconfig
1159 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1161 PIP405_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1164 PLU405_config: unconfig
1165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1167 PMC405_config: unconfig
1168 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1170 PPChameleonEVB_config \
1171 PPChameleonEVB_BA_25_config \
1172 PPChameleonEVB_ME_25_config \
1173 PPChameleonEVB_HI_25_config \
1174 PPChameleonEVB_BA_33_config \
1175 PPChameleonEVB_ME_33_config \
1176 PPChameleonEVB_HI_33_config: unconfig
1177 @mkdir -p $(obj)include
1178 @ >$(obj)include/config.h
1179 @[ -z "$(findstring EVB_BA,$@)" ] || \
1180 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1181 echo "... BASIC model" ; \
1183 @[ -z "$(findstring EVB_ME,$@)" ] || \
1184 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1185 echo "... MEDIUM model" ; \
1187 @[ -z "$(findstring EVB_HI,$@)" ] || \
1188 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1189 echo "... HIGH-END model" ; \
1191 @[ -z "$(findstring _25,$@)" ] || \
1192 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1193 echo "SysClk = 25MHz" ; \
1195 @[ -z "$(findstring _33,$@)" ] || \
1196 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1197 echo "SysClk = 33MHz" ; \
1199 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1201 sbc405_config: unconfig
1202 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1205 rainier_config: unconfig
1206 @mkdir -p $(obj)include
1207 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1208 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1209 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1211 sequoia_nand_config \
1212 rainier_nand_config: unconfig
1213 @mkdir -p $(obj)include
1214 @mkdir -p $(obj)nand_spl
1215 @mkdir -p $(obj)board/amcc/sequoia
1216 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1217 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1218 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1219 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1220 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1221 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1224 @./mkconfig $(@:_config=) ppc ppc4xx sc3
1226 taishan_config: unconfig
1227 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1229 VOH405_config: unconfig
1230 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1232 VOM405_config: unconfig
1233 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1235 CMS700_config: unconfig
1236 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1239 W7OLMG_config: unconfig
1240 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1242 # Walnut & Sycamore images are identical (recognized via PVR)
1244 sycamore_config: unconfig
1245 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1247 WUH405_config: unconfig
1248 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1250 XPEDITE1K_config: unconfig
1251 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1254 yellowstone_config: unconfig
1255 @mkdir -p $(obj)include
1256 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1257 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1258 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1260 yucca_config: unconfig
1261 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1263 #########################################################################
1265 #########################################################################
1268 Yukon8220_config: unconfig
1269 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1271 sorcery_config: unconfig
1272 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1274 #########################################################################
1276 #########################################################################
1277 xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1279 A3000_config: unconfig
1280 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1282 barco_config: unconfig
1283 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1285 BMW_config: unconfig
1286 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1289 CPC45_ROMBOOT_config: unconfig
1290 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1291 @cd $(obj)include ; \
1292 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1293 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1294 echo "... booting from 8-bit flash" ; \
1296 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1297 echo "... booting from 64-bit flash" ; \
1299 echo "export CONFIG_BOOT_ROM" >> config.mk;
1301 CU824_config: unconfig
1302 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1304 debris_config: unconfig
1305 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1307 eXalion_config: unconfig
1308 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1310 HIDDEN_DRAGON_config: unconfig
1311 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1313 kvme080_config: unconfig
1314 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1316 MOUSSE_config: unconfig
1317 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1319 MUSENKI_config: unconfig
1320 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1322 MVBLUE_config: unconfig
1323 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1325 OXC_config: unconfig
1326 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1328 PN62_config: unconfig
1329 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1331 Sandpoint8240_config: unconfig
1332 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1334 Sandpoint8245_config: unconfig
1335 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1337 sbc8240_config: unconfig
1338 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1340 SL8245_config: unconfig
1341 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1343 utx8245_config: unconfig
1344 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1346 #########################################################################
1348 #########################################################################
1350 atc_config: unconfig
1351 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1353 cogent_mpc8260_config: unconfig
1354 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1357 CPU86_ROMBOOT_config: unconfig
1358 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1359 @cd $(obj)include ; \
1360 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1361 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1362 echo "... booting from 8-bit flash" ; \
1364 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1365 echo "... booting from 64-bit flash" ; \
1367 echo "export CONFIG_BOOT_ROM" >> config.mk;
1370 CPU87_ROMBOOT_config: unconfig
1371 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1372 @cd $(obj)include ; \
1373 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1374 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1375 echo "... booting from 8-bit flash" ; \
1377 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1378 echo "... booting from 64-bit flash" ; \
1380 echo "export CONFIG_BOOT_ROM" >> config.mk;
1383 ep8248E_config : unconfig
1384 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1386 ep8260_config: unconfig
1387 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1389 ep82xxm_config: unconfig
1390 @./mkconfig $(@:_config=) ppc mpc8260 ep82xxm
1392 gw8260_config: unconfig
1393 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1395 hymod_config: unconfig
1396 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1398 IDS8247_config: unconfig
1399 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1401 IPHASE4539_config: unconfig
1402 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1405 ISPAN_REVB_config: unconfig
1406 @mkdir -p $(obj)include
1407 @if [ "$(findstring _REVB_,$@)" ] ; then \
1408 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1410 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1413 MPC8260ADS_lowboot_config \
1414 MPC8260ADS_33MHz_config \
1415 MPC8260ADS_33MHz_lowboot_config \
1416 MPC8260ADS_40MHz_config \
1417 MPC8260ADS_40MHz_lowboot_config \
1419 MPC8272ADS_lowboot_config \
1421 PQ2FADS_lowboot_config \
1423 PQ2FADS-VR_lowboot_config \
1425 PQ2FADS-ZU_lowboot_config \
1426 PQ2FADS-ZU_66MHz_config \
1427 PQ2FADS-ZU_66MHz_lowboot_config \
1429 @mkdir -p $(obj)include
1430 @mkdir -p $(obj)board/mpc8260ads
1431 $(if $(findstring PQ2FADS,$@), \
1432 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1433 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1434 $(if $(findstring MHz,$@), \
1435 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1436 $(if $(findstring VR,$@), \
1437 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1438 @[ -z "$(findstring lowboot_,$@)" ] || \
1439 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1440 echo "... with lowboot configuration" ; \
1442 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1444 MPC8266ADS_config: unconfig
1445 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1447 # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
1449 PM825_ROMBOOT_config \
1450 PM825_BIGFLASH_config \
1451 PM825_ROMBOOT_BIGFLASH_config \
1453 PM826_ROMBOOT_config \
1454 PM826_BIGFLASH_config \
1455 PM826_ROMBOOT_BIGFLASH_config: unconfig
1456 @mkdir -p $(obj)include
1457 @mkdir -p $(obj)board/pm826
1458 @if [ "$(findstring PM825_,$@)" ] ; then \
1459 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
1461 >$(obj)include/config.h ; \
1463 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1464 echo "... booting from 8-bit flash" ; \
1465 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1466 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1467 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1468 echo "... with 32 MB Flash" ; \
1469 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1472 echo "... booting from 64-bit flash" ; \
1473 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1474 echo "... with 32 MB Flash" ; \
1475 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1476 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1478 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1481 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1485 PM828_ROMBOOT_config \
1486 PM828_ROMBOOT_PCI_config: unconfig
1487 @mkdir -p $(obj)include
1488 @mkdir -p $(obj)board/pm826
1489 @if [ "$(findstring _PCI_,$@)" ] ; then \
1490 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1491 echo "... with PCI enabled" ; \
1493 >$(obj)include/config.h ; \
1495 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1496 echo "... booting from 8-bit flash" ; \
1497 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1498 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1500 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1502 ppmc8260_config: unconfig
1503 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1505 Rattler8248_config \
1506 Rattler_config: unconfig
1507 @mkdir -p $(obj)include
1508 $(if $(findstring 8248,$@), \
1509 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1510 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1512 RPXsuper_config: unconfig
1513 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1515 rsdproto_config: unconfig
1516 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1518 sacsng_config: unconfig
1519 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1521 sbc8260_config: unconfig
1522 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1524 SCM_config: unconfig
1525 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1537 TQM8265_AA_config: unconfig
1538 @mkdir -p $(obj)include
1540 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1541 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1542 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1543 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1544 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1545 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1546 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1547 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1548 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1549 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1550 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1552 >$(obj)include/config.h ; \
1553 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1554 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
1556 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
1557 echo "... with $${CFREQ}MHz system clock" ; \
1558 if [ "$${CACHE}" == "yes" ] ; then \
1559 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1560 echo "... with L2 Cache support" ; \
1562 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
1563 echo "... without L2 Cache support" ; \
1565 if [ "$${BMODE}" == "60x" ] ; then \
1566 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1567 echo "... with 60x Bus Mode" ; \
1569 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1570 echo "... without 60x Bus Mode" ; \
1572 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1574 TQM8272_config: unconfig
1575 @$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1577 VoVPN-GW_66MHz_config \
1578 VoVPN-GW_100MHz_config: unconfig
1579 @mkdir -p $(obj)include
1580 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1581 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1583 ZPC1900_config: unconfig
1584 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1586 #########################################################################
1588 #########################################################################
1590 cobra5272_config : unconfig
1591 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1593 EB+MCF-EV123_config : unconfig
1594 @mkdir -p $(obj)include
1595 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1596 @ >$(obj)include/config.h
1597 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1598 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1600 EB+MCF-EV123_internal_config : unconfig
1601 @mkdir -p $(obj)include
1602 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1603 @ >$(obj)include/config.h
1604 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1605 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1607 idmr_config : unconfig
1608 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1610 M5271EVB_config : unconfig
1611 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1613 M5272C3_config : unconfig
1614 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1616 M5282EVB_config : unconfig
1617 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1619 TASREG_config : unconfig
1620 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1622 r5200_config : unconfig
1623 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1625 #########################################################################
1627 #########################################################################
1629 MPC8313ERDB_33_config \
1630 MPC8313ERDB_66_config: unconfig
1631 @echo "" >include/config.h ; \
1632 if [ "$(findstring _33_,$@)" ] ; then \
1633 echo -n "...33M ..." ; \
1634 echo "#define CFG_33MHZ" >>include/config.h ; \
1636 if [ "$(findstring _66_,$@)" ] ; then \
1637 echo -n "...66M..." ; \
1638 echo "#define CFG_66MHZ" >>include/config.h ; \
1640 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
1642 MPC832XEMDS_config \
1643 MPC832XEMDS_HOST_33_config \
1644 MPC832XEMDS_HOST_66_config \
1645 MPC832XEMDS_SLAVE_config: unconfig
1646 @echo "" >include/config.h ; \
1647 if [ "$(findstring _HOST_,$@)" ] ; then \
1648 echo -n "... PCI HOST " ; \
1649 echo "#define CONFIG_PCI" >>include/config.h ; \
1651 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1652 echo "...PCI SLAVE 66M" ; \
1653 echo "#define CONFIG_PCI" >>include/config.h ; \
1654 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1656 if [ "$(findstring _33_,$@)" ] ; then \
1657 echo -n "...33M ..." ; \
1658 echo "#define PCI_33M" >>include/config.h ; \
1660 if [ "$(findstring _66_,$@)" ] ; then \
1661 echo -n "...66M..." ; \
1662 echo "#define PCI_66M" >>include/config.h ; \
1664 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1666 MPC8349EMDS_config: unconfig
1667 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1670 MPC8349ITX_LOWBOOT_config \
1671 MPC8349ITXGP_config: unconfig
1672 @mkdir -p $(obj)include
1673 @mkdir -p $(obj)board/mpc8349itx
1674 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1675 @if [ "$(findstring GP,$@)" ] ; then \
1676 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1678 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
1679 echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1681 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
1683 MPC8360EMDS_config \
1684 MPC8360EMDS_HOST_33_config \
1685 MPC8360EMDS_HOST_66_config \
1686 MPC8360EMDS_SLAVE_config: unconfig
1687 @echo "" >include/config.h ; \
1688 if [ "$(findstring _HOST_,$@)" ] ; then \
1689 echo -n "... PCI HOST " ; \
1690 echo "#define CONFIG_PCI" >>include/config.h ; \
1692 if [ "$(findstring _SLAVE_,$@)" ] ; then \
1693 echo "...PCI SLAVE 66M" ; \
1694 echo "#define CONFIG_PCI" >>include/config.h ; \
1695 echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1697 if [ "$(findstring _33_,$@)" ] ; then \
1698 echo -n "...33M ..." ; \
1699 echo "#define PCI_33M" >>include/config.h ; \
1701 if [ "$(findstring _66_,$@)" ] ; then \
1702 echo -n "...66M..." ; \
1703 echo "#define PCI_66M" >>include/config.h ; \
1705 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1707 sbc8349_config: unconfig
1708 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1710 TQM834x_config: unconfig
1711 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1714 #########################################################################
1716 #########################################################################
1718 MPC8540ADS_config: unconfig
1719 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1721 MPC8540EVAL_config \
1722 MPC8540EVAL_33_config \
1723 MPC8540EVAL_66_config \
1724 MPC8540EVAL_33_slave_config \
1725 MPC8540EVAL_66_slave_config: unconfig
1726 @mkdir -p $(obj)include
1727 @echo "" >$(obj)include/config.h ; \
1728 if [ "$(findstring _33_,$@)" ] ; then \
1729 echo -n "... 33 MHz PCI" ; \
1731 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1732 echo -n "... 66 MHz PCI" ; \
1734 if [ "$(findstring _slave_,$@)" ] ; then \
1735 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1740 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1742 MPC8560ADS_config: unconfig
1743 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1745 MPC8541CDS_config: unconfig
1746 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1748 MPC8544DS_config: unconfig
1749 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
1751 MPC8548CDS_config: unconfig
1752 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1754 MPC8555CDS_config: unconfig
1755 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1757 MPC8568MDS_config: unconfig
1758 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds
1760 PM854_config: unconfig
1761 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1763 PM856_config: unconfig
1764 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1768 sbc8540_66_config: unconfig
1769 @mkdir -p $(obj)include
1770 @if [ "$(findstring _66_,$@)" ] ; then \
1771 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1772 echo "... 66 MHz PCI" ; \
1774 >$(obj)include/config.h ; \
1775 echo "... 33 MHz PCI" ; \
1777 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1781 sbc8560_66_config: unconfig
1782 @mkdir -p $(obj)include
1783 @if [ "$(findstring _66_,$@)" ] ; then \
1784 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
1785 echo "... 66 MHz PCI" ; \
1787 >$(obj)include/config.h ; \
1788 echo "... 33 MHz PCI" ; \
1790 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1792 stxgp3_config: unconfig
1793 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1795 stxssa_config: unconfig
1796 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxssa
1801 TQM8560_config: unconfig
1802 @mkdir -p $(obj)include
1803 @CTYPE=$(subst TQM,,$(@:_config=)); \
1804 >$(obj)include/config.h ; \
1805 echo "... TQM"$${CTYPE}; \
1806 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1807 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1808 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1809 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1810 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1811 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1813 #########################################################################
1815 #########################################################################
1817 MPC8641HPCN_config: unconfig
1818 @./mkconfig $(@:_config=) ppc mpc86xx mpc8641hpcn
1821 #########################################################################
1823 #########################################################################
1825 AmigaOneG3SE_config: unconfig
1826 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1828 BAB7xx_config: unconfig
1829 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1831 CPCI750_config: unconfig
1832 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1834 DB64360_config: unconfig
1835 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1837 DB64460_config: unconfig
1838 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1840 ELPPC_config: unconfig
1841 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1844 EVB64260_750CX_config: unconfig
1845 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1847 mpc7448hpc2_config: unconfig
1848 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
1850 P3G4_config: unconfig
1851 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1854 p3m7448_config: unconfig
1855 @mkdir -p $(obj)include
1856 @if [ "$(findstring 750_,$@)" ] ; then \
1857 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1859 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1861 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1864 PCIPPC6_config: unconfig
1865 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1867 ZUMA_config: unconfig
1868 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1870 ppmc7xx_config: unconfig
1871 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1873 #========================================================================
1875 #========================================================================
1876 #########################################################################
1877 ## StrongARM Systems
1878 #########################################################################
1880 assabet_config : unconfig
1881 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1883 dnp1110_config : unconfig
1884 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1886 gcplus_config : unconfig
1887 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1889 lart_config : unconfig
1890 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
1892 shannon_config : unconfig
1893 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1895 #########################################################################
1897 #########################################################################
1899 xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1901 xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1903 xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1905 at91rm9200dk_config : unconfig
1906 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1908 cmc_pu2_config : unconfig
1909 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1911 csb637_config : unconfig
1912 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1914 mp2usb_config : unconfig
1915 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1918 ########################################################################
1919 ## ARM Integrator boards - see doc/README-integrator for more info.
1920 integratorap_config \
1929 ap946es_config: unconfig
1930 @board/integratorap/split_by_variant.sh $@
1932 integratorcp_config \
1941 cp1026_config: unconfig
1942 @board/integratorcp/split_by_variant.sh $@
1944 kb9202_config : unconfig
1945 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1948 lpd7a404_config: unconfig
1949 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1951 mx1ads_config : unconfig
1952 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1954 mx1fs2_config : unconfig
1955 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
1958 netstar_config: unconfig
1959 @mkdir -p $(obj)include
1960 @if [ "$(findstring _32_,$@)" ] ; then \
1961 echo "... 32MB SDRAM" ; \
1962 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
1964 echo "... 64MB SDRAM" ; \
1965 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
1967 @$(MKCONFIG) -a netstar arm arm925t netstar
1969 omap1510inn_config : unconfig
1970 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
1972 omap5912osk_config : unconfig
1973 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
1975 omap1610inn_config \
1976 omap1610inn_cs0boot_config \
1977 omap1610inn_cs3boot_config \
1978 omap1610inn_cs_autoboot_config \
1980 omap1610h2_cs0boot_config \
1981 omap1610h2_cs3boot_config \
1982 omap1610h2_cs_autoboot_config: unconfig
1983 @mkdir -p $(obj)include
1984 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1985 echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
1986 echo "... configured for CS0 boot"; \
1987 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1988 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
1989 echo "... configured for CS_AUTO boot"; \
1991 echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
1992 echo "... configured for CS3 boot"; \
1994 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
1997 omap730p2_cs0boot_config \
1998 omap730p2_cs3boot_config : unconfig
1999 @mkdir -p $(obj)include
2000 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
2001 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2002 echo "... configured for CS0 boot"; \
2004 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2005 echo "... configured for CS3 boot"; \
2007 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2009 sbc2410x_config: unconfig
2010 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
2012 scb9328_config : unconfig
2013 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2015 smdk2400_config : unconfig
2016 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
2018 smdk2410_config : unconfig
2019 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
2021 SX1_config : unconfig
2022 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2024 # TRAB default configuration: 8 MB Flash, 32 MB RAM
2026 trab_bigram_config \
2027 trab_bigflash_config \
2028 trab_old_config: unconfig
2029 @mkdir -p $(obj)include
2030 @mkdir -p $(obj)board/trab
2031 @ >$(obj)include/config.h
2032 @[ -z "$(findstring _bigram,$@)" ] || \
2033 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2034 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
2035 echo "... with 8 MB Flash, 32 MB RAM" ; \
2037 @[ -z "$(findstring _bigflash,$@)" ] || \
2038 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2039 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2040 echo "... with 16 MB Flash, 16 MB RAM" ; \
2041 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2043 @[ -z "$(findstring _old,$@)" ] || \
2044 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2045 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
2046 echo "... with 8 MB Flash, 16 MB RAM" ; \
2047 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2049 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2051 VCMA9_config : unconfig
2052 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2054 #========================================================================
2055 # ARM supplied Versatile development boards
2056 #========================================================================
2058 versatileab_config \
2059 versatilepb_config : unconfig
2060 @board/versatile/split_by_variant.sh $@
2062 voiceblue_smallflash_config \
2063 voiceblue_config: unconfig
2064 @mkdir -p $(obj)include
2065 @mkdir -p $(obj)board/voiceblue
2066 @if [ "$(findstring _smallflash_,$@)" ] ; then \
2067 echo "... boot from lower flash bank" ; \
2068 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2069 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2071 echo "... boot from upper flash bank" ; \
2072 >$(obj)include/config.h ; \
2073 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2075 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2077 cm4008_config : unconfig
2078 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2080 cm41xx_config : unconfig
2081 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2083 gth2_config : unconfig
2084 @mkdir -p $(obj)include
2085 @ >$(obj)include/config.h
2086 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2087 @$(MKCONFIG) -a gth2 mips mips gth2
2089 #########################################################################
2091 #########################################################################
2093 B2_config : unconfig
2094 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2096 #########################################################################
2098 #########################################################################
2100 armadillo_config: unconfig
2101 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2103 ep7312_config : unconfig
2104 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2106 impa7_config : unconfig
2107 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2109 modnet50_config : unconfig
2110 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2112 evb4510_config : unconfig
2113 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2115 lpc2292sodimm_config: unconfig
2116 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2118 SMN42_config : unconfig
2119 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
2121 #########################################################################
2123 #########################################################################
2125 adsvix_config : unconfig
2126 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
2128 cerf250_config : unconfig
2129 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
2131 cradle_config : unconfig
2132 @$(MKCONFIG) $(@:_config=) arm pxa cradle
2134 csb226_config : unconfig
2135 @$(MKCONFIG) $(@:_config=) arm pxa csb226
2138 @$(MKCONFIG) $(@:_config=) arm pxa delta
2140 innokom_config : unconfig
2141 @$(MKCONFIG) $(@:_config=) arm pxa innokom
2143 ixdp425_config : unconfig
2144 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2146 ixdpg425_config : unconfig
2147 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2149 lubbock_config : unconfig
2150 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
2152 pleb2_config : unconfig
2153 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
2155 logodl_config : unconfig
2156 @$(MKCONFIG) $(@:_config=) arm pxa logodl
2159 scpu_config: unconfig
2160 @if [ "$(findstring scpu_,$@)" ] ; then \
2161 echo "#define CONFIG_SCPU" >>include/config.h ; \
2162 echo "... on SCPU board variant" ; \
2164 >include/config.h ; \
2166 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2168 pxa255_idp_config: unconfig
2169 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2171 wepep250_config : unconfig
2172 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
2174 xaeniax_config : unconfig
2175 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2177 xm250_config : unconfig
2178 @$(MKCONFIG) $(@:_config=) arm pxa xm250
2180 xsengine_config : unconfig
2181 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
2184 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
2186 #########################################################################
2188 #########################################################################
2189 omap2420h4_config : unconfig
2190 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2192 #========================================================================
2194 #========================================================================
2195 #########################################################################
2197 #########################################################################
2198 sc520_cdp_config : unconfig
2199 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2201 sc520_spunk_config : unconfig
2202 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2204 sc520_spunk_rel_config : unconfig
2205 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2207 #========================================================================
2209 #========================================================================
2210 #########################################################################
2212 #########################################################################
2214 xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2216 incaip_100MHz_config \
2217 incaip_133MHz_config \
2218 incaip_150MHz_config \
2219 incaip_config: unconfig
2220 @mkdir -p $(obj)include
2221 @ >$(obj)include/config.h
2222 @[ -z "$(findstring _100MHz,$@)" ] || \
2223 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2224 echo "... with 100MHz system clock" ; \
2226 @[ -z "$(findstring _133MHz,$@)" ] || \
2227 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2228 echo "... with 133MHz system clock" ; \
2230 @[ -z "$(findstring _150MHz,$@)" ] || \
2231 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2232 echo "... with 150MHz system clock" ; \
2234 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2236 tb0229_config: unconfig
2237 @$(MKCONFIG) $(@:_config=) mips mips tb0229
2239 #########################################################################
2241 #########################################################################
2242 dbau1000_config : unconfig
2243 @mkdir -p $(obj)include
2244 @ >$(obj)include/config.h
2245 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2246 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2248 dbau1100_config : unconfig
2249 @mkdir -p $(obj)include
2250 @ >$(obj)include/config.h
2251 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2252 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2254 dbau1500_config : unconfig
2255 @mkdir -p $(obj)include
2256 @ >$(obj)include/config.h
2257 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2258 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2260 dbau1550_config : unconfig
2261 @mkdir -p $(obj)include
2262 @ >$(obj)include/config.h
2263 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2264 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2266 dbau1550_el_config : unconfig
2267 @mkdir -p $(obj)include
2268 @ >$(obj)include/config.h
2269 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2270 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2272 pb1000_config : unconfig
2273 @mkdir -p $(obj)include
2274 @ >$(obj)include/config.h
2275 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2276 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
2278 #########################################################################
2280 #########################################################################
2282 purple_config : unconfig
2283 @$(MKCONFIG) $(@:_config=) mips mips purple
2285 #========================================================================
2287 #========================================================================
2288 #########################################################################
2290 #########################################################################
2292 DK1C20_safe_32_config \
2293 DK1C20_standard_32_config \
2294 DK1C20_config: unconfig
2295 @mkdir -p $(obj)include
2296 @ >$(obj)include/config.h
2297 @[ -z "$(findstring _safe_32,$@)" ] || \
2298 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2299 echo "... NIOS 'safe_32' configuration" ; \
2301 @[ -z "$(findstring _standard_32,$@)" ] || \
2302 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2303 echo "... NIOS 'standard_32' configuration" ; \
2305 @[ -z "$(findstring DK1C20_config,$@)" ] || \
2306 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2307 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2309 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2311 DK1S10_safe_32_config \
2312 DK1S10_standard_32_config \
2313 DK1S10_mtx_ldk_20_config \
2314 DK1S10_config: unconfig
2315 @mkdir -p $(obj)include
2316 @ >$(obj)include/config.h
2317 @[ -z "$(findstring _safe_32,$@)" ] || \
2318 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2319 echo "... NIOS 'safe_32' configuration" ; \
2321 @[ -z "$(findstring _standard_32,$@)" ] || \
2322 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2323 echo "... NIOS 'standard_32' configuration" ; \
2325 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2326 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2327 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2329 @[ -z "$(findstring DK1S10_config,$@)" ] || \
2330 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2331 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2333 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2335 ADNPESC1_DNPEVA2_base_32_config \
2336 ADNPESC1_base_32_config \
2337 ADNPESC1_config: unconfig
2338 @mkdir -p $(obj)include
2339 @ >$(obj)include/config.h
2340 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
2341 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2342 echo "... DNP/EVA2 configuration" ; \
2344 @[ -z "$(findstring _base_32,$@)" ] || \
2345 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2346 echo "... NIOS 'base_32' configuration" ; \
2348 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2349 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2350 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2352 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2354 #########################################################################
2356 #########################################################################
2358 EP1C20_config : unconfig
2359 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
2361 EP1S10_config : unconfig
2362 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
2364 EP1S40_config : unconfig
2365 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
2367 PK1C20_config : unconfig
2368 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
2370 PCI5441_config : unconfig
2371 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
2373 #========================================================================
2375 #========================================================================
2376 #########################################################################
2378 #########################################################################
2379 suzaku_config: unconfig
2380 @mkdir -p $(obj)include
2381 @ >$(obj)include/config.h
2382 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2383 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2385 ml401_config: unconfig
2387 @echo "#define CONFIG_ML401 1" >> include/config.h
2388 @./mkconfig -a $(@:_config=) microblaze microblaze ml401 xilinx
2390 xupv2p_config: unconfig
2392 @echo "#define CONFIG_XUPV2P 1" >> include/config.h
2393 @./mkconfig -a $(@:_config=) microblaze microblaze xupv2p xilinx
2395 #########################################################################
2397 #########################################################################
2398 bf533-ezkit_config: unconfig
2399 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
2401 bf533-stamp_config: unconfig
2402 @$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
2404 bf537-stamp_config: unconfig
2405 @$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
2407 bf561-ezkit_config: unconfig
2408 @$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
2410 #========================================================================
2412 #========================================================================
2413 #########################################################################
2415 #########################################################################
2417 atstk1002_config : unconfig
2418 @./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2420 #########################################################################
2421 #########################################################################
2422 #########################################################################
2425 find $(OBJTREE) -type f \
2426 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2427 -o -name '*.o' -o -name '*.a' \) -print \
2429 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2430 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2431 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2432 $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2433 $(obj)examples/test_burst
2434 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2435 $(obj)tools/gen_eth_addr
2436 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2437 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2438 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2439 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2440 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2441 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2442 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2443 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2444 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2445 rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2446 rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2447 rm -f $(obj)include/bmp_logo.h
2448 rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2451 find $(OBJTREE) -type f \( -name .depend \
2452 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2455 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2457 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2458 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
2459 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2460 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2461 [ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2463 ifeq ($(OBJTREE),$(SRCTREE))
2465 distclean: clobber unconfig
2468 distclean: clobber unconfig
2473 F=`basename $(TOPDIR)` ; cd .. ; \
2474 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2476 #########################################################################