diff options
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r-- | arch/sh/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 01d85c74481d..1f409bf81809 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -76,8 +76,10 @@ KBUILD_IMAGE := $(defaultimage-y) | |||
76 | # error messages during linking. | 76 | # error messages during linking. |
77 | # | 77 | # |
78 | ifdef CONFIG_SUPERH32 | 78 | ifdef CONFIG_SUPERH32 |
79 | UTS_MACHINE := sh | ||
79 | LDFLAGS_vmlinux += -e _stext | 80 | LDFLAGS_vmlinux += -e _stext |
80 | else | 81 | else |
82 | UTS_MACHINE := sh64 | ||
81 | LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_PAGE_OFFSET) \ | 83 | LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_PAGE_OFFSET) \ |
82 | --defsym phys_stext_shmedia=phys_stext+1 \ | 84 | --defsym phys_stext_shmedia=phys_stext+1 \ |
83 | -e phys_stext_shmedia | 85 | -e phys_stext_shmedia |
@@ -123,6 +125,9 @@ core-y += $(addprefix arch/sh/boards/, \ | |||
123 | $(filter-out ., $(patsubst %,%/,$(machdir-y)))) | 125 | $(filter-out ., $(patsubst %,%/,$(machdir-y)))) |
124 | endif | 126 | endif |
125 | 127 | ||
128 | # Common machine type headers. Not part of the arch/sh/boards/ hierarchy. | ||
129 | machdir-y += mach-common | ||
130 | |||
126 | # Companion chips | 131 | # Companion chips |
127 | core-$(CONFIG_HD6446X_SERIES) += arch/sh/cchips/hd6446x/ | 132 | core-$(CONFIG_HD6446X_SERIES) += arch/sh/cchips/hd6446x/ |
128 | 133 | ||