Blame view
arch/blackfin/config.mk
2.23 KB
6cb142fa3
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# # (C) Copyright 2000-2002 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. # # See file CREDITS for list of people who contributed to this # project. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # |
1ea6bcd85
|
23 |
CROSS_COMPILE ?= bfin-uclinux- |
b874ed174
|
24 |
STANDALONE_LOAD_ADDR = 0x1000 -m elf32bfin |
262ae0a61
|
25 |
|
9171fc817
|
26 |
CONFIG_BFIN_BOOT_MODE := $(strip $(subst ",,$(CONFIG_BFIN_BOOT_MODE))) |
c4db335c2
|
27 |
PLATFORM_RELFLAGS += -ffixed-P3 -fomit-frame-pointer -mno-fdpic |
0003613e3
|
28 |
PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN |
0858b835e
|
29 |
|
8aba9dcee
|
30 31 |
LDFLAGS_u-boot += --gc-sections LDFLAGS += -m elf32bfin |
6957a6209
|
32 |
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections |
821ad16fa
|
33 |
PLATFORM_CPPFLAGS += -DBFIN_CPU='"$(CONFIG_BFIN_CPU)"' |
f7ce12cb6
|
34 |
PLATFORM_RELFLAGS += -mcpu=$(CONFIG_BFIN_CPU) |
f7ce12cb6
|
35 |
|
3e88337b2
|
36 37 38 |
ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS) ALL += $(obj)u-boot.ldr endif |
76d82187c
|
39 40 |
ifeq ($(CONFIG_ENV_IS_EMBEDDED_IN_LDR),y) CREATE_LDR_ENV = $(obj)tools/envcrc --binary > $(obj)env-ldr.o |
48c00fe25
|
41 42 43 |
HOSTCFLAGS_NOPED += \ $(shell $(CPP) -dD - -mcpu=$(CONFIG_BFIN_CPU) </dev/null \ | awk '$$2 ~ /ADSP/ { print "-D" $$2 }') |
76d82187c
|
44 45 46 |
else CREATE_LDR_ENV = endif |
3e88337b2
|
47 |
|
0858b835e
|
48 |
SYM_PREFIX = _ |
94a91e248
|
49 |
|
02778f2f1
|
50 51 |
LDR_FLAGS-y := LDR_FLAGS-$(CONFIG_BFIN_BOOTROM_USES_EVT1) += -J |
746290dfd
|
52 |
LDR_FLAGS += --bmode $(subst BFIN_BOOT_,,$(CONFIG_BFIN_BOOT_MODE)) |
94a91e248
|
53 |
LDR_FLAGS += --use-vmas |
03b7004dd
|
54 |
LDR_FLAGS += --initcode $(obj)$(CPUDIR)/initcode.o |
67c2829b6
|
55 |
ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_UART) |
76d82187c
|
56 57 |
LDR_FLAGS-$(CONFIG_ENV_IS_EMBEDDED_IN_LDR) += \ --punchit $$(($(CONFIG_ENV_OFFSET))):$$(($(CONFIG_ENV_SIZE))):$(obj)env-ldr.o |
67c2829b6
|
58 |
endif |
f7ce12cb6
|
59 |
ifneq (,$(findstring s,$(MAKEFLAGS))) |
94a91e248
|
60 61 |
LDR_FLAGS += --quiet endif |
02778f2f1
|
62 63 |
LDR_FLAGS += $(LDR_FLAGS-y) |
9ff67e5e4
|
64 65 |
ifeq ($(wildcard $(TOPDIR)/board/$(BOARD)/u-boot.lds*),) |
ea0364f1b
|
66 |
LDSCRIPT = $(obj)arch/$(ARCH)/lib/u-boot.lds.S |
9ff67e5e4
|
67 |
endif |