]>
Commit | Line | Data |
---|---|---|
7ebf7443 | 1 | # |
b1af6f53 | 2 | # (C) Copyright 2000-2011 |
7ebf7443 WD |
3 | # Wolfgang Denk, DENX Software Engineering, [email protected]. |
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 | |
45a212c4 | 10 | # published by the Free Software Foundatio; either version 2 of |
7ebf7443 WD |
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 | |
f9301e1c | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
7ebf7443 WD |
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 | ||
42d44f63 | 24 | VERSION = 2011 |
7a82c208 | 25 | PATCHLEVEL = 06 |
8b9e4787 | 26 | SUBLEVEL = |
b1af6f53 | 27 | EXTRAVERSION = |
8b9e4787 | 28 | ifneq "$(SUBLEVEL)" "" |
881a87ec | 29 | U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) |
8b9e4787 WD |
30 | else |
31 | U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION) | |
32 | endif | |
561858ee | 33 | TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h |
f9328639 | 34 | VERSION_FILE = $(obj)include/version_autogenerated.h |
881a87ec | 35 | |
7ebf7443 | 36 | HOSTARCH := $(shell uname -m | \ |
fea25720 | 37 | sed -e s/i.86/x86/ \ |
7ebf7443 WD |
38 | -e s/sun4u/sparc64/ \ |
39 | -e s/arm.*/arm/ \ | |
40 | -e s/sa110/arm/ \ | |
d0179083 KG |
41 | -e s/ppc64/powerpc/ \ |
42 | -e s/ppc/powerpc/ \ | |
8d1f6355 NI |
43 | -e s/macppc/powerpc/\ |
44 | -e s/sh.*/sh/) | |
7ebf7443 | 45 | |
f9d77ed3 | 46 | HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ |
7ebf7443 WD |
47 | sed -e 's/\(cygwin\).*/cygwin/') |
48 | ||
cf7a7b99 PT |
49 | # Set shell to bash if possible, otherwise fall back to sh |
50 | SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ | |
51 | else if [ -x /bin/bash ]; then echo /bin/bash; \ | |
52 | else echo sh; fi; fi) | |
53 | ||
54 | export HOSTARCH HOSTOS SHELL | |
7ebf7443 WD |
55 | |
56 | # Deal with colliding definitions from tcsh etc. | |
57 | VENDOR= | |
58 | ||
ae6d1056 WD |
59 | ######################################################################### |
60 | # Allow for silent builds | |
61 | ifeq (,$(findstring s,$(MAKEFLAGS))) | |
62 | XECHO = echo | |
63 | else | |
64 | XECHO = : | |
65 | endif | |
66 | ||
7ebf7443 | 67 | ######################################################################### |
f9328639 MB |
68 | # |
69 | # U-boot build supports producing a object files to the separate external | |
70 | # directory. Two use cases are supported: | |
887e2ec9 | 71 | # |
f9328639 MB |
72 | # 1) Add O= to the make command line |
73 | # 'make O=/tmp/build all' | |
74 | # | |
75 | # 2) Set environement variable BUILD_DIR to point to the desired location | |
76 | # 'export BUILD_DIR=/tmp/build' | |
77 | # 'make' | |
78 | # | |
79 | # The second approach can also be used with a MAKEALL script | |
80 | # 'export BUILD_DIR=/tmp/build' | |
81 | # './MAKEALL' | |
887e2ec9 | 82 | # |
f9328639 | 83 | # Command line 'O=' setting overrides BUILD_DIR environent variable. |
887e2ec9 | 84 | # |
f9328639 MB |
85 | # When none of the above methods is used the local build is performed and |
86 | # the object files are placed in the source directory. | |
887e2ec9 | 87 | # |
f9328639 MB |
88 | |
89 | ifdef O | |
90 | ifeq ("$(origin O)", "command line") | |
91 | BUILD_DIR := $(O) | |
92 | endif | |
93 | endif | |
94 | ||
95 | ifneq ($(BUILD_DIR),) | |
96 | saved-output := $(BUILD_DIR) | |
4f0645eb MB |
97 | |
98 | # Attempt to create a output directory. | |
99 | $(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}) | |
100 | ||
a73c8dbb | 101 | # Verify if it was successful. |
f9328639 MB |
102 | BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd) |
103 | $(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist)) | |
104 | endif # ifneq ($(BUILD_DIR),) | |
105 | ||
106 | OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR)) | |
c8f9c302 | 107 | SPLTREE := $(OBJTREE)/spl |
f9328639 MB |
108 | SRCTREE := $(CURDIR) |
109 | TOPDIR := $(SRCTREE) | |
110 | LNDIR := $(OBJTREE) | |
c8f9c302 | 111 | export TOPDIR SRCTREE OBJTREE SPLTREE |
f9328639 MB |
112 | |
113 | MKCONFIG := $(SRCTREE)/mkconfig | |
114 | export MKCONFIG | |
7ebf7443 | 115 | |
f9328639 | 116 | ifneq ($(OBJTREE),$(SRCTREE)) |
dd520bf3 | 117 | REMOTE_BUILD := 1 |
f9328639 MB |
118 | export REMOTE_BUILD |
119 | endif | |
120 | ||
121 | # $(obj) and (src) are defined in config.mk but here in main Makefile | |
122 | # we also need them before config.mk is included which is the case for | |
123 | # some targets like unconfig, clean, clobber, distclean, etc. | |
124 | ifneq ($(OBJTREE),$(SRCTREE)) | |
125 | obj := $(OBJTREE)/ | |
126 | src := $(SRCTREE)/ | |
127 | else | |
128 | obj := | |
129 | src := | |
887e2ec9 | 130 | endif |
f9328639 MB |
131 | export obj src |
132 | ||
5013c09f WD |
133 | # Make sure CDPATH settings don't interfere |
134 | unexport CDPATH | |
135 | ||
7ebf7443 WD |
136 | ######################################################################### |
137 | ||
6d1ce387 MF |
138 | # The "tools" are needed early, so put this first |
139 | # Don't include stuff already done in $(LIBS) | |
140 | SUBDIRS = tools \ | |
1bc15386 | 141 | examples/standalone \ |
d4abc757 | 142 | examples/api |
6d1ce387 | 143 | |
28abd48f | 144 | .PHONY : $(SUBDIRS) $(VERSION_FILE) |
6d1ce387 | 145 | |
ae6d1056 | 146 | ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) |
7ebf7443 | 147 | |
2632c008 MF |
148 | # Include autoconf.mk before config.mk so that the config options are available |
149 | # to all top level build files. We need the dummy all: target to prevent the | |
150 | # dependency target in autoconf.mk.dep from being the default. | |
151 | all: | |
152 | sinclude $(obj)include/autoconf.mk.dep | |
153 | sinclude $(obj)include/autoconf.mk | |
154 | ||
7ebf7443 | 155 | # load ARCH, BOARD, and CPU configuration |
ae6d1056 | 156 | include $(obj)include/config.mk |
1d9f4105 | 157 | export ARCH CPU BOARD VENDOR SOC |
f9328639 | 158 | |
1ea6bcd8 | 159 | # set default to nothing for native builds |
a5284efd | 160 | ifeq ($(HOSTARCH),$(ARCH)) |
1ea6bcd8 | 161 | CROSS_COMPILE ?= |
5c952cf0 | 162 | endif |
7ebf7443 | 163 | |
92b197f0 WD |
164 | # load other configuration |
165 | include $(TOPDIR)/config.mk | |
166 | ||
d51dfff7 IY |
167 | # If board code explicitly specified LDSCRIPT or CONFIG_SYS_LDSCRIPT, use |
168 | # that (or fail if absent). Otherwise, search for a linker script in a | |
169 | # standard location. | |
170 | ||
171 | ifndef LDSCRIPT | |
172 | #LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds.debug | |
173 | ifdef CONFIG_SYS_LDSCRIPT | |
174 | # need to strip off double quotes | |
175 | LDSCRIPT := $(subst ",,$(CONFIG_SYS_LDSCRIPT)) | |
176 | endif | |
177 | endif | |
178 | ||
179 | ifndef LDSCRIPT | |
180 | ifeq ($(CONFIG_NAND_U_BOOT),y) | |
181 | LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds | |
182 | ifeq ($(wildcard $(LDSCRIPT)),) | |
183 | LDSCRIPT := $(TOPDIR)/$(CPUDIR)/u-boot-nand.lds | |
184 | endif | |
185 | endif | |
186 | ifeq ($(wildcard $(LDSCRIPT)),) | |
187 | LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds | |
188 | endif | |
189 | ifeq ($(wildcard $(LDSCRIPT)),) | |
190 | LDSCRIPT := $(TOPDIR)/$(CPUDIR)/u-boot.lds | |
191 | endif | |
192 | ifeq ($(wildcard $(LDSCRIPT)),) | |
193 | $(error could not find linker script) | |
194 | endif | |
195 | endif | |
196 | ||
7ebf7443 WD |
197 | ######################################################################### |
198 | # U-Boot objects....order is important (i.e. start must be first) | |
199 | ||
03b7004d | 200 | OBJS = $(CPUDIR)/start.o |
fea25720 | 201 | ifeq ($(CPU),x86) |
03b7004d PT |
202 | OBJS += $(CPUDIR)/start16.o |
203 | OBJS += $(CPUDIR)/resetvec.o | |
2262cfee | 204 | endif |
7ebf7443 | 205 | ifeq ($(CPU),ppc4xx) |
03b7004d | 206 | OBJS += $(CPUDIR)/resetvec.o |
7ebf7443 | 207 | endif |
42d1f039 | 208 | ifeq ($(CPU),mpc85xx) |
03b7004d | 209 | OBJS += $(CPUDIR)/resetvec.o |
42d1f039 | 210 | endif |
7ebf7443 | 211 | |
f9328639 MB |
212 | OBJS := $(addprefix $(obj),$(OBJS)) |
213 | ||
6d8962e8 SC |
214 | LIBS = lib/libgeneric.o |
215 | LIBS += lib/lzma/liblzma.o | |
216 | LIBS += lib/lzo/liblzo.o | |
e89516f0 | 217 | LIBS += lib/zlib/libz.o |
7608d75f | 218 | LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \ |
6d8962e8 SC |
219 | "board/$(VENDOR)/common/lib$(VENDOR).o"; fi) |
220 | LIBS += $(CPUDIR)/lib$(CPU).o | |
1d9f4105 | 221 | ifdef SOC |
6d8962e8 | 222 | LIBS += $(CPUDIR)/$(SOC)/lib$(SOC).o |
1d9f4105 | 223 | endif |
323bfa8f | 224 | ifeq ($(CPU),ixp) |
6d8962e8 | 225 | LIBS += arch/arm/cpu/ixp/npe/libnpe.o |
323bfa8f | 226 | endif |
6d8962e8 SC |
227 | LIBS += arch/$(ARCH)/lib/lib$(ARCH).o |
228 | LIBS += fs/cramfs/libcramfs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o \ | |
229 | fs/reiserfs/libreiserfs.o fs/ext2/libext2fs.o fs/yaffs2/libyaffs2.o \ | |
230 | fs/ubifs/libubifs.o | |
231 | LIBS += net/libnet.o | |
232 | LIBS += disk/libdisk.o | |
233 | LIBS += drivers/bios_emulator/libatibiosemu.o | |
234 | LIBS += drivers/block/libblock.o | |
235 | LIBS += drivers/dma/libdma.o | |
236 | LIBS += drivers/fpga/libfpga.o | |
237 | LIBS += drivers/gpio/libgpio.o | |
238 | LIBS += drivers/hwmon/libhwmon.o | |
239 | LIBS += drivers/i2c/libi2c.o | |
240 | LIBS += drivers/input/libinput.o | |
241 | LIBS += drivers/misc/libmisc.o | |
242 | LIBS += drivers/mmc/libmmc.o | |
243 | LIBS += drivers/mtd/libmtd.o | |
244 | LIBS += drivers/mtd/nand/libnand.o | |
245 | LIBS += drivers/mtd/onenand/libonenand.o | |
246 | LIBS += drivers/mtd/ubi/libubi.o | |
247 | LIBS += drivers/mtd/spi/libspi_flash.o | |
248 | LIBS += drivers/net/libnet.o | |
249 | LIBS += drivers/net/phy/libphy.o | |
250 | LIBS += drivers/pci/libpci.o | |
251 | LIBS += drivers/pcmcia/libpcmcia.o | |
252 | LIBS += drivers/power/libpower.o | |
253 | LIBS += drivers/spi/libspi.o | |
7737d5c6 | 254 | ifeq ($(CPU),mpc83xx) |
6d8962e8 SC |
255 | LIBS += drivers/qe/libqe.o |
256 | LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.o | |
7737d5c6 | 257 | endif |
da9d4610 | 258 | ifeq ($(CPU),mpc85xx) |
6d8962e8 SC |
259 | LIBS += drivers/qe/libqe.o |
260 | LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.o | |
261 | LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.o | |
58e5e9af KG |
262 | endif |
263 | ifeq ($(CPU),mpc86xx) | |
6d8962e8 SC |
264 | LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.o |
265 | LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.o | |
da9d4610 | 266 | endif |
6d8962e8 SC |
267 | LIBS += drivers/rtc/librtc.o |
268 | LIBS += drivers/serial/libserial.o | |
269 | LIBS += drivers/twserial/libtws.o | |
181f565c | 270 | LIBS += drivers/usb/eth/libusb_eth.o |
6d8962e8 SC |
271 | LIBS += drivers/usb/gadget/libusb_gadget.o |
272 | LIBS += drivers/usb/host/libusb_host.o | |
273 | LIBS += drivers/usb/musb/libusb_musb.o | |
274 | LIBS += drivers/usb/phy/libusb_phy.o | |
275 | LIBS += drivers/video/libvideo.o | |
276 | LIBS += drivers/watchdog/libwatchdog.o | |
277 | LIBS += common/libcommon.o | |
278 | LIBS += lib/libfdt/libfdt.o | |
279 | LIBS += api/libapi.o | |
280 | LIBS += post/libpost.o | |
f9328639 | 281 | |
d34efc76 | 282 | ifeq ($(SOC),omap3) |
6d8962e8 | 283 | LIBS += $(CPUDIR)/omap-common/libomap-common.o |
d34efc76 SS |
284 | endif |
285 | ifeq ($(SOC),omap4) | |
6d8962e8 | 286 | LIBS += $(CPUDIR)/omap-common/libomap-common.o |
d34efc76 SS |
287 | endif |
288 | ||
852bd07c | 289 | ifeq ($(SOC),s5pc1xx) |
6d8962e8 | 290 | LIBS += $(CPUDIR)/s5p-common/libs5p-common.o |
852bd07c MK |
291 | endif |
292 | ifeq ($(SOC),s5pc2xx) | |
6d8962e8 | 293 | LIBS += $(CPUDIR)/s5p-common/libs5p-common.o |
852bd07c MK |
294 | endif |
295 | ||
566d49a3 | 296 | LIBS := $(addprefix $(obj),$(sort $(LIBS))) |
28abd48f | 297 | .PHONY : $(LIBS) $(TIMESTAMP_FILE) |
a8c7c708 | 298 | |
6d8962e8 | 299 | LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).o |
de109d90 WD |
300 | LIBBOARD := $(addprefix $(obj),$(LIBBOARD)) |
301 | ||
4f7cb08e | 302 | # Add GCC lib |
52b1bf2c WD |
303 | ifdef USE_PRIVATE_LIBGCC |
304 | ifeq ("$(USE_PRIVATE_LIBGCC)", "yes") | |
635d1b3e | 305 | PLATFORM_LIBGCC = $(OBJTREE)/arch/$(ARCH)/lib/libgcc.o |
52b1bf2c WD |
306 | else |
307 | PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc | |
308 | endif | |
309 | else | |
310 | PLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc | |
311 | endif | |
312 | PLATFORM_LIBS += $(PLATFORM_LIBGCC) | |
313 | export PLATFORM_LIBS | |
3d3befa7 | 314 | |
6ac9f479 MF |
315 | # Special flags for CPP when processing the linker script. |
316 | # Pass the version down so we can handle backwards compatibility | |
317 | # on the fly. | |
318 | LDPPFLAGS += \ | |
319 | -include $(TOPDIR)/include/u-boot/u-boot.lds.h \ | |
320 | $(shell $(LD) --version | \ | |
321 | sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p') | |
322 | ||
f9328639 | 323 | __OBJS := $(subst $(obj),,$(OBJS)) |
de109d90 | 324 | __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD)) |
f9328639 | 325 | |
bdccc4fe | 326 | ######################################################################### |
7ebf7443 WD |
327 | ######################################################################### |
328 | ||
f3a14d37 MF |
329 | ifneq ($(CONFIG_BOARD_SIZE_LIMIT),) |
330 | BOARD_SIZE_CHECK = \ | |
331 | @actual=`wc -c $@ | awk '{print $$1}'`; \ | |
332 | limit=$(CONFIG_BOARD_SIZE_LIMIT); \ | |
333 | if test $$actual -gt $$limit; then \ | |
334 | echo "$@ exceeds file size limit:"; \ | |
335 | echo " limit: $$limit bytes"; \ | |
336 | echo " actual: $$actual bytes"; \ | |
337 | echo " excess: $$((actual - limit)) bytes"; \ | |
338 | exit 1; \ | |
339 | fi | |
340 | else | |
341 | BOARD_SIZE_CHECK = | |
342 | endif | |
343 | ||
3e88337b | 344 | # Always append ALL so that arch config.mk's can add custom ones |
4e0fbb98 | 345 | ALL-y += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map |
e935a374 | 346 | |
4e0fbb98 DS |
347 | ALL-$(CONFIG_NAND_U_BOOT) += $(obj)u-boot-nand.bin |
348 | ALL-$(CONFIG_ONENAND_U_BOOT) += $(obj)u-boot-onenand.bin | |
e935a374 | 349 | ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin |
4e0fbb98 | 350 | ALL-$(CONFIG_MMC_U_BOOT) += $(obj)mmc_spl/u-boot-mmc-spl.bin |
5df2ee27 | 351 | ALL-$(CONFIG_SPL) += $(obj)spl/u-boot-spl.bin |
0d3c62e4 | 352 | |
4e0fbb98 | 353 | all: $(ALL-y) |
7ebf7443 | 354 | |
f9328639 | 355 | $(obj)u-boot.hex: $(obj)u-boot |
6310eb9d WD |
356 | $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ |
357 | ||
f9328639 | 358 | $(obj)u-boot.srec: $(obj)u-boot |
0817d688 | 359 | $(OBJCOPY) -O srec $< $@ |
7ebf7443 | 360 | |
f9328639 | 361 | $(obj)u-boot.bin: $(obj)u-boot |
7ebf7443 | 362 | $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ |
f3a14d37 | 363 | $(BOARD_SIZE_CHECK) |
7ebf7443 | 364 | |
94a91e24 | 365 | $(obj)u-boot.ldr: $(obj)u-boot |
76d82187 | 366 | $(CREATE_LDR_ENV) |
68e56324 | 367 | $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS) |
f3a14d37 | 368 | $(BOARD_SIZE_CHECK) |
94a91e24 MF |
369 | |
370 | $(obj)u-boot.ldr.hex: $(obj)u-boot.ldr | |
371 | $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary | |
372 | ||
373 | $(obj)u-boot.ldr.srec: $(obj)u-boot.ldr | |
374 | $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary | |
375 | ||
f9328639 | 376 | $(obj)u-boot.img: $(obj)u-boot.bin |
a2a0a717 | 377 | $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \ |
14d0a02a | 378 | -a $(CONFIG_SYS_TEXT_BASE) -e 0 \ |
881a87ec | 379 | -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \ |
bdccc4fe WD |
380 | sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ |
381 | -d $< $@ | |
382 | ||
8edcde5e | 383 | $(obj)u-boot.imx: $(obj)u-boot.bin |
45d7d72b | 384 | $(obj)tools/mkimage -n $(CONFIG_IMX_CONFIG) -T imximage \ |
14d0a02a | 385 | -e $(CONFIG_SYS_TEXT_BASE) -d $< $@ |
8edcde5e | 386 | |
aa0c7a86 | 387 | $(obj)u-boot.kwb: $(obj)u-boot.bin |
31d80c77 | 388 | $(obj)tools/mkimage -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \ |
2ea88b06 | 389 | -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -d $< $@ |
aa0c7a86 | 390 | |
566a494f | 391 | $(obj)u-boot.sha1: $(obj)u-boot.bin |
01159530 | 392 | $(obj)tools/ubsha1 $(obj)u-boot.bin |
566a494f | 393 | |
f9328639 | 394 | $(obj)u-boot.dis: $(obj)u-boot |
7ebf7443 WD |
395 | $(OBJDUMP) -d $< > $@ |
396 | ||
ecb1dc89 | 397 | GEN_UBOOT = \ |
de109d90 WD |
398 | UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ |
399 | sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ | |
8aba9dce | 400 | cd $(LNDIR) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) $$UNDEF_SYM $(__OBJS) \ |
f9328639 | 401 | --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ |
b2184c31 | 402 | -Map u-boot.map -o u-boot |
16a354f9 WD |
403 | $(obj)u-boot: depend \ |
404 | $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds | |
ecb1dc89 MF |
405 | $(GEN_UBOOT) |
406 | ifeq ($(CONFIG_KALLSYMS),y) | |
1aada9cd WD |
407 | smap=`$(call SYSTEM_MAP,u-boot) | \ |
408 | awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \ | |
409 | $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \ | |
410 | -c common/system_map.c -o $(obj)common/system_map.o | |
ecb1dc89 MF |
411 | $(GEN_UBOOT) $(obj)common/system_map.o |
412 | endif | |
7ebf7443 | 413 | |
d0d6144e | 414 | $(OBJS): depend |
03b7004d | 415 | $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@)) |
f9328639 | 416 | |
d0d6144e | 417 | $(LIBS): depend $(SUBDIRS) |
f9328639 | 418 | $(MAKE) -C $(dir $(subst $(obj),,$@)) |
a8c7c708 | 419 | |
d0d6144e | 420 | $(LIBBOARD): depend $(LIBS) |
de109d90 WD |
421 | $(MAKE) -C $(dir $(subst $(obj),,$@)) |
422 | ||
d0d6144e | 423 | $(SUBDIRS): depend |
b028f715 | 424 | $(MAKE) -C $@ all |
7ebf7443 | 425 | |
d0d6144e | 426 | $(LDSCRIPT): depend |
f65c9812 MF |
427 | $(MAKE) -C $(dir $@) $(notdir $@) |
428 | ||
1aada9cd WD |
429 | $(obj)u-boot.lds: $(LDSCRIPT) |
430 | $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@ | |
431 | ||
e935a374 | 432 | nand_spl: $(TIMESTAMP_FILE) $(VERSION_FILE) depend |
8318fbf8 | 433 | $(MAKE) -C nand_spl/board/$(BOARDDIR) all |
887e2ec9 | 434 | |
e935a374 | 435 | $(obj)u-boot-nand.bin: nand_spl $(obj)u-boot.bin |
8318fbf8 | 436 | cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin |
887e2ec9 | 437 | |
e935a374 | 438 | onenand_ipl: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk |
f2302d44 | 439 | $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all |
751b9b51 | 440 | |
e935a374 | 441 | $(obj)u-boot-onenand.bin: onenand_ipl $(obj)u-boot.bin |
ca6189db | 442 | cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin |
751b9b51 | 443 | |
0d3c62e4 CK |
444 | mmc_spl: $(TIMESTAMP_FILE) $(VERSION_FILE) depend |
445 | $(MAKE) -C mmc_spl/board/$(BOARDDIR) all | |
446 | ||
447 | $(obj)mmc_spl/u-boot-mmc-spl.bin: mmc_spl | |
448 | ||
5df2ee27 DS |
449 | $(obj)spl/u-boot-spl.bin: depend |
450 | $(MAKE) -C spl all | |
451 | ||
561858ee | 452 | $(TIMESTAMP_FILE): |
d6b93714 IY |
453 | @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@ |
454 | @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@ | |
561858ee | 455 | |
f9328639 | 456 | updater: |
0358df42 | 457 | $(MAKE) -C tools/updater all |
8f713fdf | 458 | |
2a998793 DH |
459 | # Explicitly make _depend in subdirs containing multiple targets to prevent |
460 | # parallel sub-makes creating .depend files simultaneously. | |
16a354f9 WD |
461 | depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) \ |
462 | $(obj)include/autoconf.mk \ | |
463 | $(obj)include/generated/generic-asm-offsets.h | |
03b7004d | 464 | for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \ |
2a998793 | 465 | $(MAKE) -C $$dir _depend ; done |
7ebf7443 | 466 | |
e5e4e705 LY |
467 | TAG_SUBDIRS = $(SUBDIRS) |
468 | TAG_SUBDIRS += $(dir $(__LIBS)) | |
a340c325 | 469 | TAG_SUBDIRS += include |
a340c325 | 470 | |
f9328639 | 471 | tags ctags: |
e5e4e705 LY |
472 | ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \ |
473 | -name '*.[chS]' -print` | |
7ebf7443 WD |
474 | |
475 | etags: | |
e5e4e705 LY |
476 | etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \ |
477 | -name '*.[chS]' -print` | |
ffda586f | 478 | cscope: |
e5e4e705 | 479 | find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files |
ffda586f | 480 | cscope -b -q -k |
7ebf7443 | 481 | |
ecb1dc89 MF |
482 | SYSTEM_MAP = \ |
483 | $(NM) $1 | \ | |
7ebf7443 | 484 | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ |
ecb1dc89 MF |
485 | LC_ALL=C sort |
486 | $(obj)System.map: $(obj)u-boot | |
487 | @$(call SYSTEM_MAP,$<) > $(obj)System.map | |
7ebf7443 | 488 | |
2f155f6c GL |
489 | # |
490 | # Auto-generate the autoconf.mk file (which is included by all makefiles) | |
491 | # | |
492 | # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. | |
493 | # the dep file is only include in this top level makefile to determine when | |
494 | # to regenerate the autoconf.mk file. | |
1510b82d WD |
495 | $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h |
496 | @$(XECHO) Generating $@ ; \ | |
16fe7775 | 497 | set -e ; \ |
ae6d1056 | 498 | : Generate the dependancies ; \ |
9aef7388 | 499 | $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \ |
1510b82d WD |
500 | -MQ $(obj)include/autoconf.mk include/common.h > $@ |
501 | ||
502 | $(obj)include/autoconf.mk: $(obj)include/config.h | |
503 | @$(XECHO) Generating $@ ; \ | |
504 | set -e ; \ | |
ae6d1056 | 505 | : Extract the config macros ; \ |
1510b82d | 506 | $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \ |
4a0f7538 WD |
507 | sed -n -f tools/scripts/define2mk.sed > [email protected] && \ |
508 | mv [email protected] $@ | |
2f155f6c | 509 | |
16a354f9 WD |
510 | $(obj)include/generated/generic-asm-offsets.h: $(obj)include/autoconf.mk.dep \ |
511 | $(obj)lib/asm-offsets.s | |
512 | @$(XECHO) Generating $@ | |
513 | tools/scripts/make-asm-offsets $(obj)lib/asm-offsets.s $@ | |
514 | ||
515 | $(obj)lib/asm-offsets.s: $(obj)include/autoconf.mk.dep \ | |
516 | $(src)lib/asm-offsets.c | |
517 | @mkdir -p $(obj)lib | |
518 | $(CC) -DDO_DEPS_ONLY \ | |
519 | $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ | |
520 | -o $@ $(src)lib/asm-offsets.c -c -S | |
521 | ||
7ebf7443 | 522 | ######################################################################### |
ae6d1056 | 523 | else # !config.mk |
f9328639 MB |
524 | all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ |
525 | $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ | |
28abd48f | 526 | $(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) \ |
0358df42 | 527 | updater depend dep tags ctags etags cscope $(obj)System.map: |
7ebf7443 WD |
528 | @echo "System not configured - see README" >&2 |
529 | @ exit 1 | |
c7c0d542 | 530 | |
28abd48f | 531 | tools: $(VERSION_FILE) |
0358df42 | 532 | $(MAKE) -C $@ all |
ae6d1056 | 533 | endif # config.mk |
7ebf7443 | 534 | |
28abd48f IY |
535 | $(VERSION_FILE): |
536 | @( localvers='$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ; \ | |
537 | printf '#define PLAIN_VERSION "%s%s"\n' \ | |
538 | "$(U_BOOT_VERSION)" "$${localvers}" ; \ | |
539 | printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' \ | |
540 | "$(U_BOOT_VERSION)" "$${localvers}" ; \ | |
541 | ) > [email protected] | |
542 | @( printf '#define CC_VERSION_STRING "%s"\n' \ | |
543 | '$(shell $(CC) --version | head -n 1)' )>> [email protected] | |
544 | @( printf '#define LD_VERSION_STRING "%s"\n' \ | |
545 | '$(shell $(LD) -v | head -n 1)' )>> [email protected] | |
546 | @cmp -s $@ [email protected] && rm -f [email protected] || mv -f [email protected] $@ | |
547 | ||
0358df42 MF |
548 | easylogo env gdb: |
549 | $(MAKE) -C tools/$@ all MTD_VERSION=${MTD_VERSION} | |
550 | gdbtools: gdb | |
551 | ||
28abd48f | 552 | tools-all: easylogo env gdb $(VERSION_FILE) |
0358df42 MF |
553 | $(MAKE) -C tools HOST_TOOLS_ALL=y |
554 | ||
4e53a258 WD |
555 | .PHONY : CHANGELOG |
556 | CHANGELOG: | |
b985b5d6 BW |
557 | git log --no-merges U-Boot-1_1_5.. | \ |
558 | unexpand -a | sed -e 's/\s\s*$$//' > $@ | |
4e53a258 | 559 | |
0a823aa2 | 560 | include/license.h: tools/bin2header COPYING |
0e42ada3 | 561 | cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h |
7ebf7443 WD |
562 | ######################################################################### |
563 | ||
564 | unconfig: | |
887e2ec9 | 565 | @rm -f $(obj)include/config.h $(obj)include/config.mk \ |
2f155f6c GL |
566 | $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \ |
567 | $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep | |
7ebf7443 | 568 | |
a6862bc1 WD |
569 | %_config:: unconfig |
570 | @$(MKCONFIG) -A $(@:_config=) | |
571 | ||
d6a5e6d5 LM |
572 | sinclude $(obj).boards.depend |
573 | $(obj).boards.depend: boards.cfg | |
727ebd9f | 574 | awk '(NF && $$1 !~ /^#/) { print $$1 ": " $$1 "_config; $$(MAKE)" }' $< > $@ |
9f4a4206 | 575 | |
8c994630 WD |
576 | # |
577 | # Functions to generate common board directory names | |
578 | # | |
579 | lcname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\L\1/') | |
580 | ucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/') | |
581 | ||
4e5ca3eb WD |
582 | ######################################################################### |
583 | ## Coldfire | |
584 | ######################################################################### | |
585 | ||
9d79e575 WW |
586 | astro_mcf5373l_config \ |
587 | astro_mcf5373l_RAM_config : unconfig | |
ed7a196c | 588 | @$(MKCONFIG) -n $@ -t $@ astro_mcf5373l m68k mcf532x mcf5373l astro |
9d79e575 | 589 | |
a21d0c2c TL |
590 | M52277EVB_config \ |
591 | M52277EVB_spansion_config \ | |
592 | M52277EVB_stmicro_config : unconfig | |
593 | @case "$@" in \ | |
594 | M52277EVB_config) FLASH=SPANSION;; \ | |
595 | M52277EVB_spansion_config) FLASH=SPANSION;; \ | |
596 | M52277EVB_stmicro_config) FLASH=STMICRO;; \ | |
597 | esac; \ | |
598 | if [ "$${FLASH}" = "SPANSION" ] ; then \ | |
599 | echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \ | |
14d0a02a | 600 | echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \ |
a21d0c2c | 601 | cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \ |
a21d0c2c TL |
602 | fi; \ |
603 | if [ "$${FLASH}" = "STMICRO" ] ; then \ | |
604 | echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ | |
605 | echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ | |
14d0a02a | 606 | echo "CONFIG_SYS_TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \ |
a21d0c2c | 607 | cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \ |
a21d0c2c | 608 | fi |
0e42ada3 | 609 | @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale |
1552af70 | 610 | |
4a442d31 TL |
611 | M5235EVB_config \ |
612 | M5235EVB_Flash16_config \ | |
613 | M5235EVB_Flash32_config: unconfig | |
614 | @case "$@" in \ | |
615 | M5235EVB_config) FLASH=16;; \ | |
616 | M5235EVB_Flash16_config) FLASH=16;; \ | |
617 | M5235EVB_Flash32_config) FLASH=32;; \ | |
618 | esac; \ | |
4a442d31 | 619 | if [ "$${FLASH}" != "16" ] ; then \ |
ae6d1056 | 620 | echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \ |
14d0a02a | 621 | echo "CONFIG_SYS_TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ |
4a442d31 TL |
622 | cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \ |
623 | else \ | |
14d0a02a | 624 | echo "CONFIG_SYS_TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \ |
4a442d31 TL |
625 | cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \ |
626 | fi | |
0e42ada3 | 627 | @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale |
4a442d31 | 628 | |
7481266e | 629 | cobra5272_config : unconfig |
ed7a196c | 630 | @$(MKCONFIG) $@ m68k mcf52x2 cobra5272 |
7481266e | 631 | |
4176c799 | 632 | EB+MCF-EV123_config : unconfig |
f9328639 MB |
633 | @mkdir -p $(obj)include |
634 | @mkdir -p $(obj)board/BuS/EB+MCF-EV123 | |
14d0a02a | 635 | @echo "CONFIG_SYS_TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk |
0e42ada3 | 636 | @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS |
4176c799 WD |
637 | |
638 | EB+MCF-EV123_internal_config : unconfig | |
f9328639 MB |
639 | @mkdir -p $(obj)include |
640 | @mkdir -p $(obj)board/BuS/EB+MCF-EV123 | |
14d0a02a | 641 | @echo "CONFIG_SYS_TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk |
0e42ada3 | 642 | @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS |
4176c799 | 643 | |
8e585f02 TL |
644 | M5329AFEE_config \ |
645 | M5329BFEE_config : unconfig | |
646 | @case "$@" in \ | |
647 | M5329AFEE_config) NAND=0;; \ | |
648 | M5329BFEE_config) NAND=16;; \ | |
649 | esac; \ | |
8e585f02 | 650 | if [ "$${NAND}" != "0" ] ; then \ |
ab77bc54 | 651 | echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ |
8e585f02 | 652 | fi |
0e42ada3 | 653 | @$(MKCONFIG) -n $@ -a M5329EVB m68k mcf532x m5329evb freescale |
8e585f02 | 654 | |
aa5f1f9d TL |
655 | M5373EVB_config : unconfig |
656 | @case "$@" in \ | |
657 | M5373EVB_config) NAND=16;; \ | |
658 | esac; \ | |
aa5f1f9d TL |
659 | if [ "$${NAND}" != "0" ] ; then \ |
660 | echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \ | |
661 | fi | |
662 | @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale | |
663 | ||
05316f8e | 664 | M54451EVB_config \ |
05316f8e TL |
665 | M54451EVB_stmicro_config : unconfig |
666 | @case "$@" in \ | |
709b384b | 667 | M54451EVB_config) FLASH=NOR;; \ |
05316f8e TL |
668 | M54451EVB_stmicro_config) FLASH=STMICRO;; \ |
669 | esac; \ | |
709b384b | 670 | if [ "$${FLASH}" = "NOR" ] ; then \ |
14d0a02a | 671 | echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \ |
05316f8e | 672 | cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \ |
05316f8e TL |
673 | fi; \ |
674 | if [ "$${FLASH}" = "STMICRO" ] ; then \ | |
675 | echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ | |
6d0f6bcf | 676 | echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ |
14d0a02a | 677 | echo "CONFIG_SYS_TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \ |
05316f8e | 678 | cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \ |
05316f8e | 679 | fi; \ |
6d0f6bcf | 680 | echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ; |
0e42ada3 | 681 | @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale |
05316f8e | 682 | |
8ae158cd TL |
683 | M54455EVB_config \ |
684 | M54455EVB_atmel_config \ | |
685 | M54455EVB_intel_config \ | |
686 | M54455EVB_a33_config \ | |
687 | M54455EVB_a66_config \ | |
688 | M54455EVB_i33_config \ | |
9f751551 TL |
689 | M54455EVB_i66_config \ |
690 | M54455EVB_stm33_config : unconfig | |
8ae158cd TL |
691 | @case "$@" in \ |
692 | M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \ | |
693 | M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \ | |
694 | M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \ | |
695 | M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \ | |
696 | M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \ | |
697 | M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \ | |
698 | M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \ | |
9f751551 | 699 | M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \ |
8ae158cd | 700 | esac; \ |
1aaab9bf | 701 | if [ "$${FLASH}" = "INTEL" ] ; then \ |
6d0f6bcf | 702 | echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \ |
14d0a02a | 703 | echo "CONFIG_SYS_TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ |
e8ee8f3a | 704 | cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \ |
9f751551 TL |
705 | fi; \ |
706 | if [ "$${FLASH}" = "ATMEL" ] ; then \ | |
6d0f6bcf | 707 | echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \ |
14d0a02a | 708 | echo "CONFIG_SYS_TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \ |
e8ee8f3a | 709 | cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \ |
8ae158cd | 710 | fi; \ |
9f751551 TL |
711 | if [ "$${FLASH}" = "STMICRO" ] ; then \ |
712 | echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \ | |
6d0f6bcf | 713 | echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \ |
14d0a02a | 714 | echo "CONFIG_SYS_TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \ |
9f751551 | 715 | cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \ |
9f751551 | 716 | fi; \ |
6d0f6bcf | 717 | echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \ |
0e42ada3 | 718 | @$(MKCONFIG) -n $@ -a M54455EVB m68k mcf5445x m54455evb freescale |
8ae158cd | 719 | |
57a12720 TL |
720 | M5475AFE_config \ |
721 | M5475BFE_config \ | |
722 | M5475CFE_config \ | |
723 | M5475DFE_config \ | |
724 | M5475EFE_config \ | |
725 | M5475FFE_config \ | |
726 | M5475GFE_config : unconfig | |
727 | @case "$@" in \ | |
728 | M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ | |
729 | M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ | |
730 | M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ | |
731 | M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ | |
732 | M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ | |
733 | M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ | |
734 | M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ | |
735 | esac; \ | |
6d0f6bcf JCPV |
736 | echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \ |
737 | echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ | |
738 | echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ | |
57a12720 | 739 | if [ "$${RAM1}" != "0" ] ; then \ |
6d0f6bcf | 740 | echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ |
57a12720 TL |
741 | fi; \ |
742 | if [ "$${CODE}" != "0" ] ; then \ | |
6d0f6bcf | 743 | echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ |
57a12720 TL |
744 | fi; \ |
745 | if [ "$${VID}" == "1" ] ; then \ | |
6d0f6bcf | 746 | echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ |
57a12720 TL |
747 | fi; \ |
748 | if [ "$${USB}" == "1" ] ; then \ | |
6d0f6bcf | 749 | echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ |
57a12720 | 750 | fi |
0e42ada3 | 751 | @$(MKCONFIG) -n $@ -a M5475EVB m68k mcf547x_8x m547xevb freescale |
57a12720 TL |
752 | |
753 | M5485AFE_config \ | |
754 | M5485BFE_config \ | |
755 | M5485CFE_config \ | |
756 | M5485DFE_config \ | |
757 | M5485EFE_config \ | |
758 | M5485FFE_config \ | |
759 | M5485GFE_config \ | |
760 | M5485HFE_config : unconfig | |
761 | @case "$@" in \ | |
762 | M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ | |
763 | M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \ | |
764 | M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \ | |
765 | M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \ | |
766 | M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \ | |
767 | M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \ | |
768 | M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \ | |
4d264eff | 769 | M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \ |
57a12720 | 770 | esac; \ |
6d0f6bcf JCPV |
771 | echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \ |
772 | echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \ | |
773 | echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \ | |
57a12720 | 774 | if [ "$${RAM1}" != "0" ] ; then \ |
6d0f6bcf | 775 | echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \ |
57a12720 TL |
776 | fi; \ |
777 | if [ "$${CODE}" != "0" ] ; then \ | |
6d0f6bcf | 778 | echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \ |
57a12720 TL |
779 | fi; \ |
780 | if [ "$${VID}" == "1" ] ; then \ | |
6d0f6bcf | 781 | echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \ |
57a12720 TL |
782 | fi; \ |
783 | if [ "$${USB}" == "1" ] ; then \ | |
6d0f6bcf | 784 | echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \ |
57a12720 | 785 | fi |
0e42ada3 | 786 | @$(MKCONFIG) -n $@ -a M5485EVB m68k mcf547x_8x m548xevb freescale |
57a12720 | 787 | |
7ebf7443 WD |
788 | #======================================================================== |
789 | # ARM | |
790 | #======================================================================== | |
43a5f0df | 791 | |
a4b46ed6 | 792 | ######################################################################### |
34be1065 | 793 | ## ARM926EJ-S Systems |
a4b46ed6 US |
794 | ######################################################################### |
795 | ||
89a7a87f NF |
796 | at91sam9261ek_nandflash_config \ |
797 | at91sam9261ek_dataflash_cs0_config \ | |
798 | at91sam9261ek_dataflash_cs3_config \ | |
5ccc2d99 SG |
799 | at91sam9261ek_config \ |
800 | at91sam9g10ek_nandflash_config \ | |
801 | at91sam9g10ek_dataflash_cs0_config \ | |
802 | at91sam9g10ek_dataflash_cs3_config \ | |
803 | at91sam9g10ek_config : unconfig | |
804 | @mkdir -p $(obj)include | |
805 | @if [ "$(findstring 9g10,$@)" ] ; then \ | |
806 | echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \ | |
5ccc2d99 SG |
807 | else \ |
808 | echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \ | |
809 | fi; | |
89a7a87f NF |
810 | @if [ "$(findstring _nandflash,$@)" ] ; then \ |
811 | echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ | |
5ccc2d99 | 812 | elif [ "$(findstring dataflash_cs0,$@)" ] ; then \ |
89a7a87f | 813 | echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \ |
89a7a87f NF |
814 | else \ |
815 | echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \ | |
89a7a87f | 816 | fi; |
0e42ada3 | 817 | @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91 |
89a7a87f | 818 | |
1b3b7c64 JCPV |
819 | at91sam9263ek_norflash_config \ |
820 | at91sam9263ek_norflash_boot_config \ | |
89a7a87f NF |
821 | at91sam9263ek_nandflash_config \ |
822 | at91sam9263ek_dataflash_config \ | |
823 | at91sam9263ek_dataflash_cs0_config \ | |
28962f5a | 824 | at91sam9263ek_config : unconfig |
e12d9a8f | 825 | @mkdir -p $(obj)include |
89a7a87f NF |
826 | @if [ "$(findstring _nandflash,$@)" ] ; then \ |
827 | echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ | |
1b3b7c64 JCPV |
828 | elif [ "$(findstring norflash,$@)" ] ; then \ |
829 | echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \ | |
89a7a87f NF |
830 | else \ |
831 | echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ | |
89a7a87f | 832 | fi; |
1b3b7c64 JCPV |
833 | @if [ "$(findstring norflash_boot,$@)" ] ; then \ |
834 | echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \ | |
1b3b7c64 | 835 | fi; |
0e42ada3 | 836 | @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91 |
89a7a87f NF |
837 | |
838 | at91sam9rlek_nandflash_config \ | |
839 | at91sam9rlek_dataflash_config \ | |
840 | at91sam9rlek_dataflash_cs0_config \ | |
28962f5a | 841 | at91sam9rlek_config : unconfig |
e12d9a8f | 842 | @mkdir -p $(obj)include |
89a7a87f NF |
843 | @if [ "$(findstring _nandflash,$@)" ] ; then \ |
844 | echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ | |
89a7a87f NF |
845 | else \ |
846 | echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \ | |
89a7a87f | 847 | fi; |
0e42ada3 | 848 | @$(MKCONFIG) -n $@ -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91 |
28962f5a | 849 | |
22ee6473 SG |
850 | at91sam9m10g45ek_nandflash_config \ |
851 | at91sam9m10g45ek_dataflash_config \ | |
852 | at91sam9m10g45ek_dataflash_cs0_config \ | |
853 | at91sam9m10g45ek_config \ | |
854 | at91sam9g45ekes_nandflash_config \ | |
855 | at91sam9g45ekes_dataflash_config \ | |
856 | at91sam9g45ekes_dataflash_cs0_config \ | |
857 | at91sam9g45ekes_config : unconfig | |
858 | @mkdir -p $(obj)include | |
859 | @if [ "$(findstring 9m10,$@)" ] ; then \ | |
860 | echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \ | |
22ee6473 SG |
861 | else \ |
862 | echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \ | |
863 | fi; | |
22ee6473 SG |
864 | @if [ "$(findstring _nandflash,$@)" ] ; then \ |
865 | echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \ | |
22ee6473 SG |
866 | else \ |
867 | echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \ | |
22ee6473 | 868 | fi; |
0e42ada3 | 869 | @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91 |
22ee6473 | 870 | |
b5d289fc AD |
871 | pm9g45_config : unconfig |
872 | @mkdir -p $(obj)include | |
873 | @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91 | |
874 | ||
9453967e AT |
875 | SBC35_A9G20_NANDFLASH_config \ |
876 | SBC35_A9G20_EEPROM_config \ | |
877 | SBC35_A9G20_config : unconfig | |
878 | @mkdir -p $(obj)include | |
879 | @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h | |
0e42ada3 | 880 | @$(MKCONFIG) -n $@ -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91 |
9453967e | 881 | |
2dc851e3 AT |
882 | TNY_A9G20_NANDFLASH_config \ |
883 | TNY_A9G20_EEPROM_config \ | |
884 | TNY_A9G20_config \ | |
885 | TNY_A9260_NANDFLASH_config \ | |
886 | TNY_A9260_EEPROM_config \ | |
887 | TNY_A9260_config : unconfig | |
888 | @mkdir -p $(obj)include | |
889 | @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h | |
0e42ada3 | 890 | @$(MKCONFIG) -n $@ -a tny_a9260 arm arm926ejs tny_a9260 calao at91 |
2dc851e3 | 891 | |
87cb6862 WD |
892 | ######################################################################## |
893 | ## ARM Integrator boards - see doc/README-integrator for more info. | |
894 | integratorap_config \ | |
895 | ap_config \ | |
896 | ap966_config \ | |
897 | ap922_config \ | |
898 | ap922_XA10_config \ | |
899 | ap7_config \ | |
dd520bf3 | 900 | ap720t_config \ |
87cb6862 WD |
901 | ap920t_config \ |
902 | ap926ejs_config \ | |
903 | ap946es_config: unconfig | |
576afd4f | 904 | @board/armltd/integrator/split_by_variant.sh ap $@ |
87cb6862 WD |
905 | |
906 | integratorcp_config \ | |
907 | cp_config \ | |
908 | cp920t_config \ | |
909 | cp926ejs_config \ | |
910 | cp946es_config \ | |
911 | cp1136_config \ | |
912 | cp966_config \ | |
913 | cp922_config \ | |
914 | cp922_XA10_config \ | |
915 | cp1026_config: unconfig | |
576afd4f | 916 | @board/armltd/integrator/split_by_variant.sh cp $@ |
25d6712a | 917 | |
a4b46ed6 US |
918 | xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1)))) |
919 | ||
63e73c9a WD |
920 | omap1610inn_config \ |
921 | omap1610inn_cs0boot_config \ | |
922 | omap1610inn_cs3boot_config \ | |
3ff02c27 | 923 | omap1610inn_cs_autoboot_config \ |
63e73c9a WD |
924 | omap1610h2_config \ |
925 | omap1610h2_cs0boot_config \ | |
3ff02c27 WD |
926 | omap1610h2_cs3boot_config \ |
927 | omap1610h2_cs_autoboot_config: unconfig | |
f9328639 | 928 | @mkdir -p $(obj)include |
63e73c9a | 929 | @if [ "$(findstring _cs0boot_, $@)" ] ; then \ |
cdd917a4 | 930 | echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \ |
3ff02c27 | 931 | elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \ |
cdd917a4 | 932 | echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \ |
63e73c9a | 933 | else \ |
cdd917a4 | 934 | echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ |
63e73c9a | 935 | fi; |
0e42ada3 | 936 | @$(MKCONFIG) -n $@ -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap |
6f21347d | 937 | |
a56bd922 WD |
938 | omap730p2_config \ |
939 | omap730p2_cs0boot_config \ | |
940 | omap730p2_cs3boot_config : unconfig | |
f9328639 | 941 | @mkdir -p $(obj)include |
a56bd922 | 942 | @if [ "$(findstring _cs0boot_, $@)" ] ; then \ |
f9328639 | 943 | echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \ |
a56bd922 | 944 | else \ |
f9328639 | 945 | echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \ |
a56bd922 | 946 | fi; |
ed7a196c | 947 | @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap |
a56bd922 | 948 | |
080cfee7 | 949 | spear300_config \ |
7da69236 VK |
950 | spear310_config \ |
951 | spear320_config : unconfig | |
ed7a196c | 952 | @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear |
7e074158 | 953 | |
566c9c16 | 954 | spear600_config : unconfig |
ed7a196c | 955 | @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear |
566c9c16 | 956 | |
47fd3bff JCPV |
957 | SX1_stdout_serial_config \ |
958 | SX1_config: unconfig | |
959 | @mkdir -p $(obj)include | |
960 | @if [ "$(findstring _stdout_serial_, $@)" ] ; then \ | |
961 | echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ | |
47fd3bff JCPV |
962 | else \ |
963 | echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \ | |
47fd3bff | 964 | fi; |
0e42ada3 | 965 | @$(MKCONFIG) -n $@ SX1 arm arm925t sx1 |
2d24a3a7 | 966 | |
6895d451 | 967 | tx25_config : unconfig |
6895d451 | 968 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk |
ed7a196c | 969 | @$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25 |
6895d451 | 970 | |
a6862bc1 WD |
971 | edb9301_config \ |
972 | edb9302_config \ | |
973 | edb9302a_config \ | |
974 | edb9307_config \ | |
975 | edb9307a_config \ | |
976 | edb9312_config \ | |
977 | edb9315_config \ | |
978 | edb9315a_config: unconfig | |
979 | @$(MKCONFIG) -n $@ -t $(@:_config=) edb93xx arm arm920t edb93xx - ep93xx | |
980 | ||
699f0512 | 981 | ######################################################################### |
87cb6862 | 982 | # ARM supplied Versatile development boards |
699f0512 WD |
983 | ######################################################################### |
984 | ||
87cb6862 WD |
985 | versatile_config \ |
986 | versatileab_config \ | |
987 | versatilepb_config : unconfig | |
e4943ec5 | 988 | @board/armltd/versatile/split_by_variant.sh $@ |
074cff0d | 989 | |
7ebf7443 | 990 | ######################################################################### |
43d9616c | 991 | ## XScale Systems |
7ebf7443 WD |
992 | ######################################################################### |
993 | ||
9d8d5a5b | 994 | pdnb3_config \ |
f9301e1c | 995 | scpu_config: unconfig |
cdd917a4 | 996 | @mkdir -p $(obj)include |
9d8d5a5b | 997 | @if [ "$(findstring scpu_,$@)" ] ; then \ |
f9301e1c | 998 | echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \ |
9d8d5a5b | 999 | fi |
0e42ada3 | 1000 | @$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive |
ba94a1bb | 1001 | |
8c994630 WD |
1002 | ######################################################################### |
1003 | ## ARM1136 Systems | |
1004 | ######################################################################### | |
3e38691e | 1005 | |
5ca9881a | 1006 | apollon_config : unconfig |
8cbf4e4f | 1007 | @mkdir -p $(obj)include |
751b9b51 | 1008 | @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h |
751b9b51 | 1009 | @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk |
a6862bc1 | 1010 | @$(MKCONFIG) $@ arm arm1136 apollon - omap24xx |
5ca9881a | 1011 | |
a2bb7105 | 1012 | imx31_phycore_eet_config \ |
5ad86216 | 1013 | imx31_phycore_config : unconfig |
69c5bf29 | 1014 | @mkdir -p $(obj)include |
a2bb7105 GL |
1015 | @if [ -n "$(findstring _eet_,$@)" ]; then \ |
1016 | echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \ | |
1017 | fi | |
a6862bc1 | 1018 | @$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore - mx31 |
5ad86216 | 1019 | |
d08e5ca3 ML |
1020 | mx31pdk_config \ |
1021 | mx31pdk_nand_config : unconfig | |
1022 | @mkdir -p $(obj)include | |
1023 | @if [ -n "$(findstring _nand_,$@)" ]; then \ | |
1024 | echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \ | |
1025 | else \ | |
1026 | echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \ | |
d08e5ca3 | 1027 | fi |
0e42ada3 | 1028 | @$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale mx31 |
8449f287 | 1029 | |
11edcfe2 GL |
1030 | ######################################################################### |
1031 | ## ARM1176 Systems | |
1032 | ######################################################################### | |
1033 | smdk6400_noUSB_config \ | |
1034 | smdk6400_config : unconfig | |
1035 | @mkdir -p $(obj)include $(obj)board/samsung/smdk6400 | |
1036 | @mkdir -p $(obj)nand_spl/board/samsung/smdk6400 | |
1037 | @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h | |
0e42ada3 | 1038 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk |
11edcfe2 GL |
1039 | @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \ |
1040 | echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ | |
11edcfe2 GL |
1041 | else \ |
1042 | echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\ | |
11edcfe2 | 1043 | fi |
54e19a7d | 1044 | @$(MKCONFIG) smdk6400 arm arm1176 smdk6400 samsung s3c64xx |
11edcfe2 GL |
1045 | @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk |
1046 | ||
3e38691e WD |
1047 | ######################################################################### |
1048 | ######################################################################### | |
7ebf7443 WD |
1049 | |
1050 | clean: | |
1bc15386 | 1051 | @rm -f $(obj)examples/standalone/82559_eeprom \ |
d640ac58 | 1052 | $(obj)examples/standalone/atmel_df_pow2 \ |
1bc15386 PT |
1053 | $(obj)examples/standalone/eepro100_eeprom \ |
1054 | $(obj)examples/standalone/hello_world \ | |
1055 | $(obj)examples/standalone/interrupt \ | |
1056 | $(obj)examples/standalone/mem_to_mem_idma2intr \ | |
1057 | $(obj)examples/standalone/sched \ | |
201a017c | 1058 | $(obj)examples/standalone/smc911{11,x}_eeprom \ |
1bc15386 PT |
1059 | $(obj)examples/standalone/test_burst \ |
1060 | $(obj)examples/standalone/timer | |
d4abc757 | 1061 | @rm -f $(obj)examples/api/demo{,.bin} |
f9301e1c WD |
1062 | @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \ |
1063 | $(obj)tools/env/{fw_printenv,fw_setenv} \ | |
1064 | $(obj)tools/envcrc \ | |
1065 | $(obj)tools/gdb/{astest,gdbcont,gdbsend} \ | |
1066 | $(obj)tools/gen_eth_addr $(obj)tools/img2srec \ | |
1067 | $(obj)tools/mkimage $(obj)tools/mpc86x_clk \ | |
1068 | $(obj)tools/ncb $(obj)tools/ubsha1 | |
1069 | @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \ | |
74c7a95f | 1070 | $(obj)board/matrix_vision/*/bootscript.img \ |
f9301e1c | 1071 | $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ |
566e5cf4 | 1072 | $(obj)board/voiceblue/eeprom \ |
1dcb50af | 1073 | $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ |
1aada9cd | 1074 | $(obj)u-boot.lds \ |
c6fb83d2 | 1075 | $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs] |
dc7746d8 | 1076 | @rm -f $(obj)include/bmp_logo.h |
16a354f9 | 1077 | @rm -f $(obj)lib/asm-offsets.s |
ff6b47ad | 1078 | @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-nand_spl.lds,u-boot-spl,u-boot-spl.map,System.map} |
ca6189db | 1079 | @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map} |
0d3c62e4 | 1080 | @rm -f $(obj)mmc_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,u-boot-spl.bin,u-boot-mmc-spl.bin} |
ca6189db | 1081 | @rm -f $(ONENAND_BIN) |
1aada9cd | 1082 | @rm -f $(obj)onenand_ipl/u-boot.lds |
5df2ee27 | 1083 | @rm -f $(obj)spl/{u-boot-spl,u-boot-spl.bin,u-boot-spl.lds,u-boot-spl.map} |
d4abc757 | 1084 | @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE) |
ae6d1056 | 1085 | @find $(OBJTREE) -type f \ |
7ebf7443 | 1086 | \( -name 'core' -o -name '*.bak' -o -name '*~' \ |
2b48f7d5 | 1087 | -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ |
7ebf7443 | 1088 | | xargs rm -f |
7ebf7443 WD |
1089 | |
1090 | clobber: clean | |
727ebd9f | 1091 | @find $(OBJTREE) -type f \( -name '*.depend' \ |
4c0d4c3b WD |
1092 | -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ |
1093 | -print0 \ | |
1094 | | xargs -0 rm -f | |
ffda586f | 1095 | @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \ |
5013c09f | 1096 | $(obj)cscope.* $(obj)*.*~ |
4e0fbb98 | 1097 | @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL-y) |
aa0c7a86 | 1098 | @rm -f $(obj)u-boot.kwb |
c5fb70c9 | 1099 | @rm -f $(obj)u-boot.imx |
fb8b33c1 | 1100 | @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes} |
a47a12be | 1101 | @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c |
a9d8bc98 | 1102 | @rm -fr $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm |
16a354f9 | 1103 | @rm -fr $(obj)include/generated |
a958b663 JCPV |
1104 | @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f |
1105 | @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f | |
0d3c62e4 | 1106 | @[ ! -d $(obj)mmc_spl ] || find $(obj)mmc_spl -name "*" -type l -print | xargs rm -f |
f9328639 MB |
1107 | |
1108 | ifeq ($(OBJTREE),$(SRCTREE)) | |
7ebf7443 WD |
1109 | mrproper \ |
1110 | distclean: clobber unconfig | |
f9328639 MB |
1111 | else |
1112 | mrproper \ | |
1113 | distclean: clobber unconfig | |
ae6d1056 | 1114 | rm -rf $(obj)* |
f9328639 | 1115 | endif |
7ebf7443 WD |
1116 | |
1117 | backup: | |
1118 | F=`basename $(TOPDIR)` ; cd .. ; \ | |
d6b93714 | 1119 | gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F |
7ebf7443 WD |
1120 | |
1121 | ######################################################################### |