diff options
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r-- | arch/arm/Makefile | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 81bd2193fe6..fbfc14a56b9 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -8,7 +8,7 @@ | |||
8 | # Copyright (C) 1995-2001 by Russell King | 8 | # Copyright (C) 1995-2001 by Russell King |
9 | 9 | ||
10 | LDFLAGS_vmlinux :=-p --no-undefined -X | 10 | LDFLAGS_vmlinux :=-p --no-undefined -X |
11 | CPPFLAGS_vmlinux.lds = -DKERNEL_RAM_ADDR=$(TEXTADDR) | 11 | CPPFLAGS_vmlinux.lds = -DTEXT_OFFSET=$(TEXT_OFFSET) |
12 | OBJCOPYFLAGS :=-O binary -R .note -R .comment -S | 12 | OBJCOPYFLAGS :=-O binary -R .note -R .comment -S |
13 | GZFLAGS :=-9 | 13 | GZFLAGS :=-9 |
14 | #CFLAGS +=-pipe | 14 | #CFLAGS +=-pipe |
@@ -56,8 +56,13 @@ tune-$(CONFIG_CPU_SA1100) :=-mtune=strongarm1100 | |||
56 | tune-$(CONFIG_CPU_XSCALE) :=$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale | 56 | tune-$(CONFIG_CPU_XSCALE) :=$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale |
57 | tune-$(CONFIG_CPU_V6) :=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) | 57 | tune-$(CONFIG_CPU_V6) :=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) |
58 | 58 | ||
59 | # Need -Uarm for gcc < 3.x | 59 | ifeq ($(CONFIG_AEABI),y) |
60 | CFLAGS_ABI :=-mabi=aapcs -mno-thumb-interwork | ||
61 | else | ||
60 | CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,) | 62 | CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,) |
63 | endif | ||
64 | |||
65 | # Need -Uarm for gcc < 3.x | ||
61 | CFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm | 66 | CFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm |
62 | AFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) -msoft-float | 67 | AFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) -msoft-float |
63 | 68 | ||
@@ -65,7 +70,7 @@ CHECKFLAGS += -D__arm__ | |||
65 | 70 | ||
66 | #Default value | 71 | #Default value |
67 | head-y := arch/arm/kernel/head.o arch/arm/kernel/init_task.o | 72 | head-y := arch/arm/kernel/head.o arch/arm/kernel/init_task.o |
68 | textaddr-y := 0xC0008000 | 73 | textofs-y := 0x00008000 |
69 | 74 | ||
70 | machine-$(CONFIG_ARCH_RPC) := rpc | 75 | machine-$(CONFIG_ARCH_RPC) := rpc |
71 | machine-$(CONFIG_ARCH_EBSA110) := ebsa110 | 76 | machine-$(CONFIG_ARCH_EBSA110) := ebsa110 |
@@ -73,22 +78,19 @@ textaddr-y := 0xC0008000 | |||
73 | incdir-$(CONFIG_ARCH_CLPS7500) := cl7500 | 78 | incdir-$(CONFIG_ARCH_CLPS7500) := cl7500 |
74 | machine-$(CONFIG_FOOTBRIDGE) := footbridge | 79 | machine-$(CONFIG_FOOTBRIDGE) := footbridge |
75 | incdir-$(CONFIG_FOOTBRIDGE) := ebsa285 | 80 | incdir-$(CONFIG_FOOTBRIDGE) := ebsa285 |
76 | textaddr-$(CONFIG_ARCH_CO285) := 0x60008000 | ||
77 | machine-$(CONFIG_ARCH_CO285) := footbridge | 81 | machine-$(CONFIG_ARCH_CO285) := footbridge |
78 | incdir-$(CONFIG_ARCH_CO285) := ebsa285 | 82 | incdir-$(CONFIG_ARCH_CO285) := ebsa285 |
79 | machine-$(CONFIG_ARCH_SHARK) := shark | 83 | machine-$(CONFIG_ARCH_SHARK) := shark |
80 | machine-$(CONFIG_ARCH_SA1100) := sa1100 | 84 | machine-$(CONFIG_ARCH_SA1100) := sa1100 |
81 | ifeq ($(CONFIG_ARCH_SA1100),y) | 85 | ifeq ($(CONFIG_ARCH_SA1100),y) |
82 | # SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory | 86 | # SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory |
83 | textaddr-$(CONFIG_SA1111) := 0xc0208000 | 87 | textofs-$(CONFIG_SA1111) := 0x00208000 |
84 | endif | 88 | endif |
85 | machine-$(CONFIG_ARCH_PXA) := pxa | 89 | machine-$(CONFIG_ARCH_PXA) := pxa |
86 | machine-$(CONFIG_ARCH_L7200) := l7200 | 90 | machine-$(CONFIG_ARCH_L7200) := l7200 |
87 | machine-$(CONFIG_ARCH_INTEGRATOR) := integrator | 91 | machine-$(CONFIG_ARCH_INTEGRATOR) := integrator |
88 | machine-$(CONFIG_ARCH_CAMELOT) := epxa10db | 92 | textofs-$(CONFIG_ARCH_CLPS711X) := 0x00028000 |
89 | textaddr-$(CONFIG_ARCH_CLPS711X) := 0xc0028000 | ||
90 | machine-$(CONFIG_ARCH_CLPS711X) := clps711x | 93 | machine-$(CONFIG_ARCH_CLPS711X) := clps711x |
91 | textaddr-$(CONFIG_ARCH_FORTUNET) := 0xc0008000 | ||
92 | machine-$(CONFIG_ARCH_IOP3XX) := iop3xx | 94 | machine-$(CONFIG_ARCH_IOP3XX) := iop3xx |
93 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx | 95 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx |
94 | machine-$(CONFIG_ARCH_IXP2000) := ixp2000 | 96 | machine-$(CONFIG_ARCH_IXP2000) := ixp2000 |
@@ -102,6 +104,7 @@ textaddr-$(CONFIG_ARCH_FORTUNET) := 0xc0008000 | |||
102 | machine-$(CONFIG_ARCH_H720X) := h720x | 104 | machine-$(CONFIG_ARCH_H720X) := h720x |
103 | machine-$(CONFIG_ARCH_AAEC2000) := aaec2000 | 105 | machine-$(CONFIG_ARCH_AAEC2000) := aaec2000 |
104 | machine-$(CONFIG_ARCH_REALVIEW) := realview | 106 | machine-$(CONFIG_ARCH_REALVIEW) := realview |
107 | machine-$(CONFIG_ARCH_AT91RM9200) := at91rm9200 | ||
105 | 108 | ||
106 | ifeq ($(CONFIG_ARCH_EBSA110),y) | 109 | ifeq ($(CONFIG_ARCH_EBSA110),y) |
107 | # This is what happens if you forget the IOCS16 line. | 110 | # This is what happens if you forget the IOCS16 line. |
@@ -110,7 +113,8 @@ CFLAGS_3c589_cs.o :=-DISA_SIXTEEN_BIT_PERIPHERAL | |||
110 | export CFLAGS_3c589_cs.o | 113 | export CFLAGS_3c589_cs.o |
111 | endif | 114 | endif |
112 | 115 | ||
113 | TEXTADDR := $(textaddr-y) | 116 | # The byte offset of the kernel image in RAM from the start of RAM. |
117 | TEXT_OFFSET := $(textofs-y) | ||
114 | 118 | ||
115 | ifeq ($(incdir-y),) | 119 | ifeq ($(incdir-y),) |
116 | incdir-y := $(machine-y) | 120 | incdir-y := $(machine-y) |
@@ -123,7 +127,7 @@ else | |||
123 | MACHINE := | 127 | MACHINE := |
124 | endif | 128 | endif |
125 | 129 | ||
126 | export TEXTADDR GZFLAGS | 130 | export TEXT_OFFSET GZFLAGS |
127 | 131 | ||
128 | # Do we have FASTFPE? | 132 | # Do we have FASTFPE? |
129 | FASTFPE :=arch/arm/fastfpe | 133 | FASTFPE :=arch/arm/fastfpe |