]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/blackfin/cpu/Makefile
4 # Copyright (c) 2005-2008 Analog Device Inc.
6 # (C) Copyright 2000-2006
7 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
9 # Licensed under the GPL-2 or later.
15 obj-y
:= interrupt.o cache.o
19 obj-
$(CONFIG_JTAG_CONSOLE
) += jtag-console.o
24 extra-y
+= check_initcode
25 clean-files
:= init.lds
27 # make sure our initcode (which goes into LDR) does not
28 # have relocs or external references
29 CFLAGS_REMOVE_initcode.o
:= -ffunction-sections
-fdata-sections
30 READINIT
= env LC_ALL
=C
$(CROSS_COMPILE
)readelf
-s
$<
31 $(obj
)/check_initcode
: $(obj
)/initcode.o
32 ifneq ($(CONFIG_BFIN_BOOT_MODE
),BFIN_BOOT_BYPASS
)
33 @if
$(READINIT
) | grep
'\<GLOBAL\>.*\<UND\>' ; then \
34 echo
"$< contains external references!" 1>&2 ; \
39 CPPFLAGS_init.lds
:= -ansi
40 $(obj
)/init.elf
: $(obj
)/init.lds
$(obj
)/init.o
$(obj
)/initcode.o
41 $(LD
) $(LDFLAGS
) -T
$^
-o
$@