diff options
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r-- | arch/sh/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index b941dc9b20f4..c1bbae1f65e3 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -91,9 +91,11 @@ KBUILD_IMAGE := $(defaultimage-y) | |||
91 | # | 91 | # |
92 | ifdef CONFIG_SUPERH32 | 92 | ifdef CONFIG_SUPERH32 |
93 | UTS_MACHINE := sh | 93 | UTS_MACHINE := sh |
94 | BITS := 32 | ||
94 | LDFLAGS_vmlinux += -e _stext | 95 | LDFLAGS_vmlinux += -e _stext |
95 | else | 96 | else |
96 | UTS_MACHINE := sh64 | 97 | UTS_MACHINE := sh64 |
98 | BITS := 64 | ||
97 | LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_PAGE_OFFSET) \ | 99 | LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_PAGE_OFFSET) \ |
98 | --defsym phys_stext_shmedia=phys_stext+1 \ | 100 | --defsym phys_stext_shmedia=phys_stext+1 \ |
99 | -e phys_stext_shmedia | 101 | -e phys_stext_shmedia |
@@ -109,11 +111,9 @@ LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64+4' --oformat $(ld-bfd) | |||
109 | LDFLAGS += -EB | 111 | LDFLAGS += -EB |
110 | endif | 112 | endif |
111 | 113 | ||
112 | export ld-bfd | 114 | export ld-bfd BITS |
113 | 115 | ||
114 | head-y := arch/sh/kernel/init_task.o | 116 | head-y := arch/sh/kernel/init_task.o arch/sh/kernel/head_$(BITS).o |
115 | head-$(CONFIG_SUPERH32) += arch/sh/kernel/head_32.o | ||
116 | head-$(CONFIG_SUPERH64) += arch/sh/kernel/head_64.o | ||
117 | 117 | ||
118 | core-y += arch/sh/kernel/ arch/sh/mm/ arch/sh/boards/ | 118 | core-y += arch/sh/kernel/ arch/sh/mm/ arch/sh/boards/ |
119 | core-$(CONFIG_SH_FPU_EMU) += arch/sh/math-emu/ | 119 | core-$(CONFIG_SH_FPU_EMU) += arch/sh/math-emu/ |