Blame view

arch/blackfin/config.mk 2.23 KB
6cb142fa3   Wolfgang Denk   Add missing Black...
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   Mike Frysinger   push CROSS_COMPIL...
23
  CROSS_COMPILE ?= bfin-uclinux-
b874ed174   Mike Frysinger   Blackfin: link wi...
24
  STANDALONE_LOAD_ADDR = 0x1000 -m elf32bfin
262ae0a61   Mike Frysinger   push LOAD_ADDR ou...
25

9171fc817   Mike Frysinger   Blackfin: unify c...
26
  CONFIG_BFIN_BOOT_MODE := $(strip $(subst ",,$(CONFIG_BFIN_BOOT_MODE)))
c4db335c2   Robin Getz   Blackfin: change ...
27
  PLATFORM_RELFLAGS += -ffixed-P3 -fomit-frame-pointer -mno-fdpic
0003613e3   Mike Frysinger   move -ffixed-P5 t...
28
  PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN
0858b835e   Mike Frysinger   add support for B...
29

8aba9dcee   Nobuhiro Iwamatsu   Divides variable ...
30
31
  LDFLAGS_u-boot += --gc-sections
  LDFLAGS += -m elf32bfin
6957a6209   Mike Frysinger   Blackfin: enable ...
32
  PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
821ad16fa   Mike Frysinger   Blackfin: move CO...
33
  PLATFORM_CPPFLAGS += -DBFIN_CPU='"$(CONFIG_BFIN_CPU)"'
f7ce12cb6   Mike Frysinger   Blackfin: convert...
34
  PLATFORM_RELFLAGS += -mcpu=$(CONFIG_BFIN_CPU)
f7ce12cb6   Mike Frysinger   Blackfin: convert...
35

3e88337b2   Mike Frysinger   Blackfin: move AL...
36
37
38
  ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)
  ALL += $(obj)u-boot.ldr
  endif
76d82187c   Mike Frysinger   Blackfin: tweak e...
39
40
  ifeq ($(CONFIG_ENV_IS_EMBEDDED_IN_LDR),y)
  CREATE_LDR_ENV = $(obj)tools/envcrc --binary > $(obj)env-ldr.o
48c00fe25   Mike Frysinger   Blackfin: propaga...
41
42
43
  HOSTCFLAGS_NOPED += \
  	$(shell $(CPP) -dD - -mcpu=$(CONFIG_BFIN_CPU) </dev/null \
  		| awk '$$2 ~ /ADSP/ { print "-D" $$2 }')
76d82187c   Mike Frysinger   Blackfin: tweak e...
44
45
46
  else
  CREATE_LDR_ENV =
  endif
3e88337b2   Mike Frysinger   Blackfin: move AL...
47

0858b835e   Mike Frysinger   add support for B...
48
  SYM_PREFIX = _
94a91e248   Mike Frysinger   generate u-boot.l...
49

02778f2f1   Mike Frysinger   Blackfin: fix boo...
50
51
  LDR_FLAGS-y :=
  LDR_FLAGS-$(CONFIG_BFIN_BOOTROM_USES_EVT1) += -J
746290dfd   Mike Frysinger   Blackfin: pass --...
52
  LDR_FLAGS += --bmode $(subst BFIN_BOOT_,,$(CONFIG_BFIN_BOOT_MODE))
94a91e248   Mike Frysinger   generate u-boot.l...
53
  LDR_FLAGS += --use-vmas
03b7004dd   Peter Tyser   Create CPUDIR var...
54
  LDR_FLAGS += --initcode $(obj)$(CPUDIR)/initcode.o
67c2829b6   Mike Frysinger   Blackfin: support...
55
  ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_UART)
76d82187c   Mike Frysinger   Blackfin: tweak e...
56
57
  LDR_FLAGS-$(CONFIG_ENV_IS_EMBEDDED_IN_LDR) += \
  	--punchit $$(($(CONFIG_ENV_OFFSET))):$$(($(CONFIG_ENV_SIZE))):$(obj)env-ldr.o
67c2829b6   Mike Frysinger   Blackfin: support...
58
  endif
f7ce12cb6   Mike Frysinger   Blackfin: convert...
59
  ifneq (,$(findstring s,$(MAKEFLAGS)))
94a91e248   Mike Frysinger   generate u-boot.l...
60
61
  LDR_FLAGS += --quiet
  endif
02778f2f1   Mike Frysinger   Blackfin: fix boo...
62
63
  
  LDR_FLAGS += $(LDR_FLAGS-y)
9ff67e5e4   Mike Frysinger   Blackfin: unify u...
64
65
  
  ifeq ($(wildcard $(TOPDIR)/board/$(BOARD)/u-boot.lds*),)
ea0364f1b   Peter Tyser   Move lib_$ARCH di...
66
  LDSCRIPT = $(obj)arch/$(ARCH)/lib/u-boot.lds.S
9ff67e5e4   Mike Frysinger   Blackfin: unify u...
67
  endif