aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r--arch/sh/Makefile8
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#
92ifdef CONFIG_SUPERH32 92ifdef CONFIG_SUPERH32
93UTS_MACHINE := sh 93UTS_MACHINE := sh
94BITS := 32
94LDFLAGS_vmlinux += -e _stext 95LDFLAGS_vmlinux += -e _stext
95else 96else
96UTS_MACHINE := sh64 97UTS_MACHINE := sh64
98BITS := 64
97LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_PAGE_OFFSET) \ 99LDFLAGS_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)
109LDFLAGS += -EB 111LDFLAGS += -EB
110endif 112endif
111 113
112export ld-bfd 114export ld-bfd BITS
113 115
114head-y := arch/sh/kernel/init_task.o 116head-y := arch/sh/kernel/init_task.o arch/sh/kernel/head_$(BITS).o
115head-$(CONFIG_SUPERH32) += arch/sh/kernel/head_32.o
116head-$(CONFIG_SUPERH64) += arch/sh/kernel/head_64.o
117 117
118core-y += arch/sh/kernel/ arch/sh/mm/ arch/sh/boards/ 118core-y += arch/sh/kernel/ arch/sh/mm/ arch/sh/boards/
119core-$(CONFIG_SH_FPU_EMU) += arch/sh/math-emu/ 119core-$(CONFIG_SH_FPU_EMU) += arch/sh/math-emu/