Ke Dong | 0e9e0c9 | 2012-09-11 00:12:54 -0700 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2009 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # See file CREDITS for list of people who contributed to this |
| 6 | # project. |
| 7 | # |
| 8 | # This program is free software; you can redistribute it and/or |
| 9 | # modify it under the terms of the GNU General Public License as |
| 10 | # published by the Free Software Foundatio; either version 2 of |
| 11 | # the License, or (at your option) any later version. |
| 12 | # |
| 13 | # This program is distributed in the hope that it will be useful, |
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | # GNU General Public License for more details. |
| 17 | # |
| 18 | # You should have received a copy of the GNU General Public License |
| 19 | # along with this program; if not, write to the Free Software |
| 20 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | # MA 02111-1307 USA |
| 22 | # |
| 23 | |
| 24 | VERSION = 2009 |
| 25 | PATCHLEVEL = 08 |
| 26 | SUBLEVEL = |
| 27 | EXTRAVERSION = |
| 28 | ifneq "$(SUBLEVEL)" "" |
| 29 | U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) |
| 30 | else |
| 31 | U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION) |
| 32 | endif |
| 33 | TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h |
| 34 | VERSION_FILE = $(obj)include/version_autogenerated.h |
| 35 | |
| 36 | HOSTARCH := $(shell uname -m | \ |
| 37 | sed -e s/i.86/i386/ \ |
| 38 | -e s/sun4u/sparc64/ \ |
| 39 | -e s/arm.*/arm/ \ |
| 40 | -e s/sa110/arm/ \ |
| 41 | -e s/powerpc/ppc/ \ |
| 42 | -e s/ppc64/ppc/ \ |
| 43 | -e s/macppc/ppc/) |
| 44 | |
| 45 | HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ |
| 46 | sed -e 's/\(cygwin\).*/cygwin/') |
| 47 | |
| 48 | # Set shell to bash if possible, otherwise fall back to sh |
| 49 | SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ |
| 50 | else if [ -x /bin/bash ]; then echo /bin/bash; \ |
| 51 | else echo sh; fi; fi) |
| 52 | |
| 53 | export HOSTARCH HOSTOS SHELL |
| 54 | |
| 55 | # Deal with colliding definitions from tcsh etc. |
| 56 | VENDOR= |
| 57 | |
| 58 | ######################################################################### |
| 59 | # Allow for silent builds |
| 60 | ifeq (,$(findstring s,$(MAKEFLAGS))) |
| 61 | XECHO = echo |
| 62 | else |
| 63 | XECHO = : |
| 64 | endif |
| 65 | |
| 66 | ######################################################################### |
| 67 | # |
| 68 | # U-boot build supports producing a object files to the separate external |
| 69 | # directory. Two use cases are supported: |
| 70 | # |
| 71 | # 1) Add O= to the make command line |
| 72 | # 'make O=/tmp/build all' |
| 73 | # |
| 74 | # 2) Set environement variable BUILD_DIR to point to the desired location |
| 75 | # 'export BUILD_DIR=/tmp/build' |
| 76 | # 'make' |
| 77 | # |
| 78 | # The second approach can also be used with a MAKEALL script |
| 79 | # 'export BUILD_DIR=/tmp/build' |
| 80 | # './MAKEALL' |
| 81 | # |
| 82 | # Command line 'O=' setting overrides BUILD_DIR environent variable. |
| 83 | # |
| 84 | # When none of the above methods is used the local build is performed and |
| 85 | # the object files are placed in the source directory. |
| 86 | # |
| 87 | |
| 88 | ifdef O |
| 89 | ifeq ("$(origin O)", "command line") |
| 90 | BUILD_DIR := $(O) |
| 91 | endif |
| 92 | endif |
| 93 | |
| 94 | ifneq ($(BUILD_DIR),) |
| 95 | saved-output := $(BUILD_DIR) |
| 96 | |
| 97 | # Attempt to create a output directory. |
| 98 | $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) |
| 99 | |
| 100 | # Verify if it was successful. |
| 101 | BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) |
| 102 | $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) |
| 103 | endif # ifneq ($(BUILD_DIR),) |
| 104 | |
| 105 | OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) |
| 106 | SRCTREE := $(CURDIR) |
| 107 | TOPDIR := $(SRCTREE) |
| 108 | LNDIR := $(OBJTREE) |
| 109 | export TOPDIR SRCTREE OBJTREE |
| 110 | |
| 111 | MKCONFIG := $(SRCTREE)/mkconfig |
| 112 | export MKCONFIG |
| 113 | |
| 114 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 115 | REMOTE_BUILD := 1 |
| 116 | export REMOTE_BUILD |
| 117 | endif |
| 118 | |
| 119 | # $(obj) and (src) are defined in config.mk but here in main Makefile |
| 120 | # we also need them before config.mk is included which is the case for |
| 121 | # some targets like unconfig, clean, clobber, distclean, etc. |
| 122 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 123 | obj := $(OBJTREE)/ |
| 124 | src := $(SRCTREE)/ |
| 125 | else |
| 126 | obj := |
| 127 | src := |
| 128 | endif |
| 129 | export obj src |
| 130 | |
| 131 | # Make sure CDPATH settings don't interfere |
| 132 | unexport CDPATH |
| 133 | |
| 134 | ######################################################################### |
| 135 | |
| 136 | ifeq ($(ARCH),powerpc) |
| 137 | ARCH = ppc |
| 138 | endif |
| 139 | |
| 140 | # The "tools" are needed early, so put this first |
| 141 | # Don't include stuff already done in $(LIBS) |
| 142 | SUBDIRS = tools \ |
| 143 | examples/standalone \ |
| 144 | examples/api |
| 145 | |
| 146 | .PHONY : $(SUBDIRS) |
| 147 | |
| 148 | ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) |
| 149 | |
| 150 | # Include autoconf.mk before config.mk so that the config options are available |
| 151 | # to all top level build files. We need the dummy all: target to prevent the |
| 152 | # dependency target in autoconf.mk.dep from being the default. |
| 153 | all: |
| 154 | sinclude $(obj)include/autoconf.mk.dep |
| 155 | sinclude $(obj)include/autoconf.mk |
| 156 | |
| 157 | # load ARCH, BOARD, and CPU configuration |
| 158 | include $(obj)include/config.mk |
| 159 | export ARCH CPU BOARD VENDOR SOC |
| 160 | |
| 161 | # set default to nothing for native builds |
| 162 | ifeq ($(HOSTARCH),$(ARCH)) |
| 163 | CROSS_COMPILE ?= |
| 164 | endif |
| 165 | |
| 166 | # load other configuration |
| 167 | include $(TOPDIR)/config.mk |
| 168 | |
| 169 | ######################################################################### |
| 170 | # U-Boot objects....order is important (i.e. start must be first) |
| 171 | |
| 172 | OBJS = cpu/$(CPU)/start.o |
| 173 | ifeq ($(CPU),i386) |
| 174 | OBJS += cpu/$(CPU)/start16.o |
| 175 | OBJS += cpu/$(CPU)/resetvec.o |
| 176 | endif |
| 177 | ifeq ($(CPU),ppc4xx) |
| 178 | OBJS += cpu/$(CPU)/resetvec.o |
| 179 | endif |
| 180 | ifeq ($(CPU),mpc85xx) |
| 181 | OBJS += cpu/$(CPU)/resetvec.o |
| 182 | endif |
| 183 | |
| 184 | OBJS := $(addprefix $(obj),$(OBJS)) |
| 185 | |
| 186 | LIBS = lib_generic/libgeneric.a |
| 187 | LIBS += lib_generic/lzma/liblzma.a |
| 188 | LIBS += lib_generic/lzo/liblzo.a |
| 189 | LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ |
| 190 | "board/$(VENDOR)/common/lib$(VENDOR).a"; fi) |
| 191 | LIBS += cpu/$(CPU)/lib$(CPU).a |
| 192 | ifdef SOC |
| 193 | LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a |
| 194 | endif |
| 195 | ifeq ($(CPU),ixp) |
| 196 | LIBS += cpu/ixp/npe/libnpe.a |
| 197 | endif |
| 198 | LIBS += lib_$(ARCH)/lib$(ARCH).a |
| 199 | LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ |
| 200 | fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \ |
| 201 | fs/ubifs/libubifs.a |
| 202 | LIBS += net/libnet.a |
| 203 | LIBS += disk/libdisk.a |
| 204 | LIBS += drivers/bios_emulator/libatibiosemu.a |
| 205 | LIBS += drivers/block/libblock.a |
| 206 | LIBS += drivers/dma/libdma.a |
| 207 | LIBS += drivers/fpga/libfpga.a |
| 208 | LIBS += drivers/gpio/libgpio.a |
| 209 | LIBS += drivers/hwmon/libhwmon.a |
| 210 | LIBS += drivers/i2c/libi2c.a |
| 211 | LIBS += drivers/input/libinput.a |
| 212 | LIBS += drivers/misc/libmisc.a |
| 213 | LIBS += drivers/mmc/libmmc.a |
| 214 | LIBS += drivers/mtd/libmtd.a |
| 215 | LIBS += drivers/mtd/nand/libnand.a |
| 216 | LIBS += drivers/mtd/onenand/libonenand.a |
| 217 | LIBS += drivers/mtd/ubi/libubi.a |
| 218 | LIBS += drivers/mtd/spi/libspi_flash.a |
| 219 | LIBS += drivers/net/libnet.a |
| 220 | LIBS += drivers/net/phy/libphy.a |
| 221 | LIBS += drivers/net/sk98lin/libsk98lin.a |
| 222 | LIBS += drivers/pci/libpci.a |
| 223 | LIBS += drivers/pcmcia/libpcmcia.a |
| 224 | LIBS += drivers/power/libpower.a |
| 225 | LIBS += drivers/spi/libspi.a |
| 226 | ifeq ($(CPU),mpc83xx) |
| 227 | LIBS += drivers/qe/qe.a |
| 228 | endif |
| 229 | ifeq ($(CPU),mpc85xx) |
| 230 | LIBS += drivers/qe/qe.a |
| 231 | LIBS += cpu/mpc8xxx/ddr/libddr.a |
| 232 | TAG_SUBDIRS += cpu/mpc8xxx |
| 233 | endif |
| 234 | ifeq ($(CPU),mpc86xx) |
| 235 | LIBS += cpu/mpc8xxx/ddr/libddr.a |
| 236 | TAG_SUBDIRS += cpu/mpc8xxx |
| 237 | endif |
| 238 | LIBS += drivers/rtc/librtc.a |
| 239 | LIBS += drivers/serial/libserial.a |
| 240 | LIBS += drivers/twserial/libtws.a |
| 241 | LIBS += drivers/usb/gadget/libusb_gadget.a |
| 242 | LIBS += drivers/usb/host/libusb_host.a |
| 243 | LIBS += drivers/usb/musb/libusb_musb.a |
| 244 | LIBS += drivers/video/libvideo.a |
| 245 | LIBS += drivers/watchdog/libwatchdog.a |
| 246 | LIBS += common/libcommon.a |
| 247 | LIBS += libfdt/libfdt.a |
| 248 | LIBS += api/libapi.a |
| 249 | LIBS += post/libpost.a |
| 250 | |
| 251 | LIBS := $(addprefix $(obj),$(LIBS)) |
| 252 | .PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE) |
| 253 | |
| 254 | LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a |
| 255 | LIBBOARD := $(addprefix $(obj),$(LIBBOARD)) |
| 256 | |
| 257 | # Add GCC lib |
| 258 | ifdef USE_PRIVATE_LIBGCC |
| 259 | ifeq ("$(USE_PRIVATE_LIBGCC)", "yes") |
| 260 | PLATFORM_LIBGCC = -L $(OBJTREE)/lib_$(ARCH) -lgcc |
| 261 | else |
| 262 | PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc |
| 263 | endif |
| 264 | else |
| 265 | PLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc |
| 266 | endif |
| 267 | PLATFORM_LIBS += $(PLATFORM_LIBGCC) |
| 268 | export PLATFORM_LIBS |
| 269 | |
| 270 | # Special flags for CPP when processing the linker script. |
| 271 | # Pass the version down so we can handle backwards compatibility |
| 272 | # on the fly. |
| 273 | LDPPFLAGS += \ |
| 274 | -include $(TOPDIR)/include/u-boot/u-boot.lds.h \ |
| 275 | $(shell $(LD) --version | \ |
| 276 | sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p') |
| 277 | |
| 278 | ifeq ($(CONFIG_NAND_U_BOOT),y) |
| 279 | NAND_SPL = nand_spl |
| 280 | U_BOOT_NAND = $(obj)u-boot-nand.bin |
| 281 | endif |
| 282 | |
| 283 | ifeq ($(CONFIG_ONENAND_U_BOOT),y) |
| 284 | ONENAND_IPL = onenand_ipl |
| 285 | U_BOOT_ONENAND = $(obj)u-boot-onenand.bin |
| 286 | endif |
| 287 | |
| 288 | __OBJS := $(subst $(obj),,$(OBJS)) |
| 289 | __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD)) |
| 290 | |
| 291 | ######################################################################### |
| 292 | ######################################################################### |
| 293 | |
| 294 | # Always append ALL so that arch config.mk's can add custom ones |
| 295 | ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) |
| 296 | |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 297 | BINCPY = cp -f u-boot.bin u-boot-${MV_OUTPUT}.bin |
| 298 | ELFCPY = cp -f u-boot u-boot-${MV_OUTPUT} |
| 299 | SRECCPY = cp -f u-boot.srec u-boot-${MV_OUTPUT}.srec |
| 300 | |
Ke Dong | 192fe0b | 2012-10-01 23:38:59 -0700 | [diff] [blame] | 301 | ifeq ($(LARGEKERNEL),1) |
| 302 | DEST_ADDR=0x1000000 |
| 303 | EXEC_ADDR=0x1080000 |
| 304 | else |
| 305 | DEST_ADDR=0x600000 |
| 306 | EXEC_ADDR=0x680000 |
| 307 | endif |
| 308 | |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 309 | DRAM_REGS_FILE=dramregs_$(MV_DDR_FREQ)_$(DDR_TYPE)$(DDR_ACCESS).txt |
Ke Dong | a430e59 | 2013-04-15 18:42:07 -0700 | [diff] [blame] | 310 | |
| 311 | ################################################################################ |
| 312 | # DO_IMAGE_TEMPLATE -- the macro to generate do_image wrapper for different |
| 313 | # target images. |
| 314 | # |
| 315 | # Argument 1 is target image [spi, nand, nor, uart] |
| 316 | ################################################################################ |
| 317 | define DO_IMAGE_TEMPLATE |
| 318 | ifeq ($(1),spi) |
| 319 | $(1)_IMAGE_TYPE := flash |
| 320 | else ifeq ($(1),nor) |
| 321 | $(1)_IMAGE_TYPE := flash |
| 322 | else |
| 323 | $(1)_IMAGE_TYPE := $(1) |
| 324 | endif |
| 325 | |
| 326 | ifeq ($(1),nand) |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 327 | ifeq ($(CONFIG_NAND_SP),y) |
Ke Dong | a430e59 | 2013-04-15 18:42:07 -0700 | [diff] [blame] | 328 | NAND_ARGS := -P 512 -L $(BLK_SIZE) -N $(NAND_TECH) |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 329 | endif |
| 330 | ifeq ($(CONFIG_NAND_LP),y) |
Ke Dong | a430e59 | 2013-04-15 18:42:07 -0700 | [diff] [blame] | 331 | NAND_ARGS := -P 2048 -L $(BLK_SIZE) -N $(NAND_TECH) |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 332 | endif |
Ke Dong | a430e59 | 2013-04-15 18:42:07 -0700 | [diff] [blame] | 333 | endif |
| 334 | |
| 335 | do_image_$(1) = ./tools/doimage -T $$($(1)_IMAGE_TYPE) -D $(DEST_ADDR) \ |
| 336 | -E $(EXEC_ADDR) $(NAND_ARGS) -R $(DRAM_REGS_FILE) \ |
| 337 | u-boot-$(MV_OUTPUT).bin \ |
| 338 | u-boot-$(MV_OUTPUT)_$(MV_DDR_FREQ)_$(DDR_TYPE)_$(1).bin && \ |
Ke Dong | a737727 | 2013-04-19 21:47:31 -0700 | [diff] [blame] | 339 | ln -f u-boot-$(MV_OUTPUT)_$(MV_DDR_FREQ)_$(DDR_TYPE)_$(1).bin \ |
Ke Dong | a430e59 | 2013-04-15 18:42:07 -0700 | [diff] [blame] | 340 | u-boot-$(1).bin |
| 341 | endef |
| 342 | |
| 343 | # The following two lines will generate four variables |
| 344 | # do_image_nand, do_image_spi, do_image_nor, do_image_uart. |
| 345 | # The reason that variable is preferred than functions is |
| 346 | # because the function output does not go to the standard output. |
| 347 | IMAGE_TYPES = nand spi nor uart |
| 348 | $(foreach image,$(IMAGE_TYPES),$(eval $(call DO_IMAGE_TEMPLATE,$(image)))) |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 349 | |
Ke Dong | 0e9e0c9 | 2012-09-11 00:12:54 -0700 | [diff] [blame] | 350 | all: $(ALL) |
| 351 | |
| 352 | $(obj)u-boot.hex: $(obj)u-boot |
| 353 | $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ |
| 354 | |
| 355 | $(obj)u-boot.srec: $(obj)u-boot |
| 356 | $(OBJCOPY) -O srec $< $@ |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 357 | $(SRECCPY) |
Ke Dong | 0e9e0c9 | 2012-09-11 00:12:54 -0700 | [diff] [blame] | 358 | |
| 359 | $(obj)u-boot.bin: $(obj)u-boot |
| 360 | $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 361 | $(BINCPY) |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 362 | ifeq ($(NAND_BOOT), y) |
Ke Dong | a430e59 | 2013-04-15 18:42:07 -0700 | [diff] [blame] | 363 | $(do_image_nand) |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 364 | endif |
| 365 | ifeq ($(SPI_BOOT), y) |
Ke Dong | a430e59 | 2013-04-15 18:42:07 -0700 | [diff] [blame] | 366 | $(do_image_spi) |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 367 | endif |
| 368 | ifeq ($(NOR_BOOT), y) |
Ke Dong | a430e59 | 2013-04-15 18:42:07 -0700 | [diff] [blame] | 369 | $(do_image_nor) |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 370 | endif |
Ke Dong | a430e59 | 2013-04-15 18:42:07 -0700 | [diff] [blame] | 371 | $(do_image_uart) |
Ke Dong | 0e9e0c9 | 2012-09-11 00:12:54 -0700 | [diff] [blame] | 372 | |
| 373 | $(obj)u-boot.ldr: $(obj)u-boot |
| 374 | $(obj)tools/envcrc --binary > $(obj)env-ldr.o |
| 375 | $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS) |
| 376 | |
| 377 | $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr |
| 378 | $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary |
| 379 | |
| 380 | $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr |
| 381 | $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary |
| 382 | |
| 383 | $(obj)u-boot.img: $(obj)u-boot.bin |
| 384 | ./tools/mkimage -A $(ARCH) -T firmware -C none \ |
| 385 | -a $(TEXT_BASE) -e 0 \ |
| 386 | -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ |
| 387 | sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ |
| 388 | -d $< $@ |
| 389 | |
| 390 | $(obj)u-boot.sha1: $(obj)u-boot.bin |
| 391 | $(obj)tools/ubsha1 $(obj)u-boot.bin |
| 392 | |
| 393 | $(obj)u-boot.dis: $(obj)u-boot |
| 394 | $(OBJDUMP) -d $< > $@ |
| 395 | |
| 396 | GEN_UBOOT = \ |
| 397 | UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ |
| 398 | sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ |
| 399 | cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \ |
| 400 | --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ |
| 401 | -Map u-boot.map -o u-boot |
| 402 | $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds |
| 403 | $(GEN_UBOOT) |
| 404 | ifeq ($(CONFIG_KALLSYMS),y) |
| 405 | smap=`$(call SYSTEM_MAP,u-boot) | \ |
| 406 | awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \ |
| 407 | $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \ |
| 408 | -c common/system_map.c -o $(obj)common/system_map.o |
| 409 | $(GEN_UBOOT) $(obj)common/system_map.o |
| 410 | endif |
| 411 | |
| 412 | $(OBJS): depend |
| 413 | $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) |
| 414 | |
| 415 | $(LIBS): depend $(SUBDIRS) |
| 416 | $(MAKE) -C $(dir $(subst $(obj),,$@)) |
| 417 | |
| 418 | $(LIBBOARD): depend $(LIBS) |
| 419 | $(MAKE) -C $(dir $(subst $(obj),,$@)) |
| 420 | |
| 421 | $(SUBDIRS): depend |
| 422 | $(MAKE) -C $@ all |
| 423 | |
| 424 | $(LDSCRIPT): depend |
| 425 | $(MAKE) -C $(dir $@) $(notdir $@) |
| 426 | |
| 427 | $(obj)u-boot.lds: $(LDSCRIPT) |
| 428 | $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@ |
| 429 | |
| 430 | $(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk |
| 431 | $(MAKE) -C nand_spl/board/$(BOARDDIR) all |
| 432 | |
| 433 | $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin |
| 434 | cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin |
| 435 | |
| 436 | $(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk |
| 437 | $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all |
| 438 | |
| 439 | $(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin |
| 440 | cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin |
| 441 | cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin |
| 442 | |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 443 | ## Remove git related versioning. |
| 444 | ##$(VERSION_FILE): |
| 445 | ## @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \ |
| 446 | ## '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp |
| 447 | ## @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ |
| 448 | |
Ke Dong | 0e9e0c9 | 2012-09-11 00:12:54 -0700 | [diff] [blame] | 449 | $(VERSION_FILE): |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 450 | @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" ) > $@.tmp |
Ke Dong | 0e9e0c9 | 2012-09-11 00:12:54 -0700 | [diff] [blame] | 451 | @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@ |
| 452 | |
| 453 | $(TIMESTAMP_FILE): |
| 454 | @date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ |
| 455 | @date +'#define U_BOOT_TIME "%T"' >> $@ |
| 456 | |
| 457 | gdbtools: |
| 458 | $(MAKE) -C tools/gdb all || exit 1 |
| 459 | |
| 460 | updater: |
| 461 | $(MAKE) -C tools/updater all || exit 1 |
| 462 | |
| 463 | env: |
| 464 | $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1 |
| 465 | |
| 466 | depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk |
| 467 | for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done |
| 468 | |
| 469 | TAG_SUBDIRS += include |
| 470 | TAG_SUBDIRS += lib_generic board/$(BOARDDIR) |
| 471 | TAG_SUBDIRS += cpu/$(CPU) |
| 472 | TAG_SUBDIRS += lib_$(ARCH) |
| 473 | TAG_SUBDIRS += fs/cramfs |
| 474 | TAG_SUBDIRS += fs/fat |
| 475 | TAG_SUBDIRS += fs/fdos |
| 476 | TAG_SUBDIRS += fs/jffs2 |
| 477 | TAG_SUBDIRS += fs/yaffs2 |
| 478 | TAG_SUBDIRS += net |
| 479 | TAG_SUBDIRS += disk |
| 480 | TAG_SUBDIRS += common |
| 481 | TAG_SUBDIRS += drivers/bios_emulator |
| 482 | TAG_SUBDIRS += drivers/block |
| 483 | TAG_SUBDIRS += drivers/gpio |
| 484 | TAG_SUBDIRS += drivers/hwmon |
| 485 | TAG_SUBDIRS += drivers/i2c |
| 486 | TAG_SUBDIRS += drivers/input |
| 487 | TAG_SUBDIRS += drivers/misc |
| 488 | TAG_SUBDIRS += drivers/mmc |
| 489 | TAG_SUBDIRS += drivers/mtd |
| 490 | TAG_SUBDIRS += drivers/mtd/nand |
| 491 | TAG_SUBDIRS += drivers/mtd/onenand |
| 492 | TAG_SUBDIRS += drivers/mtd/spi |
| 493 | TAG_SUBDIRS += drivers/net |
| 494 | TAG_SUBDIRS += drivers/net/sk98lin |
| 495 | TAG_SUBDIRS += drivers/pci |
| 496 | TAG_SUBDIRS += drivers/pcmcia |
| 497 | TAG_SUBDIRS += drivers/qe |
| 498 | TAG_SUBDIRS += drivers/rtc |
| 499 | TAG_SUBDIRS += drivers/serial |
| 500 | TAG_SUBDIRS += drivers/spi |
| 501 | TAG_SUBDIRS += drivers/usb |
| 502 | TAG_SUBDIRS += drivers/video |
| 503 | |
| 504 | tags ctags: |
| 505 | ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \ |
| 506 | -name '*.[ch]' -print` |
| 507 | |
| 508 | etags: |
| 509 | etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \ |
| 510 | -name '*.[ch]' -print` |
| 511 | cscope: |
| 512 | find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \ |
| 513 | > cscope.files |
| 514 | cscope -b -q -k |
| 515 | |
| 516 | SYSTEM_MAP = \ |
| 517 | $(NM) $1 | \ |
| 518 | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ |
| 519 | LC_ALL=C sort |
| 520 | $(obj)System.map: $(obj)u-boot |
| 521 | @$(call SYSTEM_MAP,$<) > $(obj)System.map |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 522 | $(ELFCPY) |
Ke Dong | 0e9e0c9 | 2012-09-11 00:12:54 -0700 | [diff] [blame] | 523 | |
| 524 | # |
| 525 | # Auto-generate the autoconf.mk file (which is included by all makefiles) |
| 526 | # |
| 527 | # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. |
| 528 | # the dep file is only include in this top level makefile to determine when |
| 529 | # to regenerate the autoconf.mk file. |
| 530 | $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h |
| 531 | @$(XECHO) Generating $@ ; \ |
| 532 | set -e ; \ |
| 533 | : Generate the dependancies ; \ |
| 534 | $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \ |
| 535 | -MQ $(obj)include/autoconf.mk include/common.h > $@ |
| 536 | |
| 537 | $(obj)include/autoconf.mk: $(obj)include/config.h |
| 538 | @$(XECHO) Generating $@ ; \ |
| 539 | set -e ; \ |
| 540 | : Extract the config macros ; \ |
| 541 | $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \ |
| 542 | sed -n -f tools/scripts/define2mk.sed > $@.tmp && \ |
| 543 | mv $@.tmp $@ |
| 544 | |
| 545 | ######################################################################### |
| 546 | else # !config.mk |
| 547 | all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ |
| 548 | $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ |
| 549 | $(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \ |
| 550 | dep tags ctags etags cscope $(obj)System.map: |
| 551 | @echo "System not configured - see README" >&2 |
| 552 | @ exit 1 |
| 553 | endif # config.mk |
| 554 | |
| 555 | .PHONY : CHANGELOG |
| 556 | CHANGELOG: |
| 557 | git log --no-merges U-Boot-1_1_5.. | \ |
| 558 | unexpand -a | sed -e 's/\s\s*$$//' > $@ |
| 559 | |
| 560 | include/license.h: tools/bin2header COPYING |
| 561 | cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h |
| 562 | ######################################################################### |
| 563 | |
| 564 | unconfig: |
| 565 | @rm -f $(obj)include/config.h $(obj)include/config.mk \ |
| 566 | $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ |
| 567 | $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep |
| 568 | |
| 569 | #======================================================================== |
| 570 | # PowerPC |
| 571 | #======================================================================== |
| 572 | |
| 573 | ######################################################################### |
| 574 | ## MPC5xx Systems |
| 575 | ######################################################################### |
| 576 | |
| 577 | canmb_config: unconfig |
| 578 | @$(MKCONFIG) -a canmb ppc mpc5xxx canmb |
| 579 | |
| 580 | cmi_mpc5xx_config: unconfig |
| 581 | @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi |
| 582 | |
| 583 | PATI_config: unconfig |
| 584 | @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl |
| 585 | |
| 586 | ######################################################################### |
| 587 | ## MPC5xxx Systems |
| 588 | ######################################################################### |
| 589 | |
| 590 | aev_config: unconfig |
| 591 | @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc |
| 592 | |
| 593 | BC3450_config: unconfig |
| 594 | @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450 |
| 595 | |
| 596 | cm5200_config: unconfig |
| 597 | @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200 |
| 598 | |
| 599 | cpci5200_config: unconfig |
| 600 | @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd |
| 601 | |
| 602 | digsy_mtc_config \ |
| 603 | digsy_mtc_LOWBOOT_config \ |
| 604 | digsy_mtc_RAMBOOT_config: unconfig |
| 605 | @mkdir -p $(obj)include |
| 606 | @mkdir -p $(obj)board/digsy_mtc |
| 607 | @ >$(obj)include/config.h |
| 608 | @[ -z "$(findstring LOWBOOT_,$@)" ] || \ |
| 609 | { echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp ; \ |
| 610 | echo "... with LOWBOOT configuration" ; \ |
| 611 | } |
| 612 | @[ -z "$(findstring RAMBOOT_,$@)" ] || \ |
| 613 | { echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp ; \ |
| 614 | echo "... with RAMBOOT configuration" ; \ |
| 615 | } |
| 616 | @$(MKCONFIG) -a digsy_mtc ppc mpc5xxx digsy_mtc |
| 617 | |
| 618 | hmi1001_config: unconfig |
| 619 | @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001 |
| 620 | |
| 621 | Lite5200_config \ |
| 622 | Lite5200_LOWBOOT_config \ |
| 623 | Lite5200_LOWBOOT08_config \ |
| 624 | icecube_5200_config \ |
| 625 | icecube_5200_LOWBOOT_config \ |
| 626 | icecube_5200_LOWBOOT08_config \ |
| 627 | icecube_5200_DDR_config \ |
| 628 | icecube_5200_DDR_LOWBOOT_config \ |
| 629 | icecube_5200_DDR_LOWBOOT08_config \ |
| 630 | icecube_5100_config: unconfig |
| 631 | @mkdir -p $(obj)include |
| 632 | @mkdir -p $(obj)board/icecube |
| 633 | @[ -z "$(findstring LOWBOOT_,$@)" ] || \ |
| 634 | { if [ "$(findstring DDR,$@)" ] ; \ |
| 635 | then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ |
| 636 | else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ |
| 637 | fi ; \ |
| 638 | $(XECHO) "... with LOWBOOT configuration" ; \ |
| 639 | } |
| 640 | @[ -z "$(findstring LOWBOOT08,$@)" ] || \ |
| 641 | { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \ |
| 642 | echo "... with 8 MB flash only" ; \ |
| 643 | $(XECHO) "... with LOWBOOT configuration" ; \ |
| 644 | } |
| 645 | @[ -z "$(findstring DDR,$@)" ] || \ |
| 646 | { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ |
| 647 | $(XECHO) "... DDR memory revision" ; \ |
| 648 | } |
| 649 | @[ -z "$(findstring 5200,$@)" ] || \ |
| 650 | { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ |
| 651 | $(XECHO) "... with MPC5200 processor" ; \ |
| 652 | } |
| 653 | @[ -z "$(findstring 5100,$@)" ] || \ |
| 654 | { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ |
| 655 | $(XECHO) "... with MGT5100 processor" ; \ |
| 656 | } |
| 657 | @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube |
| 658 | |
| 659 | jupiter_config: unconfig |
| 660 | @$(MKCONFIG) jupiter ppc mpc5xxx jupiter |
| 661 | |
| 662 | inka4x0_config: unconfig |
| 663 | @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0 |
| 664 | |
| 665 | lite5200b_config \ |
| 666 | lite5200b_PM_config \ |
| 667 | lite5200b_LOWBOOT_config: unconfig |
| 668 | @mkdir -p $(obj)include |
| 669 | @mkdir -p $(obj)board/icecube |
| 670 | @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h |
| 671 | @ $(XECHO) "... DDR memory revision" |
| 672 | @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h |
| 673 | @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h |
| 674 | @[ -z "$(findstring _PM_,$@)" ] || \ |
| 675 | { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \ |
| 676 | $(XECHO) "... with power management (low-power mode) support" ; \ |
| 677 | } |
| 678 | @[ -z "$(findstring LOWBOOT_,$@)" ] || \ |
| 679 | { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \ |
| 680 | $(XECHO) "... with LOWBOOT configuration" ; \ |
| 681 | } |
| 682 | @ $(XECHO) "... with MPC5200B processor" |
| 683 | @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube |
| 684 | |
| 685 | mcc200_config \ |
| 686 | mcc200_SDRAM_config \ |
| 687 | mcc200_highboot_config \ |
| 688 | mcc200_COM12_config \ |
| 689 | mcc200_COM12_SDRAM_config \ |
| 690 | mcc200_COM12_highboot_config \ |
| 691 | mcc200_COM12_highboot_SDRAM_config \ |
| 692 | mcc200_highboot_SDRAM_config \ |
| 693 | prs200_config \ |
| 694 | prs200_DDR_config \ |
| 695 | prs200_highboot_config \ |
| 696 | prs200_highboot_DDR_config: unconfig |
| 697 | @mkdir -p $(obj)include |
| 698 | @mkdir -p $(obj)board/mcc200 |
| 699 | @[ -n "$(findstring highboot,$@)" ] || \ |
| 700 | { $(XECHO) "... with lowboot configuration" ; \ |
| 701 | } |
| 702 | @[ -z "$(findstring highboot,$@)" ] || \ |
| 703 | { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \ |
| 704 | $(XECHO) "... with highboot configuration" ; \ |
| 705 | } |
| 706 | @[ -n "$(findstring _SDRAM,$@)" ] || \ |
| 707 | { if [ -n "$(findstring mcc200,$@)" ]; \ |
| 708 | then \ |
| 709 | $(XECHO) "... with DDR" ; \ |
| 710 | else \ |
| 711 | if [ -n "$(findstring _DDR,$@)" ];\ |
| 712 | then \ |
| 713 | $(XECHO) "... with DDR" ; \ |
| 714 | else \ |
| 715 | echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\ |
| 716 | $(XECHO) "... with SDRAM" ; \ |
| 717 | fi; \ |
| 718 | fi; \ |
| 719 | } |
| 720 | @[ -z "$(findstring _SDRAM,$@)" ] || \ |
| 721 | { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \ |
| 722 | $(XECHO) "... with SDRAM" ; \ |
| 723 | } |
| 724 | @[ -z "$(findstring COM12,$@)" ] || \ |
| 725 | { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \ |
| 726 | $(XECHO) "... with console on COM12" ; \ |
| 727 | } |
| 728 | @[ -z "$(findstring prs200,$@)" ] || \ |
| 729 | { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\ |
| 730 | } |
| 731 | @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200 |
| 732 | |
| 733 | mecp5200_config: unconfig |
| 734 | @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd |
| 735 | |
| 736 | motionpro_config: unconfig |
| 737 | @$(MKCONFIG) motionpro ppc mpc5xxx motionpro |
| 738 | |
| 739 | mucmc52_config: unconfig |
| 740 | @$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52 |
| 741 | |
| 742 | munices_config: unconfig |
| 743 | @$(MKCONFIG) munices ppc mpc5xxx munices |
| 744 | |
| 745 | MVBC_P_config: unconfig |
| 746 | @mkdir -p $(obj)include |
| 747 | @mkdir -p $(obj)board/mvbc_p |
| 748 | @ >$(obj)include/config.h |
| 749 | @[ -z "$(findstring MVBC_P,$@)" ] || \ |
| 750 | { echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h; } |
| 751 | @$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision |
| 752 | |
| 753 | o2dnt_config: unconfig |
| 754 | @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt |
| 755 | |
| 756 | pcm030_config \ |
| 757 | pcm030_LOWBOOT_config: unconfig |
| 758 | @mkdir -p $(obj)include $(obj)board/phytec/pcm030 |
| 759 | @ >$(obj)include/config.h |
| 760 | @[ -z "$(findstring LOWBOOT_,$@)" ] || \ |
| 761 | { echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp ; \ |
| 762 | echo "... with LOWBOOT configuration" ; \ |
| 763 | } |
| 764 | @$(MKCONFIG) -a pcm030 ppc mpc5xxx pcm030 phytec |
| 765 | |
| 766 | pf5200_config: unconfig |
| 767 | @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd |
| 768 | |
| 769 | PM520_config \ |
| 770 | PM520_DDR_config \ |
| 771 | PM520_ROMBOOT_config \ |
| 772 | PM520_ROMBOOT_DDR_config: unconfig |
| 773 | @mkdir -p $(obj)include |
| 774 | @[ -z "$(findstring DDR,$@)" ] || \ |
| 775 | { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \ |
| 776 | $(XECHO) "... DDR memory revision" ; \ |
| 777 | } |
| 778 | @[ -z "$(findstring ROMBOOT,$@)" ] || \ |
| 779 | { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ |
| 780 | $(XECHO) "... booting from 8-bit flash" ; \ |
| 781 | } |
| 782 | @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520 |
| 783 | |
| 784 | smmaco4_config: unconfig |
| 785 | @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc |
| 786 | |
| 787 | spieval_config: unconfig |
| 788 | @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc |
| 789 | |
| 790 | TB5200_B_config \ |
| 791 | TB5200_config: unconfig |
| 792 | @mkdir -p $(obj)include |
| 793 | @[ -z "$(findstring _B,$@)" ] || \ |
| 794 | { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ |
| 795 | $(XECHO) "... with MPC5200B processor" ; \ |
| 796 | } |
| 797 | @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc |
| 798 | |
| 799 | MINI5200_config \ |
| 800 | EVAL5200_config \ |
| 801 | TOP5200_config: unconfig |
| 802 | @mkdir -p $(obj)include |
| 803 | @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h |
| 804 | @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk |
| 805 | |
| 806 | Total5100_config \ |
| 807 | Total5200_config \ |
| 808 | Total5200_lowboot_config \ |
| 809 | Total5200_Rev2_config \ |
| 810 | Total5200_Rev2_lowboot_config: unconfig |
| 811 | @mkdir -p $(obj)include |
| 812 | @mkdir -p $(obj)board/total5200 |
| 813 | @[ -z "$(findstring 5100,$@)" ] || \ |
| 814 | { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \ |
| 815 | $(XECHO) "... with MGT5100 processor" ; \ |
| 816 | } |
| 817 | @[ -z "$(findstring 5200,$@)" ] || \ |
| 818 | { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \ |
| 819 | $(XECHO) "... with MPC5200 processor" ; \ |
| 820 | } |
| 821 | @[ -n "$(findstring Rev,$@)" ] || \ |
| 822 | { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \ |
| 823 | $(XECHO) "... revision 1 board" ; \ |
| 824 | } |
| 825 | @[ -z "$(findstring Rev2_,$@)" ] || \ |
| 826 | { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \ |
| 827 | $(XECHO) "... revision 2 board" ; \ |
| 828 | } |
| 829 | @[ -z "$(findstring lowboot_,$@)" ] || \ |
| 830 | { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \ |
| 831 | $(XECHO) "... with lowboot configuration" ; \ |
| 832 | } |
| 833 | @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200 |
| 834 | |
| 835 | cam5200_config \ |
| 836 | cam5200_niosflash_config \ |
| 837 | fo300_config \ |
| 838 | MiniFAP_config \ |
| 839 | TQM5200S_config \ |
| 840 | TQM5200S_HIGHBOOT_config \ |
| 841 | TQM5200_B_config \ |
| 842 | TQM5200_B_HIGHBOOT_config \ |
| 843 | TQM5200_config \ |
| 844 | TQM5200_STK100_config: unconfig |
| 845 | @mkdir -p $(obj)include |
| 846 | @mkdir -p $(obj)board/tqc/tqm5200 |
| 847 | @[ -z "$(findstring cam5200,$@)" ] || \ |
| 848 | { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \ |
| 849 | echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ |
| 850 | echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ |
| 851 | $(XECHO) "... TQM5200S on Cam5200" ; \ |
| 852 | } |
| 853 | @[ -z "$(findstring niosflash,$@)" ] || \ |
| 854 | { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \ |
| 855 | $(XECHO) "... with NIOS flash driver" ; \ |
| 856 | } |
| 857 | @[ -z "$(findstring fo300,$@)" ] || \ |
| 858 | { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \ |
| 859 | $(XECHO) "... TQM5200 on FO300" ; \ |
| 860 | } |
| 861 | @[ -z "$(findstring MiniFAP,$@)" ] || \ |
| 862 | { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \ |
| 863 | $(XECHO) "... TQM5200_AC on MiniFAP" ; \ |
| 864 | } |
| 865 | @[ -z "$(findstring STK100,$@)" ] || \ |
| 866 | { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \ |
| 867 | $(XECHO) "... on a STK52XX.100 base board" ; \ |
| 868 | } |
| 869 | @[ -z "$(findstring TQM5200_B,$@)" ] || \ |
| 870 | { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ |
| 871 | } |
| 872 | @[ -z "$(findstring TQM5200S,$@)" ] || \ |
| 873 | { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \ |
| 874 | echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \ |
| 875 | } |
| 876 | @[ -z "$(findstring HIGHBOOT,$@)" ] || \ |
| 877 | { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \ |
| 878 | } |
| 879 | @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc |
| 880 | |
| 881 | uc101_config: unconfig |
| 882 | @$(MKCONFIG) uc101 ppc mpc5xxx uc101 |
| 883 | |
| 884 | v38b_config: unconfig |
| 885 | @$(MKCONFIG) -a v38b ppc mpc5xxx v38b |
| 886 | |
| 887 | ######################################################################### |
| 888 | ## MPC512x Systems |
| 889 | ######################################################################### |
| 890 | |
| 891 | aria_config: unconfig |
| 892 | @$(MKCONFIG) -a aria ppc mpc512x aria davedenx |
| 893 | |
| 894 | mecp5123_config: unconfig |
| 895 | @$(MKCONFIG) -a mecp5123 ppc mpc512x mecp5123 esd |
| 896 | |
| 897 | mpc5121ads_config \ |
| 898 | mpc5121ads_rev2_config \ |
| 899 | : unconfig |
| 900 | @mkdir -p $(obj)include |
| 901 | @if [ "$(findstring rev2,$@)" ] ; then \ |
| 902 | echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \ |
| 903 | fi |
| 904 | @$(MKCONFIG) -a mpc5121ads ppc mpc512x mpc5121ads freescale |
| 905 | |
| 906 | ######################################################################### |
| 907 | ## MPC8xx Systems |
| 908 | ######################################################################### |
| 909 | |
| 910 | Adder_config \ |
| 911 | Adder87x_config \ |
| 912 | AdderII_config \ |
| 913 | : unconfig |
| 914 | @mkdir -p $(obj)include |
| 915 | $(if $(findstring AdderII,$@), \ |
| 916 | @echo "#define CONFIG_MPC852T" > $(obj)include/config.h) |
| 917 | @$(MKCONFIG) -a Adder ppc mpc8xx adder |
| 918 | |
| 919 | AdderUSB_config: unconfig |
| 920 | @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder |
| 921 | |
| 922 | ADS860_config \ |
| 923 | FADS823_config \ |
| 924 | FADS850SAR_config \ |
| 925 | MPC86xADS_config \ |
| 926 | MPC885ADS_config \ |
| 927 | FADS860T_config: unconfig |
| 928 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads |
| 929 | |
| 930 | AMX860_config : unconfig |
| 931 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel |
| 932 | |
| 933 | c2mon_config: unconfig |
| 934 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon |
| 935 | |
| 936 | CCM_config: unconfig |
| 937 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens |
| 938 | |
| 939 | cogent_mpc8xx_config: unconfig |
| 940 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent |
| 941 | |
| 942 | ELPT860_config: unconfig |
| 943 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX |
| 944 | |
| 945 | EP88x_config: unconfig |
| 946 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x |
| 947 | |
| 948 | ESTEEM192E_config: unconfig |
| 949 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e |
| 950 | |
| 951 | ETX094_config : unconfig |
| 952 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094 |
| 953 | |
| 954 | FLAGADM_config: unconfig |
| 955 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm |
| 956 | |
| 957 | xtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) |
| 958 | |
| 959 | GEN860T_SC_config \ |
| 960 | GEN860T_config: unconfig |
| 961 | @mkdir -p $(obj)include |
| 962 | @[ -z "$(findstring _SC,$@)" ] || \ |
| 963 | { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \ |
| 964 | $(XECHO) "With reduced H/W feature set (SC)..." ; \ |
| 965 | } |
| 966 | @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t |
| 967 | |
| 968 | GENIETV_config: unconfig |
| 969 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv |
| 970 | |
| 971 | GTH_config: unconfig |
| 972 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth |
| 973 | |
| 974 | hermes_config : unconfig |
| 975 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes |
| 976 | |
| 977 | HMI10_config : unconfig |
| 978 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc |
| 979 | |
| 980 | IAD210_config: unconfig |
| 981 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens |
| 982 | |
| 983 | xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) |
| 984 | |
| 985 | ICU862_100MHz_config \ |
| 986 | ICU862_config: unconfig |
| 987 | @mkdir -p $(obj)include |
| 988 | @[ -z "$(findstring _100MHz,$@)" ] || \ |
| 989 | { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \ |
| 990 | $(XECHO) "... with 100MHz system clock" ; \ |
| 991 | } |
| 992 | @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 |
| 993 | |
| 994 | IP860_config : unconfig |
| 995 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860 |
| 996 | |
| 997 | IVML24_256_config \ |
| 998 | IVML24_128_config \ |
| 999 | IVML24_config: unconfig |
| 1000 | @mkdir -p $(obj)include |
| 1001 | @[ -z "$(findstring IVML24_config,$@)" ] || \ |
| 1002 | { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \ |
| 1003 | } |
| 1004 | @[ -z "$(findstring IVML24_128_config,$@)" ] || \ |
| 1005 | { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \ |
| 1006 | } |
| 1007 | @[ -z "$(findstring IVML24_256_config,$@)" ] || \ |
| 1008 | { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \ |
| 1009 | } |
| 1010 | @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm |
| 1011 | |
| 1012 | IVMS8_256_config \ |
| 1013 | IVMS8_128_config \ |
| 1014 | IVMS8_config: unconfig |
| 1015 | @mkdir -p $(obj)include |
| 1016 | @[ -z "$(findstring IVMS8_config,$@)" ] || \ |
| 1017 | { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \ |
| 1018 | } |
| 1019 | @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ |
| 1020 | { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \ |
| 1021 | } |
| 1022 | @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ |
| 1023 | { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \ |
| 1024 | } |
| 1025 | @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm |
| 1026 | |
| 1027 | kmsupx4_config: unconfig |
| 1028 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile |
| 1029 | |
| 1030 | KUP4K_config : unconfig |
| 1031 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup |
| 1032 | |
| 1033 | KUP4X_config : unconfig |
| 1034 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup |
| 1035 | |
| 1036 | LANTEC_config : unconfig |
| 1037 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec |
| 1038 | |
| 1039 | lwmon_config: unconfig |
| 1040 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon |
| 1041 | |
| 1042 | MBX_config \ |
| 1043 | MBX860T_config: unconfig |
| 1044 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx |
| 1045 | |
| 1046 | mgsuvd_config: unconfig |
| 1047 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile |
| 1048 | |
| 1049 | MHPC_config: unconfig |
| 1050 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec |
| 1051 | |
| 1052 | xtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) |
| 1053 | |
| 1054 | NETVIA_V2_config \ |
| 1055 | NETVIA_config: unconfig |
| 1056 | @mkdir -p $(obj)include |
| 1057 | @[ -z "$(findstring NETVIA_config,$@)" ] || \ |
| 1058 | { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \ |
| 1059 | $(XECHO) "... Version 1" ; \ |
| 1060 | } |
| 1061 | @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ |
| 1062 | { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \ |
| 1063 | $(XECHO) "... Version 2" ; \ |
| 1064 | } |
| 1065 | @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia |
| 1066 | |
| 1067 | xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1)) |
| 1068 | |
| 1069 | NETPHONE_V2_config \ |
| 1070 | NETPHONE_config: unconfig |
| 1071 | @mkdir -p $(obj)include |
| 1072 | @[ -z "$(findstring NETPHONE_config,$@)" ] || \ |
| 1073 | { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \ |
| 1074 | } |
| 1075 | @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \ |
| 1076 | { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \ |
| 1077 | } |
| 1078 | @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone |
| 1079 | |
| 1080 | xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1)))) |
| 1081 | |
| 1082 | NETTA_ISDN_6412_SWAPHOOK_config \ |
| 1083 | NETTA_ISDN_SWAPHOOK_config \ |
| 1084 | NETTA_6412_SWAPHOOK_config \ |
| 1085 | NETTA_SWAPHOOK_config \ |
| 1086 | NETTA_ISDN_6412_config \ |
| 1087 | NETTA_ISDN_config \ |
| 1088 | NETTA_6412_config \ |
| 1089 | NETTA_config: unconfig |
| 1090 | @mkdir -p $(obj)include |
| 1091 | @[ -z "$(findstring ISDN_,$@)" ] || \ |
| 1092 | { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \ |
| 1093 | } |
| 1094 | @[ -n "$(findstring ISDN_,$@)" ] || \ |
| 1095 | { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \ |
| 1096 | } |
| 1097 | @[ -z "$(findstring 6412_,$@)" ] || \ |
| 1098 | { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \ |
| 1099 | } |
| 1100 | @[ -n "$(findstring 6412_,$@)" ] || \ |
| 1101 | { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \ |
| 1102 | } |
| 1103 | @[ -z "$(findstring SWAPHOOK_,$@)" ] || \ |
| 1104 | { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \ |
| 1105 | } |
| 1106 | @[ -n "$(findstring SWAPHOOK_,$@)" ] || \ |
| 1107 | { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \ |
| 1108 | } |
| 1109 | @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta |
| 1110 | |
| 1111 | xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1)) |
| 1112 | |
| 1113 | NETTA2_V2_config \ |
| 1114 | NETTA2_config: unconfig |
| 1115 | @mkdir -p $(obj)include |
| 1116 | @[ -z "$(findstring NETTA2_config,$@)" ] || \ |
| 1117 | { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \ |
| 1118 | } |
| 1119 | @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \ |
| 1120 | { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \ |
| 1121 | } |
| 1122 | @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2 |
| 1123 | |
| 1124 | NC650_Rev1_config \ |
| 1125 | NC650_Rev2_config \ |
| 1126 | CP850_config: unconfig |
| 1127 | @mkdir -p $(obj)include |
| 1128 | @[ -z "$(findstring CP850,$@)" ] || \ |
| 1129 | { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \ |
| 1130 | echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ |
| 1131 | } |
| 1132 | @[ -z "$(findstring Rev1,$@)" ] || \ |
| 1133 | { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \ |
| 1134 | } |
| 1135 | @[ -z "$(findstring Rev2,$@)" ] || \ |
| 1136 | { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \ |
| 1137 | } |
| 1138 | @$(MKCONFIG) -a NC650 ppc mpc8xx nc650 |
| 1139 | |
| 1140 | NX823_config: unconfig |
| 1141 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823 |
| 1142 | |
| 1143 | pcu_e_config: unconfig |
| 1144 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens |
| 1145 | |
| 1146 | QS850_config: unconfig |
| 1147 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc |
| 1148 | |
| 1149 | QS823_config: unconfig |
| 1150 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc |
| 1151 | |
| 1152 | QS860T_config: unconfig |
| 1153 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc |
| 1154 | |
| 1155 | quantum_config: unconfig |
| 1156 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum |
| 1157 | |
| 1158 | R360MPI_config: unconfig |
| 1159 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi |
| 1160 | |
| 1161 | RBC823_config: unconfig |
| 1162 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823 |
| 1163 | |
| 1164 | RPXClassic_config: unconfig |
| 1165 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic |
| 1166 | |
| 1167 | RPXlite_config: unconfig |
| 1168 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite |
| 1169 | |
| 1170 | RPXlite_DW_64_config \ |
| 1171 | RPXlite_DW_LCD_config \ |
| 1172 | RPXlite_DW_64_LCD_config \ |
| 1173 | RPXlite_DW_NVRAM_config \ |
| 1174 | RPXlite_DW_NVRAM_64_config \ |
| 1175 | RPXlite_DW_NVRAM_LCD_config \ |
| 1176 | RPXlite_DW_NVRAM_64_LCD_config \ |
| 1177 | RPXlite_DW_config: unconfig |
| 1178 | @mkdir -p $(obj)include |
| 1179 | @[ -z "$(findstring _64,$@)" ] || \ |
| 1180 | { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \ |
| 1181 | $(XECHO) "... with 64MHz system clock ..."; \ |
| 1182 | } |
| 1183 | @[ -z "$(findstring _LCD,$@)" ] || \ |
| 1184 | { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ |
| 1185 | echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ |
| 1186 | $(XECHO) "... with LCD display ..."; \ |
| 1187 | } |
| 1188 | @[ -z "$(findstring _NVRAM,$@)" ] || \ |
| 1189 | { echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \ |
| 1190 | $(XECHO) "... with ENV in NVRAM ..."; \ |
| 1191 | } |
| 1192 | @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw |
| 1193 | |
| 1194 | rmu_config: unconfig |
| 1195 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu |
| 1196 | |
| 1197 | RRvision_config: unconfig |
| 1198 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision |
| 1199 | |
| 1200 | RRvision_LCD_config: unconfig |
| 1201 | @mkdir -p $(obj)include |
| 1202 | @echo "#define CONFIG_LCD" >$(obj)include/config.h |
| 1203 | @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h |
| 1204 | @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision |
| 1205 | |
| 1206 | SM850_config : unconfig |
| 1207 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc |
| 1208 | |
| 1209 | spc1920_config: unconfig |
| 1210 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920 |
| 1211 | |
| 1212 | SPD823TS_config: unconfig |
| 1213 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx |
| 1214 | |
| 1215 | stxxtc_config: unconfig |
| 1216 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc |
| 1217 | |
| 1218 | svm_sc8xx_config: unconfig |
| 1219 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx |
| 1220 | |
| 1221 | SXNI855T_config: unconfig |
| 1222 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet |
| 1223 | |
| 1224 | # EMK MPC8xx based modules |
| 1225 | TOP860_config: unconfig |
| 1226 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk |
| 1227 | |
| 1228 | # Play some tricks for configuration selection |
| 1229 | # Only 855 and 860 boards may come with FEC |
| 1230 | # and only 823 boards may have LCD support |
| 1231 | xtract_8xx = $(subst _LCD,,$(subst _config,,$1)) |
| 1232 | |
| 1233 | FPS850L_config \ |
| 1234 | FPS860L_config \ |
| 1235 | NSCU_config \ |
| 1236 | TQM823L_config \ |
| 1237 | TQM823L_LCD_config \ |
| 1238 | TQM850L_config \ |
| 1239 | TQM855L_config \ |
| 1240 | TQM860L_config \ |
| 1241 | TQM862L_config \ |
| 1242 | TQM823M_config \ |
| 1243 | TQM850M_config \ |
| 1244 | TQM855M_config \ |
| 1245 | TQM860M_config \ |
| 1246 | TQM862M_config \ |
| 1247 | TQM866M_config \ |
| 1248 | TQM885D_config \ |
| 1249 | TK885D_config \ |
| 1250 | virtlab2_config: unconfig |
| 1251 | @mkdir -p $(obj)include |
| 1252 | @[ -z "$(findstring _LCD,$@)" ] || \ |
| 1253 | { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \ |
| 1254 | echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \ |
| 1255 | $(XECHO) "... with LCD display" ; \ |
| 1256 | } |
| 1257 | @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc |
| 1258 | |
| 1259 | TTTech_config: unconfig |
| 1260 | @mkdir -p $(obj)include |
| 1261 | @echo "#define CONFIG_LCD" >$(obj)include/config.h |
| 1262 | @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h |
| 1263 | @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc |
| 1264 | |
| 1265 | uc100_config : unconfig |
| 1266 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100 |
| 1267 | |
| 1268 | v37_config: unconfig |
| 1269 | @mkdir -p $(obj)include |
| 1270 | @echo "#define CONFIG_LCD" >$(obj)include/config.h |
| 1271 | @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h |
| 1272 | @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37 |
| 1273 | |
| 1274 | wtk_config: unconfig |
| 1275 | @mkdir -p $(obj)include |
| 1276 | @echo "#define CONFIG_LCD" >$(obj)include/config.h |
| 1277 | @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h |
| 1278 | @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc |
| 1279 | |
| 1280 | ######################################################################### |
| 1281 | ## PPC4xx Systems |
| 1282 | ######################################################################### |
| 1283 | xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1)))))) |
| 1284 | |
| 1285 | acadia_config: unconfig |
| 1286 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc |
| 1287 | |
| 1288 | acadia_nand_config: unconfig |
| 1289 | @mkdir -p $(obj)include $(obj)board/amcc/acadia |
| 1290 | @mkdir -p $(obj)nand_spl/board/amcc/acadia |
| 1291 | @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h |
| 1292 | @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc |
| 1293 | @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp |
| 1294 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk |
| 1295 | |
| 1296 | ADCIOP_config: unconfig |
| 1297 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd |
| 1298 | |
| 1299 | alpr_config: unconfig |
| 1300 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive |
| 1301 | |
| 1302 | AP1000_config:unconfig |
| 1303 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix |
| 1304 | |
| 1305 | APC405_config: unconfig |
| 1306 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd |
| 1307 | |
| 1308 | AR405_config: unconfig |
| 1309 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd |
| 1310 | |
| 1311 | ASH405_config: unconfig |
| 1312 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd |
| 1313 | |
| 1314 | bamboo_config: unconfig |
| 1315 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc |
| 1316 | |
| 1317 | bamboo_nand_config: unconfig |
| 1318 | @mkdir -p $(obj)include $(obj)board/amcc/bamboo |
| 1319 | @mkdir -p $(obj)nand_spl/board/amcc/bamboo |
| 1320 | @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h |
| 1321 | @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc |
| 1322 | @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp |
| 1323 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk |
| 1324 | |
| 1325 | bubinga_config: unconfig |
| 1326 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc |
| 1327 | |
| 1328 | CANBT_config: unconfig |
| 1329 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd |
| 1330 | |
| 1331 | # Arches, Canyonlands & Glacier use different U-Boot images |
| 1332 | arches_config \ |
| 1333 | canyonlands_config \ |
| 1334 | glacier_config: unconfig |
| 1335 | @mkdir -p $(obj)include |
| 1336 | @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ |
| 1337 | tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h |
| 1338 | @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc |
| 1339 | |
| 1340 | canyonlands_nand_config \ |
| 1341 | glacier_nand_config: unconfig |
| 1342 | @mkdir -p $(obj)include $(obj)board/amcc/canyonlands |
| 1343 | @mkdir -p $(obj)nand_spl/board/amcc/canyonlands |
| 1344 | @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h |
| 1345 | @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \ |
| 1346 | tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h |
| 1347 | @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc |
| 1348 | @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp |
| 1349 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk |
| 1350 | |
| 1351 | CATcenter_config \ |
| 1352 | CATcenter_25_config \ |
| 1353 | CATcenter_33_config: unconfig |
| 1354 | @mkdir -p $(obj)include |
| 1355 | @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h |
| 1356 | @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h |
| 1357 | @[ -z "$(findstring _25,$@)" ] || \ |
| 1358 | { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \ |
| 1359 | $(XECHO) "SysClk = 25MHz" ; \ |
| 1360 | } |
| 1361 | @[ -z "$(findstring _33,$@)" ] || \ |
| 1362 | { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \ |
| 1363 | $(XECHO) "SysClk = 33MHz" ; \ |
| 1364 | } |
| 1365 | @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave |
| 1366 | |
| 1367 | CMS700_config: unconfig |
| 1368 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd |
| 1369 | |
| 1370 | # Compact-Center & DevCon-Center use different U-Boot images |
| 1371 | compactcenter_config \ |
| 1372 | devconcenter_config: unconfig |
| 1373 | @mkdir -p $(obj)include |
| 1374 | @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ |
| 1375 | tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h |
| 1376 | @$(MKCONFIG) -n $@ -a compactcenter ppc ppc4xx compactcenter gdsys |
| 1377 | |
| 1378 | CPCI2DP_config: unconfig |
| 1379 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd |
| 1380 | |
| 1381 | CPCI405_config \ |
| 1382 | CPCI4052_config \ |
| 1383 | CPCI405DT_config \ |
| 1384 | CPCI405AB_config: unconfig |
| 1385 | @mkdir -p $(obj)board/esd/cpci405 |
| 1386 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd |
| 1387 | |
| 1388 | CPCIISER4_config: unconfig |
| 1389 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd |
| 1390 | |
| 1391 | CRAYL1_config: unconfig |
| 1392 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray |
| 1393 | |
| 1394 | csb272_config: unconfig |
| 1395 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272 |
| 1396 | |
| 1397 | csb472_config: unconfig |
| 1398 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472 |
| 1399 | |
| 1400 | DASA_SIM_config: unconfig |
| 1401 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd |
| 1402 | |
| 1403 | dlvision_config: unconfig |
| 1404 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx dlvision gdsys |
| 1405 | |
| 1406 | DP405_config: unconfig |
| 1407 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd |
| 1408 | |
| 1409 | DU405_config: unconfig |
| 1410 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd |
| 1411 | |
| 1412 | DU440_config: unconfig |
| 1413 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd |
| 1414 | |
| 1415 | ebony_config: unconfig |
| 1416 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc |
| 1417 | |
| 1418 | ERIC_config: unconfig |
| 1419 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric |
| 1420 | |
| 1421 | EXBITGEN_config: unconfig |
| 1422 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen |
| 1423 | |
| 1424 | fx12mm_flash_config: unconfig |
| 1425 | @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic |
| 1426 | @mkdir -p $(obj)include $(obj)board/avnet/fx12mm |
| 1427 | @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ |
| 1428 | > $(obj)board/avnet/fx12mm/config.tmp |
| 1429 | @echo "TEXT_BASE := 0xFFCB0000" \ |
| 1430 | >> $(obj)board/avnet/fx12mm/config.tmp |
| 1431 | @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet |
| 1432 | |
| 1433 | fx12mm_config: unconfig |
| 1434 | @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic |
| 1435 | @mkdir -p $(obj)include $(obj)board/avnet/fx12mm |
| 1436 | @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ |
| 1437 | > $(obj)board/avnet/fx12mm/config.tmp |
| 1438 | @echo "TEXT_BASE := 0x03000000" \ |
| 1439 | >> $(obj)board/avnet/fx12mm/config.tmp |
| 1440 | @$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet |
| 1441 | |
| 1442 | G2000_config: unconfig |
| 1443 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000 |
| 1444 | |
| 1445 | gdppc440etx_config: unconfig |
| 1446 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx gdppc440etx gdsys |
| 1447 | |
| 1448 | hcu4_config: unconfig |
| 1449 | @mkdir -p $(obj)board/netstal/common |
| 1450 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal |
| 1451 | |
| 1452 | hcu5_config: unconfig |
| 1453 | @mkdir -p $(obj)board/netstal/common |
| 1454 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal |
| 1455 | |
| 1456 | HH405_config: unconfig |
| 1457 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd |
| 1458 | |
| 1459 | HUB405_config: unconfig |
| 1460 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd |
| 1461 | |
| 1462 | JSE_config: unconfig |
| 1463 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse |
| 1464 | |
| 1465 | KAREF_config: unconfig |
| 1466 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst |
| 1467 | |
| 1468 | katmai_config: unconfig |
| 1469 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc |
| 1470 | |
| 1471 | # Kilauea & Haleakala images are identical (recognized via PVR) |
| 1472 | kilauea_config \ |
| 1473 | haleakala_config: unconfig |
| 1474 | @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc |
| 1475 | |
| 1476 | kilauea_nand_config \ |
| 1477 | haleakala_nand_config: unconfig |
| 1478 | @mkdir -p $(obj)include $(obj)board/amcc/kilauea |
| 1479 | @mkdir -p $(obj)nand_spl/board/amcc/kilauea |
| 1480 | @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h |
| 1481 | @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc |
| 1482 | @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp |
| 1483 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk |
| 1484 | |
| 1485 | korat_config: unconfig |
| 1486 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat |
| 1487 | |
| 1488 | luan_config: unconfig |
| 1489 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc |
| 1490 | |
| 1491 | lwmon5_config: unconfig |
| 1492 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5 |
| 1493 | |
| 1494 | makalu_config: unconfig |
| 1495 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc |
| 1496 | |
| 1497 | mcu25_config: unconfig |
| 1498 | @mkdir -p $(obj)board/netstal/common |
| 1499 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal |
| 1500 | |
| 1501 | METROBOX_config: unconfig |
| 1502 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst |
| 1503 | |
| 1504 | MIP405_config: unconfig |
| 1505 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl |
| 1506 | |
| 1507 | MIP405T_config: unconfig |
| 1508 | @mkdir -p $(obj)include |
| 1509 | @echo "#define CONFIG_MIP405T" >$(obj)include/config.h |
| 1510 | @$(XECHO) "Enable subset config for MIP405T" |
| 1511 | @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl |
| 1512 | |
| 1513 | ML2_config: unconfig |
| 1514 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2 |
| 1515 | |
| 1516 | ml300_config: unconfig |
| 1517 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx |
| 1518 | |
| 1519 | ml507_flash_config: unconfig |
| 1520 | @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic |
| 1521 | @mkdir -p $(obj)include $(obj)board/xilinx/ml507 |
| 1522 | @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ |
| 1523 | > $(obj)board/xilinx/ml507/config.tmp |
| 1524 | @echo "TEXT_BASE := 0xFE360000" \ |
| 1525 | >> $(obj)board/xilinx/ml507/config.tmp |
| 1526 | @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx |
| 1527 | |
| 1528 | ml507_config: unconfig |
| 1529 | @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic |
| 1530 | @mkdir -p $(obj)include $(obj)board/xilinx/ml507 |
| 1531 | @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ |
| 1532 | > $(obj)board/xilinx/ml507/config.tmp |
| 1533 | @echo "TEXT_BASE := 0x04000000" \ |
| 1534 | >> $(obj)board/xilinx/ml507/config.tmp |
| 1535 | @$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx |
| 1536 | |
| 1537 | neo_config: unconfig |
| 1538 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys |
| 1539 | |
| 1540 | ocotea_config: unconfig |
| 1541 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc |
| 1542 | |
| 1543 | OCRTC_config \ |
| 1544 | ORSG_config: unconfig |
| 1545 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd |
| 1546 | |
| 1547 | p3p440_config: unconfig |
| 1548 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive |
| 1549 | |
| 1550 | PCI405_config: unconfig |
| 1551 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd |
| 1552 | |
| 1553 | pcs440ep_config: unconfig |
| 1554 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep |
| 1555 | |
| 1556 | PIP405_config: unconfig |
| 1557 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl |
| 1558 | |
| 1559 | PLU405_config: unconfig |
| 1560 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd |
| 1561 | |
| 1562 | PMC405_config: unconfig |
| 1563 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd |
| 1564 | |
| 1565 | PMC405DE_config: unconfig |
| 1566 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405de esd |
| 1567 | |
| 1568 | PMC440_config: unconfig |
| 1569 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd |
| 1570 | |
| 1571 | PPChameleonEVB_config \ |
| 1572 | PPChameleonEVB_BA_25_config \ |
| 1573 | PPChameleonEVB_ME_25_config \ |
| 1574 | PPChameleonEVB_HI_25_config \ |
| 1575 | PPChameleonEVB_BA_33_config \ |
| 1576 | PPChameleonEVB_ME_33_config \ |
| 1577 | PPChameleonEVB_HI_33_config: unconfig |
| 1578 | @mkdir -p $(obj)include |
| 1579 | @[ -z "$(findstring EVB_BA,$@)" ] || \ |
| 1580 | { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \ |
| 1581 | $(XECHO) "... BASIC model" ; \ |
| 1582 | } |
| 1583 | @[ -z "$(findstring EVB_ME,$@)" ] || \ |
| 1584 | { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \ |
| 1585 | $(XECHO) "... MEDIUM model" ; \ |
| 1586 | } |
| 1587 | @[ -z "$(findstring EVB_HI,$@)" ] || \ |
| 1588 | { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \ |
| 1589 | $(XECHO) "... HIGH-END model" ; \ |
| 1590 | } |
| 1591 | @[ -z "$(findstring _25,$@)" ] || \ |
| 1592 | { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \ |
| 1593 | $(XECHO) "SysClk = 25MHz" ; \ |
| 1594 | } |
| 1595 | @[ -z "$(findstring _33,$@)" ] || \ |
| 1596 | { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \ |
| 1597 | $(XECHO) "SysClk = 33MHz" ; \ |
| 1598 | } |
| 1599 | @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave |
| 1600 | |
| 1601 | quad100hd_config: unconfig |
| 1602 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd |
| 1603 | |
| 1604 | redwood_config: unconfig |
| 1605 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc |
| 1606 | |
| 1607 | sbc405_config: unconfig |
| 1608 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405 |
| 1609 | |
| 1610 | sc3_config:unconfig |
| 1611 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3 |
| 1612 | |
| 1613 | sequoia_config \ |
| 1614 | rainier_config: unconfig |
| 1615 | @mkdir -p $(obj)include |
| 1616 | @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ |
| 1617 | tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h |
| 1618 | @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc |
| 1619 | |
| 1620 | sequoia_nand_config \ |
| 1621 | rainier_nand_config: unconfig |
| 1622 | @mkdir -p $(obj)include $(obj)board/amcc/sequoia |
| 1623 | @mkdir -p $(obj)nand_spl/board/amcc/sequoia |
| 1624 | @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h |
| 1625 | @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ |
| 1626 | tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h |
| 1627 | @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc |
| 1628 | @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp |
| 1629 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk |
| 1630 | |
| 1631 | sequoia_ramboot_config \ |
| 1632 | rainier_ramboot_config: unconfig |
| 1633 | @mkdir -p $(obj)include $(obj)board/amcc/sequoia |
| 1634 | @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h |
| 1635 | @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ |
| 1636 | tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h |
| 1637 | @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc |
| 1638 | @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp |
| 1639 | @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \ |
| 1640 | $(obj)board/amcc/sequoia/config.tmp |
| 1641 | |
| 1642 | taihu_config: unconfig |
| 1643 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc |
| 1644 | |
| 1645 | taishan_config: unconfig |
| 1646 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc |
| 1647 | |
| 1648 | v5fx30teval_config: unconfig |
| 1649 | @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic |
| 1650 | @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval |
| 1651 | @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ |
| 1652 | > $(obj)board/avnet/v5fx30teval/config.tmp |
| 1653 | @echo "TEXT_BASE := 0x03000000" \ |
| 1654 | >> $(obj)board/avnet/v5fx30teval/config.tmp |
| 1655 | @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet |
| 1656 | |
| 1657 | v5fx30teval_flash_config: unconfig |
| 1658 | @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic |
| 1659 | @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval |
| 1660 | @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ |
| 1661 | > $(obj)board/avnet/v5fx30teval/config.tmp |
| 1662 | @echo "TEXT_BASE := 0xFF1C0000" \ |
| 1663 | >> $(obj)board/avnet/v5fx30teval/config.tmp |
| 1664 | @$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet |
| 1665 | |
| 1666 | VOH405_config: unconfig |
| 1667 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd |
| 1668 | |
| 1669 | VOM405_config: unconfig |
| 1670 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd |
| 1671 | |
| 1672 | W7OLMC_config \ |
| 1673 | W7OLMG_config: unconfig |
| 1674 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o |
| 1675 | |
| 1676 | # Walnut & Sycamore images are identical (recognized via PVR) |
| 1677 | walnut_config \ |
| 1678 | sycamore_config: unconfig |
| 1679 | @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc |
| 1680 | |
| 1681 | WUH405_config: unconfig |
| 1682 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd |
| 1683 | |
| 1684 | xilinx-ppc405-generic_flash_config: unconfig |
| 1685 | @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic |
| 1686 | @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\ |
| 1687 | > $(obj)board/xilinx/ppc405-generic/config.tmp |
| 1688 | @echo "TEXT_BASE := 0xFE360000" \ |
| 1689 | >> $(obj)board/xilinx/ppc405-generic/config.tmp |
| 1690 | @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx |
| 1691 | |
| 1692 | xilinx-ppc405-generic_config: unconfig |
| 1693 | @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic |
| 1694 | @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\ |
| 1695 | > $(obj)board/xilinx/ppc405-generic/config.tmp |
| 1696 | @echo "TEXT_BASE := 0x04000000" \ |
| 1697 | >> $(obj)board/xilinx/ppc405-generic/config.tmp |
| 1698 | @$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx |
| 1699 | |
| 1700 | xilinx-ppc440-generic_flash_config: unconfig |
| 1701 | @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic |
| 1702 | @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\ |
| 1703 | > $(obj)board/xilinx/ppc440-generic/config.tmp |
| 1704 | @echo "TEXT_BASE := 0xFE360000" \ |
| 1705 | >> $(obj)board/xilinx/ppc440-generic/config.tmp |
| 1706 | @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx |
| 1707 | |
| 1708 | xilinx-ppc440-generic_config: unconfig |
| 1709 | @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic |
| 1710 | @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\ |
| 1711 | > $(obj)board/xilinx/ppc440-generic/config.tmp |
| 1712 | @echo "TEXT_BASE := 0x04000000" \ |
| 1713 | >> $(obj)board/xilinx/ppc440-generic/config.tmp |
| 1714 | @$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx |
| 1715 | |
| 1716 | XPEDITE1000_config: unconfig |
| 1717 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1000 xes |
| 1718 | |
| 1719 | yosemite_config \ |
| 1720 | yellowstone_config: unconfig |
| 1721 | @mkdir -p $(obj)include |
| 1722 | @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \ |
| 1723 | tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h |
| 1724 | @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc |
| 1725 | |
| 1726 | yucca_config: unconfig |
| 1727 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc |
| 1728 | |
| 1729 | zeus_config: unconfig |
| 1730 | @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus |
| 1731 | |
| 1732 | ######################################################################### |
| 1733 | ## MPC8220 Systems |
| 1734 | ######################################################################### |
| 1735 | |
| 1736 | Alaska8220_config \ |
| 1737 | Yukon8220_config: unconfig |
| 1738 | @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska |
| 1739 | |
| 1740 | sorcery_config: unconfig |
| 1741 | @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery |
| 1742 | |
| 1743 | ######################################################################### |
| 1744 | ## MPC824x Systems |
| 1745 | ######################################################################### |
| 1746 | xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))) |
| 1747 | |
| 1748 | A3000_config: unconfig |
| 1749 | @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000 |
| 1750 | |
| 1751 | barco_config: unconfig |
| 1752 | @$(MKCONFIG) $(@:_config=) ppc mpc824x barco |
| 1753 | |
| 1754 | BMW_config: unconfig |
| 1755 | @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw |
| 1756 | |
| 1757 | CPC45_config \ |
| 1758 | CPC45_ROMBOOT_config: unconfig |
| 1759 | @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45 |
| 1760 | @cd $(obj)include ; \ |
| 1761 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 1762 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ |
| 1763 | $(XECHO) "... booting from 8-bit flash" ; \ |
| 1764 | else \ |
| 1765 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ |
| 1766 | $(XECHO) "... booting from 64-bit flash" ; \ |
| 1767 | fi; \ |
| 1768 | echo "export CONFIG_BOOT_ROM" >> config.mk; |
| 1769 | |
| 1770 | CU824_config: unconfig |
| 1771 | @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824 |
| 1772 | |
| 1773 | debris_config: unconfig |
| 1774 | @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin |
| 1775 | |
| 1776 | eXalion_config: unconfig |
| 1777 | @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion |
| 1778 | |
| 1779 | HIDDEN_DRAGON_config: unconfig |
| 1780 | @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon |
| 1781 | |
| 1782 | kvme080_config: unconfig |
| 1783 | @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin |
| 1784 | |
| 1785 | # HDLAN is broken ATM. Should be fixed as soon as hardware is available and as |
| 1786 | # time permits. |
| 1787 | #linkstation_HDLAN_config \ |
| 1788 | # Remove this line when HDLAN is fixed |
| 1789 | linkstation_HGLAN_config: unconfig |
| 1790 | @mkdir -p $(obj)include |
| 1791 | @case $@ in \ |
| 1792 | *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \ |
| 1793 | *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \ |
| 1794 | esac |
| 1795 | @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation |
| 1796 | |
| 1797 | MOUSSE_config: unconfig |
| 1798 | @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse |
| 1799 | |
| 1800 | MUSENKI_config: unconfig |
| 1801 | @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki |
| 1802 | |
| 1803 | MVBLUE_config: unconfig |
| 1804 | @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue |
| 1805 | |
| 1806 | OXC_config: unconfig |
| 1807 | @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc |
| 1808 | |
| 1809 | PN62_config: unconfig |
| 1810 | @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62 |
| 1811 | |
| 1812 | Sandpoint8240_config: unconfig |
| 1813 | @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint |
| 1814 | |
| 1815 | Sandpoint8245_config: unconfig |
| 1816 | @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint |
| 1817 | |
| 1818 | sbc8240_config: unconfig |
| 1819 | @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240 |
| 1820 | |
| 1821 | SL8245_config: unconfig |
| 1822 | @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245 |
| 1823 | |
| 1824 | utx8245_config: unconfig |
| 1825 | @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245 |
| 1826 | |
| 1827 | ######################################################################### |
| 1828 | ## MPC8260 Systems |
| 1829 | ######################################################################### |
| 1830 | |
| 1831 | atc_config: unconfig |
| 1832 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc |
| 1833 | |
| 1834 | cogent_mpc8260_config: unconfig |
| 1835 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent |
| 1836 | |
| 1837 | CPU86_config \ |
| 1838 | CPU86_ROMBOOT_config: unconfig |
| 1839 | @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86 |
| 1840 | @cd $(obj)include ; \ |
| 1841 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 1842 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ |
| 1843 | $(XECHO) "... booting from 8-bit flash" ; \ |
| 1844 | else \ |
| 1845 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ |
| 1846 | $(XECHO) "... booting from 64-bit flash" ; \ |
| 1847 | fi; \ |
| 1848 | echo "export CONFIG_BOOT_ROM" >> config.mk; |
| 1849 | |
| 1850 | CPU87_config \ |
| 1851 | CPU87_ROMBOOT_config: unconfig |
| 1852 | @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87 |
| 1853 | @cd $(obj)include ; \ |
| 1854 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 1855 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ |
| 1856 | $(XECHO) "... booting from 8-bit flash" ; \ |
| 1857 | else \ |
| 1858 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ |
| 1859 | $(XECHO) "... booting from 64-bit flash" ; \ |
| 1860 | fi; \ |
| 1861 | echo "export CONFIG_BOOT_ROM" >> config.mk; |
| 1862 | |
| 1863 | ep8248_config \ |
| 1864 | ep8248E_config : unconfig |
| 1865 | @$(MKCONFIG) ep8248 ppc mpc8260 ep8248 |
| 1866 | |
| 1867 | ep8260_config: unconfig |
| 1868 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260 |
| 1869 | |
| 1870 | ep82xxm_config: unconfig |
| 1871 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm |
| 1872 | |
| 1873 | gw8260_config: unconfig |
| 1874 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260 |
| 1875 | |
| 1876 | hymod_config: unconfig |
| 1877 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod |
| 1878 | |
| 1879 | IDS8247_config: unconfig |
| 1880 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247 |
| 1881 | |
| 1882 | IPHASE4539_config: unconfig |
| 1883 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539 |
| 1884 | |
| 1885 | ISPAN_config \ |
| 1886 | ISPAN_REVB_config: unconfig |
| 1887 | @mkdir -p $(obj)include |
| 1888 | @if [ "$(findstring _REVB_,$@)" ] ; then \ |
| 1889 | echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \ |
| 1890 | fi |
| 1891 | @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan |
| 1892 | |
| 1893 | mgcoge_config : unconfig |
| 1894 | @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile |
| 1895 | |
| 1896 | MPC8260ADS_config \ |
| 1897 | MPC8260ADS_lowboot_config \ |
| 1898 | MPC8260ADS_33MHz_config \ |
| 1899 | MPC8260ADS_33MHz_lowboot_config \ |
| 1900 | MPC8260ADS_40MHz_config \ |
| 1901 | MPC8260ADS_40MHz_lowboot_config \ |
| 1902 | MPC8272ADS_config \ |
| 1903 | MPC8272ADS_lowboot_config \ |
| 1904 | PQ2FADS_config \ |
| 1905 | PQ2FADS_lowboot_config \ |
| 1906 | PQ2FADS-VR_config \ |
| 1907 | PQ2FADS-VR_lowboot_config \ |
| 1908 | PQ2FADS-ZU_config \ |
| 1909 | PQ2FADS-ZU_lowboot_config \ |
| 1910 | PQ2FADS-ZU_66MHz_config \ |
| 1911 | PQ2FADS-ZU_66MHz_lowboot_config \ |
| 1912 | : unconfig |
| 1913 | @mkdir -p $(obj)include |
| 1914 | @mkdir -p $(obj)board/freescale/mpc8260ads |
| 1915 | $(if $(findstring PQ2FADS,$@), \ |
| 1916 | @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \ |
| 1917 | @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h) |
| 1918 | $(if $(findstring MHz,$@), \ |
| 1919 | @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \ |
| 1920 | $(if $(findstring VR,$@), \ |
| 1921 | @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h)) |
| 1922 | @[ -z "$(findstring lowboot_,$@)" ] || \ |
| 1923 | { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \ |
| 1924 | $(XECHO) "... with lowboot configuration" ; \ |
| 1925 | } |
| 1926 | @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale |
| 1927 | |
| 1928 | MPC8266ADS_config: unconfig |
| 1929 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale |
| 1930 | |
| 1931 | muas3001_dev_config \ |
| 1932 | muas3001_config : unconfig |
| 1933 | @mkdir -p $(obj)include |
| 1934 | @mkdir -p $(obj)board/muas3001 |
| 1935 | @if [ "$(findstring dev,$@)" ] ; then \ |
| 1936 | echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \ |
| 1937 | fi |
| 1938 | @$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001 |
| 1939 | |
| 1940 | # PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash |
| 1941 | PM825_config \ |
| 1942 | PM825_ROMBOOT_config \ |
| 1943 | PM825_BIGFLASH_config \ |
| 1944 | PM825_ROMBOOT_BIGFLASH_config \ |
| 1945 | PM826_config \ |
| 1946 | PM826_ROMBOOT_config \ |
| 1947 | PM826_BIGFLASH_config \ |
| 1948 | PM826_ROMBOOT_BIGFLASH_config: unconfig |
| 1949 | @mkdir -p $(obj)include |
| 1950 | @mkdir -p $(obj)board/pm826 |
| 1951 | @if [ "$(findstring PM825_,$@)" ] ; then \ |
| 1952 | echo "#define CONFIG_PCI" >$(obj)include/config.h ; \ |
| 1953 | else \ |
| 1954 | >$(obj)include/config.h ; \ |
| 1955 | fi |
| 1956 | @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 1957 | $(XECHO) "... booting from 8-bit flash" ; \ |
| 1958 | echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ |
| 1959 | echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ |
| 1960 | if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ |
| 1961 | $(XECHO) "... with 32 MB Flash" ; \ |
| 1962 | echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ |
| 1963 | fi; \ |
| 1964 | else \ |
| 1965 | $(XECHO) "... booting from 64-bit flash" ; \ |
| 1966 | if [ "$(findstring _BIGFLASH_,$@)" ] ; then \ |
| 1967 | $(XECHO) "... with 32 MB Flash" ; \ |
| 1968 | echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \ |
| 1969 | echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \ |
| 1970 | else \ |
| 1971 | echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \ |
| 1972 | fi; \ |
| 1973 | fi |
| 1974 | @$(MKCONFIG) -a PM826 ppc mpc8260 pm826 |
| 1975 | |
| 1976 | PM828_config \ |
| 1977 | PM828_PCI_config \ |
| 1978 | PM828_ROMBOOT_config \ |
| 1979 | PM828_ROMBOOT_PCI_config: unconfig |
| 1980 | @mkdir -p $(obj)include |
| 1981 | @mkdir -p $(obj)board/pm826 |
| 1982 | @if [ "$(findstring _PCI_,$@)" ] ; then \ |
| 1983 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
| 1984 | $(XECHO) "... with PCI enabled" ; \ |
| 1985 | fi |
| 1986 | @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ |
| 1987 | $(XECHO) "... booting from 8-bit flash" ; \ |
| 1988 | echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \ |
| 1989 | echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \ |
| 1990 | fi |
| 1991 | @$(MKCONFIG) -a PM828 ppc mpc8260 pm828 |
| 1992 | |
| 1993 | ppmc8260_config: unconfig |
| 1994 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260 |
| 1995 | |
| 1996 | Rattler8248_config \ |
| 1997 | Rattler_config: unconfig |
| 1998 | @mkdir -p $(obj)include |
| 1999 | $(if $(findstring 8248,$@), \ |
| 2000 | @echo "#define CONFIG_MPC8248" > $(obj)include/config.h) |
| 2001 | @$(MKCONFIG) -a Rattler ppc mpc8260 rattler |
| 2002 | |
| 2003 | RPXsuper_config: unconfig |
| 2004 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper |
| 2005 | |
| 2006 | rsdproto_config: unconfig |
| 2007 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto |
| 2008 | |
| 2009 | sacsng_config: unconfig |
| 2010 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng |
| 2011 | |
| 2012 | sbc8260_config: unconfig |
| 2013 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260 |
| 2014 | |
| 2015 | SCM_config: unconfig |
| 2016 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens |
| 2017 | |
| 2018 | TQM8255_AA_config \ |
| 2019 | TQM8260_AA_config \ |
| 2020 | TQM8260_AB_config \ |
| 2021 | TQM8260_AC_config \ |
| 2022 | TQM8260_AD_config \ |
| 2023 | TQM8260_AE_config \ |
| 2024 | TQM8260_AF_config \ |
| 2025 | TQM8260_AG_config \ |
| 2026 | TQM8260_AH_config \ |
| 2027 | TQM8260_AI_config \ |
| 2028 | TQM8265_AA_config: unconfig |
| 2029 | @mkdir -p $(obj)include |
| 2030 | @case "$@" in \ |
| 2031 | TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ |
| 2032 | TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ |
| 2033 | TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ |
| 2034 | TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ |
| 2035 | TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ |
| 2036 | TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ |
| 2037 | TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ |
| 2038 | TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ |
| 2039 | TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ |
| 2040 | TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ |
| 2041 | TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ |
| 2042 | esac; \ |
| 2043 | if [ "$${CTYPE}" != "MPC8260" ] ; then \ |
| 2044 | echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \ |
| 2045 | fi; \ |
| 2046 | echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \ |
| 2047 | echo "... with $${CFREQ}MHz system clock" ; \ |
| 2048 | if [ "$${CACHE}" = "yes" ] ; then \ |
| 2049 | echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ |
| 2050 | $(XECHO) "... with L2 Cache support" ; \ |
| 2051 | else \ |
| 2052 | echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \ |
| 2053 | $(XECHO) "... without L2 Cache support" ; \ |
| 2054 | fi; \ |
| 2055 | if [ "$${BMODE}" = "60x" ] ; then \ |
| 2056 | echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ |
| 2057 | $(XECHO) "... with 60x Bus Mode" ; \ |
| 2058 | else \ |
| 2059 | echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \ |
| 2060 | $(XECHO) "... without 60x Bus Mode" ; \ |
| 2061 | fi |
| 2062 | @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc |
| 2063 | |
| 2064 | TQM8272_config: unconfig |
| 2065 | @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc |
| 2066 | |
| 2067 | VoVPN-GW_66MHz_config \ |
| 2068 | VoVPN-GW_100MHz_config: unconfig |
| 2069 | @mkdir -p $(obj)include |
| 2070 | @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h |
| 2071 | @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk |
| 2072 | |
| 2073 | ZPC1900_config: unconfig |
| 2074 | @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900 |
| 2075 | |
| 2076 | ######################################################################### |
| 2077 | ## Coldfire |
| 2078 | ######################################################################### |
| 2079 | |
| 2080 | M5208EVBE_config : unconfig |
| 2081 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5208evbe freescale |
| 2082 | |
| 2083 | M52277EVB_config \ |
| 2084 | M52277EVB_spansion_config \ |
| 2085 | M52277EVB_stmicro_config : unconfig |
| 2086 | @case "$@" in \ |
| 2087 | M52277EVB_config) FLASH=SPANSION;; \ |
| 2088 | M52277EVB_spansion_config) FLASH=SPANSION;; \ |
| 2089 | M52277EVB_stmicro_config) FLASH=STMICRO;; \ |
| 2090 | esac; \ |
| 2091 | if [ "$${FLASH}" = "SPANSION" ] ; then \ |
| 2092 | echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \ |
| 2093 | echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \ |
| 2094 | cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \ |
| 2095 | $(XECHO) "... with SPANSION boot..." ; \ |
| 2096 | fi; \ |
| 2097 | if [ "$${FLASH}" = "STMICRO" ] ; then \ |
| 2098 | echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ |
| 2099 | echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ |
| 2100 | echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \ |
| 2101 | cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \ |
| 2102 | $(XECHO) "... with ST Micro boot..." ; \ |
| 2103 | fi |
| 2104 | @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale |
| 2105 | |
| 2106 | M5235EVB_config \ |
| 2107 | M5235EVB_Flash16_config \ |
| 2108 | M5235EVB_Flash32_config: unconfig |
| 2109 | @case "$@" in \ |
| 2110 | M5235EVB_config) FLASH=16;; \ |
| 2111 | M5235EVB_Flash16_config) FLASH=16;; \ |
| 2112 | M5235EVB_Flash32_config) FLASH=32;; \ |
| 2113 | esac; \ |
| 2114 | if [ "$${FLASH}" != "16" ] ; then \ |
| 2115 | echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ |
| 2116 | echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ |
| 2117 | cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ |
| 2118 | else \ |
| 2119 | echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ |
| 2120 | cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ |
| 2121 | fi |
| 2122 | @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale |
| 2123 | |
| 2124 | M5249EVB_config : unconfig |
| 2125 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale |
| 2126 | |
| 2127 | M5253DEMO_config : unconfig |
| 2128 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale |
| 2129 | |
| 2130 | M5253EVBE_config : unconfig |
| 2131 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale |
| 2132 | |
| 2133 | cobra5272_config : unconfig |
| 2134 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272 |
| 2135 | |
| 2136 | EB+MCF-EV123_config : unconfig |
| 2137 | @mkdir -p $(obj)include |
| 2138 | @mkdir -p $(obj)board/BuS/EB+MCF-EV123 |
| 2139 | @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk |
| 2140 | @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS |
| 2141 | |
| 2142 | EB+MCF-EV123_internal_config : unconfig |
| 2143 | @mkdir -p $(obj)include |
| 2144 | @mkdir -p $(obj)board/BuS/EB+MCF-EV123 |
| 2145 | @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk |
| 2146 | @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS |
| 2147 | |
| 2148 | idmr_config : unconfig |
| 2149 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr |
| 2150 | |
| 2151 | M5271EVB_config : unconfig |
| 2152 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale |
| 2153 | |
| 2154 | M5272C3_config : unconfig |
| 2155 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale |
| 2156 | |
| 2157 | M5275EVB_config : unconfig |
| 2158 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale |
| 2159 | |
| 2160 | M5282EVB_config : unconfig |
| 2161 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale |
| 2162 | |
| 2163 | M53017EVB_config : unconfig |
| 2164 | @$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale |
| 2165 | |
| 2166 | M5329AFEE_config \ |
| 2167 | M5329BFEE_config : unconfig |
| 2168 | @case "$@" in \ |
| 2169 | M5329AFEE_config) NAND=0;; \ |
| 2170 | M5329BFEE_config) NAND=16;; \ |
| 2171 | esac; \ |
| 2172 | if [ "$${NAND}" != "0" ] ; then \ |
| 2173 | echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ |
| 2174 | fi |
| 2175 | @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale |
| 2176 | |
| 2177 | M5373EVB_config : unconfig |
| 2178 | @case "$@" in \ |
| 2179 | M5373EVB_config) NAND=16;; \ |
| 2180 | esac; \ |
| 2181 | if [ "$${NAND}" != "0" ] ; then \ |
| 2182 | echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ |
| 2183 | fi |
| 2184 | @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale |
| 2185 | |
| 2186 | M54451EVB_config \ |
| 2187 | M54451EVB_stmicro_config : unconfig |
| 2188 | @case "$@" in \ |
| 2189 | M54451EVB_config) FLASH=NOR;; \ |
| 2190 | M54451EVB_stmicro_config) FLASH=STMICRO;; \ |
| 2191 | esac; \ |
| 2192 | if [ "$${FLASH}" = "NOR" ] ; then \ |
| 2193 | echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \ |
| 2194 | cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \ |
| 2195 | $(XECHO) "... with NOR boot..." ; \ |
| 2196 | fi; \ |
| 2197 | if [ "$${FLASH}" = "STMICRO" ] ; then \ |
| 2198 | echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ |
| 2199 | echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ |
| 2200 | echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \ |
| 2201 | cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \ |
| 2202 | $(XECHO) "... with ST Micro boot..." ; \ |
| 2203 | fi; \ |
| 2204 | echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ; |
| 2205 | @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale |
| 2206 | |
| 2207 | M54455EVB_config \ |
| 2208 | M54455EVB_atmel_config \ |
| 2209 | M54455EVB_intel_config \ |
| 2210 | M54455EVB_a33_config \ |
| 2211 | M54455EVB_a66_config \ |
| 2212 | M54455EVB_i33_config \ |
| 2213 | M54455EVB_i66_config \ |
| 2214 | M54455EVB_stm33_config : unconfig |
| 2215 | @case "$@" in \ |
| 2216 | M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ |
| 2217 | M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ |
| 2218 | M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ |
| 2219 | M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ |
| 2220 | M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ |
| 2221 | M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ |
| 2222 | M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ |
| 2223 | M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \ |
| 2224 | esac; \ |
| 2225 | if [ "$${FLASH}" = "INTEL" ] ; then \ |
| 2226 | echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \ |
| 2227 | echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ |
| 2228 | cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ |
| 2229 | $(XECHO) "... with INTEL boot..." ; \ |
| 2230 | fi; \ |
| 2231 | if [ "$${FLASH}" = "ATMEL" ] ; then \ |
| 2232 | echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \ |
| 2233 | echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ |
| 2234 | cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ |
| 2235 | $(XECHO) "... with ATMEL boot..." ; \ |
| 2236 | fi; \ |
| 2237 | if [ "$${FLASH}" = "STMICRO" ] ; then \ |
| 2238 | echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ |
| 2239 | echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ |
| 2240 | echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \ |
| 2241 | cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \ |
| 2242 | $(XECHO) "... with ST Micro boot..." ; \ |
| 2243 | fi; \ |
| 2244 | echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ |
| 2245 | $(XECHO) "... with $${FREQ}Hz input clock" |
| 2246 | @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale |
| 2247 | |
| 2248 | M5475AFE_config \ |
| 2249 | M5475BFE_config \ |
| 2250 | M5475CFE_config \ |
| 2251 | M5475DFE_config \ |
| 2252 | M5475EFE_config \ |
| 2253 | M5475FFE_config \ |
| 2254 | M5475GFE_config : unconfig |
| 2255 | @case "$@" in \ |
| 2256 | M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ |
| 2257 | M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ |
| 2258 | M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ |
| 2259 | M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ |
| 2260 | M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ |
| 2261 | M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ |
| 2262 | M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ |
| 2263 | esac; \ |
| 2264 | echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \ |
| 2265 | echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ |
| 2266 | echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ |
| 2267 | if [ "$${RAM1}" != "0" ] ; then \ |
| 2268 | echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ |
| 2269 | fi; \ |
| 2270 | if [ "$${CODE}" != "0" ] ; then \ |
| 2271 | echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ |
| 2272 | fi; \ |
| 2273 | if [ "$${VID}" == "1" ] ; then \ |
| 2274 | echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ |
| 2275 | fi; \ |
| 2276 | if [ "$${USB}" == "1" ] ; then \ |
| 2277 | echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ |
| 2278 | fi |
| 2279 | @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale |
| 2280 | |
| 2281 | M5485AFE_config \ |
| 2282 | M5485BFE_config \ |
| 2283 | M5485CFE_config \ |
| 2284 | M5485DFE_config \ |
| 2285 | M5485EFE_config \ |
| 2286 | M5485FFE_config \ |
| 2287 | M5485GFE_config \ |
| 2288 | M5485HFE_config : unconfig |
| 2289 | @case "$@" in \ |
| 2290 | M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ |
| 2291 | M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ |
| 2292 | M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ |
| 2293 | M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ |
| 2294 | M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ |
| 2295 | M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ |
| 2296 | M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ |
| 2297 | M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ |
| 2298 | esac; \ |
| 2299 | echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \ |
| 2300 | echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ |
| 2301 | echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ |
| 2302 | if [ "$${RAM1}" != "0" ] ; then \ |
| 2303 | echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ |
| 2304 | fi; \ |
| 2305 | if [ "$${CODE}" != "0" ] ; then \ |
| 2306 | echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ |
| 2307 | fi; \ |
| 2308 | if [ "$${VID}" == "1" ] ; then \ |
| 2309 | echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ |
| 2310 | fi; \ |
| 2311 | if [ "$${USB}" == "1" ] ; then \ |
| 2312 | echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ |
| 2313 | fi |
| 2314 | @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale |
| 2315 | |
| 2316 | TASREG_config : unconfig |
| 2317 | @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd |
| 2318 | |
| 2319 | ######################################################################### |
| 2320 | ## MPC83xx Systems |
| 2321 | ######################################################################### |
| 2322 | |
| 2323 | kmeter1_config: unconfig |
| 2324 | @$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile |
| 2325 | |
| 2326 | MPC8313ERDB_33_config \ |
| 2327 | MPC8313ERDB_66_config \ |
| 2328 | MPC8313ERDB_NAND_33_config \ |
| 2329 | MPC8313ERDB_NAND_66_config: unconfig |
| 2330 | @mkdir -p $(obj)include |
| 2331 | @mkdir -p $(obj)board/freescale/mpc8313erdb |
| 2332 | @if [ "$(findstring _33_,$@)" ] ; then \ |
| 2333 | $(XECHO) -n "...33M ..." ; \ |
| 2334 | echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \ |
| 2335 | fi ; \ |
| 2336 | if [ "$(findstring _66_,$@)" ] ; then \ |
| 2337 | $(XECHO) -n "...66M..." ; \ |
| 2338 | echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \ |
| 2339 | fi ; \ |
| 2340 | if [ "$(findstring _NAND_,$@)" ] ; then \ |
| 2341 | $(XECHO) -n "...NAND..." ; \ |
| 2342 | echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \ |
| 2343 | echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \ |
| 2344 | fi ; |
| 2345 | @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale |
| 2346 | @if [ "$(findstring _NAND_,$@)" ] ; then \ |
| 2347 | echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \ |
| 2348 | fi ; |
| 2349 | |
| 2350 | MPC8315ERDB_config: unconfig |
| 2351 | @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale |
| 2352 | |
| 2353 | MPC8323ERDB_config: unconfig |
| 2354 | @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale |
| 2355 | |
| 2356 | MPC832XEMDS_config \ |
| 2357 | MPC832XEMDS_HOST_33_config \ |
| 2358 | MPC832XEMDS_HOST_66_config \ |
| 2359 | MPC832XEMDS_SLAVE_config \ |
| 2360 | MPC832XEMDS_ATM_config: unconfig |
| 2361 | @mkdir -p $(obj)include |
| 2362 | @if [ "$(findstring _HOST_,$@)" ] ; then \ |
| 2363 | $(XECHO) -n "... PCI HOST " ; \ |
| 2364 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
| 2365 | fi ; \ |
| 2366 | if [ "$(findstring _SLAVE_,$@)" ] ; then \ |
| 2367 | $(XECHO) "...PCI SLAVE 66M" ; \ |
| 2368 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
| 2369 | echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ |
| 2370 | fi ; \ |
| 2371 | if [ "$(findstring _33_,$@)" ] ; then \ |
| 2372 | $(XECHO) -n "...33M ..." ; \ |
| 2373 | echo "#define PCI_33M" >>$(obj)include/config.h ; \ |
| 2374 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ |
| 2375 | fi ; \ |
| 2376 | if [ "$(findstring _66_,$@)" ] ; then \ |
| 2377 | $(XECHO) -n "...66M..." ; \ |
| 2378 | echo "#define PCI_66M" >>$(obj)include/config.h ; \ |
| 2379 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ |
| 2380 | fi ; \ |
| 2381 | if [ "$(findstring _ATM_,$@)" ] ; then \ |
| 2382 | $(XECHO) -n "...ATM..." ; \ |
| 2383 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ |
| 2384 | echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ |
| 2385 | fi ; |
| 2386 | @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale |
| 2387 | |
| 2388 | MPC8349EMDS_config: unconfig |
| 2389 | @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale |
| 2390 | |
| 2391 | MPC8349ITX_config \ |
| 2392 | MPC8349ITX_LOWBOOT_config \ |
| 2393 | MPC8349ITXGP_config: unconfig |
| 2394 | @mkdir -p $(obj)include |
| 2395 | @mkdir -p $(obj)board/freescale/mpc8349itx |
| 2396 | @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h |
| 2397 | @if [ "$(findstring GP,$@)" ] ; then \ |
| 2398 | echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ |
| 2399 | fi |
| 2400 | @if [ "$(findstring LOWBOOT,$@)" ] ; then \ |
| 2401 | echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \ |
| 2402 | fi |
| 2403 | @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale |
| 2404 | |
| 2405 | MPC8360EMDS_config \ |
| 2406 | MPC8360EMDS_HOST_33_config \ |
| 2407 | MPC8360EMDS_HOST_66_config \ |
| 2408 | MPC8360EMDS_SLAVE_config \ |
| 2409 | MPC8360EMDS_ATM_config: unconfig |
| 2410 | @mkdir -p $(obj)include |
| 2411 | @if [ "$(findstring _HOST_,$@)" ] ; then \ |
| 2412 | $(XECHO) -n "... PCI HOST " ; \ |
| 2413 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
| 2414 | fi ; \ |
| 2415 | if [ "$(findstring _SLAVE_,$@)" ] ; then \ |
| 2416 | $(XECHO) "...PCI SLAVE 66M" ; \ |
| 2417 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
| 2418 | echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \ |
| 2419 | fi ; \ |
| 2420 | if [ "$(findstring _33_,$@)" ] ; then \ |
| 2421 | $(XECHO) -n "...33M ..." ; \ |
| 2422 | echo "#define PCI_33M" >>$(obj)include/config.h ; \ |
| 2423 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ |
| 2424 | fi ; \ |
| 2425 | if [ "$(findstring _66_,$@)" ] ; then \ |
| 2426 | $(XECHO) -n "...66M..." ; \ |
| 2427 | echo "#define PCI_66M" >>$(obj)include/config.h ; \ |
| 2428 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ |
| 2429 | fi ; \ |
| 2430 | if [ "$(findstring _ATM_,$@)" ] ; then \ |
| 2431 | $(XECHO) -n "...ATM..." ; \ |
| 2432 | echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \ |
| 2433 | echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \ |
| 2434 | fi ; |
| 2435 | @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale |
| 2436 | |
| 2437 | MPC8360ERDK_33_config \ |
| 2438 | MPC8360ERDK_66_config \ |
| 2439 | MPC8360ERDK_config: unconfig |
| 2440 | @mkdir -p $(obj)include |
| 2441 | @if [ "$(findstring _33_,$@)" ] ; then \ |
| 2442 | $(XECHO) -n "... CLKIN 33MHz " ; \ |
| 2443 | echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\ |
| 2444 | fi ; |
| 2445 | @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale |
| 2446 | |
| 2447 | MPC837XEMDS_config \ |
| 2448 | MPC837XEMDS_HOST_config: unconfig |
| 2449 | @mkdir -p $(obj)include |
| 2450 | @if [ "$(findstring _HOST_,$@)" ] ; then \ |
| 2451 | $(XECHO) -n "... PCI HOST " ; \ |
| 2452 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
| 2453 | fi ; |
| 2454 | @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale |
| 2455 | |
| 2456 | MPC837XERDB_config: unconfig |
| 2457 | @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale |
| 2458 | |
| 2459 | MVBLM7_config: unconfig |
| 2460 | @$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision |
| 2461 | |
| 2462 | sbc8349_config \ |
| 2463 | sbc8349_PCI_33_config \ |
| 2464 | sbc8349_PCI_66_config: unconfig |
| 2465 | @mkdir -p $(obj)include |
| 2466 | @if [ "$(findstring _PCI_,$@)" ] ; then \ |
| 2467 | $(XECHO) -n "... PCI HOST at " ; \ |
| 2468 | echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \ |
| 2469 | fi ; \ |
| 2470 | if [ "$(findstring _33_,$@)" ] ; then \ |
| 2471 | $(XECHO) -n "33MHz... " ; \ |
| 2472 | echo "#define PCI_33M" >>$(obj)include/config.h ; \ |
| 2473 | fi ; \ |
| 2474 | if [ "$(findstring _66_,$@)" ] ; then \ |
| 2475 | $(XECHO) -n "66MHz... " ; \ |
| 2476 | echo "#define PCI_66M" >>$(obj)include/config.h ; \ |
| 2477 | fi ; |
| 2478 | @$(MKCONFIG) -a sbc8349 ppc mpc83xx sbc8349 |
| 2479 | |
| 2480 | SIMPC8313_LP_config \ |
| 2481 | SIMPC8313_SP_config: unconfig |
| 2482 | @mkdir -p $(obj)include |
| 2483 | @mkdir -p $(obj)board/sheldon/simpc8313 |
| 2484 | @if [ "$(findstring _LP_,$@)" ] ; then \ |
| 2485 | $(XECHO) -n "...Large Page NAND..." ; \ |
| 2486 | echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \ |
| 2487 | fi ; \ |
| 2488 | if [ "$(findstring _SP_,$@)" ] ; then \ |
| 2489 | $(XECHO) -n "...Small Page NAND..." ; \ |
| 2490 | echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \ |
| 2491 | fi ; |
| 2492 | @$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon |
| 2493 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk |
| 2494 | |
| 2495 | TQM834x_config: unconfig |
| 2496 | @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc |
| 2497 | |
| 2498 | vme8349_config: unconfig |
| 2499 | @$(MKCONFIG) $(@:_config=) ppc mpc83xx vme8349 esd |
| 2500 | |
| 2501 | ######################################################################### |
| 2502 | ## MPC85xx Systems |
| 2503 | ######################################################################### |
| 2504 | |
| 2505 | ATUM8548_config: unconfig |
| 2506 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548 |
| 2507 | |
| 2508 | MPC8536DS_config: unconfig |
| 2509 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale |
| 2510 | |
| 2511 | MPC8540ADS_config: unconfig |
| 2512 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale |
| 2513 | |
| 2514 | MPC8540EVAL_config \ |
| 2515 | MPC8540EVAL_33_config \ |
| 2516 | MPC8540EVAL_66_config \ |
| 2517 | MPC8540EVAL_33_slave_config \ |
| 2518 | MPC8540EVAL_66_slave_config: unconfig |
| 2519 | @mkdir -p $(obj)include |
| 2520 | @if [ "$(findstring _33_,$@)" ] ; then \ |
| 2521 | $(XECHO) "... 33 MHz PCI" ; \ |
| 2522 | else \ |
| 2523 | echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \ |
| 2524 | $(XECHO) "... 66 MHz PCI" ; \ |
| 2525 | fi ; \ |
| 2526 | if [ "$(findstring _slave_,$@)" ] ; then \ |
| 2527 | echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \ |
| 2528 | $(XECHO) " slave" ; \ |
| 2529 | else \ |
| 2530 | $(XECHO) " host" ; \ |
| 2531 | fi |
| 2532 | @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval |
| 2533 | |
| 2534 | MPC8560ADS_config: unconfig |
| 2535 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale |
| 2536 | |
| 2537 | MPC8541CDS_legacy_config \ |
| 2538 | MPC8541CDS_config: unconfig |
| 2539 | @mkdir -p $(obj)include |
| 2540 | @if [ "$(findstring _legacy_,$@)" ] ; then \ |
| 2541 | echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ |
| 2542 | $(XECHO) "... legacy" ; \ |
| 2543 | fi |
| 2544 | @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale |
| 2545 | |
| 2546 | MPC8544DS_config: unconfig |
| 2547 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale |
| 2548 | |
| 2549 | MPC8548CDS_legacy_config \ |
| 2550 | MPC8548CDS_config: unconfig |
| 2551 | @mkdir -p $(obj)include |
| 2552 | @if [ "$(findstring _legacy_,$@)" ] ; then \ |
| 2553 | echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ |
| 2554 | $(XECHO) "... legacy" ; \ |
| 2555 | fi |
| 2556 | @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale |
| 2557 | |
| 2558 | MPC8555CDS_legacy_config \ |
| 2559 | MPC8555CDS_config: unconfig |
| 2560 | @mkdir -p $(obj)include |
| 2561 | @if [ "$(findstring _legacy_,$@)" ] ; then \ |
| 2562 | echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \ |
| 2563 | $(XECHO) "... legacy" ; \ |
| 2564 | fi |
| 2565 | @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale |
| 2566 | |
| 2567 | MPC8568MDS_config: unconfig |
| 2568 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale |
| 2569 | |
| 2570 | MPC8569MDS_config: unconfig |
| 2571 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8569mds freescale |
| 2572 | |
| 2573 | MPC8572DS_36BIT_config \ |
| 2574 | MPC8572DS_config: unconfig |
| 2575 | @mkdir -p $(obj)include |
| 2576 | @if [ "$(findstring _36BIT_,$@)" ] ; then \ |
| 2577 | echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \ |
| 2578 | $(XECHO) "... enabling 36-bit physical addressing." ; \ |
| 2579 | fi |
| 2580 | @$(MKCONFIG) -a MPC8572DS ppc mpc85xx mpc8572ds freescale |
| 2581 | |
| 2582 | P2020DS_36BIT_config \ |
| 2583 | P2020DS_config: unconfig |
| 2584 | @mkdir -p $(obj)include |
| 2585 | @if [ "$(findstring _36BIT_,$@)" ] ; then \ |
| 2586 | echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \ |
| 2587 | $(XECHO) "... enabling 36-bit physical addressing." ; \ |
| 2588 | fi |
| 2589 | @$(MKCONFIG) -a P2020DS ppc mpc85xx p2020ds freescale |
| 2590 | |
| 2591 | PM854_config: unconfig |
| 2592 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854 |
| 2593 | |
| 2594 | PM856_config: unconfig |
| 2595 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856 |
| 2596 | |
| 2597 | sbc8540_config \ |
| 2598 | sbc8540_33_config \ |
| 2599 | sbc8540_66_config: unconfig |
| 2600 | @mkdir -p $(obj)include |
| 2601 | @if [ "$(findstring _66_,$@)" ] ; then \ |
| 2602 | echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ |
| 2603 | $(XECHO) "... 66 MHz PCI" ; \ |
| 2604 | else \ |
| 2605 | $(XECHO) "... 33 MHz PCI" ; \ |
| 2606 | fi |
| 2607 | @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560 |
| 2608 | |
| 2609 | sbc8548_config: unconfig |
| 2610 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548 |
| 2611 | |
| 2612 | sbc8560_config \ |
| 2613 | sbc8560_33_config \ |
| 2614 | sbc8560_66_config: unconfig |
| 2615 | @mkdir -p $(obj)include |
| 2616 | @if [ "$(findstring _66_,$@)" ] ; then \ |
| 2617 | echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \ |
| 2618 | $(XECHO) "... 66 MHz PCI" ; \ |
| 2619 | else \ |
| 2620 | $(XECHO) "... 33 MHz PCI" ; \ |
| 2621 | fi |
| 2622 | @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560 |
| 2623 | |
| 2624 | socrates_config: unconfig |
| 2625 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates |
| 2626 | |
| 2627 | stxgp3_config: unconfig |
| 2628 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3 |
| 2629 | |
| 2630 | stxssa_config \ |
| 2631 | stxssa_4M_config: unconfig |
| 2632 | @mkdir -p $(obj)include |
| 2633 | @if [ "$(findstring _4M_,$@)" ] ; then \ |
| 2634 | echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \ |
| 2635 | $(XECHO) "... with 4 MiB flash memory" ; \ |
| 2636 | fi |
| 2637 | @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa |
| 2638 | |
| 2639 | TQM8540_config \ |
| 2640 | TQM8541_config \ |
| 2641 | TQM8548_config \ |
| 2642 | TQM8548_AG_config \ |
| 2643 | TQM8548_BE_config \ |
| 2644 | TQM8555_config \ |
| 2645 | TQM8560_config: unconfig |
| 2646 | @mkdir -p $(obj)include |
| 2647 | @BTYPE=$(@:_config=); \ |
| 2648 | CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \ |
| 2649 | $(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \ |
| 2650 | echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \ |
| 2651 | echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \ |
| 2652 | echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \ |
| 2653 | echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h; |
| 2654 | @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc |
| 2655 | @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk; |
| 2656 | |
| 2657 | XPEDITE5200_config: unconfig |
| 2658 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes |
| 2659 | |
| 2660 | XPEDITE5370_config: unconfig |
| 2661 | @$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes |
| 2662 | |
| 2663 | ######################################################################### |
| 2664 | ## MPC86xx Systems |
| 2665 | ######################################################################### |
| 2666 | |
| 2667 | MPC8610HPCD_config: unconfig |
| 2668 | @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale |
| 2669 | |
| 2670 | MPC8641HPCN_36BIT_config \ |
| 2671 | MPC8641HPCN_config: unconfig |
| 2672 | @mkdir -p $(obj)include |
| 2673 | @if [ "$(findstring _36BIT_,$@)" ] ; then \ |
| 2674 | echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \ |
| 2675 | $(XECHO) "... enabling 36-bit physical addressing." ; \ |
| 2676 | fi |
| 2677 | @$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale |
| 2678 | |
| 2679 | sbc8641d_config: unconfig |
| 2680 | @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d |
| 2681 | |
| 2682 | XPEDITE5170_config: unconfig |
| 2683 | @$(MKCONFIG) $(@:_config=) ppc mpc86xx xpedite5170 xes |
| 2684 | |
| 2685 | ######################################################################### |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 2686 | ## Marvell KW2 based Socs |
| 2687 | ######################################################################### |
| 2688 | |
| 2689 | db88f6500bp_config \ |
| 2690 | rd88f6510sfu_config \ |
| 2691 | rd88f6560gw_config \ |
| 2692 | db88f6560pcac_config \ |
| 2693 | rd88f6530mdu_config \ |
| 2694 | db88f6601bp_config \ |
| 2695 | rd88f6601mc_config \ |
Sean Howarth | b17130e | 2013-03-07 14:45:46 -0800 | [diff] [blame] | 2696 | gflt200_config \ |
John Newlin | ac5fab5 | 2013-05-28 10:18:42 -0700 | [diff] [blame] | 2697 | gflt110_config \ |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 2698 | kw2_test: |
| 2699 | @$(MAKE) -s mv_kw2 RULE=$@ |
| 2700 | mv_kw2: unconfig |
| 2701 | @mkdir -p $(obj)include |
| 2702 | @cp board/mv_feroceon/config_kw2/config_def.mk board/mv_feroceon/config_kw2/config.mk; |
| 2703 | |
| 2704 | @$(MKCONFIG) -a $(@:_config=) arm arm926ejs config_kw2 mv_feroceon feroceon; |
| 2705 | @echo "MV_OUTPUT = $(RULE:_config=)" >> $(obj)include/config.mk; |
| 2706 | #======================= |
| 2707 | # Soc Compilation flag |
| 2708 | #======================= |
| 2709 | @if [ "$(findstring 6500,$(RULE))" ] ; then\ |
| 2710 | echo "#define MV88F6500" > $(obj)include/config.h ; \ |
| 2711 | echo " * Configured for MV88F6500"; \ |
| 2712 | elif [ "$(findstring 6510,$(RULE))" ] ; then \ |
| 2713 | echo "#define MV88F6510" > $(obj)include/config.h ; \ |
| 2714 | echo " * Configured for MV88F6510"; \ |
| 2715 | elif [ "$(findstring 6560,$(RULE))" ] ; then \ |
| 2716 | echo "#define MV88F6560" > $(obj)include/config.h ; \ |
| 2717 | echo " * Configured for MV88F6560"; \ |
| 2718 | elif [ "$(findstring 6530,$(RULE))" ] ; then \ |
| 2719 | echo "#define MV88F6530" > $(obj)include/config.h ; \ |
| 2720 | echo " * Configured for MV88F6530"; \ |
| 2721 | elif [ "$(findstring 6601,$(RULE))" ] ; then \ |
| 2722 | echo "#define MV88F6601" > $(obj)include/config.h ; \ |
| 2723 | echo " * Configured for MV88F6601"; \ |
| 2724 | elif [ "$(findstring test,$(RULE))" ] ; then \ |
| 2725 | echo "#define MV88F6192" > $(obj)include/config.h ; \ |
| 2726 | echo " * Configured for MV88F6192"; \ |
Sean Howarth | b17130e | 2013-03-07 14:45:46 -0800 | [diff] [blame] | 2727 | elif [ "$(findstring gflt200,$(RULE))" ] ; then \ |
| 2728 | echo "#define MV88F6601" > $(obj)include/config.h ; \ |
| 2729 | echo " * Configured for MV88F6601"; \ |
John Newlin | ac5fab5 | 2013-05-28 10:18:42 -0700 | [diff] [blame] | 2730 | elif [ "$(findstring gflt110,$(RULE))" ] ; then \ |
| 2731 | echo "#define MV88F6601" > $(obj)include/config.h ; \ |
| 2732 | echo " * Configured for MV88F6601"; \ |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 2733 | else \ |
| 2734 | echo " * Error Marvell SoC not configured!"; \ |
| 2735 | fi; |
| 2736 | #======================= |
| 2737 | # Board Compilation flags |
| 2738 | #======================= |
| 2739 | @if [ "$(findstring db88f6500bp_config,$(RULE))" ] ; then\ |
| 2740 | echo "#define DB_88F6500" >> $(obj)include/config.h ; \ |
| 2741 | echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \ |
| 2742 | echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \ |
| 2743 | if [ x$(DDR3) == x1 ]; then \ |
| 2744 | echo "MV_DDR_FREQ=533db_kw2" >> $(obj)include/config.mk ;\ |
| 2745 | else \ |
| 2746 | echo "MV_DDR_FREQ=400db_kw2" >> $(obj)include/config.mk ;\ |
| 2747 | fi; \ |
| 2748 | echo "NAND_TECH=M" >> $(obj)include/config.mk ; \ |
| 2749 | echo "BLK_SIZE=128" >> $(obj)include/config.mk ; \ |
| 2750 | echo " * Configured for DB-88F6500-BP"; \ |
| 2751 | elif [ "$(findstring rd88f6510sfu_config,$(RULE))" ] ; then \ |
| 2752 | echo "#define RD_88F6510" >> $(obj)include/config.h ; \ |
| 2753 | echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \ |
| 2754 | echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \ |
| 2755 | echo "MV_DDR_FREQ=266rd_kw2" >> $(obj)include/config.mk ; \ |
| 2756 | echo "NAND_TECH=M" >> $(obj)include/config.mk ; \ |
| 2757 | echo "BLK_SIZE=128" >> $(obj)include/config.mk ; \ |
| 2758 | echo " * Configured for RD-88F6510-SFU"; \ |
| 2759 | elif [ "$(findstring rd88f6560gw_config,$(RULE))" ] ; then \ |
| 2760 | echo "#define RD_88F6560" >> $(obj)include/config.h ; \ |
| 2761 | echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \ |
| 2762 | echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \ |
| 2763 | echo "MV_DDR_FREQ=533rd_kw2" >> $(obj)include/config.mk ; \ |
| 2764 | echo "NAND_TECH=M" >> $(obj)include/config.mk ; \ |
| 2765 | echo "BLK_SIZE=128" >> $(obj)include/config.mk ; \ |
| 2766 | echo " * Configured for RD-88F6560-GW"; \ |
| 2767 | elif [ "$(findstring db88f6560pcac_config,$(RULE))" ] ; then \ |
| 2768 | echo "#define DB_88F6560_PCAC" >> $(obj)include/config.h ; \ |
| 2769 | echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \ |
| 2770 | echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \ |
| 2771 | echo "#define MV_PEX_END_POINT_MODE" >> $(obj)include/config.h ;\ |
| 2772 | echo "MV_DDR_FREQ=533db_pcac_kw2" >> $(obj)include/config.mk ; \ |
| 2773 | echo "NAND_TECH=M" >> $(obj)include/config.mk ; \ |
| 2774 | echo "BLK_SIZE=128" >> $(obj)include/config.mk ; \ |
| 2775 | echo " * Configured for DB-88F6560-PCAC"; \ |
| 2776 | elif [ "$(findstring rd88f6530mdu_config,$(RULE))" ] ; then \ |
| 2777 | echo "#define RD_88F6530" >> $(obj)include/config.h ; \ |
| 2778 | echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \ |
| 2779 | echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \ |
| 2780 | echo "MV_DDR_FREQ=400rdmdu_kw2" >> $(obj)include/config.mk ; \ |
| 2781 | echo "NAND_TECH=S" >> $(obj)include/config.mk ; \ |
| 2782 | echo "BLK_SIZE=128" >> $(obj)include/config.mk ; \ |
| 2783 | echo " * Configured for RD-88F6530-MDU"; \ |
| 2784 | elif [ "$(findstring db88f6601bp_config,$(RULE))" ] ; then\ |
| 2785 | echo "#define DB_88F6601" >> $(obj)include/config.h ; \ |
| 2786 | echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \ |
| 2787 | echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \ |
| 2788 | echo "MV_DDR_FREQ=400db_A-MC" >> $(obj)include/config.mk ;\ |
| 2789 | echo " * Configured for DB-88F6601-BP"; \ |
| 2790 | elif [ "$(findstring rd88f6601mc_config,$(RULE))" ] ; then\ |
| 2791 | echo "#define RD_88F6601" >> $(obj)include/config.h ; \ |
| 2792 | echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \ |
| 2793 | echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \ |
| 2794 | echo "MV_DDR_FREQ=400rd_A-MC" >> $(obj)include/config.mk ;\ |
| 2795 | echo " * Configured for RD-88F6601-MC"; \ |
| 2796 | elif [ "$(findstring kw2_test,$(RULE))" ] ; then \ |
| 2797 | echo "#define DB_88F6192A" >> $(obj)include/config.h ; \ |
| 2798 | echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \ |
| 2799 | echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \ |
| 2800 | echo "MV_DDR_FREQ=400rd_kw2" >> $(obj)include/config.mk ; \ |
| 2801 | echo " * Configured for DB-88F6192A-BP"; \ |
Sean Howarth | b17130e | 2013-03-07 14:45:46 -0800 | [diff] [blame] | 2802 | elif [ "$(findstring gflt200_config,$(RULE))" ] ; then\ |
| 2803 | echo "#define GFLT200" >> $(obj)include/config.h ; \ |
| 2804 | echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \ |
| 2805 | echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \ |
Sean Howarth | 5b1bce0 | 2013-04-12 18:17:50 -0700 | [diff] [blame] | 2806 | echo "MV_DDR_FREQ=256mb_400mhz" >> $(obj)include/config.mk ;\ |
Sean Howarth | b17130e | 2013-03-07 14:45:46 -0800 | [diff] [blame] | 2807 | echo " * Configured for GFLT200"; \ |
John Newlin | ac5fab5 | 2013-05-28 10:18:42 -0700 | [diff] [blame] | 2808 | elif [ "$(findstring gflt110_config,$(RULE))" ] ; then\ |
| 2809 | echo "#define GFLT110" >> $(obj)include/config.h ; \ |
| 2810 | echo "#define MV_BOOTSIZE_512K" >> $(obj)include/config.h ; \ |
| 2811 | echo "#define MV_BOOTROM" >> $(obj)include/config.h ; \ |
John Newlin | afaa412 | 2013-06-10 10:02:01 -0700 | [diff] [blame] | 2812 | echo "MV_DDR_FREQ=256mb_400mhz_gflt110" >> $(obj)include/config.mk ;\ |
John Newlin | ac5fab5 | 2013-05-28 10:18:42 -0700 | [diff] [blame] | 2813 | echo " * Configured for GFLT110"; \ |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 2814 | else \ |
| 2815 | echo " * Error no board was configured"; \ |
| 2816 | fi; |
| 2817 | |
| 2818 | #============================== |
| 2819 | # Little Endian Cross Compiler |
| 2820 | #============================== |
| 2821 | ifeq ($(BE),) |
| 2822 | @echo " * Little Endian byte ordering "; |
| 2823 | endif |
| 2824 | #============================== |
| 2825 | # Big Endian Cross Compiler |
| 2826 | #============================== |
| 2827 | ifeq ($(BE),1) |
| 2828 | @echo "#define __BE" >> include/config.h; |
| 2829 | @echo "#define MV_KW2_BE_ETH_WA" >> include/config.h; |
| 2830 | @echo "BIG_ENDIAN =y" >> include/config.mk; |
| 2831 | @echo "LDFLAGS += -EB" >> include/config.mk; |
| 2832 | @echo " * Big Endian byte ordering "; |
| 2833 | endif |
| 2834 | |
| 2835 | #================ |
| 2836 | # CPU DDR Access |
| 2837 | #================ |
| 2838 | @if [ x$(DDR_XBAR) == x1 ]; then \ |
| 2839 | echo "DDR_ACCESS=_xbar" >> $(obj)include/config.mk ; \ |
| 2840 | echo " * CPU DRAM access through XBAR " ; \ |
| 2841 | fi; |
| 2842 | |
| 2843 | #================= |
| 2844 | # DDR3 support |
| 2845 | #================= |
| 2846 | ifeq ($(DDR3),1) |
| 2847 | @echo "DDR_TYPE=ddr3" >> $(obj)include/config.mk; |
| 2848 | @echo " * DDR3 Support"; |
| 2849 | else |
| 2850 | @echo "DDR_TYPE=ddr2" >> $(obj)include/config.mk; |
| 2851 | @echo " * DDR2 Support"; |
| 2852 | endif |
| 2853 | |
| 2854 | #================= |
| 2855 | # USB support |
| 2856 | #================= |
| 2857 | ifeq ($(USB),1) |
| 2858 | @echo "#define MV_USB" >> $(obj)include/config.h; |
| 2859 | @echo " * With USB support"; |
| 2860 | endif |
| 2861 | |
| 2862 | #================= |
| 2863 | # NAND support |
| 2864 | #================= |
| 2865 | # Boot from NAND support |
| 2866 | ifeq ($(NANDBOOT),1) |
| 2867 | @echo " * Boot from NAND support"; |
| 2868 | @echo "#define MV_NAND_BOOT" >> $(obj)include/config.h ; |
| 2869 | @echo "NAND_BOOT = y" >> $(obj)include/config.mk ; |
| 2870 | cp board/mv_feroceon/config_kw2/u-boot-sec256k.lds cpu/arm926ejs/u-boot.lds; |
| 2871 | endif |
| 2872 | |
| 2873 | ifeq ($(NAND),1) |
| 2874 | @echo " * NAND support"; |
| 2875 | @echo "#define MV_NAND" >> $(obj)include/config.h; |
| 2876 | |
| 2877 | ##NFC @echo " + NAND PIO Mode support"; |
| 2878 | ##NFC @echo "#define MV_NAND_PIO_MODE" >> $(obj)include/config.h; |
| 2879 | ##NFC @echo " + 1 CS NAND support" ; |
| 2880 | ##NFC @echo "#define MV_NAND_1CS_MODE" >> $(obj)include/config.h ; |
| 2881 | ##NFC @echo " + 4 bit ECC NAND support" ; |
| 2882 | ##NFC @echo "#define MV_NAND_4BIT_MODE" >> $(obj)include/config.h ; |
| 2883 | |
| 2884 | # NAND Small Page support |
| 2885 | |
| 2886 | ifeq ($(NANDSP),1) |
| 2887 | @echo " * Small Page NAND support"; |
| 2888 | @echo "#define MV_SMALL_PAGE" >> $(obj)include/config.h ; |
| 2889 | @echo "CONFIG_NAND_SP = y" >> $(obj)include/config.mk |
| 2890 | else |
| 2891 | @echo " * Large Page NAND support"; |
| 2892 | @echo "#define MV_LARGE_PAGE" >> $(obj)include/config.h ; |
| 2893 | @echo "CONFIG_NAND_LP = y" >> $(obj)include/config.mk |
| 2894 | endif |
| 2895 | |
| 2896 | #================= |
| 2897 | # NFC support |
| 2898 | #================= |
| 2899 | ifeq ($(NFC),1) |
| 2900 | @echo " * NAND Flash Controller Support"; |
| 2901 | @echo "#define CONFIG_MV_NFC_SUPPORT" >> $(obj)include/config.h |
| 2902 | else |
| 2903 | @echo " * Legacy NAND Flash Controller Support"; |
| 2904 | @echo "#define CONFIG_MV_LEGACY_NAND" >> $(obj)include/config.h |
| 2905 | endif |
| 2906 | endif |
| 2907 | |
| 2908 | #================= |
| 2909 | # SPI support |
| 2910 | #================= |
| 2911 | ifeq ($(SPI),1) |
| 2912 | @echo " * SPI support"; |
| 2913 | @echo "#define MV_SEC_256K" >> $(obj)include/config.h ; |
| 2914 | @echo "#define MV_SPI" >> $(obj)include/config.h; |
| 2915 | endif |
| 2916 | # Boot from SPI support |
| 2917 | ifeq ($(SPIBOOT),1) |
| 2918 | @echo " * Boot from SPI support"; |
| 2919 | @echo "#define MV_SEC_256K" >> $(obj)include/config.h ; |
| 2920 | @echo "#define MV_SPI" >> $(obj)include/config.h; |
| 2921 | @echo "#define MV_SPI_BOOT" >> $(obj)include/config.h; |
| 2922 | @echo "SPI_BOOT = y" >> $(obj)include/config.mk; |
| 2923 | cp board/mv_feroceon/config_kw2/u-boot-sec256k.lds cpu/arm926ejs/u-boot.lds; |
| 2924 | endif |
| 2925 | |
| 2926 | #================= |
| 2927 | # NOR support |
| 2928 | #================= |
| 2929 | # Boot from NOR support |
| 2930 | ifeq ($(NORBOOT),1) |
| 2931 | @echo " * Boot from NOR support"; |
| 2932 | @echo "#define MV_SEC_128K" >> $(obj)include/config.h ; |
| 2933 | @echo "#define MV_NOR_BOOT" >> $(obj)include/config.h; |
| 2934 | @echo "NOR_BOOT = y" >> $(obj)include/config.mk; |
| 2935 | cp board/mv_feroceon/config_kw2/u-boot-sec128k.lds cpu/arm926ejs/u-boot.lds; |
| 2936 | endif |
| 2937 | ifeq ($(NOR),1) |
| 2938 | @echo " * NOR support"; |
| 2939 | @echo "#define MV_SEC_128K" >> $(obj)include/config.h ; |
| 2940 | @echo "#define MV_NOR" >> $(obj)include/config.h; |
| 2941 | endif |
| 2942 | |
| 2943 | #================= |
Ke Dong | 192fe0b | 2012-10-01 23:38:59 -0700 | [diff] [blame] | 2944 | # LARGEKERNEL support |
| 2945 | #================= |
| 2946 | ifeq ($(LARGEKERNEL),1) |
| 2947 | @echo " * LARGEKERNEL support"; |
| 2948 | @echo "#define LARGEKERNEL" >> $(obj)include/config.h ; |
| 2949 | endif |
| 2950 | |
| 2951 | #================= |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 2952 | # BOOTROM support |
| 2953 | #================= |
| 2954 | ifeq ($(BOOTROM),1) |
| 2955 | @echo " * BOOTROM support"; |
| 2956 | @echo "#define MV_BOOTROM" >> $(obj)include/config.h ; |
| 2957 | ifeq ($(NBOOT),1) |
| 2958 | @cp board/mv_feroceon/config_kw2/u-boot-sec64k-header-nand.lds board/mv_feroceon/config_kw2/u-boot.lds; |
| 2959 | else |
| 2960 | @cp board/mv_feroceon/config_kw2/u-boot-sec64k-header.lds board/mv_feroceon/config_kw2/u-boot.lds; |
| 2961 | endif |
| 2962 | endif |
| 2963 | |
Sean Howarth | 4a3bbc4 | 2013-04-24 14:47:50 -0700 | [diff] [blame] | 2964 | @if [ "$(findstring gflt200_config,$(RULE))" ] ; then \ |
| 2965 | echo "#include <configs/gflt200.h>" >> $(obj)include/config.h ; \ |
John Newlin | ac5fab5 | 2013-05-28 10:18:42 -0700 | [diff] [blame] | 2966 | elif [ "$(findstring gflt110_config,$(RULE))" ] ; then \ |
| 2967 | echo "#include <configs/gflt110.h>" >> $(obj)include/config.h ; \ |
Sean Howarth | 4a3bbc4 | 2013-04-24 14:47:50 -0700 | [diff] [blame] | 2968 | else \ |
| 2969 | echo "#include <configs/mv_kw2.h>" >> $(obj)include/config.h ; \ |
| 2970 | fi ; |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 2971 | |
| 2972 | #================= |
| 2973 | # JFFS2 support |
| 2974 | #================= |
| 2975 | ifeq ($(JFFS2),1) |
| 2976 | @echo " * JFFS2 support"; |
| 2977 | @echo "#define MV_JFFS2" >> $(obj)include/config.h |
| 2978 | @echo "MV_JFFS2_SUPPORT = y" >> $(obj)include/config.mk |
| 2979 | endif |
| 2980 | |
| 2981 | ######################################################################### |
| 2982 | ## END of Marvell KW2 based Socs |
| 2983 | ######################################################################### |
| 2984 | ######################################################################### |
Ke Dong | 0e9e0c9 | 2012-09-11 00:12:54 -0700 | [diff] [blame] | 2985 | ## 74xx/7xx Systems |
| 2986 | ######################################################################### |
| 2987 | |
| 2988 | AmigaOneG3SE_config: unconfig |
| 2989 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI |
| 2990 | |
| 2991 | BAB7xx_config: unconfig |
| 2992 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec |
| 2993 | |
| 2994 | CPCI750_config: unconfig |
| 2995 | @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd |
| 2996 | |
| 2997 | DB64360_config: unconfig |
| 2998 | @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell |
| 2999 | |
| 3000 | DB64460_config: unconfig |
| 3001 | @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell |
| 3002 | |
| 3003 | ELPPC_config: unconfig |
| 3004 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec |
| 3005 | |
| 3006 | EVB64260_config \ |
| 3007 | EVB64260_750CX_config: unconfig |
| 3008 | @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260 |
| 3009 | |
| 3010 | mpc7448hpc2_config: unconfig |
| 3011 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale |
| 3012 | |
| 3013 | P3G4_config: unconfig |
| 3014 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 |
| 3015 | |
| 3016 | p3m750_config \ |
| 3017 | p3m7448_config: unconfig |
| 3018 | @mkdir -p $(obj)include |
| 3019 | @if [ "$(findstring 750_,$@)" ] ; then \ |
| 3020 | echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \ |
| 3021 | else \ |
| 3022 | echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \ |
| 3023 | fi |
| 3024 | @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive |
| 3025 | |
| 3026 | PCIPPC2_config \ |
| 3027 | PCIPPC6_config: unconfig |
| 3028 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2 |
| 3029 | |
| 3030 | ppmc7xx_config: unconfig |
| 3031 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx |
| 3032 | |
| 3033 | ZUMA_config: unconfig |
| 3034 | @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260 |
| 3035 | |
| 3036 | #======================================================================== |
| 3037 | # ARM |
| 3038 | #======================================================================== |
| 3039 | ######################################################################### |
| 3040 | ## StrongARM Systems |
| 3041 | ######################################################################### |
| 3042 | |
| 3043 | assabet_config : unconfig |
| 3044 | @$(MKCONFIG) $(@:_config=) arm sa1100 assabet |
| 3045 | |
| 3046 | dnp1110_config : unconfig |
| 3047 | @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110 |
| 3048 | |
| 3049 | gcplus_config : unconfig |
| 3050 | @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus |
| 3051 | |
| 3052 | lart_config : unconfig |
| 3053 | @$(MKCONFIG) $(@:_config=) arm sa1100 lart |
| 3054 | |
| 3055 | shannon_config : unconfig |
| 3056 | @$(MKCONFIG) $(@:_config=) arm sa1100 shannon |
| 3057 | |
| 3058 | ######################################################################### |
| 3059 | ## ARM92xT Systems |
| 3060 | ######################################################################### |
| 3061 | |
| 3062 | ######################################################################### |
| 3063 | ## Atmel AT91RM9200 Systems |
| 3064 | ######################################################################### |
| 3065 | |
| 3066 | at91rm9200dk_config : unconfig |
| 3067 | @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200 |
| 3068 | |
| 3069 | at91rm9200ek_config : unconfig |
| 3070 | @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200ek atmel at91rm9200 |
| 3071 | |
| 3072 | cmc_pu2_config : unconfig |
| 3073 | @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200 |
| 3074 | |
| 3075 | csb637_config : unconfig |
| 3076 | @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200 |
| 3077 | |
| 3078 | kb9202_config : unconfig |
| 3079 | @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200 |
| 3080 | |
| 3081 | m501sk_config : unconfig |
| 3082 | @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200 |
| 3083 | |
| 3084 | mp2usb_config : unconfig |
| 3085 | @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200 |
| 3086 | |
| 3087 | ######################################################################### |
| 3088 | ## Atmel ARM926EJ-S Systems |
| 3089 | ######################################################################### |
| 3090 | |
| 3091 | afeb9260_config: unconfig |
| 3092 | @$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91 |
| 3093 | |
| 3094 | at91cap9adk_config : unconfig |
| 3095 | @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91 |
| 3096 | |
| 3097 | at91sam9260ek_nandflash_config \ |
| 3098 | at91sam9260ek_dataflash_cs0_config \ |
| 3099 | at91sam9260ek_dataflash_cs1_config \ |
| 3100 | at91sam9260ek_config \ |
| 3101 | at91sam9g20ek_nandflash_config \ |
| 3102 | at91sam9g20ek_dataflash_cs0_config \ |
| 3103 | at91sam9g20ek_dataflash_cs1_config \ |
| 3104 | at91sam9g20ek_config : unconfig |
| 3105 | @mkdir -p $(obj)include |
| 3106 | @if [ "$(findstring 9g20,$@)" ] ; then \ |
| 3107 | echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \ |
| 3108 | $(XECHO) "... 9G20 Variant" ; \ |
| 3109 | else \ |
| 3110 | echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \ |
| 3111 | fi; |
| 3112 | @if [ "$(findstring _nandflash,$@)" ] ; then \ |
| 3113 | echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ |
| 3114 | $(XECHO) "... with environment variable in NAND FLASH" ; \ |
| 3115 | elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ |
| 3116 | echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ |
| 3117 | $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ |
| 3118 | else \ |
| 3119 | echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ |
| 3120 | $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \ |
| 3121 | fi; |
| 3122 | @$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 |
| 3123 | |
| 3124 | at91sam9xeek_nandflash_config \ |
| 3125 | at91sam9xeek_dataflash_cs0_config \ |
| 3126 | at91sam9xeek_dataflash_cs1_config \ |
| 3127 | at91sam9xeek_config : unconfig |
| 3128 | @mkdir -p $(obj)include |
| 3129 | @if [ "$(findstring _nandflash,$@)" ] ; then \ |
| 3130 | echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ |
| 3131 | $(XECHO) "... with environment variable in NAND FLASH" ; \ |
| 3132 | elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ |
| 3133 | echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ |
| 3134 | $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ |
| 3135 | else \ |
| 3136 | echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \ |
| 3137 | $(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \ |
| 3138 | fi; |
| 3139 | @$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91 |
| 3140 | |
| 3141 | at91sam9261ek_nandflash_config \ |
| 3142 | at91sam9261ek_dataflash_cs0_config \ |
| 3143 | at91sam9261ek_dataflash_cs3_config \ |
| 3144 | at91sam9261ek_config \ |
| 3145 | at91sam9g10ek_nandflash_config \ |
| 3146 | at91sam9g10ek_dataflash_cs0_config \ |
| 3147 | at91sam9g10ek_dataflash_cs3_config \ |
| 3148 | at91sam9g10ek_config : unconfig |
| 3149 | @mkdir -p $(obj)include |
| 3150 | @if [ "$(findstring 9g10,$@)" ] ; then \ |
| 3151 | echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \ |
| 3152 | $(XECHO) "... 9G10 Variant" ; \ |
| 3153 | else \ |
| 3154 | echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \ |
| 3155 | fi; |
| 3156 | @if [ "$(findstring _nandflash,$@)" ] ; then \ |
| 3157 | echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ |
| 3158 | $(XECHO) "... with environment variable in NAND FLASH" ; \ |
| 3159 | elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ |
| 3160 | echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \ |
| 3161 | $(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \ |
| 3162 | else \ |
| 3163 | echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ |
| 3164 | $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ |
| 3165 | fi; |
| 3166 | @$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91 |
| 3167 | |
| 3168 | at91sam9263ek_norflash_config \ |
| 3169 | at91sam9263ek_norflash_boot_config \ |
| 3170 | at91sam9263ek_nandflash_config \ |
| 3171 | at91sam9263ek_dataflash_config \ |
| 3172 | at91sam9263ek_dataflash_cs0_config \ |
| 3173 | at91sam9263ek_config : unconfig |
| 3174 | @mkdir -p $(obj)include |
| 3175 | @if [ "$(findstring _nandflash,$@)" ] ; then \ |
| 3176 | echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ |
| 3177 | $(XECHO) "... with environment variable in NAND FLASH" ; \ |
| 3178 | elif [ "$(findstring norflash,$@)" ] ; then \ |
| 3179 | echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \ |
| 3180 | $(XECHO) "... with environment variable in NOR FLASH" ; \ |
| 3181 | else \ |
| 3182 | echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ |
| 3183 | $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ |
| 3184 | fi; |
| 3185 | @if [ "$(findstring norflash_boot,$@)" ] ; then \ |
| 3186 | echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \ |
| 3187 | $(XECHO) "... and boot from NOR FLASH" ; \ |
| 3188 | fi; |
| 3189 | @$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91 |
| 3190 | |
| 3191 | at91sam9rlek_nandflash_config \ |
| 3192 | at91sam9rlek_dataflash_config \ |
| 3193 | at91sam9rlek_dataflash_cs0_config \ |
| 3194 | at91sam9rlek_config : unconfig |
| 3195 | @mkdir -p $(obj)include |
| 3196 | @if [ "$(findstring _nandflash,$@)" ] ; then \ |
| 3197 | echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ |
| 3198 | $(XECHO) "... with environment variable in NAND FLASH" ; \ |
| 3199 | else \ |
| 3200 | echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ |
| 3201 | $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ |
| 3202 | fi; |
| 3203 | @$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91 |
| 3204 | |
| 3205 | meesc_config : unconfig |
| 3206 | @$(MKCONFIG) $(@:_config=) arm arm926ejs meesc esd at91 |
| 3207 | |
| 3208 | pm9261_config : unconfig |
| 3209 | @$(MKCONFIG) $(@:_config=) arm arm926ejs pm9261 ronetix at91 |
| 3210 | |
| 3211 | at91sam9m10g45ek_nandflash_config \ |
| 3212 | at91sam9m10g45ek_dataflash_config \ |
| 3213 | at91sam9m10g45ek_dataflash_cs0_config \ |
| 3214 | at91sam9m10g45ek_config \ |
| 3215 | at91sam9g45ekes_nandflash_config \ |
| 3216 | at91sam9g45ekes_dataflash_config \ |
| 3217 | at91sam9g45ekes_dataflash_cs0_config \ |
| 3218 | at91sam9g45ekes_config : unconfig |
| 3219 | @mkdir -p $(obj)include |
| 3220 | @if [ "$(findstring 9m10,$@)" ] ; then \ |
| 3221 | echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \ |
| 3222 | $(XECHO) "... 9M10G45 Variant" ; \ |
| 3223 | else \ |
| 3224 | echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \ |
| 3225 | fi; |
| 3226 | |
| 3227 | @if [ "$(findstring _nandflash,$@)" ] ; then \ |
| 3228 | echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ |
| 3229 | $(XECHO) "... with environment variable in NAND FLASH" ; \ |
| 3230 | else \ |
| 3231 | echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \ |
| 3232 | $(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \ |
| 3233 | fi; |
| 3234 | @$(MKCONFIG) -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91 |
| 3235 | |
| 3236 | pm9263_config : unconfig |
| 3237 | @$(MKCONFIG) $(@:_config=) arm arm926ejs pm9263 ronetix at91 |
| 3238 | |
| 3239 | ######################################################################## |
| 3240 | ## ARM Integrator boards - see doc/README-integrator for more info. |
| 3241 | integratorap_config \ |
| 3242 | ap_config \ |
| 3243 | ap966_config \ |
| 3244 | ap922_config \ |
| 3245 | ap922_XA10_config \ |
| 3246 | ap7_config \ |
| 3247 | ap720t_config \ |
| 3248 | ap920t_config \ |
| 3249 | ap926ejs_config \ |
| 3250 | ap946es_config: unconfig |
| 3251 | @board/armltd/integrator/split_by_variant.sh ap $@ |
| 3252 | |
| 3253 | integratorcp_config \ |
| 3254 | cp_config \ |
| 3255 | cp920t_config \ |
| 3256 | cp926ejs_config \ |
| 3257 | cp946es_config \ |
| 3258 | cp1136_config \ |
| 3259 | cp966_config \ |
| 3260 | cp922_config \ |
| 3261 | cp922_XA10_config \ |
| 3262 | cp1026_config: unconfig |
| 3263 | @board/armltd/integrator/split_by_variant.sh cp $@ |
| 3264 | |
| 3265 | davinci_dvevm_config : unconfig |
| 3266 | @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci |
| 3267 | |
| 3268 | davinci_schmoogie_config : unconfig |
| 3269 | @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci |
| 3270 | |
| 3271 | davinci_sffsdr_config : unconfig |
| 3272 | @$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci |
| 3273 | |
| 3274 | davinci_sonata_config : unconfig |
| 3275 | @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci |
| 3276 | |
| 3277 | davinci_dm355evm_config : unconfig |
| 3278 | @$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci |
| 3279 | |
| 3280 | lpd7a400_config \ |
| 3281 | lpd7a404_config: unconfig |
| 3282 | @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x |
| 3283 | |
| 3284 | mv88f6281gtw_ge_config: unconfig |
| 3285 | @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood |
| 3286 | |
| 3287 | mx1ads_config : unconfig |
| 3288 | @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx |
| 3289 | |
| 3290 | mx1fs2_config : unconfig |
| 3291 | @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx |
| 3292 | |
| 3293 | netstar_config: unconfig |
| 3294 | @$(MKCONFIG) $(@:_config=) arm arm925t netstar |
| 3295 | |
| 3296 | nhk8815_config \ |
| 3297 | nhk8815_onenand_config: unconfig |
| 3298 | @mkdir -p $(obj)include |
| 3299 | @ > $(obj)include/config.h |
| 3300 | @if [ "$(findstring _onenand, $@)" ] ; then \ |
| 3301 | echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \ |
| 3302 | $(XECHO) "... configured to boot from OneNand Flash"; \ |
| 3303 | else \ |
| 3304 | $(XECHO) "... configured to boot from Nand Flash"; \ |
| 3305 | fi |
| 3306 | @$(MKCONFIG) -a nhk8815 arm arm926ejs nhk8815 st nomadik |
| 3307 | |
| 3308 | omap1510inn_config : unconfig |
| 3309 | @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn |
| 3310 | |
| 3311 | xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) |
| 3312 | |
| 3313 | omap1610inn_config \ |
| 3314 | omap1610inn_cs0boot_config \ |
| 3315 | omap1610inn_cs3boot_config \ |
| 3316 | omap1610inn_cs_autoboot_config \ |
| 3317 | omap1610h2_config \ |
| 3318 | omap1610h2_cs0boot_config \ |
| 3319 | omap1610h2_cs3boot_config \ |
| 3320 | omap1610h2_cs_autoboot_config: unconfig |
| 3321 | @mkdir -p $(obj)include |
| 3322 | @if [ "$(findstring _cs0boot_, $@)" ] ; then \ |
| 3323 | echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ |
| 3324 | $(XECHO) "... configured for CS0 boot"; \ |
| 3325 | elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ |
| 3326 | echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ |
| 3327 | $(XECHO) "... configured for CS_AUTO boot"; \ |
| 3328 | else \ |
| 3329 | echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ |
| 3330 | $(XECHO) "... configured for CS3 boot"; \ |
| 3331 | fi; |
| 3332 | @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap |
| 3333 | |
| 3334 | omap5912osk_config : unconfig |
| 3335 | @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap |
| 3336 | |
| 3337 | xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1))) |
| 3338 | |
| 3339 | omap730p2_config \ |
| 3340 | omap730p2_cs0boot_config \ |
| 3341 | omap730p2_cs3boot_config : unconfig |
| 3342 | @mkdir -p $(obj)include |
| 3343 | @if [ "$(findstring _cs0boot_, $@)" ] ; then \ |
| 3344 | echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ |
| 3345 | $(XECHO) "... configured for CS0 boot"; \ |
| 3346 | else \ |
| 3347 | echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ |
| 3348 | $(XECHO) "... configured for CS3 boot"; \ |
| 3349 | fi; |
| 3350 | @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap |
| 3351 | |
| 3352 | rd6281a_config: unconfig |
| 3353 | @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood |
| 3354 | |
| 3355 | sbc2410x_config: unconfig |
| 3356 | @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 |
| 3357 | |
| 3358 | scb9328_config : unconfig |
| 3359 | @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx |
| 3360 | |
| 3361 | sheevaplug_config: unconfig |
| 3362 | @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood |
| 3363 | |
| 3364 | smdk2400_config : unconfig |
| 3365 | @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0 |
| 3366 | |
| 3367 | smdk2410_config : unconfig |
| 3368 | @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0 |
| 3369 | |
| 3370 | SX1_stdout_serial_config \ |
| 3371 | SX1_config: unconfig |
| 3372 | @mkdir -p $(obj)include |
| 3373 | @if [ "$(findstring _stdout_serial_, $@)" ] ; then \ |
| 3374 | echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ |
| 3375 | $(XECHO) "... configured for stdout serial"; \ |
| 3376 | else \ |
| 3377 | echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ |
| 3378 | $(XECHO) "... configured for stdout usbtty"; \ |
| 3379 | fi; |
| 3380 | @$(MKCONFIG) SX1 arm arm925t sx1 |
| 3381 | |
| 3382 | # TRAB default configuration: 8 MB Flash, 32 MB RAM |
| 3383 | xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1)))) |
| 3384 | |
| 3385 | trab_config \ |
| 3386 | trab_bigram_config \ |
| 3387 | trab_bigflash_config \ |
| 3388 | trab_old_config: unconfig |
| 3389 | @mkdir -p $(obj)include |
| 3390 | @mkdir -p $(obj)board/trab |
| 3391 | @[ -z "$(findstring _bigram,$@)" ] || \ |
| 3392 | { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ |
| 3393 | echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \ |
| 3394 | $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \ |
| 3395 | } |
| 3396 | @[ -z "$(findstring _bigflash,$@)" ] || \ |
| 3397 | { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \ |
| 3398 | echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ |
| 3399 | $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \ |
| 3400 | echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ |
| 3401 | } |
| 3402 | @[ -z "$(findstring _old,$@)" ] || \ |
| 3403 | { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \ |
| 3404 | echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \ |
| 3405 | $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \ |
| 3406 | echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \ |
| 3407 | } |
| 3408 | @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0 |
| 3409 | |
| 3410 | VCMA9_config : unconfig |
| 3411 | @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0 |
| 3412 | |
| 3413 | ######################################################################### |
| 3414 | # ARM supplied Versatile development boards |
| 3415 | ######################################################################### |
| 3416 | |
| 3417 | cm4008_config : unconfig |
| 3418 | @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695 |
| 3419 | |
| 3420 | cm41xx_config : unconfig |
| 3421 | @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695 |
| 3422 | |
| 3423 | versatile_config \ |
| 3424 | versatileab_config \ |
| 3425 | versatilepb_config : unconfig |
| 3426 | @board/armltd/versatile/split_by_variant.sh $@ |
| 3427 | |
| 3428 | voiceblue_config: unconfig |
| 3429 | @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue |
| 3430 | |
| 3431 | ######################################################################### |
| 3432 | ## S3C44B0 Systems |
| 3433 | ######################################################################### |
| 3434 | |
| 3435 | B2_config : unconfig |
| 3436 | @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave |
| 3437 | |
| 3438 | ######################################################################### |
| 3439 | ## ARM720T Systems |
| 3440 | ######################################################################### |
| 3441 | |
| 3442 | armadillo_config: unconfig |
| 3443 | @$(MKCONFIG) $(@:_config=) arm arm720t armadillo |
| 3444 | |
| 3445 | ep7312_config : unconfig |
| 3446 | @$(MKCONFIG) $(@:_config=) arm arm720t ep7312 |
| 3447 | |
| 3448 | impa7_config : unconfig |
| 3449 | @$(MKCONFIG) $(@:_config=) arm arm720t impa7 |
| 3450 | |
| 3451 | modnet50_config : unconfig |
| 3452 | @$(MKCONFIG) $(@:_config=) arm arm720t modnet50 |
| 3453 | |
| 3454 | evb4510_config : unconfig |
| 3455 | @$(MKCONFIG) $(@:_config=) arm arm720t evb4510 NULL s3c4510b |
| 3456 | |
| 3457 | lpc2292sodimm_config: unconfig |
| 3458 | @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292 |
| 3459 | |
| 3460 | SMN42_config : unconfig |
| 3461 | @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 |
| 3462 | |
| 3463 | ######################################################################### |
| 3464 | ## ARM CORTEX Systems |
| 3465 | ######################################################################### |
| 3466 | |
| 3467 | omap3_beagle_config : unconfig |
| 3468 | @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle omap3 omap3 |
| 3469 | |
| 3470 | omap3_overo_config : unconfig |
| 3471 | @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo omap3 omap3 |
| 3472 | |
| 3473 | omap3_evm_config : unconfig |
| 3474 | @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm omap3 omap3 |
| 3475 | |
| 3476 | omap3_pandora_config : unconfig |
| 3477 | @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora omap3 omap3 |
| 3478 | |
| 3479 | omap3_zoom1_config : unconfig |
| 3480 | @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 omap3 omap3 |
| 3481 | |
| 3482 | omap3_zoom2_config : unconfig |
| 3483 | @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom2 omap3 omap3 |
| 3484 | |
| 3485 | ######################################################################### |
| 3486 | ## XScale Systems |
| 3487 | ######################################################################### |
| 3488 | |
| 3489 | actux1_config : unconfig |
| 3490 | @$(MKCONFIG) $(@:_config=) arm ixp actux1 |
| 3491 | |
| 3492 | actux2_config : unconfig |
| 3493 | @$(MKCONFIG) $(@:_config=) arm ixp actux2 |
| 3494 | |
| 3495 | actux3_config : unconfig |
| 3496 | @$(MKCONFIG) $(@:_config=) arm ixp actux3 |
| 3497 | |
| 3498 | actux4_config : unconfig |
| 3499 | @$(MKCONFIG) $(@:_config=) arm ixp actux4 |
| 3500 | |
| 3501 | cerf250_config : unconfig |
| 3502 | @$(MKCONFIG) $(@:_config=) arm pxa cerf250 |
| 3503 | |
| 3504 | cradle_config : unconfig |
| 3505 | @$(MKCONFIG) $(@:_config=) arm pxa cradle |
| 3506 | |
| 3507 | csb226_config : unconfig |
| 3508 | @$(MKCONFIG) $(@:_config=) arm pxa csb226 |
| 3509 | |
| 3510 | delta_config : unconfig |
| 3511 | @$(MKCONFIG) $(@:_config=) arm pxa delta |
| 3512 | |
| 3513 | innokom_config : unconfig |
| 3514 | @$(MKCONFIG) $(@:_config=) arm pxa innokom |
| 3515 | |
| 3516 | ixdp425_config : unconfig |
| 3517 | @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 |
| 3518 | |
| 3519 | ixdpg425_config : unconfig |
| 3520 | @$(MKCONFIG) $(@:_config=) arm ixp ixdp425 |
| 3521 | |
| 3522 | lubbock_config : unconfig |
| 3523 | @$(MKCONFIG) $(@:_config=) arm pxa lubbock |
| 3524 | |
| 3525 | pleb2_config : unconfig |
| 3526 | @$(MKCONFIG) $(@:_config=) arm pxa pleb2 |
| 3527 | |
| 3528 | logodl_config : unconfig |
| 3529 | @$(MKCONFIG) $(@:_config=) arm pxa logodl |
| 3530 | |
| 3531 | pdnb3_config \ |
| 3532 | scpu_config: unconfig |
| 3533 | @mkdir -p $(obj)include |
| 3534 | @if [ "$(findstring scpu_,$@)" ] ; then \ |
| 3535 | echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ |
| 3536 | $(XECHO) "... on SCPU board variant" ; \ |
| 3537 | fi |
| 3538 | @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive |
| 3539 | |
| 3540 | pxa255_idp_config: unconfig |
| 3541 | @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp |
| 3542 | |
| 3543 | polaris_config \ |
| 3544 | trizepsiv_config : unconfig |
| 3545 | @mkdir -p $(obj)include |
| 3546 | @if [ "$(findstring polaris,$@)" ] ; then \ |
| 3547 | echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \ |
| 3548 | fi; |
| 3549 | @$(MKCONFIG) -a trizepsiv arm pxa trizepsiv |
| 3550 | |
| 3551 | wepep250_config : unconfig |
| 3552 | @$(MKCONFIG) $(@:_config=) arm pxa wepep250 |
| 3553 | |
| 3554 | xaeniax_config : unconfig |
| 3555 | @$(MKCONFIG) $(@:_config=) arm pxa xaeniax |
| 3556 | |
| 3557 | xm250_config : unconfig |
| 3558 | @$(MKCONFIG) $(@:_config=) arm pxa xm250 |
| 3559 | |
| 3560 | xsengine_config : unconfig |
| 3561 | @$(MKCONFIG) $(@:_config=) arm pxa xsengine |
| 3562 | |
| 3563 | zylonite_config : |
| 3564 | @$(MKCONFIG) $(@:_config=) arm pxa zylonite |
| 3565 | |
| 3566 | ######################################################################### |
| 3567 | ## ARM1136 Systems |
| 3568 | ######################################################################### |
| 3569 | |
| 3570 | apollon_config : unconfig |
| 3571 | @mkdir -p $(obj)include |
| 3572 | @mkdir -p $(obj)onenand_ipl/board/apollon |
| 3573 | @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h |
| 3574 | @$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx |
| 3575 | @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk |
| 3576 | |
| 3577 | imx31_litekit_config : unconfig |
| 3578 | @$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31 |
| 3579 | |
| 3580 | imx31_phycore_eet_config \ |
| 3581 | imx31_phycore_config : unconfig |
| 3582 | @mkdir -p $(obj)include |
| 3583 | @if [ -n "$(findstring _eet_,$@)" ]; then \ |
| 3584 | echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \ |
| 3585 | fi |
| 3586 | @$(MKCONFIG) -a imx31_phycore arm arm1136 imx31_phycore NULL mx31 |
| 3587 | |
| 3588 | mx31ads_config : unconfig |
| 3589 | @$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31 |
| 3590 | |
| 3591 | mx31pdk_config \ |
| 3592 | mx31pdk_nand_config : unconfig |
| 3593 | @mkdir -p $(obj)include |
| 3594 | @if [ -n "$(findstring _nand_,$@)" ]; then \ |
| 3595 | echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \ |
| 3596 | else \ |
| 3597 | echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \ |
| 3598 | echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \ |
| 3599 | fi |
| 3600 | @$(MKCONFIG) -a mx31pdk arm arm1136 mx31pdk freescale mx31 |
| 3601 | |
| 3602 | omap2420h4_config : unconfig |
| 3603 | @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx |
| 3604 | |
| 3605 | qong_config : unconfig |
| 3606 | @$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31 |
| 3607 | |
| 3608 | ######################################################################### |
| 3609 | ## ARM1176 Systems |
| 3610 | ######################################################################### |
| 3611 | smdk6400_noUSB_config \ |
| 3612 | smdk6400_config : unconfig |
| 3613 | @mkdir -p $(obj)include $(obj)board/samsung/smdk6400 |
| 3614 | @mkdir -p $(obj)nand_spl/board/samsung/smdk6400 |
| 3615 | @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h |
| 3616 | @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \ |
| 3617 | echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ |
| 3618 | $(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx; \ |
| 3619 | else \ |
| 3620 | echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ |
| 3621 | $(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx; \ |
| 3622 | fi |
| 3623 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk |
| 3624 | |
| 3625 | #======================================================================== |
| 3626 | # i386 |
| 3627 | #======================================================================== |
| 3628 | ######################################################################### |
| 3629 | ## AMD SC520 CDP |
| 3630 | ######################################################################### |
| 3631 | eNET_config : unconfig |
| 3632 | @$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520 |
| 3633 | |
| 3634 | sc520_cdp_config : unconfig |
| 3635 | @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520 |
| 3636 | |
| 3637 | sc520_spunk_config : unconfig |
| 3638 | @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520 |
| 3639 | |
| 3640 | sc520_spunk_rel_config : unconfig |
| 3641 | @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520 |
| 3642 | |
| 3643 | #======================================================================== |
| 3644 | # MIPS |
| 3645 | #======================================================================== |
| 3646 | ######################################################################### |
| 3647 | ## MIPS32 4Kc |
| 3648 | ######################################################################### |
| 3649 | |
| 3650 | xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1)))) |
| 3651 | |
| 3652 | incaip_100MHz_config \ |
| 3653 | incaip_133MHz_config \ |
| 3654 | incaip_150MHz_config \ |
| 3655 | incaip_config: unconfig |
| 3656 | @mkdir -p $(obj)include |
| 3657 | @[ -z "$(findstring _100MHz,$@)" ] || \ |
| 3658 | { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \ |
| 3659 | $(XECHO) "... with 100MHz system clock" ; \ |
| 3660 | } |
| 3661 | @[ -z "$(findstring _133MHz,$@)" ] || \ |
| 3662 | { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \ |
| 3663 | $(XECHO) "... with 133MHz system clock" ; \ |
| 3664 | } |
| 3665 | @[ -z "$(findstring _150MHz,$@)" ] || \ |
| 3666 | { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \ |
| 3667 | $(XECHO) "... with 150MHz system clock" ; \ |
| 3668 | } |
| 3669 | @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip |
| 3670 | |
| 3671 | tb0229_config: unconfig |
| 3672 | @$(MKCONFIG) $(@:_config=) mips mips tb0229 |
| 3673 | |
| 3674 | vct_premium_config \ |
| 3675 | vct_premium_small_config \ |
| 3676 | vct_premium_onenand_config \ |
| 3677 | vct_premium_onenand_small_config \ |
| 3678 | vct_platinum_config \ |
| 3679 | vct_platinum_small_config \ |
| 3680 | vct_platinum_onenand_config \ |
| 3681 | vct_platinum_onenand_small_config \ |
| 3682 | vct_platinumavc_config \ |
| 3683 | vct_platinumavc_small_config \ |
| 3684 | vct_platinumavc_onenand_config \ |
| 3685 | vct_platinumavc_onenand_small_config: unconfig |
| 3686 | @mkdir -p $(obj)include |
| 3687 | @if [ "$(findstring _premium,$@)" ] ; then \ |
| 3688 | echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \ |
| 3689 | $(XECHO) "... on Premium board variant" ; \ |
| 3690 | fi |
| 3691 | @if [ "$(findstring _platinum_,$@)" ] ; then \ |
| 3692 | echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \ |
| 3693 | $(XECHO) "... on Platinum board variant" ; \ |
| 3694 | fi |
| 3695 | @if [ "$(findstring _platinumavc,$@)" ] ; then \ |
| 3696 | echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \ |
| 3697 | $(XECHO) "... on PlatinumAVC board variant" ; \ |
| 3698 | fi |
| 3699 | @if [ "$(findstring _onenand,$@)" ] ; then \ |
| 3700 | echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \ |
| 3701 | $(XECHO) "... on OneNAND board variant" ; \ |
| 3702 | fi |
| 3703 | @if [ "$(findstring _small,$@)" ] ; then \ |
| 3704 | echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \ |
| 3705 | $(XECHO) "... stripped down image variant" ; \ |
| 3706 | fi |
| 3707 | @$(MKCONFIG) -a vct mips mips vct micronas |
| 3708 | |
| 3709 | ######################################################################### |
| 3710 | ## MIPS32 AU1X00 |
| 3711 | ######################################################################### |
| 3712 | |
| 3713 | dbau1000_config : unconfig |
| 3714 | @mkdir -p $(obj)include |
| 3715 | @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h |
| 3716 | @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 |
| 3717 | |
| 3718 | dbau1100_config : unconfig |
| 3719 | @mkdir -p $(obj)include |
| 3720 | @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h |
| 3721 | @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 |
| 3722 | |
| 3723 | dbau1500_config : unconfig |
| 3724 | @mkdir -p $(obj)include |
| 3725 | @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h |
| 3726 | @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 |
| 3727 | |
| 3728 | dbau1550_config : unconfig |
| 3729 | @mkdir -p $(obj)include |
| 3730 | @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h |
| 3731 | @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 |
| 3732 | |
| 3733 | dbau1550_el_config : unconfig |
| 3734 | @mkdir -p $(obj)include |
| 3735 | @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h |
| 3736 | @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00 |
| 3737 | |
| 3738 | gth2_config : unconfig |
| 3739 | @mkdir -p $(obj)include |
| 3740 | @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h |
| 3741 | @$(MKCONFIG) -a gth2 mips mips gth2 |
| 3742 | |
| 3743 | pb1000_config : unconfig |
| 3744 | @mkdir -p $(obj)include |
| 3745 | @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h |
| 3746 | @$(MKCONFIG) -a pb1x00 mips mips pb1x00 |
| 3747 | |
| 3748 | qemu_mips_config : unconfig |
| 3749 | @mkdir -p $(obj)include |
| 3750 | @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h |
| 3751 | @$(MKCONFIG) -a qemu-mips mips mips qemu-mips |
| 3752 | |
| 3753 | ######################################################################### |
| 3754 | ## MIPS64 5Kc |
| 3755 | ######################################################################### |
| 3756 | |
| 3757 | purple_config : unconfig |
| 3758 | @$(MKCONFIG) $(@:_config=) mips mips purple |
| 3759 | |
| 3760 | #======================================================================== |
| 3761 | # Nios |
| 3762 | #======================================================================== |
| 3763 | ######################################################################### |
| 3764 | ## Nios32 |
| 3765 | ######################################################################### |
| 3766 | |
| 3767 | ADNPESC1_DNPEVA2_base_32_config \ |
| 3768 | ADNPESC1_base_32_config \ |
| 3769 | ADNPESC1_config: unconfig |
| 3770 | @mkdir -p $(obj)include |
| 3771 | @[ -z "$(findstring _DNPEVA2,$@)" ] || \ |
| 3772 | { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \ |
| 3773 | $(XECHO) "... DNP/EVA2 configuration" ; \ |
| 3774 | } |
| 3775 | @[ -z "$(findstring _base_32,$@)" ] || \ |
| 3776 | { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ |
| 3777 | $(XECHO) "... NIOS 'base_32' configuration" ; \ |
| 3778 | } |
| 3779 | @[ -z "$(findstring ADNPESC1_config,$@)" ] || \ |
| 3780 | { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \ |
| 3781 | $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \ |
| 3782 | } |
| 3783 | @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv |
| 3784 | |
| 3785 | DK1C20_safe_32_config \ |
| 3786 | DK1C20_standard_32_config \ |
| 3787 | DK1C20_config: unconfig |
| 3788 | @mkdir -p $(obj)include |
| 3789 | @[ -z "$(findstring _safe_32,$@)" ] || \ |
| 3790 | { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ |
| 3791 | $(XECHO) "... NIOS 'safe_32' configuration" ; \ |
| 3792 | } |
| 3793 | @[ -z "$(findstring _standard_32,$@)" ] || \ |
| 3794 | { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ |
| 3795 | $(XECHO) "... NIOS 'standard_32' configuration" ; \ |
| 3796 | } |
| 3797 | @[ -z "$(findstring DK1C20_config,$@)" ] || \ |
| 3798 | { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ |
| 3799 | $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ |
| 3800 | } |
| 3801 | @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera |
| 3802 | |
| 3803 | DK1S10_safe_32_config \ |
| 3804 | DK1S10_standard_32_config \ |
| 3805 | DK1S10_mtx_ldk_20_config \ |
| 3806 | DK1S10_config: unconfig |
| 3807 | @mkdir -p $(obj)include |
| 3808 | @[ -z "$(findstring _safe_32,$@)" ] || \ |
| 3809 | { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \ |
| 3810 | $(XECHO) "... NIOS 'safe_32' configuration" ; \ |
| 3811 | } |
| 3812 | @[ -z "$(findstring _standard_32,$@)" ] || \ |
| 3813 | { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ |
| 3814 | $(XECHO) "... NIOS 'standard_32' configuration" ; \ |
| 3815 | } |
| 3816 | @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \ |
| 3817 | { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \ |
| 3818 | $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \ |
| 3819 | } |
| 3820 | @[ -z "$(findstring DK1S10_config,$@)" ] || \ |
| 3821 | { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \ |
| 3822 | $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \ |
| 3823 | } |
| 3824 | @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera |
| 3825 | |
| 3826 | ######################################################################### |
| 3827 | ## Nios-II |
| 3828 | ######################################################################### |
| 3829 | |
| 3830 | EP1C20_config : unconfig |
| 3831 | @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera |
| 3832 | |
| 3833 | EP1S10_config : unconfig |
| 3834 | @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera |
| 3835 | |
| 3836 | EP1S40_config : unconfig |
| 3837 | @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera |
| 3838 | |
| 3839 | PK1C20_config : unconfig |
| 3840 | @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent |
| 3841 | |
| 3842 | PCI5441_config : unconfig |
| 3843 | @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent |
| 3844 | |
| 3845 | #======================================================================== |
| 3846 | ## Microblaze |
| 3847 | #======================================================================== |
| 3848 | |
| 3849 | microblaze-generic_config: unconfig |
| 3850 | @mkdir -p $(obj)include |
| 3851 | @$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx |
| 3852 | |
| 3853 | suzaku_config: unconfig |
| 3854 | @mkdir -p $(obj)include |
| 3855 | @echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h |
| 3856 | @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno |
| 3857 | |
| 3858 | #======================================================================== |
| 3859 | # Blackfin |
| 3860 | #======================================================================== |
| 3861 | |
| 3862 | # Analog Devices boards |
| 3863 | BFIN_BOARDS = bf518f-ezbrd bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp \ |
| 3864 | bf537-pnav bf537-stamp bf538f-ezkit bf548-ezkit bf561-ezkit |
| 3865 | |
| 3866 | # Bluetechnix tinyboards |
| 3867 | BFIN_BOARDS += cm-bf527 cm-bf533 cm-bf537e cm-bf548 cm-bf561 tcm-bf537 |
| 3868 | |
| 3869 | # Misc third party boards |
| 3870 | BFIN_BOARDS += bf537-minotaur bf537-srv1 blackstamp |
| 3871 | |
| 3872 | # I-SYST Micromodule |
| 3873 | BFIN_BOARDS += ibf-dsp561 |
| 3874 | |
| 3875 | $(BFIN_BOARDS:%=%_config) : unconfig |
| 3876 | @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=) |
| 3877 | |
| 3878 | $(BFIN_BOARDS): |
| 3879 | $(MAKE) $@_config |
| 3880 | $(MAKE) |
| 3881 | |
| 3882 | #======================================================================== |
| 3883 | # AVR32 |
| 3884 | #======================================================================== |
| 3885 | |
| 3886 | atngw100_config : unconfig |
| 3887 | @$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x |
| 3888 | |
| 3889 | atstk1002_config : unconfig |
| 3890 | @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x |
| 3891 | |
| 3892 | atstk1003_config : unconfig |
| 3893 | @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x |
| 3894 | |
| 3895 | atstk1004_config : unconfig |
| 3896 | @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x |
| 3897 | |
| 3898 | atstk1006_config : unconfig |
| 3899 | @$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x |
| 3900 | |
| 3901 | favr-32-ezkit_config : unconfig |
| 3902 | @$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x |
| 3903 | |
| 3904 | hammerhead_config : unconfig |
| 3905 | @$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x |
| 3906 | |
| 3907 | mimc200_config : unconfig |
| 3908 | @$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x |
| 3909 | |
| 3910 | #======================================================================== |
| 3911 | # SH3 (SuperH) |
| 3912 | #======================================================================== |
| 3913 | |
| 3914 | ######################################################################### |
| 3915 | ## sh2 (Renesas SuperH) |
| 3916 | ######################################################################### |
| 3917 | rsk7203_config: unconfig |
| 3918 | @mkdir -p $(obj)include |
| 3919 | @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h |
| 3920 | @$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas |
| 3921 | |
| 3922 | ######################################################################### |
| 3923 | ## sh3 (Renesas SuperH) |
| 3924 | ######################################################################### |
| 3925 | |
| 3926 | mpr2_config: unconfig |
| 3927 | @mkdir -p $(obj)include |
| 3928 | @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h |
| 3929 | @$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2 |
| 3930 | |
| 3931 | ms7720se_config: unconfig |
| 3932 | @mkdir -p $(obj)include |
| 3933 | @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h |
| 3934 | @$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se |
| 3935 | |
| 3936 | ######################################################################### |
| 3937 | ## sh4 (Renesas SuperH) |
| 3938 | ######################################################################### |
| 3939 | |
| 3940 | MigoR_config : unconfig |
| 3941 | @mkdir -p $(obj)include |
| 3942 | @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h |
| 3943 | @$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas |
| 3944 | |
| 3945 | ms7750se_config: unconfig |
| 3946 | @mkdir -p $(obj)include |
| 3947 | @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h |
| 3948 | @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se |
| 3949 | |
| 3950 | ms7722se_config : unconfig |
| 3951 | @mkdir -p $(obj)include |
| 3952 | @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h |
| 3953 | @$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se |
| 3954 | |
| 3955 | r2dplus_config : unconfig |
| 3956 | @mkdir -p $(obj)include |
| 3957 | @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h |
| 3958 | @$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas |
| 3959 | |
| 3960 | r7780mp_config: unconfig |
| 3961 | @mkdir -p $(obj)include |
| 3962 | @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h |
| 3963 | @$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas |
| 3964 | |
| 3965 | sh7763rdp_config : unconfig |
| 3966 | @mkdir -p $(obj)include |
| 3967 | @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h |
| 3968 | @$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas |
| 3969 | |
| 3970 | xtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1)) |
| 3971 | sh7785lcr_32bit_config \ |
| 3972 | sh7785lcr_config : unconfig |
| 3973 | @mkdir -p $(obj)include |
| 3974 | @mkdir -p $(obj)board/renesas/sh7785lcr |
| 3975 | @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h |
| 3976 | @if [ "$(findstring 32bit, $@)" ] ; then \ |
| 3977 | echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \ |
| 3978 | echo "TEXT_BASE = 0x8ff80000" > \ |
| 3979 | $(obj)board/renesas/sh7785lcr/config.tmp ; \ |
| 3980 | $(XECHO) " ... enable 32-Bit Address Extended Mode" ; \ |
| 3981 | fi |
| 3982 | @$(MKCONFIG) -a $(call xtract_sh7785lcr,$@) sh sh4 sh7785lcr renesas |
| 3983 | |
| 3984 | ap325rxa_config : unconfig |
| 3985 | @mkdir -p $(obj)include |
| 3986 | @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h |
| 3987 | @$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas |
| 3988 | |
| 3989 | espt_config : unconfig |
| 3990 | @mkdir -p $(obj)include |
| 3991 | @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h |
| 3992 | @$(MKCONFIG) -a $(@:_config=) sh sh4 espt |
| 3993 | |
| 3994 | #======================================================================== |
| 3995 | # SPARC |
| 3996 | #======================================================================== |
| 3997 | |
| 3998 | ######################################################################### |
| 3999 | ## LEON3 |
| 4000 | ######################################################################### |
| 4001 | |
| 4002 | # Gaisler GR-XC3S-1500 board |
| 4003 | gr_xc3s_1500_config : unconfig |
| 4004 | @$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler |
| 4005 | |
| 4006 | # Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system |
| 4007 | gr_cpci_ax2000_config : unconfig |
| 4008 | @$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler |
| 4009 | |
| 4010 | # Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS |
| 4011 | # Development board Stratix II edition, FPGA Device EP2S60. |
| 4012 | gr_ep2s60_config: unconfig |
| 4013 | @$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler |
| 4014 | |
| 4015 | # Gaisler LEON3 GRSIM simulator |
| 4016 | grsim_config : unconfig |
| 4017 | @$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler |
| 4018 | |
| 4019 | ######################################################################### |
| 4020 | ## LEON2 |
| 4021 | ######################################################################### |
| 4022 | |
| 4023 | # Gaisler LEON2 GRSIM simulator |
| 4024 | grsim_leon2_config : unconfig |
| 4025 | @$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler |
| 4026 | |
| 4027 | ######################################################################### |
| 4028 | ######################################################################### |
| 4029 | ######################################################################### |
| 4030 | |
| 4031 | clean: |
| 4032 | @rm -f $(obj)examples/standalone/82559_eeprom \ |
| 4033 | $(obj)examples/standalone/eepro100_eeprom \ |
| 4034 | $(obj)examples/standalone/hello_world \ |
| 4035 | $(obj)examples/standalone/interrupt \ |
| 4036 | $(obj)examples/standalone/mem_to_mem_idma2intr \ |
| 4037 | $(obj)examples/standalone/sched \ |
| 4038 | $(obj)examples/standalone/smc91111_eeprom \ |
| 4039 | $(obj)examples/standalone/test_burst \ |
| 4040 | $(obj)examples/standalone/timer |
| 4041 | @rm -f $(obj)examples/api/demo{,.bin} |
| 4042 | @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 4043 | $(obj)tools/env/{fw_printenv,fw_setenv} \ |
| 4044 | $(obj)tools/envcrc \ |
| 4045 | $(obj)tools/doimage \ |
Ke Dong | 0e9e0c9 | 2012-09-11 00:12:54 -0700 | [diff] [blame] | 4046 | $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ |
| 4047 | $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ |
| 4048 | $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ |
| 4049 | $(obj)tools/ncb $(obj)tools/ubsha1 |
| 4050 | @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ |
| 4051 | $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ |
| 4052 | $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ |
| 4053 | $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ |
| 4054 | $(obj)lib_blackfin/u-boot.lds \ |
| 4055 | $(obj)u-boot.lds \ |
| 4056 | $(obj)cpu/blackfin/bootrom-asm-offsets.[chs] |
| 4057 | @rm -f $(obj)include/bmp_logo.h |
| 4058 | @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map} |
| 4059 | @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map} |
| 4060 | @rm -f $(obj)onenand_ipl/u-boot.lds |
| 4061 | @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE) |
| 4062 | @find $(OBJTREE) -type f \ |
| 4063 | \( -name 'core' -o -name '*.bak' -o -name '*~' \ |
| 4064 | -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ |
| 4065 | | xargs rm -f |
| 4066 | |
| 4067 | clobber: clean |
| 4068 | @find $(OBJTREE) -type f \( -name .depend \ |
| 4069 | -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ |
| 4070 | -print0 \ |
| 4071 | | xargs -0 rm -f |
| 4072 | @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ |
| 4073 | $(obj)cscope.* $(obj)*.*~ |
| 4074 | @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL) |
| 4075 | @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes} |
Ke Dong | 286f514 | 2012-09-11 00:15:54 -0700 | [diff] [blame] | 4076 | @rm -f u-boot-${MV_OUTPUT} |
Ke Dong | 0e9e0c9 | 2012-09-11 00:12:54 -0700 | [diff] [blame] | 4077 | @rm -f $(obj)cpu/mpc824x/bedbug_603e.c |
| 4078 | @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm |
| 4079 | @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f |
| 4080 | @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f |
| 4081 | |
| 4082 | ifeq ($(OBJTREE),$(SRCTREE)) |
| 4083 | mrproper \ |
| 4084 | distclean: clobber unconfig |
| 4085 | else |
| 4086 | mrproper \ |
| 4087 | distclean: clobber unconfig |
| 4088 | rm -rf $(obj)* |
| 4089 | endif |
| 4090 | |
| 4091 | backup: |
| 4092 | F=`basename $(TOPDIR)` ; cd .. ; \ |
| 4093 | gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F |
| 4094 | |
| 4095 | ######################################################################### |