]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/blackfin/cpu/Makefile
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / arch / blackfin / cpu / Makefile
1 #
2 # U-boot - Makefile
3 #
4 # Copyright (c) 2005-2008 Analog Device Inc.
5 #
6 # (C) Copyright 2000-2006
7 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8 #
9 # Licensed under the GPL-2 or later.
10 #
11
12 extra-y := init.elf
13 extra-y += initcode.o
14 extra-y += start.o
15 obj-y    := interrupt.o cache.o
16 obj-y  += cpu.o
17 obj-y += gpio.o
18 obj-y  += interrupts.o
19 obj-$(CONFIG_JTAG_CONSOLE) += jtag-console.o
20 obj-y  += os_log.o
21 obj-y  += reset.o
22 obj-y  += traps.o
23
24 extra-y += check_initcode
25
26 # make sure our initcode (which goes into LDR) does not
27 # have relocs or external references
28 $(obj)initcode.o: CFLAGS += -fno-function-sections -fno-data-sections
29 READINIT = env LC_ALL=C $(CROSS_COMPILE)readelf -s $<
30 $(obj)check_initcode: $(obj)initcode.o
31 ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)
32         @if $(READINIT) | grep '\<GLOBAL\>.*\<UND\>' ; then \
33                 echo "$< contains external references!" 1>&2 ; \
34                 exit 1 ; \
35         fi
36 endif
37
38 $(obj)init.lds: init.lds.S
39         $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P $^ -o $@
40 $(obj)init.elf: $(obj)init.lds $(obj)init.o $(obj)initcode.o
41         $(LD) $(LDFLAGS) -T $^ -o $@