17ebf7443Swdenk# 2fd428c05SDetlev Zundel# (C) Copyright 2000-2010 37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 47ebf7443Swdenk# 57ebf7443Swdenk# See file CREDITS for list of people who contributed to this 67ebf7443Swdenk# project. 77ebf7443Swdenk# 87ebf7443Swdenk# This program is free software; you can redistribute it and/or 97ebf7443Swdenk# modify it under the terms of the GNU General Public License as 1045a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of 117ebf7443Swdenk# the License, or (at your option) any later version. 127ebf7443Swdenk# 137ebf7443Swdenk# This program is distributed in the hope that it will be useful, 147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of 157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 167ebf7443Swdenk# GNU General Public License for more details. 177ebf7443Swdenk# 187ebf7443Swdenk# You should have received a copy of the GNU General Public License 197ebf7443Swdenk# along with this program; if not, write to the Free Software 207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 217ebf7443Swdenk# MA 02111-1307 USA 227ebf7443Swdenk# 237ebf7443Swdenk 2493910edbSWolfgang DenkVERSION = 2010 252d941de9SWolfgang DenkPATCHLEVEL = 09 268b9e4787SWolfgang DenkSUBLEVEL = 271e4e5ef0SWolfgang DenkEXTRAVERSION = 288b9e4787SWolfgang Denkifneq "$(SUBLEVEL)" "" 29881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) 308b9e4787SWolfgang Denkelse 318b9e4787SWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION) 328b9e4787SWolfgang Denkendif 33561858eeSPeter TyserTIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h 34f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h 35881a87ecSWolfgang Denk 367ebf7443SwdenkHOSTARCH := $(shell uname -m | \ 377ebf7443Swdenk sed -e s/i.86/i386/ \ 387ebf7443Swdenk -e s/sun4u/sparc64/ \ 397ebf7443Swdenk -e s/arm.*/arm/ \ 407ebf7443Swdenk -e s/sa110/arm/ \ 41d0179083SKumar Gala -e s/ppc64/powerpc/ \ 42d0179083SKumar Gala -e s/ppc/powerpc/ \ 438d1f6355SNobuhiro Iwamatsu -e s/macppc/powerpc/\ 448d1f6355SNobuhiro Iwamatsu -e s/sh.*/sh/) 457ebf7443Swdenk 46f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ 477ebf7443Swdenk sed -e 's/\(cygwin\).*/cygwin/') 487ebf7443Swdenk 49cf7a7b99SPeter Tyser# Set shell to bash if possible, otherwise fall back to sh 50cf7a7b99SPeter TyserSHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ 51cf7a7b99SPeter Tyser else if [ -x /bin/bash ]; then echo /bin/bash; \ 52cf7a7b99SPeter Tyser else echo sh; fi; fi) 53cf7a7b99SPeter Tyser 54cf7a7b99SPeter Tyserexport HOSTARCH HOSTOS SHELL 557ebf7443Swdenk 567ebf7443Swdenk# Deal with colliding definitions from tcsh etc. 577ebf7443SwdenkVENDOR= 587ebf7443Swdenk 597ebf7443Swdenk######################################################################### 60ae6d1056SWolfgang Denk# Allow for silent builds 61ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS))) 62ae6d1056SWolfgang DenkXECHO = echo 63ae6d1056SWolfgang Denkelse 64ae6d1056SWolfgang DenkXECHO = : 65ae6d1056SWolfgang Denkendif 66ae6d1056SWolfgang Denk 67ae6d1056SWolfgang Denk######################################################################### 68f9328639SMarian Balakowicz# 69f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external 70f9328639SMarian Balakowicz# directory. Two use cases are supported: 71f9328639SMarian Balakowicz# 72f9328639SMarian Balakowicz# 1) Add O= to the make command line 73f9328639SMarian Balakowicz# 'make O=/tmp/build all' 74f9328639SMarian Balakowicz# 75f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location 76f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 77f9328639SMarian Balakowicz# 'make' 78f9328639SMarian Balakowicz# 79f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script 80f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build' 81f9328639SMarian Balakowicz# './MAKEALL' 82f9328639SMarian Balakowicz# 83f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable. 84f9328639SMarian Balakowicz# 85f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and 86f9328639SMarian Balakowicz# the object files are placed in the source directory. 87f9328639SMarian Balakowicz# 887ebf7443Swdenk 89f9328639SMarian Balakowiczifdef O 90f9328639SMarian Balakowiczifeq ("$(origin O)", "command line") 91f9328639SMarian BalakowiczBUILD_DIR := $(O) 92f9328639SMarian Balakowiczendif 93f9328639SMarian Balakowiczendif 947ebf7443Swdenk 95f9328639SMarian Balakowiczifneq ($(BUILD_DIR),) 96f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR) 974f0645ebSMarian Balakowicz 984f0645ebSMarian Balakowicz# Attempt to create a output directory. 994f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) 1004f0645ebSMarian Balakowicz 1014f0645ebSMarian Balakowicz# Verify if it was successful. 102f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) 103f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) 104f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),) 105f9328639SMarian Balakowicz 106f9328639SMarian BalakowiczOBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) 107f9328639SMarian BalakowiczSRCTREE := $(CURDIR) 108f9328639SMarian BalakowiczTOPDIR := $(SRCTREE) 109f9328639SMarian BalakowiczLNDIR := $(OBJTREE) 110f9328639SMarian Balakowiczexport TOPDIR SRCTREE OBJTREE 111f9328639SMarian Balakowicz 112f9328639SMarian BalakowiczMKCONFIG := $(SRCTREE)/mkconfig 113f9328639SMarian Balakowiczexport MKCONFIG 114f9328639SMarian Balakowicz 115f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 116f9328639SMarian BalakowiczREMOTE_BUILD := 1 117f9328639SMarian Balakowiczexport REMOTE_BUILD 118f9328639SMarian Balakowiczendif 119f9328639SMarian Balakowicz 120f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile 121f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for 122f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc. 123f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE)) 124f9328639SMarian Balakowiczobj := $(OBJTREE)/ 125f9328639SMarian Balakowiczsrc := $(SRCTREE)/ 126f9328639SMarian Balakowiczelse 127f9328639SMarian Balakowiczobj := 128f9328639SMarian Balakowiczsrc := 129f9328639SMarian Balakowiczendif 130f9328639SMarian Balakowiczexport obj src 131f9328639SMarian Balakowicz 1325013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere 1335013c09fSWolfgang Denkunexport CDPATH 1345013c09fSWolfgang Denk 135f9328639SMarian Balakowicz######################################################################### 136f9328639SMarian Balakowicz 1376d1ce387SMike Frysinger# The "tools" are needed early, so put this first 1386d1ce387SMike Frysinger# Don't include stuff already done in $(LIBS) 1396d1ce387SMike FrysingerSUBDIRS = tools \ 1401bc15386SPeter Tyser examples/standalone \ 141d4abc757SPeter Tyser examples/api 1426d1ce387SMike Frysinger 1436d1ce387SMike Frysinger.PHONY : $(SUBDIRS) 1446d1ce387SMike Frysinger 145ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) 146f9328639SMarian Balakowicz 1472632c008SMike Frysinger# Include autoconf.mk before config.mk so that the config options are available 1482632c008SMike Frysinger# to all top level build files. We need the dummy all: target to prevent the 1492632c008SMike Frysinger# dependency target in autoconf.mk.dep from being the default. 1502632c008SMike Frysingerall: 1512632c008SMike Frysingersinclude $(obj)include/autoconf.mk.dep 1522632c008SMike Frysingersinclude $(obj)include/autoconf.mk 1532632c008SMike Frysinger 1547ebf7443Swdenk# load ARCH, BOARD, and CPU configuration 155ae6d1056SWolfgang Denkinclude $(obj)include/config.mk 1561d9f4105Swdenkexport ARCH CPU BOARD VENDOR SOC 157f9328639SMarian Balakowicz 1581ea6bcd8SMike Frysinger# set default to nothing for native builds 159a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH)) 1601ea6bcd8SMike FrysingerCROSS_COMPILE ?= 1617ebf7443Swdenkendif 1627ebf7443Swdenk 16392b197f0SWolfgang Denk# load other configuration 16492b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk 16592b197f0SWolfgang Denk 1667ebf7443Swdenk######################################################################### 1677ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first) 1687ebf7443Swdenk 16903b7004dSPeter TyserOBJS = $(CPUDIR)/start.o 1702262cfeeSwdenkifeq ($(CPU),i386) 17103b7004dSPeter TyserOBJS += $(CPUDIR)/start16.o 17203b7004dSPeter TyserOBJS += $(CPUDIR)/resetvec.o 1732262cfeeSwdenkendif 1747ebf7443Swdenkifeq ($(CPU),ppc4xx) 17503b7004dSPeter TyserOBJS += $(CPUDIR)/resetvec.o 1767ebf7443Swdenkendif 17742d1f039Swdenkifeq ($(CPU),mpc85xx) 17803b7004dSPeter TyserOBJS += $(CPUDIR)/resetvec.o 17942d1f039Swdenkendif 1807ebf7443Swdenk 181f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS)) 182f9328639SMarian Balakowicz 18378acc472SPeter TyserLIBS = lib/libgeneric.a 18478acc472SPeter TyserLIBS += lib/lzma/liblzma.a 18578acc472SPeter TyserLIBS += lib/lzo/liblzo.a 1867608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ 1877608d75fSKim Phillips "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) 18803b7004dSPeter TyserLIBS += $(CPUDIR)/lib$(CPU).a 1891d9f4105Swdenkifdef SOC 19003b7004dSPeter TyserLIBS += $(CPUDIR)/$(SOC)/lib$(SOC).a 1911d9f4105Swdenkendif 192323bfa8fSStefan Roeseifeq ($(CPU),ixp) 19384ad6884SPeter TyserLIBS += arch/arm/cpu/ixp/npe/libnpe.a 194323bfa8fSStefan Roeseendif 195ea0364f1SPeter TyserLIBS += arch/$(ARCH)/lib/lib$(ARCH).a 196518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ 1979eefe2a2SStefan Roese fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \ 1989eefe2a2SStefan Roese fs/ubifs/libubifs.a 1997ebf7443SwdenkLIBS += net/libnet.a 2007ebf7443SwdenkLIBS += disk/libdisk.a 2010f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a 20233daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a 20357a12720STsiChungLiewLIBS += drivers/dma/libdma.a 204c8aa7dfcSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/fpga/libfpga.a 205e92739d3SPeter TyserLIBS += drivers/gpio/libgpio.a 206f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a 207080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a 20816b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a 209318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a 2105ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a 21159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a 21259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a 21359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a 21458be3a10SKyungmin ParkLIBS += drivers/mtd/ubi/libubi.a 215d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a 2168e585f02STsiChung LiewLIBS += drivers/net/libnet.a 21755195773SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/phy/libphy.a 21893a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a 21973646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a 220cd782635STom RixLIBS += drivers/power/libpower.a 22104a9e118SBen WarrenLIBS += drivers/spi/libspi.a 2227737d5c6SDave Liuifeq ($(CPU),mpc83xx) 2237737d5c6SDave LiuLIBS += drivers/qe/qe.a 2245d0c3b57SKim PhillipsLIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a 2257737d5c6SDave Liuendif 226da9d4610SAndy Flemingifeq ($(CPU),mpc85xx) 227da9d4610SAndy FlemingLIBS += drivers/qe/qe.a 228a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a 229a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a 23058e5e9afSKumar Galaendif 23158e5e9afSKumar Galaifeq ($(CPU),mpc86xx) 232a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a 233a47a12beSStefan RoeseLIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a 234da9d4610SAndy Flemingendif 23559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a 2368e585f02STsiChung LiewLIBS += drivers/serial/libserial.a 237572e6179SDetlev ZundelLIBS += drivers/twserial/libtws.a 2382731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/gadget/libusb_gadget.a 2392731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/host/libusb_host.a 2402731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/musb/libusb_musb.a 241bffbb2a8STom RixLIBS += drivers/usb/phy/libusb_phy.a 24259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a 243843a2654SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/watchdog/libwatchdog.a 2447ebf7443SwdenkLIBS += common/libcommon.a 2450de71d50SPeter TyserLIBS += lib/libfdt/libfdt.a 246500856ebSRafal JaworowskiLIBS += api/libapi.a 2472d2b994aSYuri TikhonovLIBS += post/libpost.a 248f9328639SMarian Balakowicz 249d34efc76SSteve Sakomanifeq ($(SOC),omap3) 250d34efc76SSteve SakomanLIBS += $(CPUDIR)/omap-common/libomap-common.a 251d34efc76SSteve Sakomanendif 252d34efc76SSteve Sakomanifeq ($(SOC),omap4) 253d34efc76SSteve SakomanLIBS += $(CPUDIR)/omap-common/libomap-common.a 254d34efc76SSteve Sakomanendif 255d34efc76SSteve Sakoman 256852bd07cSMinkyu Kangifeq ($(SOC),s5pc1xx) 257852bd07cSMinkyu KangLIBS += $(CPUDIR)/s5p-common/libs5p-common.a 258852bd07cSMinkyu Kangendif 259852bd07cSMinkyu Kangifeq ($(SOC),s5pc2xx) 260852bd07cSMinkyu KangLIBS += $(CPUDIR)/s5p-common/libs5p-common.a 261852bd07cSMinkyu Kangendif 262852bd07cSMinkyu Kang 263f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS)) 264561858eeSPeter Tyser.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE) 265a8c7c708Swdenk 266de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a 267de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD)) 268de109d90SWolfgang Denk 2694f7cb08eSwdenk# Add GCC lib 27052b1bf2cSWolfgang Denkifdef USE_PRIVATE_LIBGCC 27152b1bf2cSWolfgang Denkifeq ("$(USE_PRIVATE_LIBGCC)", "yes") 272ea0364f1SPeter TyserPLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc 27352b1bf2cSWolfgang Denkelse 27452b1bf2cSWolfgang DenkPLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc 27552b1bf2cSWolfgang Denkendif 27652b1bf2cSWolfgang Denkelse 27752b1bf2cSWolfgang DenkPLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc 27852b1bf2cSWolfgang Denkendif 27952b1bf2cSWolfgang DenkPLATFORM_LIBS += $(PLATFORM_LIBGCC) 28052b1bf2cSWolfgang Denkexport PLATFORM_LIBS 2813d3befa7Swdenk 2826ac9f479SMike Frysinger# Special flags for CPP when processing the linker script. 2836ac9f479SMike Frysinger# Pass the version down so we can handle backwards compatibility 2846ac9f479SMike Frysinger# on the fly. 2856ac9f479SMike FrysingerLDPPFLAGS += \ 2866ac9f479SMike Frysinger -include $(TOPDIR)/include/u-boot/u-boot.lds.h \ 2876ac9f479SMike Frysinger $(shell $(LD) --version | \ 2886ac9f479SMike Frysinger sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p') 2896ac9f479SMike Frysinger 290887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y) 291887e2ec9SStefan RoeseNAND_SPL = nand_spl 292887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin 293887e2ec9SStefan Roeseendif 294887e2ec9SStefan Roese 295751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y) 296751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl 297751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin 298ca6189dbSKyungmin ParkONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin 299751b9b51SKyungmin Parkendif 300751b9b51SKyungmin Park 301f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS)) 302de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD)) 303f9328639SMarian Balakowicz 3047ebf7443Swdenk######################################################################### 305bdccc4feSwdenk######################################################################### 3067ebf7443Swdenk 307f3a14d37SMike Frysingerifneq ($(CONFIG_BOARD_SIZE_LIMIT),) 308f3a14d37SMike FrysingerBOARD_SIZE_CHECK = \ 309f3a14d37SMike Frysinger @actual=`wc -c $@ | awk '{print $$1}'`; \ 310f3a14d37SMike Frysinger limit=$(CONFIG_BOARD_SIZE_LIMIT); \ 311f3a14d37SMike Frysinger if test $$actual -gt $$limit; then \ 312f3a14d37SMike Frysinger echo "$@ exceeds file size limit:"; \ 313f3a14d37SMike Frysinger echo " limit: $$limit bytes"; \ 314f3a14d37SMike Frysinger echo " actual: $$actual bytes"; \ 315f3a14d37SMike Frysinger echo " excess: $$((actual - limit)) bytes"; \ 316f3a14d37SMike Frysinger exit 1; \ 317f3a14d37SMike Frysinger fi 318f3a14d37SMike Frysingerelse 319f3a14d37SMike FrysingerBOARD_SIZE_CHECK = 320f3a14d37SMike Frysingerendif 321f3a14d37SMike Frysinger 3223e88337bSMike Frysinger# Always append ALL so that arch config.mk's can add custom ones 323751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) 3247ebf7443Swdenk 325bdccc4feSwdenkall: $(ALL) 3267ebf7443Swdenk 327f9328639SMarian Balakowicz$(obj)u-boot.hex: $(obj)u-boot 3286310eb9dSwdenk $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ 3296310eb9dSwdenk 330f9328639SMarian Balakowicz$(obj)u-boot.srec: $(obj)u-boot 3310817d688SRicardo Ribalda Delgado $(OBJCOPY) -O srec $< $@ 3327ebf7443Swdenk 333f9328639SMarian Balakowicz$(obj)u-boot.bin: $(obj)u-boot 3347ebf7443Swdenk $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ 335f3a14d37SMike Frysinger $(BOARD_SIZE_CHECK) 3367ebf7443Swdenk 33794a91e24SMike Frysinger$(obj)u-boot.ldr: $(obj)u-boot 33876d82187SMike Frysinger $(CREATE_LDR_ENV) 33968e56324SMike Frysinger $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS) 340f3a14d37SMike Frysinger $(BOARD_SIZE_CHECK) 34194a91e24SMike Frysinger 34294a91e24SMike Frysinger$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr 34394a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary 34494a91e24SMike Frysinger 34594a91e24SMike Frysinger$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr 34694a91e24SMike Frysinger $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary 34794a91e24SMike Frysinger 348f9328639SMarian Balakowicz$(obj)u-boot.img: $(obj)u-boot.bin 349a2a0a717SWolfgang Denk $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \ 35014d0a02aSWolfgang Denk -a $(CONFIG_SYS_TEXT_BASE) -e 0 \ 351881a87ecSWolfgang Denk -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ 352bdccc4feSwdenk sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ 353bdccc4feSwdenk -d $< $@ 354bdccc4feSwdenk 3558edcde5eSStefano Babic$(obj)u-boot.imx: $(obj)u-boot.bin 3568edcde5eSStefano Babic $(obj)tools/mkimage -n $(IMX_CONFIG) -T imximage \ 35714d0a02aSWolfgang Denk -e $(CONFIG_SYS_TEXT_BASE) -d $< $@ 3588edcde5eSStefano Babic 359aa0c7a86SPrafulla Wadaskar$(obj)u-boot.kwb: $(obj)u-boot.bin 360aa0c7a86SPrafulla Wadaskar $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \ 3612ea88b06SEric Cooper -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -d $< $@ 362aa0c7a86SPrafulla Wadaskar 363566a494fSHeiko Schocher$(obj)u-boot.sha1: $(obj)u-boot.bin 36401159530SHeiko Schocher $(obj)tools/ubsha1 $(obj)u-boot.bin 365566a494fSHeiko Schocher 366f9328639SMarian Balakowicz$(obj)u-boot.dis: $(obj)u-boot 3677ebf7443Swdenk $(OBJDUMP) -d $< > $@ 3687ebf7443Swdenk 369ecb1dc89SMike FrysingerGEN_UBOOT = \ 370de109d90SWolfgang Denk UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ 371de109d90SWolfgang Denk sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ 372f9328639SMarian Balakowicz cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ 373f9328639SMarian Balakowicz --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ 374b2184c31Swdenk -Map u-boot.map -o u-boot 37516a354f9SWolfgang Denk$(obj)u-boot: depend \ 37616a354f9SWolfgang Denk $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds 377ecb1dc89SMike Frysinger $(GEN_UBOOT) 378ecb1dc89SMike Frysingerifeq ($(CONFIG_KALLSYMS),y) 3791aada9cdSWolfgang Denk smap=`$(call SYSTEM_MAP,u-boot) | \ 3801aada9cdSWolfgang Denk awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \ 3811aada9cdSWolfgang Denk $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \ 3821aada9cdSWolfgang Denk -c common/system_map.c -o $(obj)common/system_map.o 383ecb1dc89SMike Frysinger $(GEN_UBOOT) $(obj)common/system_map.o 384ecb1dc89SMike Frysingerendif 3857ebf7443Swdenk 386d0d6144eSPeter Tyser$(OBJS): depend 38703b7004dSPeter Tyser $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@)) 388f9328639SMarian Balakowicz 389d0d6144eSPeter Tyser$(LIBS): depend $(SUBDIRS) 390f9328639SMarian Balakowicz $(MAKE) -C $(dir $(subst $(obj),,$@)) 391a8c7c708Swdenk 392d0d6144eSPeter Tyser$(LIBBOARD): depend $(LIBS) 393de109d90SWolfgang Denk $(MAKE) -C $(dir $(subst $(obj),,$@)) 394de109d90SWolfgang Denk 395d0d6144eSPeter Tyser$(SUBDIRS): depend 396b028f715Swdenk $(MAKE) -C $@ all 3977ebf7443Swdenk 398d0d6144eSPeter Tyser$(LDSCRIPT): depend 399f65c9812SMike Frysinger $(MAKE) -C $(dir $@) $(notdir $@) 400f65c9812SMike Frysinger 4011aada9cdSWolfgang Denk$(obj)u-boot.lds: $(LDSCRIPT) 4021aada9cdSWolfgang Denk $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@ 4031aada9cdSWolfgang Denk 404*f0fee6a6SWolfgang Denk$(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) depend 4058318fbf8SMarian Balakowicz $(MAKE) -C nand_spl/board/$(BOARDDIR) all 406887e2ec9SStefan Roese 407d0d6144eSPeter Tyser$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin 4088318fbf8SMarian Balakowicz cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin 409887e2ec9SStefan Roese 410561858eeSPeter Tyser$(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk 411f2302d44SStefan Roese $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all 412751b9b51SKyungmin Park 413d0d6144eSPeter Tyser$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin 414ca6189dbSKyungmin Park cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin 415751b9b51SKyungmin Park 416ae6d1056SWolfgang Denk$(VERSION_FILE): 417aa737945SMike Frysinger @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ 418434c51a5SPeter Tyser '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp 4190ec7a061SMike Frysinger @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ 420881a87ecSWolfgang Denk 421561858eeSPeter Tyser$(TIMESTAMP_FILE): 422d6b93714SIlya Yanok @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ 423d6b93714SIlya Yanok @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@ 424561858eeSPeter Tyser 425f9328639SMarian Balakowiczupdater: 4260358df42SMike Frysinger $(MAKE) -C tools/updater all 4278f713fdfSdzu 4282a998793SDaniel Hobi# Explicitly make _depend in subdirs containing multiple targets to prevent 4292a998793SDaniel Hobi# parallel sub-makes creating .depend files simultaneously. 43016a354f9SWolfgang Denkdepend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) \ 43116a354f9SWolfgang Denk $(obj)include/autoconf.mk \ 43216a354f9SWolfgang Denk $(obj)include/generated/generic-asm-offsets.h 43303b7004dSPeter Tyser for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \ 4342a998793SDaniel Hobi $(MAKE) -C $$dir _depend ; done 4357ebf7443Swdenk 436e5e4e705SLi YangTAG_SUBDIRS = $(SUBDIRS) 437e5e4e705SLi YangTAG_SUBDIRS += $(dir $(__LIBS)) 438a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include 439a340c325SJean-Christophe PLAGNIOL-VILLARD 440f9328639SMarian Balakowicztags ctags: 441e5e4e705SLi Yang ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \ 442e5e4e705SLi Yang -name '*.[chS]' -print` 4437ebf7443Swdenk 4447ebf7443Swdenketags: 445e5e4e705SLi Yang etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \ 446e5e4e705SLi Yang -name '*.[chS]' -print` 447ffda586fSLi Yangcscope: 448e5e4e705SLi Yang find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files 449ffda586fSLi Yang cscope -b -q -k 4507ebf7443Swdenk 451ecb1dc89SMike FrysingerSYSTEM_MAP = \ 452ecb1dc89SMike Frysinger $(NM) $1 | \ 4537ebf7443Swdenk grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ 454ecb1dc89SMike Frysinger LC_ALL=C sort 455ecb1dc89SMike Frysinger$(obj)System.map: $(obj)u-boot 456ecb1dc89SMike Frysinger @$(call SYSTEM_MAP,$<) > $(obj)System.map 4577ebf7443Swdenk 4582f155f6cSGrant Likely# 4592f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles) 4602f155f6cSGrant Likely# 4612f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. 4622f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when 4632f155f6cSGrant Likely# to regenerate the autoconf.mk file. 4641510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h 4651510b82dSWolfgang Denk @$(XECHO) Generating $@ ; \ 46616fe7775SMike Frysinger set -e ; \ 467ae6d1056SWolfgang Denk : Generate the dependancies ; \ 4689aef7388SMike Frysinger $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \ 4691510b82dSWolfgang Denk -MQ $(obj)include/autoconf.mk include/common.h > $@ 4701510b82dSWolfgang Denk 4711510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h 4721510b82dSWolfgang Denk @$(XECHO) Generating $@ ; \ 4731510b82dSWolfgang Denk set -e ; \ 474ae6d1056SWolfgang Denk : Extract the config macros ; \ 4751510b82dSWolfgang Denk $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \ 4764a0f7538SWolfgang Denk sed -n -f tools/scripts/define2mk.sed > $@.tmp && \ 4774a0f7538SWolfgang Denk mv $@.tmp $@ 4782f155f6cSGrant Likely 47916a354f9SWolfgang Denk$(obj)include/generated/generic-asm-offsets.h: $(obj)include/autoconf.mk.dep \ 48016a354f9SWolfgang Denk $(obj)lib/asm-offsets.s 48116a354f9SWolfgang Denk @$(XECHO) Generating $@ 48216a354f9SWolfgang Denk tools/scripts/make-asm-offsets $(obj)lib/asm-offsets.s $@ 48316a354f9SWolfgang Denk 48416a354f9SWolfgang Denk$(obj)lib/asm-offsets.s: $(obj)include/autoconf.mk.dep \ 48516a354f9SWolfgang Denk $(src)lib/asm-offsets.c 48616a354f9SWolfgang Denk @mkdir -p $(obj)lib 48716a354f9SWolfgang Denk $(CC) -DDO_DEPS_ONLY \ 48816a354f9SWolfgang Denk $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ 48916a354f9SWolfgang Denk -o $@ $(src)lib/asm-offsets.c -c -S 49016a354f9SWolfgang Denk 4917ebf7443Swdenk######################################################################### 492ae6d1056SWolfgang Denkelse # !config.mk 493f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ 494f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ 4950358df42SMike Frysinger$(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) \ 4960358df42SMike Frysingerupdater depend dep tags ctags etags cscope $(obj)System.map: 4977ebf7443Swdenk @echo "System not configured - see README" >&2 4987ebf7443Swdenk @ exit 1 499c7c0d542SMike Frysinger 500c7c0d542SMike Frysingertools: 5010358df42SMike Frysinger $(MAKE) -C $@ all 502ae6d1056SWolfgang Denkendif # config.mk 5037ebf7443Swdenk 5040358df42SMike Frysingereasylogo env gdb: 5050358df42SMike Frysinger $(MAKE) -C tools/$@ all MTD_VERSION=${MTD_VERSION} 5060358df42SMike Frysingergdbtools: gdb 5070358df42SMike Frysinger 5080358df42SMike Frysingertools-all: easylogo env gdb 5090358df42SMike Frysinger $(MAKE) -C tools HOST_TOOLS_ALL=y 5100358df42SMike Frysinger 5114e53a258SWolfgang Denk.PHONY : CHANGELOG 5124e53a258SWolfgang DenkCHANGELOG: 513b985b5d6SBen Warren git log --no-merges U-Boot-1_1_5.. | \ 514b985b5d6SBen Warren unexpand -a | sed -e 's/\s\s*$$//' > $@ 5154e53a258SWolfgang Denk 5160a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING 5170a823aa2SHarald Welte cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h 5187ebf7443Swdenk######################################################################### 5197ebf7443Swdenk 5207ebf7443Swdenkunconfig: 521887e2ec9SStefan Roese @rm -f $(obj)include/config.h $(obj)include/config.mk \ 5222f155f6cSGrant Likely $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ 5232f155f6cSGrant Likely $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep 5247ebf7443Swdenk 525a6862bc1SWolfgang Denk%_config:: unconfig 526a6862bc1SWolfgang Denk @$(MKCONFIG) -A $(@:_config=) 527a6862bc1SWolfgang Denk 528727ebd9fSMike Frysingersinclude .boards.depend 529727ebd9fSMike Frysinger.boards.depend: boards.cfg 530727ebd9fSMike Frysinger awk '(NF && $$1 !~ /^#/) { print $$1 ": " $$1 "_config; $$(MAKE)" }' $< > $@ 5319f4a4206SMike Frysinger 5328c994630SWolfgang Denk# 5338c994630SWolfgang Denk# Functions to generate common board directory names 5348c994630SWolfgang Denk# 5358c994630SWolfgang Denklcname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\L\1/') 5368c994630SWolfgang Denkucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/') 5378c994630SWolfgang Denk 5384e5ca3ebSwdenk######################################################################### 5394e5ca3ebSwdenk## Coldfire 5404e5ca3ebSwdenk######################################################################### 5414e5ca3ebSwdenk 5429d79e575SWolfgang Wegnerastro_mcf5373l_config \ 5439d79e575SWolfgang Wegnerastro_mcf5373l_RAM_config : unconfig 544ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ astro_mcf5373l m68k mcf532x mcf5373l astro 5459d79e575SWolfgang Wegner 546a21d0c2cSTsiChung LiewM52277EVB_config \ 547a21d0c2cSTsiChung LiewM52277EVB_spansion_config \ 548a21d0c2cSTsiChung LiewM52277EVB_stmicro_config : unconfig 549a21d0c2cSTsiChung Liew @case "$@" in \ 550a21d0c2cSTsiChung Liew M52277EVB_config) FLASH=SPANSION;; \ 551a21d0c2cSTsiChung Liew M52277EVB_spansion_config) FLASH=SPANSION;; \ 552a21d0c2cSTsiChung Liew M52277EVB_stmicro_config) FLASH=STMICRO;; \ 553a21d0c2cSTsiChung Liew esac; \ 554a21d0c2cSTsiChung Liew if [ "$${FLASH}" = "SPANSION" ] ; then \ 555a21d0c2cSTsiChung Liew echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \ 55614d0a02aSWolfgang Denk echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 557a21d0c2cSTsiChung Liew cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \ 558a21d0c2cSTsiChung Liew fi; \ 559a21d0c2cSTsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 560a21d0c2cSTsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 561a21d0c2cSTsiChung Liew echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 56214d0a02aSWolfgang Denk echo "CONFIG_SYS_TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \ 563a21d0c2cSTsiChung Liew cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \ 564a21d0c2cSTsiChung Liew fi 5650e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale 5661552af70STsiChungLiew 5674a442d31STsiChungLiewM5235EVB_config \ 5684a442d31STsiChungLiewM5235EVB_Flash16_config \ 5694a442d31STsiChungLiewM5235EVB_Flash32_config: unconfig 5704a442d31STsiChungLiew @case "$@" in \ 5714a442d31STsiChungLiew M5235EVB_config) FLASH=16;; \ 5724a442d31STsiChungLiew M5235EVB_Flash16_config) FLASH=16;; \ 5734a442d31STsiChungLiew M5235EVB_Flash32_config) FLASH=32;; \ 5744a442d31STsiChungLiew esac; \ 5754a442d31STsiChungLiew if [ "$${FLASH}" != "16" ] ; then \ 576ae6d1056SWolfgang Denk echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ 57714d0a02aSWolfgang Denk echo "CONFIG_SYS_TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 5784a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 5794a442d31STsiChungLiew else \ 58014d0a02aSWolfgang Denk echo "CONFIG_SYS_TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ 5814a442d31STsiChungLiew cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ 5824a442d31STsiChungLiew fi 5830e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale 5844a442d31STsiChungLiew 5857481266eSWolfgang Denkcobra5272_config : unconfig 586ed7a196cSWolfgang Denk @$(MKCONFIG) $@ m68k mcf52x2 cobra5272 5877481266eSWolfgang Denk 5884176c799SWolfgang DenkEB+MCF-EV123_config : unconfig 589f9328639SMarian Balakowicz @mkdir -p $(obj)include 590f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 59114d0a02aSWolfgang Denk @echo "CONFIG_SYS_TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 5920e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 5934176c799SWolfgang Denk 5944176c799SWolfgang DenkEB+MCF-EV123_internal_config : unconfig 595f9328639SMarian Balakowicz @mkdir -p $(obj)include 596f9328639SMarian Balakowicz @mkdir -p $(obj)board/BuS/EB+MCF-EV123 59714d0a02aSWolfgang Denk @echo "CONFIG_SYS_TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk 5980e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS 5994176c799SWolfgang Denk 6008e585f02STsiChung LiewM5329AFEE_config \ 6018e585f02STsiChung LiewM5329BFEE_config : unconfig 6028e585f02STsiChung Liew @case "$@" in \ 6038e585f02STsiChung Liew M5329AFEE_config) NAND=0;; \ 6048e585f02STsiChung Liew M5329BFEE_config) NAND=16;; \ 6058e585f02STsiChung Liew esac; \ 6068e585f02STsiChung Liew if [ "$${NAND}" != "0" ] ; then \ 607ab77bc54STsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 6088e585f02STsiChung Liew fi 6090e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5329EVB m68k mcf532x m5329evb freescale 6108e585f02STsiChung Liew 611aa5f1f9dSTsiChungLiewM5373EVB_config : unconfig 612aa5f1f9dSTsiChungLiew @case "$@" in \ 613aa5f1f9dSTsiChungLiew M5373EVB_config) NAND=16;; \ 614aa5f1f9dSTsiChungLiew esac; \ 615aa5f1f9dSTsiChungLiew if [ "$${NAND}" != "0" ] ; then \ 616aa5f1f9dSTsiChungLiew echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ 617aa5f1f9dSTsiChungLiew fi 618aa5f1f9dSTsiChungLiew @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale 619aa5f1f9dSTsiChungLiew 62005316f8eSTsiChung LiewM54451EVB_config \ 62105316f8eSTsiChung LiewM54451EVB_stmicro_config : unconfig 62205316f8eSTsiChung Liew @case "$@" in \ 623709b384bSTsiChung Liew M54451EVB_config) FLASH=NOR;; \ 62405316f8eSTsiChung Liew M54451EVB_stmicro_config) FLASH=STMICRO;; \ 62505316f8eSTsiChung Liew esac; \ 626709b384bSTsiChung Liew if [ "$${FLASH}" = "NOR" ] ; then \ 62714d0a02aSWolfgang Denk echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 62805316f8eSTsiChung Liew cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \ 62905316f8eSTsiChung Liew fi; \ 63005316f8eSTsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 63105316f8eSTsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 6326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 63314d0a02aSWolfgang Denk echo "CONFIG_SYS_TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \ 63405316f8eSTsiChung Liew cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \ 63505316f8eSTsiChung Liew fi; \ 6366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ; 6370e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale 63805316f8eSTsiChung Liew 6398ae158cdSTsiChungLiewM54455EVB_config \ 6408ae158cdSTsiChungLiewM54455EVB_atmel_config \ 6418ae158cdSTsiChungLiewM54455EVB_intel_config \ 6428ae158cdSTsiChungLiewM54455EVB_a33_config \ 6438ae158cdSTsiChungLiewM54455EVB_a66_config \ 6448ae158cdSTsiChungLiewM54455EVB_i33_config \ 6459f751551STsiChung LiewM54455EVB_i66_config \ 6469f751551STsiChung LiewM54455EVB_stm33_config : unconfig 6478ae158cdSTsiChungLiew @case "$@" in \ 6488ae158cdSTsiChungLiew M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ 6498ae158cdSTsiChungLiew M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ 6508ae158cdSTsiChungLiew M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ 6518ae158cdSTsiChungLiew M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ 6528ae158cdSTsiChungLiew M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ 6538ae158cdSTsiChungLiew M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ 6548ae158cdSTsiChungLiew M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ 6559f751551STsiChung Liew M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \ 6568ae158cdSTsiChungLiew esac; \ 6571aaab9bfSWolfgang Denk if [ "$${FLASH}" = "INTEL" ] ; then \ 6586d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \ 65914d0a02aSWolfgang Denk echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 660e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ 6619f751551STsiChung Liew fi; \ 6629f751551STsiChung Liew if [ "$${FLASH}" = "ATMEL" ] ; then \ 6636d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \ 66414d0a02aSWolfgang Denk echo "CONFIG_SYS_TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 665e8ee8f3aSTsiChungLiew cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 6668ae158cdSTsiChungLiew fi; \ 6679f751551STsiChung Liew if [ "$${FLASH}" = "STMICRO" ] ; then \ 6689f751551STsiChung Liew echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ 6696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ 67014d0a02aSWolfgang Denk echo "CONFIG_SYS_TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \ 6719f751551STsiChung Liew cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \ 6729f751551STsiChung Liew fi; \ 6736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ 6740e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M54455EVB m68k mcf5445x m54455evb freescale 6758ae158cdSTsiChungLiew 67657a12720STsiChungLiewM5475AFE_config \ 67757a12720STsiChungLiewM5475BFE_config \ 67857a12720STsiChungLiewM5475CFE_config \ 67957a12720STsiChungLiewM5475DFE_config \ 68057a12720STsiChungLiewM5475EFE_config \ 68157a12720STsiChungLiewM5475FFE_config \ 68257a12720STsiChungLiewM5475GFE_config : unconfig 68357a12720STsiChungLiew @case "$@" in \ 68457a12720STsiChungLiew M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 68557a12720STsiChungLiew M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 68657a12720STsiChungLiew M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 68757a12720STsiChungLiew M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 68857a12720STsiChungLiew M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 68957a12720STsiChungLiew M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 69057a12720STsiChungLiew M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 69157a12720STsiChungLiew esac; \ 6926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \ 6936d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 6946d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 69557a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 6966d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 69757a12720STsiChungLiew fi; \ 69857a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 6996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 70057a12720STsiChungLiew fi; \ 70157a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 7026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 70357a12720STsiChungLiew fi; \ 70457a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 7056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 70657a12720STsiChungLiew fi 7070e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5475EVB m68k mcf547x_8x m547xevb freescale 70857a12720STsiChungLiew 70957a12720STsiChungLiewM5485AFE_config \ 71057a12720STsiChungLiewM5485BFE_config \ 71157a12720STsiChungLiewM5485CFE_config \ 71257a12720STsiChungLiewM5485DFE_config \ 71357a12720STsiChungLiewM5485EFE_config \ 71457a12720STsiChungLiewM5485FFE_config \ 71557a12720STsiChungLiewM5485GFE_config \ 71657a12720STsiChungLiewM5485HFE_config : unconfig 71757a12720STsiChungLiew @case "$@" in \ 71857a12720STsiChungLiew M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 71957a12720STsiChungLiew M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ 72057a12720STsiChungLiew M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ 72157a12720STsiChungLiew M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ 72257a12720STsiChungLiew M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ 72357a12720STsiChungLiew M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ 72457a12720STsiChungLiew M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ 7254d264effSTsiChungLiew M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ 72657a12720STsiChungLiew esac; \ 7276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \ 7286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ 7296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ 73057a12720STsiChungLiew if [ "$${RAM1}" != "0" ] ; then \ 7316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ 73257a12720STsiChungLiew fi; \ 73357a12720STsiChungLiew if [ "$${CODE}" != "0" ] ; then \ 7346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ 73557a12720STsiChungLiew fi; \ 73657a12720STsiChungLiew if [ "$${VID}" == "1" ] ; then \ 7376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ 73857a12720STsiChungLiew fi; \ 73957a12720STsiChungLiew if [ "$${USB}" == "1" ] ; then \ 7406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ 74157a12720STsiChungLiew fi 7420e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a M5485EVB m68k mcf547x_8x m548xevb freescale 74357a12720STsiChungLiew 7447ebf7443Swdenk#======================================================================== 7457ebf7443Swdenk# ARM 7467ebf7443Swdenk#======================================================================== 74743a5f0dfSPo-Yu Chuang 748a4b46ed6SUlf Samuelsson######################################################################### 749a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems 750a4b46ed6SUlf Samuelsson######################################################################### 75120b197c6SStelian Pop 752d8380c9dSTom RixCPUAT91_RAM_config \ 753d8380c9dSTom RixCPUAT91_config : unconfig 754d8380c9dSTom Rix @mkdir -p $(obj)include 755d8380c9dSTom Rix @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 756af4b8b4bSEric Bénard @$(MKCONFIG) -n $@ -a cpuat91 arm arm920t cpuat91 eukrea at91 757d8380c9dSTom Rix 758a4b46ed6SUlf Samuelsson######################################################################### 75934be1065SMatthias Weisser## ARM926EJ-S Systems 760a4b46ed6SUlf Samuelsson######################################################################### 761a4b46ed6SUlf Samuelsson 76289a7a87fSNicolas Ferreat91sam9260ek_nandflash_config \ 76389a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs0_config \ 76489a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs1_config \ 765df486b1fSNicolas Ferreat91sam9260ek_config \ 766df486b1fSNicolas Ferreat91sam9g20ek_nandflash_config \ 767df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs0_config \ 768df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs1_config \ 769df486b1fSNicolas Ferreat91sam9g20ek_config : unconfig 770e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 771df486b1fSNicolas Ferre @if [ "$(findstring 9g20,$@)" ] ; then \ 772df486b1fSNicolas Ferre echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \ 773df486b1fSNicolas Ferre else \ 774df486b1fSNicolas Ferre echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \ 775df486b1fSNicolas Ferre fi; 77689a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 77789a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 77889a7a87fSNicolas Ferre elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 77989a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 78089a7a87fSNicolas Ferre else \ 78189a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 78289a7a87fSNicolas Ferre fi; 7830e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 784a4b46ed6SUlf Samuelsson 7854e170b16SNicolas Ferreat91sam9xeek_nandflash_config \ 7864e170b16SNicolas Ferreat91sam9xeek_dataflash_cs0_config \ 7874e170b16SNicolas Ferreat91sam9xeek_dataflash_cs1_config \ 7884e170b16SNicolas Ferreat91sam9xeek_config : unconfig 7894e170b16SNicolas Ferre @mkdir -p $(obj)include 7904e170b16SNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 7914e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 7924e170b16SNicolas Ferre elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 7934e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 7944e170b16SNicolas Ferre else \ 7954e170b16SNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ 7964e170b16SNicolas Ferre fi; 7970e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 7984e170b16SNicolas Ferre 79989a7a87fSNicolas Ferreat91sam9261ek_nandflash_config \ 80089a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs0_config \ 80189a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs3_config \ 8025ccc2d99SSedji Gaouaouat91sam9261ek_config \ 8035ccc2d99SSedji Gaouaouat91sam9g10ek_nandflash_config \ 8045ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs0_config \ 8055ccc2d99SSedji Gaouaouat91sam9g10ek_dataflash_cs3_config \ 8065ccc2d99SSedji Gaouaouat91sam9g10ek_config : unconfig 807e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 8085ccc2d99SSedji Gaouaou @if [ "$(findstring 9g10,$@)" ] ; then \ 8095ccc2d99SSedji Gaouaou echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \ 8105ccc2d99SSedji Gaouaou else \ 8115ccc2d99SSedji Gaouaou echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \ 8125ccc2d99SSedji Gaouaou fi; 81389a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 81489a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 8155ccc2d99SSedji Gaouaou elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ 81689a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \ 81789a7a87fSNicolas Ferre else \ 81889a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ 81989a7a87fSNicolas Ferre fi; 8200e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91 82128962f5aSJean-Christophe PLAGNIOL-VILLARD 8221b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_config \ 8231b3b7c64SJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_norflash_boot_config \ 82489a7a87fSNicolas Ferreat91sam9263ek_nandflash_config \ 82589a7a87fSNicolas Ferreat91sam9263ek_dataflash_config \ 82689a7a87fSNicolas Ferreat91sam9263ek_dataflash_cs0_config \ 82728962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_config : unconfig 828e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 82989a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 83089a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 8311b3b7c64SJean-Christophe PLAGNIOL-VILLARD elif [ "$(findstring norflash,$@)" ] ; then \ 8321b3b7c64SJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \ 83389a7a87fSNicolas Ferre else \ 83489a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 83589a7a87fSNicolas Ferre fi; 8361b3b7c64SJean-Christophe PLAGNIOL-VILLARD @if [ "$(findstring norflash_boot,$@)" ] ; then \ 8371b3b7c64SJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \ 8381b3b7c64SJean-Christophe PLAGNIOL-VILLARD fi; 8390e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91 84028962f5aSJean-Christophe PLAGNIOL-VILLARD 84189a7a87fSNicolas Ferreat91sam9rlek_nandflash_config \ 84289a7a87fSNicolas Ferreat91sam9rlek_dataflash_config \ 84389a7a87fSNicolas Ferreat91sam9rlek_dataflash_cs0_config \ 84428962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9rlek_config : unconfig 845e12d9a8fSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 84689a7a87fSNicolas Ferre @if [ "$(findstring _nandflash,$@)" ] ; then \ 84789a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 84889a7a87fSNicolas Ferre else \ 84989a7a87fSNicolas Ferre echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ 85089a7a87fSNicolas Ferre fi; 8510e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91 85228962f5aSJean-Christophe PLAGNIOL-VILLARD 85323b80982STom RixCPU9G20_128M_config \ 85423b80982STom RixCPU9G20_config \ 85523b80982STom RixCPU9260_128M_config \ 85623b80982STom RixCPU9260_config : unconfig 85723b80982STom Rix @mkdir -p $(obj)include 85823b80982STom Rix @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 8590e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a cpu9260 arm arm926ejs cpu9260 eukrea at91 86023b80982STom Rix 86122ee6473SSedji Gaouaouat91sam9m10g45ek_nandflash_config \ 86222ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_config \ 86322ee6473SSedji Gaouaouat91sam9m10g45ek_dataflash_cs0_config \ 86422ee6473SSedji Gaouaouat91sam9m10g45ek_config \ 86522ee6473SSedji Gaouaouat91sam9g45ekes_nandflash_config \ 86622ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_config \ 86722ee6473SSedji Gaouaouat91sam9g45ekes_dataflash_cs0_config \ 86822ee6473SSedji Gaouaouat91sam9g45ekes_config : unconfig 86922ee6473SSedji Gaouaou @mkdir -p $(obj)include 87022ee6473SSedji Gaouaou @if [ "$(findstring 9m10,$@)" ] ; then \ 87122ee6473SSedji Gaouaou echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \ 87222ee6473SSedji Gaouaou else \ 87322ee6473SSedji Gaouaou echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \ 87422ee6473SSedji Gaouaou fi; 87522ee6473SSedji Gaouaou @if [ "$(findstring _nandflash,$@)" ] ; then \ 87622ee6473SSedji Gaouaou echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ 87722ee6473SSedji Gaouaou else \ 87822ee6473SSedji Gaouaou echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \ 87922ee6473SSedji Gaouaou fi; 8800e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91 88122ee6473SSedji Gaouaou 882b5d289fcSAsen Dimovpm9g45_config : unconfig 883b5d289fcSAsen Dimov @mkdir -p $(obj)include 884b5d289fcSAsen Dimov @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91 885b5d289fcSAsen Dimov 8869453967eSAlbin TonnerreSBC35_A9G20_NANDFLASH_config \ 8879453967eSAlbin TonnerreSBC35_A9G20_EEPROM_config \ 8889453967eSAlbin TonnerreSBC35_A9G20_config : unconfig 8899453967eSAlbin Tonnerre @mkdir -p $(obj)include 8909453967eSAlbin Tonnerre @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 8910e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91 8929453967eSAlbin Tonnerre 8932dc851e3SAlbin TonnerreTNY_A9G20_NANDFLASH_config \ 8942dc851e3SAlbin TonnerreTNY_A9G20_EEPROM_config \ 8952dc851e3SAlbin TonnerreTNY_A9G20_config \ 8962dc851e3SAlbin TonnerreTNY_A9260_NANDFLASH_config \ 8972dc851e3SAlbin TonnerreTNY_A9260_EEPROM_config \ 8982dc851e3SAlbin TonnerreTNY_A9260_config : unconfig 8992dc851e3SAlbin Tonnerre @mkdir -p $(obj)include 9002dc851e3SAlbin Tonnerre @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h 9010e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a tny_a9260 arm arm926ejs tny_a9260 calao at91 9022dc851e3SAlbin Tonnerre 90374f4304eSWolfgang Denk######################################################################## 90487cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info. 90587cb6862SWolfgang Denkintegratorap_config \ 90687cb6862SWolfgang Denkap_config \ 90787cb6862SWolfgang Denkap966_config \ 90887cb6862SWolfgang Denkap922_config \ 90987cb6862SWolfgang Denkap922_XA10_config \ 91087cb6862SWolfgang Denkap7_config \ 91187cb6862SWolfgang Denkap720t_config \ 91287cb6862SWolfgang Denkap920t_config \ 91387cb6862SWolfgang Denkap926ejs_config \ 91487cb6862SWolfgang Denkap946es_config: unconfig 915576afd4fSJean-Christophe PLAGNIOL-VILLARD @board/armltd/integrator/split_by_variant.sh ap $@ 9163d3befa7Swdenk 91787cb6862SWolfgang Denkintegratorcp_config \ 91887cb6862SWolfgang Denkcp_config \ 91987cb6862SWolfgang Denkcp920t_config \ 92087cb6862SWolfgang Denkcp926ejs_config \ 92187cb6862SWolfgang Denkcp946es_config \ 92287cb6862SWolfgang Denkcp1136_config \ 92387cb6862SWolfgang Denkcp966_config \ 92487cb6862SWolfgang Denkcp922_config \ 92587cb6862SWolfgang Denkcp922_XA10_config \ 92687cb6862SWolfgang Denkcp1026_config: unconfig 927576afd4fSJean-Christophe PLAGNIOL-VILLARD @board/armltd/integrator/split_by_variant.sh cp $@ 92825d6712aSwdenk 929ee1363f2SAlessandro Rubininhk8815_config \ 930ee1363f2SAlessandro Rubininhk8815_onenand_config: unconfig 931d5254f14SAlessandro Rubini @mkdir -p $(obj)include 932d5254f14SAlessandro Rubini @ > $(obj)include/config.h 933d5254f14SAlessandro Rubini @if [ "$(findstring _onenand, $@)" ] ; then \ 934d5254f14SAlessandro Rubini echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \ 935d5254f14SAlessandro Rubini fi 9360e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a nhk8815 arm arm926ejs nhk8815 st nomadik 937d5254f14SAlessandro Rubini 938a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) 939a4b46ed6SUlf Samuelsson 94063e73c9aSwdenkomap1610inn_config \ 94163e73c9aSwdenkomap1610inn_cs0boot_config \ 94263e73c9aSwdenkomap1610inn_cs3boot_config \ 9433ff02c27Swdenkomap1610inn_cs_autoboot_config \ 94463e73c9aSwdenkomap1610h2_config \ 94563e73c9aSwdenkomap1610h2_cs0boot_config \ 9463ff02c27Swdenkomap1610h2_cs3boot_config \ 9473ff02c27Swdenkomap1610h2_cs_autoboot_config: unconfig 948f9328639SMarian Balakowicz @mkdir -p $(obj)include 94963e73c9aSwdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 950cdd917a4SWolfgang Denk echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ 9513ff02c27Swdenk elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ 952cdd917a4SWolfgang Denk echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ 95363e73c9aSwdenk else \ 954cdd917a4SWolfgang Denk echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 95563e73c9aSwdenk fi; 9560e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap 9576f21347dSwdenk 958a56bd922Swdenkomap730p2_config \ 959a56bd922Swdenkomap730p2_cs0boot_config \ 960a56bd922Swdenkomap730p2_cs3boot_config : unconfig 961f9328639SMarian Balakowicz @mkdir -p $(obj)include 962a56bd922Swdenk @if [ "$(findstring _cs0boot_, $@)" ] ; then \ 963f9328639SMarian Balakowicz echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ 964a56bd922Swdenk else \ 965f9328639SMarian Balakowicz echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ 966a56bd922Swdenk fi; 967ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap 968a56bd922Swdenk 969080cfee7SVipin KUMARspear300_config \ 9707da69236SVipin KUMARspear310_config \ 9717da69236SVipin KUMARspear320_config : unconfig 972ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear 9737e074158SVipin KUMAR 974566c9c16SVipin KUMARspear600_config : unconfig 975ed7a196cSWolfgang Denk @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear 976566c9c16SVipin KUMAR 97747fd3bffSJean-Christophe PLAGNIOL-VILLARDSX1_stdout_serial_config \ 9782d24a3a7SwdenkSX1_config: unconfig 97947fd3bffSJean-Christophe PLAGNIOL-VILLARD @mkdir -p $(obj)include 98047fd3bffSJean-Christophe PLAGNIOL-VILLARD @if [ "$(findstring _stdout_serial_, $@)" ] ; then \ 98147fd3bffSJean-Christophe PLAGNIOL-VILLARD echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 98247fd3bffSJean-Christophe PLAGNIOL-VILLARD else \ 98347fd3bffSJean-Christophe PLAGNIOL-VILLARD echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ 98447fd3bffSJean-Christophe PLAGNIOL-VILLARD fi; 9850e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ SX1 arm arm925t sx1 9862d24a3a7Swdenk 987b2001f27Swdenk# TRAB default configuration: 8 MB Flash, 32 MB RAM 98843d9616cSwdenktrab_config \ 989b0639ca3Swdenktrab_bigram_config \ 990b0639ca3Swdenktrab_bigflash_config \ 991f54ebdfaSwdenktrab_old_config: unconfig 992f9328639SMarian Balakowicz @mkdir -p $(obj)include 993f9328639SMarian Balakowicz @mkdir -p $(obj)board/trab 994b0639ca3Swdenk @[ -z "$(findstring _bigram,$@)" ] || \ 995f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 996f9328639SMarian Balakowicz echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ 997b0639ca3Swdenk } 998b0639ca3Swdenk @[ -z "$(findstring _bigflash,$@)" ] || \ 999f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ 1000f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 100114d0a02aSWolfgang Denk echo "CONFIG_SYS_TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 1002b0639ca3Swdenk } 1003f54ebdfaSwdenk @[ -z "$(findstring _old,$@)" ] || \ 1004f9328639SMarian Balakowicz { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ 1005f9328639SMarian Balakowicz echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ 100614d0a02aSWolfgang Denk echo "CONFIG_SYS_TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ 100743d9616cSwdenk } 1008a6862bc1SWolfgang Denk @$(MKCONFIG) -n $@ -a trab arm arm920t trab - s3c24x0 10097ebf7443Swdenk 10106895d451SJohn Rigbytx25_config : unconfig 10116895d451SJohn Rigby @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 1012ed7a196cSWolfgang Denk @$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25 10136895d451SJohn Rigby 1014a6862bc1SWolfgang Denkedb9301_config \ 1015a6862bc1SWolfgang Denkedb9302_config \ 1016a6862bc1SWolfgang Denkedb9302a_config \ 1017a6862bc1SWolfgang Denkedb9307_config \ 1018a6862bc1SWolfgang Denkedb9307a_config \ 1019a6862bc1SWolfgang Denkedb9312_config \ 1020a6862bc1SWolfgang Denkedb9315_config \ 1021a6862bc1SWolfgang Denkedb9315a_config: unconfig 1022a6862bc1SWolfgang Denk @$(MKCONFIG) -n $@ -t $(@:_config=) edb93xx arm arm920t edb93xx - ep93xx 1023a6862bc1SWolfgang Denk 1024699f0512SWolfgang Denk######################################################################### 102587cb6862SWolfgang Denk# ARM supplied Versatile development boards 1026699f0512SWolfgang Denk######################################################################### 1027699f0512SWolfgang Denk 102887cb6862SWolfgang Denkversatile_config \ 102987cb6862SWolfgang Denkversatileab_config \ 103087cb6862SWolfgang Denkversatilepb_config : unconfig 1031e4943ec5SJean-Christophe PLAGNIOL-VILLARD @board/armltd/versatile/split_by_variant.sh $@ 1032074cff0dSwdenk 1033074cff0dSwdenk######################################################################### 103443d9616cSwdenk## XScale Systems 10357ebf7443Swdenk######################################################################### 10367ebf7443Swdenk 10379d8d5a5bSStefan Roesepdnb3_config \ 10389d8d5a5bSStefan Roesescpu_config: unconfig 1039cdd917a4SWolfgang Denk @mkdir -p $(obj)include 10409d8d5a5bSStefan Roese @if [ "$(findstring scpu_,$@)" ] ; then \ 1041cdd917a4SWolfgang Denk echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ 10429d8d5a5bSStefan Roese fi 10430e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive 1044ba94a1bbSWolfgang Denk 10458ed96046Swdenk######################################################################### 10468ed96046Swdenk## ARM1136 Systems 10478ed96046Swdenk######################################################################### 10485ca9881aSPeter Pearse 10495ca9881aSPeter Pearseapollon_config : unconfig 10508cbf4e4fSWolfgang Denk @mkdir -p $(obj)include 1051751b9b51SKyungmin Park @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h 1052751b9b51SKyungmin Park @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk 1053a6862bc1SWolfgang Denk @$(MKCONFIG) $@ arm arm1136 apollon - omap24xx 10548ed96046Swdenk 1055a2bb7105SGuennadi Liakhovetskiimx31_phycore_eet_config \ 10565ad86216SSascha Hauerimx31_phycore_config : unconfig 105769c5bf29SGuennadi Liakhovetski @mkdir -p $(obj)include 1058a2bb7105SGuennadi Liakhovetski @if [ -n "$(findstring _eet_,$@)" ]; then \ 1059a2bb7105SGuennadi Liakhovetski echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \ 1060a2bb7105SGuennadi Liakhovetski fi 1061a6862bc1SWolfgang Denk @$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore - mx31 10625ad86216SSascha Hauer 1063d08e5ca3SMagnus Liljamx31pdk_config \ 1064d08e5ca3SMagnus Liljamx31pdk_nand_config : unconfig 1065d08e5ca3SMagnus Lilja @mkdir -p $(obj)include 1066d08e5ca3SMagnus Lilja @if [ -n "$(findstring _nand_,$@)" ]; then \ 1067d08e5ca3SMagnus Lilja echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \ 1068d08e5ca3SMagnus Lilja else \ 1069d08e5ca3SMagnus Lilja echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \ 1070d08e5ca3SMagnus Lilja echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \ 1071d08e5ca3SMagnus Lilja fi 10720e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale mx31 10738449f287SMagnus Lilja 107411edcfe2SGuennadi Liakhovetski######################################################################### 107511edcfe2SGuennadi Liakhovetski## ARM1176 Systems 107611edcfe2SGuennadi Liakhovetski######################################################################### 107711edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config \ 107811edcfe2SGuennadi Liakhovetskismdk6400_config : unconfig 107911edcfe2SGuennadi Liakhovetski @mkdir -p $(obj)include $(obj)board/samsung/smdk6400 108011edcfe2SGuennadi Liakhovetski @mkdir -p $(obj)nand_spl/board/samsung/smdk6400 108111edcfe2SGuennadi Liakhovetski @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h 10820e42ada3SWolfgang Denk @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 108311edcfe2SGuennadi Liakhovetski @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \ 108411edcfe2SGuennadi Liakhovetski echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 108511edcfe2SGuennadi Liakhovetski else \ 108611edcfe2SGuennadi Liakhovetski echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ 108711edcfe2SGuennadi Liakhovetski fi 108854e19a7dSWolfgang Denk @$(MKCONFIG) smdk6400 arm arm1176 smdk6400 samsung s3c64xx 108911edcfe2SGuennadi Liakhovetski @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk 109011edcfe2SGuennadi Liakhovetski 10912262cfeeSwdenk#======================================================================== 109243d9616cSwdenk# MIPS 109343d9616cSwdenk#======================================================================== 10947ebf7443Swdenk######################################################################### 109543d9616cSwdenk## MIPS32 4Kc 109643d9616cSwdenk######################################################################### 109743d9616cSwdenk 1098e0ac62d7Swdenkincaip_100MHz_config \ 1099e0ac62d7Swdenkincaip_133MHz_config \ 1100e0ac62d7Swdenkincaip_150MHz_config \ 110143d9616cSwdenkincaip_config: unconfig 1102f9328639SMarian Balakowicz @mkdir -p $(obj)include 1103e0ac62d7Swdenk @[ -z "$(findstring _100MHz,$@)" ] || \ 11040e42ada3SWolfgang Denk echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h 1105e0ac62d7Swdenk @[ -z "$(findstring _133MHz,$@)" ] || \ 11060e42ada3SWolfgang Denk echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h 1107e0ac62d7Swdenk @[ -z "$(findstring _150MHz,$@)" ] || \ 11080e42ada3SWolfgang Denk echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h 11090e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a incaip mips mips incaip 1110e0ac62d7Swdenk 11112a61eff6SStefan Roesevct_premium_config \ 11122a61eff6SStefan Roesevct_premium_small_config \ 11132a61eff6SStefan Roesevct_premium_onenand_config \ 11142a61eff6SStefan Roesevct_premium_onenand_small_config \ 11152a61eff6SStefan Roesevct_platinum_config \ 11162a61eff6SStefan Roesevct_platinum_small_config \ 11172a61eff6SStefan Roesevct_platinum_onenand_config \ 11182a61eff6SStefan Roesevct_platinum_onenand_small_config \ 11192a61eff6SStefan Roesevct_platinumavc_config \ 11202a61eff6SStefan Roesevct_platinumavc_small_config \ 11212a61eff6SStefan Roesevct_platinumavc_onenand_config \ 11222a61eff6SStefan Roesevct_platinumavc_onenand_small_config: unconfig 11232a61eff6SStefan Roese @mkdir -p $(obj)include 11240e42ada3SWolfgang Denk @[ -z "$(findstring _premium,$@)" ] || \ 11250e42ada3SWolfgang Denk echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h 11260e42ada3SWolfgang Denk @[ -z "$(findstring _platinum_,$@)" ] || \ 11270e42ada3SWolfgang Denk echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h 11280e42ada3SWolfgang Denk @[ -z "$(findstring _platinumavc,$@)" ] || \ 11290e42ada3SWolfgang Denk echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h 11300e42ada3SWolfgang Denk @[ -z "$(findstring _onenand,$@)" ] || \ 11310e42ada3SWolfgang Denk echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h 11320e42ada3SWolfgang Denk @[ -z "$(findstring _small,$@)" ] || \ 11330e42ada3SWolfgang Denk echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h 11340e42ada3SWolfgang Denk @$(MKCONFIG) -n $@ -a vct mips mips vct micronas 11352a61eff6SStefan Roese 1136e0ac62d7Swdenk######################################################################### 113769459791Swdenk## MIPS32 AU1X00 113869459791Swdenk######################################################################### 1139699f0512SWolfgang Denk 114069459791Swdenkdbau1000_config : unconfig 1141f9328639SMarian Balakowicz @mkdir -p $(obj)include 1142210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h 1143f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 114469459791Swdenk 114569459791Swdenkdbau1100_config : unconfig 1146f9328639SMarian Balakowicz @mkdir -p $(obj)include 1147210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h 1148f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 114969459791Swdenk 115069459791Swdenkdbau1500_config : unconfig 1151f9328639SMarian Balakowicz @mkdir -p $(obj)include 1152210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h 1153f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 115469459791Swdenk 1155ff36fd85Swdenkdbau1550_config : unconfig 1156f9328639SMarian Balakowicz @mkdir -p $(obj)include 1157210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 1158f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 1159ff36fd85Swdenk 1160ff36fd85Swdenkdbau1550_el_config : unconfig 1161f9328639SMarian Balakowicz @mkdir -p $(obj)include 1162210ed200SWolfgang Denk @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h 1163f9328639SMarian Balakowicz @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 1164ff36fd85Swdenk 11658a773983SShinya Kuribayashigth2_config : unconfig 11668a773983SShinya Kuribayashi @mkdir -p $(obj)include 11678a773983SShinya Kuribayashi @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h 1168ed7a196cSWolfgang Denk @$(MKCONFIG) -a $@ mips mips gth2 11698a773983SShinya Kuribayashi 1170699f0512SWolfgang Denkpb1000_config : unconfig 1171699f0512SWolfgang Denk @mkdir -p $(obj)include 1172699f0512SWolfgang Denk @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h 1173699f0512SWolfgang Denk @$(MKCONFIG) -a pb1x00 mips mips pb1x00 1174699f0512SWolfgang Denk 11750764c164SVlad Lunguqemu_mips_config : unconfig 11760764c164SVlad Lungu @mkdir -p $(obj)include 1177210ed200SWolfgang Denk @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h 11780764c164SVlad Lungu @$(MKCONFIG) -a qemu-mips mips mips qemu-mips 11790764c164SVlad Lungu 11804a551709Swdenk#======================================================================== 11814a551709Swdenk# Nios 11824a551709Swdenk#======================================================================== 11834a551709Swdenk 11845c952cf0Swdenk######################################################################### 11855c952cf0Swdenk## Nios-II 11865c952cf0Swdenk######################################################################### 11875c952cf0Swdenk 11888cbb0dddSThomas Chou# nios2 generic boards 11898cbb0dddSThomas ChouNIOS2_GENERIC = nios2-generic 11908cbb0dddSThomas Chou 11918cbb0dddSThomas Chou$(NIOS2_GENERIC:%=%_config) : unconfig 1192ed7a196cSWolfgang Denk @$(MKCONFIG) $@ nios2 nios2 nios2-generic altera 11938cbb0dddSThomas Chou 11940afe519aSWolfgang Denk######################################################################### 11953e38691eSwdenk######################################################################### 11967ebf7443Swdenk 11977ebf7443Swdenkclean: 11981bc15386SPeter Tyser @rm -f $(obj)examples/standalone/82559_eeprom \ 1199d640ac58SWolfgang Denk $(obj)examples/standalone/atmel_df_pow2 \ 12001bc15386SPeter Tyser $(obj)examples/standalone/eepro100_eeprom \ 12011bc15386SPeter Tyser $(obj)examples/standalone/hello_world \ 12021bc15386SPeter Tyser $(obj)examples/standalone/interrupt \ 12031bc15386SPeter Tyser $(obj)examples/standalone/mem_to_mem_idma2intr \ 12041bc15386SPeter Tyser $(obj)examples/standalone/sched \ 12051bc15386SPeter Tyser $(obj)examples/standalone/smc91111_eeprom \ 12061bc15386SPeter Tyser $(obj)examples/standalone/test_burst \ 12071bc15386SPeter Tyser $(obj)examples/standalone/timer 1208d4abc757SPeter Tyser @rm -f $(obj)examples/api/demo{,.bin} 1209f9301e1cSWolfgang Denk @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ 1210f9301e1cSWolfgang Denk $(obj)tools/env/{fw_printenv,fw_setenv} \ 1211f9301e1cSWolfgang Denk $(obj)tools/envcrc \ 1212f9301e1cSWolfgang Denk $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ 1213f9301e1cSWolfgang Denk $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ 1214f9301e1cSWolfgang Denk $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ 1215f9301e1cSWolfgang Denk $(obj)tools/ncb $(obj)tools/ubsha1 1216f9301e1cSWolfgang Denk @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ 121774c7a95fSWolfgang Denk $(obj)board/matrix_vision/*/bootscript.img \ 1218f9301e1cSWolfgang Denk $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ 1219f9301e1cSWolfgang Denk $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ 12201dcb50afSWolfgang Denk $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ 12211aada9cdSWolfgang Denk $(obj)u-boot.lds \ 1222c6fb83d2SPeter Tyser $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs] 1223dc7746d8SWolfgang Denk @rm -f $(obj)include/bmp_logo.h 122416a354f9SWolfgang Denk @rm -f $(obj)lib/asm-offsets.s 12251aada9cdSWolfgang Denk @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map} 1226ca6189dbSKyungmin Park @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map} 1227ca6189dbSKyungmin Park @rm -f $(ONENAND_BIN) 12281aada9cdSWolfgang Denk @rm -f $(obj)onenand_ipl/u-boot.lds 1229d4abc757SPeter Tyser @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE) 1230ae6d1056SWolfgang Denk @find $(OBJTREE) -type f \ 12317ebf7443Swdenk \( -name 'core' -o -name '*.bak' -o -name '*~' \ 12322b48f7d5SPeter Tyser -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ 12337ebf7443Swdenk | xargs rm -f 12347ebf7443Swdenk 12357ebf7443Swdenkclobber: clean 1236727ebd9fSMike Frysinger @find $(OBJTREE) -type f \( -name '*.depend' \ 12374c0d4c3bSwdenk -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ 12384c0d4c3bSwdenk -print0 \ 12394c0d4c3bSwdenk | xargs -0 rm -f 1240ffda586fSLi Yang @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ 12415013c09fSWolfgang Denk $(obj)cscope.* $(obj)*.*~ 1242ae6d1056SWolfgang Denk @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) 1243aa0c7a86SPrafulla Wadaskar @rm -f $(obj)u-boot.kwb 1244c5fb70c9SStefano Babic @rm -f $(obj)u-boot.imx 1245fb8b33c1SPeter Tyser @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes} 1246a47a12beSStefan Roese @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c 1247ae6d1056SWolfgang Denk @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm 124816a354f9SWolfgang Denk @rm -fr $(obj)include/generated 1249a958b663SJean-Christophe PLAGNIOL-VILLARD @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f 1250a958b663SJean-Christophe PLAGNIOL-VILLARD @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f 12517ebf7443Swdenk 1252f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE)) 12537ebf7443Swdenkmrproper \ 12547ebf7443Swdenkdistclean: clobber unconfig 1255f9328639SMarian Balakowiczelse 1256f9328639SMarian Balakowiczmrproper \ 1257f9328639SMarian Balakowiczdistclean: clobber unconfig 1258ae6d1056SWolfgang Denk rm -rf $(obj)* 1259f9328639SMarian Balakowiczendif 12607ebf7443Swdenk 12617ebf7443Swdenkbackup: 12627ebf7443Swdenk F=`basename $(TOPDIR)` ; cd .. ; \ 1263d6b93714SIlya Yanok gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F 12647ebf7443Swdenk 12657ebf7443Swdenk######################################################################### 1266