Skip to content
Snippets Groups Projects
Makefile 122 KiB
Newer Older
  • Learn to ignore specific revisions
  • M5208EVBE_config :		unconfig
    	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5208evbe freescale
    
    
    M52277EVB_config \
    M52277EVB_spansion_config \
    M52277EVB_stmicro_config :	unconfig
    	@case "$@" in \
    	M52277EVB_config)		FLASH=SPANSION;; \
    	M52277EVB_spansion_config)	FLASH=SPANSION;; \
    	M52277EVB_stmicro_config)	FLASH=STMICRO;; \
    	esac; \
    	if [ "$${FLASH}" = "SPANSION" ] ; then \
    		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
    		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
    		cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
    		$(XECHO) "... with SPANSION boot..." ; \
    	fi; \
    	if [ "$${FLASH}" = "STMICRO" ] ; then \
    		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
    		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
    		echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
    		cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
    		$(XECHO) "... with ST Micro boot..." ; \
    	fi
    
    	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
    
    
    M5235EVB_config \
    M5235EVB_Flash16_config \
    M5235EVB_Flash32_config:	unconfig
    	@case "$@" in \
    	M5235EVB_config)		FLASH=16;; \
    	M5235EVB_Flash16_config)	FLASH=16;; \
    	M5235EVB_Flash32_config)	FLASH=32;; \
    	esac; \
    	if [ "$${FLASH}" != "16" ] ; then \
    
    		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
    
    		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
    		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
    	else \
    		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
    		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
    	fi
    	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
    
    
    M5249EVB_config :		unconfig
    	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
    
    
    M5253DEMO_config :		unconfig
    	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
    
    
    M5253EVBE_config :		unconfig
    	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    cobra5272_config :		unconfig
    
    	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    EB+MCF-EV123_config :		unconfig
    
    	@mkdir -p $(obj)include
    	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
    	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
    	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
    
    
    EB+MCF-EV123_internal_config :	unconfig
    
    	@mkdir -p $(obj)include
    	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
    	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
    	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
    
    idmr_config :			unconfig
    	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
    
    
    M5271EVB_config :		unconfig
    
    	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
    
    M5272C3_config :		unconfig
    
    	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
    
    M5275EVB_config :		unconfig
    	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
    
    
    M5282EVB_config :		unconfig
    
    	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
    
    M53017EVB_config :		unconfig
    	@$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
    
    
    M5329AFEE_config \
    M5329BFEE_config :	unconfig
    	@case "$@" in \
    	M5329AFEE_config)	NAND=0;; \
    	M5329BFEE_config)	NAND=16;; \
    	esac; \
    	if [ "$${NAND}" != "0" ] ; then \
    
    		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
    
    	fi
    	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
    
    
    M5373EVB_config :	unconfig
    	@case "$@" in \
    	M5373EVB_config)	NAND=16;; \
    	esac; \
    	if [ "$${NAND}" != "0" ] ; then \
    		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
    	fi
    	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
    
    
    M54451EVB_config \
    M54451EVB_stmicro_config :	unconfig
    	@case "$@" in \
    
    	M54451EVB_config)		FLASH=NOR;; \
    
    	M54451EVB_stmicro_config)	FLASH=STMICRO;; \
    	esac; \
    
    	if [ "$${FLASH}" = "NOR" ] ; then \
    
    		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
    		cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
    
    		$(XECHO) "... with NOR boot..." ; \
    
    	fi; \
    	if [ "$${FLASH}" = "STMICRO" ] ; then \
    		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
    
    		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
    
    		echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
    		cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
    		$(XECHO) "... with ST Micro boot..." ; \
    	fi; \
    
    	echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
    
    	@$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
    
    
    M54455EVB_config \
    M54455EVB_atmel_config \
    M54455EVB_intel_config \
    M54455EVB_a33_config \
    M54455EVB_a66_config \
    M54455EVB_i33_config \
    
    M54455EVB_i66_config \
    M54455EVB_stm33_config :	unconfig
    
    	@case "$@" in \
    	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
    	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
    	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
    	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
    	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
    	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
    	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
    
    	M54455EVB_stm33_config)		FLASH=STMICRO; FREQ=33333333;; \
    
    	if [ "$${FLASH}" = "INTEL" ] ; then \
    
    		echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
    
    		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
    		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
    
    		$(XECHO) "... with INTEL boot..." ; \
    
    	fi; \
    	if [ "$${FLASH}" = "ATMEL" ] ; then \
    
    		echo "#define CONFIG_SYS_ATMEL_BOOT"	>> $(obj)include/config.h ; \
    
    		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
    		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
    
    		$(XECHO) "... with ATMEL boot..." ; \
    
    	if [ "$${FLASH}" = "STMICRO" ] ; then \
    		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
    
    		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
    
    		echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
    		cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
    		$(XECHO) "... with ST Micro boot..." ; \
    	fi; \
    
    	echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
    
    	$(XECHO) "... with $${FREQ}Hz input clock"
    
    	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
    
    
    M5475AFE_config \
    M5475BFE_config \
    M5475CFE_config \
    M5475DFE_config \
    M5475EFE_config \
    M5475FFE_config \
    M5475GFE_config :	unconfig
    	@case "$@" in \
    	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
    	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
    	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
    	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
    	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
    	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
    	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
    	esac; \
    
    	echo "#define CONFIG_SYS_BUSCLK	133333333" > $(obj)include/config.h ; \
    	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
    	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
    
    	if [ "$${RAM1}" != "0" ] ; then \
    
    		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
    
    	fi; \
    	if [ "$${CODE}" != "0" ] ; then \
    
    		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
    
    	fi; \
    	if [ "$${VID}" == "1" ] ; then \
    
    		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
    
    	fi; \
    	if [ "$${USB}" == "1" ] ; then \
    
    		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
    
    	fi
    	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
    
    M5485AFE_config \
    M5485BFE_config \
    M5485CFE_config \
    M5485DFE_config \
    M5485EFE_config \
    M5485FFE_config \
    M5485GFE_config \
    M5485HFE_config :	unconfig
    	@case "$@" in \
    	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
    	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
    	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
    	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
    	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
    	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
    	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
    
    	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
    
    	echo "#define CONFIG_SYS_BUSCLK	100000000" > $(obj)include/config.h ; \
    	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
    	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
    
    	if [ "$${RAM1}" != "0" ] ; then \
    
    		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
    
    	fi; \
    	if [ "$${CODE}" != "0" ] ; then \
    
    		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
    
    	fi; \
    	if [ "$${VID}" == "1" ] ; then \
    
    		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
    
    	fi; \
    	if [ "$${USB}" == "1" ] ; then \
    
    		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
    
    	fi
    	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
    
    
    TASREG_config :		unconfig
    	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
    
    
    Eran Liberty's avatar
    Eran Liberty committed
    #########################################################################
    ## MPC83xx Systems
    #########################################################################
    
    
    kmeter1_config: unconfig
    	@$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile
    
    
    MPC8313ERDB_33_config \
    
    MPC8313ERDB_66_config \
    MPC8313ERDB_NAND_33_config \
    MPC8313ERDB_NAND_66_config: unconfig
    
    	@mkdir -p $(obj)include
    
    	@mkdir -p $(obj)board/freescale/mpc8313erdb
    
    	@if [ "$(findstring _33_,$@)" ] ; then \
    
    		$(XECHO) -n "...33M ..." ; \
    
    		echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _66_,$@)" ] ; then \
    
    		$(XECHO) -n "...66M..." ; \
    
    		echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _NAND_,$@)" ] ; then \
    		$(XECHO) -n "...NAND..." ; \
    
    Kim Phillips's avatar
    Kim Phillips committed
    		echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
    
    		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
    
    	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
    
    	@if [ "$(findstring _NAND_,$@)" ] ; then \
    		echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
    	fi ;
    
    MPC8315ERDB_NAND_config \
    
    MPC8315ERDB_config: unconfig
    
    	@if [ "$(findstring _NAND_,$@)" ] ; then \
    		ln -sf mpc8313erdb nand_spl/board/freescale/mpc8315erdb ; \
    	fi ;
    	@$(MKCONFIG) -t $(@:_config=) MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
    
    MPC8323ERDB_config:	unconfig
    	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
    
    
    MPC832XEMDS_config \
    MPC832XEMDS_HOST_33_config \
    MPC832XEMDS_HOST_66_config \
    
    MPC832XEMDS_SLAVE_config \
    MPC832XEMDS_ATM_config:	unconfig
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _HOST_,$@)" ] ; then \
    
    		$(XECHO) -n "... PCI HOST " ; \
    
    		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _SLAVE_,$@)" ] ; then \
    
    		$(XECHO) "...PCI SLAVE 66M"  ; \
    
    		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
    		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _33_,$@)" ] ; then \
    
    		$(XECHO) -n "...33M ..." ; \
    
    		echo "#define PCI_33M" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _66_,$@)" ] ; then \
    
    		$(XECHO) -n "...66M..." ; \
    
    		echo "#define PCI_66M" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    	fi ; \
    	if [ "$(findstring _ATM_,$@)" ] ; then \
    
    		$(XECHO) -n "...ATM..." ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
    
    	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
    
    MPC8349EMDS_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
    
    MPC8349ITX_config \
    MPC8349ITX_LOWBOOT_config \
    MPC8349ITXGP_config:	unconfig
    	@mkdir -p $(obj)include
    
    	@mkdir -p $(obj)board/freescale/mpc8349itx
    
    	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
    	@if [ "$(findstring GP,$@)" ] ; then \
    
    		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
    
    	fi
    	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
    
    		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
    
    	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
    
    MPC8360EMDS_config \
    MPC8360EMDS_HOST_33_config \
    MPC8360EMDS_HOST_66_config \
    
    MPC8360EMDS_SLAVE_config \
    MPC8360EMDS_ATM_config: unconfig
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _HOST_,$@)" ] ; then \
    
    		$(XECHO) -n "... PCI HOST " ; \
    
    		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _SLAVE_,$@)" ] ; then \
    
    		$(XECHO) "...PCI SLAVE 66M"  ; \
    
    		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
    		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _33_,$@)" ] ; then \
    
    		$(XECHO) -n "...33M ..." ; \
    
    		echo "#define PCI_33M" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    
    	fi ; \
    	if [ "$(findstring _66_,$@)" ] ; then \
    
    		$(XECHO) -n "...66M..." ; \
    
    		echo "#define PCI_66M" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    	fi ; \
    	if [ "$(findstring _ATM_,$@)" ] ; then \
    
    		$(XECHO) -n "...ATM..." ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
    
    		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
    
    	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
    
    MPC8360ERDK_33_config \
    MPC8360ERDK_66_config \
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _33_,$@)" ] ; then \
    
    		$(XECHO) -n "... CLKIN 33MHz " ; \
    
    		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
    	fi ;
    	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
    
    
    MPC837XEMDS_config \
    MPC837XEMDS_HOST_config:	unconfig
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _HOST_,$@)" ] ; then \
    
    		$(XECHO) -n "... PCI HOST " ; \
    
    		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
    	fi ;
    	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
    
    
    MPC837XERDB_config:	unconfig
    	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
    
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
    
    sbc8349_config \
    sbc8349_PCI_33_config \
    sbc8349_PCI_66_config: unconfig
    
    	@$(MKCONFIG) -t $(@:_config=) sbc8349 ppc mpc83xx sbc8349
    
    SIMPC8313_LP_config \
    SIMPC8313_SP_config: unconfig
    	@mkdir -p $(obj)include
    	@mkdir -p $(obj)board/sheldon/simpc8313
    	@if [ "$(findstring _LP_,$@)" ] ; then \
    		$(XECHO) -n "...Large Page NAND..." ; \
    		echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
    	fi ; \
    	if [ "$(findstring _SP_,$@)" ] ; then \
    		$(XECHO) -n "...Small Page NAND..." ; \
    		echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
    	fi ;
    	@$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon
    	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
    
    
    TQM834x_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
    
    vme8349_config:		unconfig
    
    	@$(MKCONFIG) -t $(@:_config=) vme8349 ppc mpc83xx vme8349 esd
    
    #########################################################################
    ## MPC85xx Systems
    #########################################################################
    
    
    ATUM8548_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
    
    
    Mingkai Hu's avatar
    Mingkai Hu committed
    MPC8536DS_NAND_config \
    
    MPC8536DS_SDCARD_config \
    MPC8536DS_SPIFLASH_config \
    
    MPC8536DS_36BIT_config \
    
    MPC8536DS_config:       unconfig
    
    	@$(MKCONFIG) -t $(@:_config=) MPC8536DS ppc mpc85xx mpc8536ds freescale
    
    MPC8540ADS_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
    
    MPC8540EVAL_config \
    MPC8540EVAL_33_config \
    MPC8540EVAL_66_config \
    MPC8540EVAL_33_slave_config \
    
    MPC8540EVAL_66_slave_config:	  unconfig
    
    	@if [ "$(findstring _33_,$@)" ] ; then \
    
    		$(XECHO) "... 33 MHz PCI" ; \
    
    		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
    
    		$(XECHO) "... 66 MHz PCI" ; \
    
    	fi ; \
    	if [ "$(findstring _slave_,$@)" ] ; then \
    
    		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
    
    	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
    
    MPC8560ADS_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
    
    MPC8541CDS_legacy_config \
    
    MPC8541CDS_config:	unconfig
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _legacy_,$@)" ] ; then \
    
    		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
    
    		$(XECHO) "... legacy" ; \
    
    	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
    
    Andy Fleming's avatar
    Andy Fleming committed
    MPC8544DS_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
    
    
    MPC8548CDS_legacy_config \
    
    MPC8548CDS_config:	unconfig
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _legacy_,$@)" ] ; then \
    
    		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
    
    		$(XECHO) "... legacy" ; \
    
    	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
    
    MPC8555CDS_legacy_config \
    
    MPC8555CDS_config:	unconfig
    
    	@mkdir -p $(obj)include
    
    	@if [ "$(findstring _legacy_,$@)" ] ; then \
    
    		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
    
    		$(XECHO) "... legacy" ; \
    
    	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
    
    MPC8568MDS_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
    
    MPC8569MDS_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8569mds freescale
    
    
    MPC8572DS_36BIT_config \
    
    MPC8572DS_config:       unconfig
    
    	@$(MKCONFIG) -t $(@:_config=) MPC8572DS ppc mpc85xx mpc8572ds freescale
    
    P2020DS_36BIT_config \
    P2020DS_config:		unconfig
    
    	@$(MKCONFIG) -t $(@:_config=) P2020DS ppc mpc85xx p2020ds freescale
    
    P1011RDB_NAND_config \
    
    P1011RDB_SDCARD_config \
    P1011RDB_SPIFLASH_config \
    
    P1020RDB_NAND_config \
    
    P1020RDB_SDCARD_config \
    P1020RDB_SPIFLASH_config \
    
    P2010RDB_NAND_config \
    
    P2010RDB_SDCARD_config \
    P2010RDB_SPIFLASH_config \
    
    P2020RDB_config \
    
    P2020RDB_NAND_config \
    P2020RDB_SDCARD_config \
    P2020RDB_SPIFLASH_config:	unconfig
    
    	@$(MKCONFIG) -t $(@:_config=) P1_P2_RDB ppc mpc85xx p1_p2_rdb freescale
    
    PM854_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
    
    PM856_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
    
    sbc8540_config \
    sbc8540_33_config \
    sbc8540_66_config:	unconfig
    
    	@$(MKCONFIG) -t $(@:_config=) SBC8540 ppc mpc85xx sbc8560
    
    sbc8548_config \
    sbc8548_PCI_33_config \
    sbc8548_PCI_66_config \
    sbc8548_PCI_33_PCIE_config \
    sbc8548_PCI_66_PCIE_config: unconfig
    	@$(MKCONFIG) -t $(@:_config=) sbc8548 ppc mpc85xx sbc8548
    
    sbc8560_config \
    sbc8560_33_config \
    
    	@$(MKCONFIG) -t $(@:_config=) sbc8560 ppc mpc85xx sbc8560
    
    socrates_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
    
    
    stxgp3_config:		unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 stx
    
    stxssa_config		\
    stxssa_4M_config:	unconfig
    	@mkdir -p $(obj)include
    	@if [ "$(findstring _4M_,$@)" ] ; then \
    		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
    
    		$(XECHO) "... with 4 MiB flash memory" ; \
    
    	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa stx
    
    TQM8540_config		\
    TQM8541_config		\
    
    TQM8555_config		\
    TQM8560_config:		unconfig
    
    	CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
    
    	$(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \
    
    	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
    
    	echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
    
    	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
    
    	echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
    
    	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
    
    	@echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
    
    Peter Tyser's avatar
    Peter Tyser committed
    XPEDITE5200_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes
    
    
    Peter Tyser's avatar
    Peter Tyser committed
    XPEDITE5370_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes
    
    
    #########################################################################
    ## MPC86xx Systems
    #########################################################################
    
    
    MPC8610HPCD_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
    
    
    MPC8641HPCN_36BIT_config \
    
    MPC8641HPCN_config:    unconfig
    
    	@mkdir -p $(obj)include
    	@if [ "$(findstring _36BIT_,$@)" ] ; then \
    		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
    		$(XECHO) "... enabling 36-bit physical addressing." ; \
    	fi
    	@$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
    
    sbc8641d_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
    
    XPEDITE5170_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc mpc86xx xpedite5170 xes
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    ## 74xx/7xx Systems
    #########################################################################
    
    
    AmigaOneG3SE_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
    
    BAB7xx_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
    
    CPCI750_config:	unconfig
    
    	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
    
    DB64360_config:	unconfig
    
    	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
    
    DB64460_config:	unconfig
    
    	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
    
    ELPPC_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    EVB64260_config	\
    EVB64260_750CX_config:	unconfig
    
    	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    mpc7448hpc2_config:  unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
    
    P3G4_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    p3m750_config	\
    p3m7448_config:		unconfig
    	@mkdir -p $(obj)include
    	@if [ "$(findstring 750_,$@)" ] ; then \
    		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
    	else \
    		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
    	fi
    	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    PCIPPC2_config \
    PCIPPC6_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    ppmc7xx_config: unconfig
    
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
    
    ZUMA_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #========================================================================
    # ARM
    #========================================================================
    #########################################################################
    ## StrongARM Systems
    #########################################################################
    
    
    assabet_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    dnp1110_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    gcplus_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
    
    
    lart_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    shannon_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    #########################################################################
    
    ## ARM92xT Systems
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    #########################################################################
    
    
    a320evb_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm920t a320evb faraday a320
    
    
    #########################################################################
    ## Atmel AT91RM9200 Systems
    #########################################################################
    
    at91rm9200dk_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
    
    at91rm9200ek_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200ek atmel at91rm9200
    
    
    cmc_pu2_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
    
    CPUAT91_RAM_config \
    CPUAT91_config	:	unconfig
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
    	@$(MKCONFIG) -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200
    
    
    csb637_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
    
    kb9202_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
    
    
    m501sk_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
    
    mp2usb_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
    
    
    #########################################################################
    
    ## ARM926EJ-S Systems
    
    #########################################################################
    
    
    afeb9260_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
    
    
    at91cap9adk_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
    
    at91sam9260ek_nandflash_config \
    at91sam9260ek_dataflash_cs0_config \
    at91sam9260ek_dataflash_cs1_config \
    
    at91sam9260ek_config \
    at91sam9g20ek_nandflash_config \
    at91sam9g20ek_dataflash_cs0_config \
    at91sam9g20ek_dataflash_cs1_config \
    at91sam9g20ek_config	:	unconfig
    
    	@if [ "$(findstring 9g20,$@)" ] ; then \
    		echo "#define CONFIG_AT91SAM9G20EK 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... 9G20 Variant" ; \
    	else \
    		echo "#define CONFIG_AT91SAM9260EK 1"	>>$(obj)include/config.h ; \
    	fi;
    
    	@if [ "$(findstring _nandflash,$@)" ] ; then \
    		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in NAND FLASH" ; \
    	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
    		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
    	else \
    		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
    	fi;
    	@$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
    
    
    at91sam9xeek_nandflash_config \
    at91sam9xeek_dataflash_cs0_config \
    at91sam9xeek_dataflash_cs1_config \
    at91sam9xeek_config	:	unconfig
    	@mkdir -p $(obj)include
    	@if [ "$(findstring _nandflash,$@)" ] ; then \
    		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in NAND FLASH" ; \
    	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
    		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
    	else \
    		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
    	fi;
    
    	@$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
    
    at91sam9261ek_nandflash_config \
    at91sam9261ek_dataflash_cs0_config \
    at91sam9261ek_dataflash_cs3_config \
    
    at91sam9261ek_config \
    at91sam9g10ek_nandflash_config \
    at91sam9g10ek_dataflash_cs0_config \
    at91sam9g10ek_dataflash_cs3_config \
    at91sam9g10ek_config	:	unconfig
    	@mkdir -p $(obj)include
    	@if [ "$(findstring 9g10,$@)" ] ; then \
    		echo "#define CONFIG_AT91SAM9G10EK 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... 9G10 Variant" ; \
    	else \
    		echo "#define CONFIG_AT91SAM9261EK 1"	>>$(obj)include/config.h ; \
    	fi;
    
    	@if [ "$(findstring _nandflash,$@)" ] ; then \
    		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in NAND FLASH" ; \
    
    	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
    
    		echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
    	else \
    		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
    	fi;
    	@$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
    
    
    at91sam9263ek_norflash_config \
    at91sam9263ek_norflash_boot_config \
    
    at91sam9263ek_nandflash_config \
    at91sam9263ek_dataflash_config \
    at91sam9263ek_dataflash_cs0_config \
    
    	@if [ "$(findstring _nandflash,$@)" ] ; then \
    		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in NAND FLASH" ; \
    
    	elif [ "$(findstring norflash,$@)" ] ; then \
    		echo "#define CONFIG_SYS_USE_NORFLASH 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in NOR FLASH" ; \
    
    	else \
    		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
    	fi;
    
    	@if [ "$(findstring norflash_boot,$@)" ] ; then \
    		echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... and boot from NOR FLASH" ; \
    	fi;
    
    	@$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
    
    at91sam9rlek_nandflash_config \
    at91sam9rlek_dataflash_config \
    at91sam9rlek_dataflash_cs0_config \
    
    	@if [ "$(findstring _nandflash,$@)" ] ; then \
    		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in NAND FLASH" ; \
    	else \
    		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
    	fi;
    	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
    
    CPU9G20_128M_config \
    CPU9G20_config \
    CPU9260_128M_config \
    CPU9260_config	:	unconfig
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
    	@$(MKCONFIG) -a cpu9260 arm arm926ejs cpu9260 eukrea at91
    
    
    meesc_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91
    
    
    pm9261_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs pm9261 ronetix at91
    
    
    at91sam9m10g45ek_nandflash_config \
    at91sam9m10g45ek_dataflash_config \
    at91sam9m10g45ek_dataflash_cs0_config \
    at91sam9m10g45ek_config \
    at91sam9g45ekes_nandflash_config \
    at91sam9g45ekes_dataflash_config \
    at91sam9g45ekes_dataflash_cs0_config \
    at91sam9g45ekes_config	:	unconfig
    	@mkdir -p $(obj)include
    		@if [ "$(findstring 9m10,$@)" ] ; then \
    		echo "#define CONFIG_AT91SAM9M10G45EK 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... 9M10G45 Variant" ; \
    	else \
    		echo "#define CONFIG_AT91SAM9G45EKES 1"	>>$(obj)include/config.h ; \
    	fi;
    
    	@if [ "$(findstring _nandflash,$@)" ] ; then \
    		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in NAND FLASH" ; \
    	else \
    		echo "#define CONFIG_ATMEL_SPI 1"	>>$(obj)include/config.h ; \
    		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
    	fi;
    	@$(MKCONFIG) -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
    
    
    pm9263_config	:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs pm9263 ronetix at91
    
    
    SBC35_A9G20_NANDFLASH_config \
    SBC35_A9G20_EEPROM_config \
    SBC35_A9G20_config	:	unconfig
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
    	@$(MKCONFIG) -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91
    
    
    TNY_A9G20_NANDFLASH_config \
    TNY_A9G20_EEPROM_config \
    TNY_A9G20_config \
    TNY_A9260_NANDFLASH_config \
    TNY_A9260_EEPROM_config \
    TNY_A9260_config	:	unconfig
    	@mkdir -p $(obj)include
    	@echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
    	@$(MKCONFIG) -a tny_a9260 arm arm926ejs tny_a9260 calao at91
    
    
    ########################################################################
    ## ARM Integrator boards - see doc/README-integrator for more info.
    integratorap_config	\
    ap_config		\
    ap966_config		\
    ap922_config		\
    ap922_XA10_config	\
    ap7_config		\
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    ap720t_config		\
    
    ap920t_config		\
    ap926ejs_config		\
    ap946es_config: unconfig
    
    	@board/armltd/integrator/split_by_variant.sh ap $@
    
    
    integratorcp_config	\
    cp_config		\
    cp920t_config		\
    cp926ejs_config		\
    cp946es_config		\
    cp1136_config		\
    cp966_config		\
    cp922_config		\
    cp922_XA10_config	\
    cp1026_config: unconfig
    
    	@board/armltd/integrator/split_by_variant.sh cp $@
    
    da830evm_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs da830evm davinci davinci
    
    
    davinci_dvevm_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
    
    
    davinci_schmoogie_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
    
    davinci_sffsdr_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
    
    davinci_sonata_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
    
    
    David Brownell's avatar
    David Brownell committed
    davinci_dm355evm_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci
    
    
    davinci_dm355leopard_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm355leopard davinci davinci
    
    
    davinci_dm365evm_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm365evm davinci davinci
    
    
    davinci_dm6467evm_config :	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm6467evm davinci davinci
    
    
    imx27lite_config:	unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs imx27lite logicpd mx27
    
    
    lpd7a400_config \
    lpd7a404_config:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
    
    mv88f6281gtw_ge_config: unconfig
    	@$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    mx1ads_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    mx1fs2_config	:	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    
    
    Wolfgang Denk's avatar
    Wolfgang Denk committed
    netstar_config:		unconfig
    
    Peter Pearse's avatar
    Peter Pearse committed
    	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
    
    nhk8815_config \
    nhk8815_onenand_config:	unconfig
    
    	@mkdir -p $(obj)include
    	@ > $(obj)include/config.h
    	@if [ "$(findstring _onenand, $@)" ] ; then \
    		echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
    
    		$(XECHO) "... configured to boot from OneNand Flash"; \
    
    		$(XECHO) "... configured to boot from Nand Flash"; \
    
    	@$(MKCONFIG) -a nhk8815 arm arm926ejs nhk8815 st nomadik
    
    omap1510inn_config :	unconfig
    
    	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn ti
    
    xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
    
    
    omap1610inn_config \
    omap1610inn_cs0boot_config \
    omap1610inn_cs3boot_config \
    
    omap1610inn_cs_autoboot_config \
    
    omap1610h2_config \
    omap1610h2_cs0boot_config \
    
    omap1610h2_cs3boot_config \
    omap1610h2_cs_autoboot_config:	unconfig
    
    	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
    
    		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
    
    		$(XECHO) "... configured for CS0 boot"; \
    
    	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
    
    		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
    
    		$(XECHO) "... configured for CS_AUTO boot"; \
    
    		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
    
    		$(XECHO) "... configured for CS3 boot"; \
    
    	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap