diff options
-rw-r--r-- | arch/sh/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 4da3bc696b3d..15161f1851a5 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -74,15 +74,21 @@ OBJCOPYFLAGS := -O binary -R .note -R .note.gnu.build-id -R .comment -R .stab -R | |||
74 | # never be used by anyone. Use a board-specific defconfig that has a | 74 | # never be used by anyone. Use a board-specific defconfig that has a |
75 | # reasonable chance of being current instead. | 75 | # reasonable chance of being current instead. |
76 | # | 76 | # |
77 | KBUILD_DEFCONFIG := r7780rp_defconfig | 77 | KBUILD_DEFCONFIG := r7780rp_defconfig |
78 | 78 | ||
79 | KBUILD_IMAGE := arch/sh/boot/zImage | 79 | KBUILD_IMAGE := arch/sh/boot/zImage |
80 | 80 | ||
81 | # | 81 | # |
82 | # Choosing incompatible machines durings configuration will result in | 82 | # Choosing incompatible machines durings configuration will result in |
83 | # error messages during linking. | 83 | # error messages during linking. |
84 | # | 84 | # |
85 | LDFLAGS_vmlinux += -e _stext | 85 | ifdef CONFIG_SUPERH32 |
86 | LDFLAGS_vmlinux += -e _stext | ||
87 | else | ||
88 | LDFLAGS_vmlinux += --defsym phys_stext=_stext-$(CONFIG_CACHED_MEMORY_OFFSET) \ | ||
89 | --defsym phys_stext_shmedia=phys_stext+1 \ | ||
90 | -e phys_stext_shmedia | ||
91 | endif | ||
86 | 92 | ||
87 | ifdef CONFIG_CPU_LITTLE_ENDIAN | 93 | ifdef CONFIG_CPU_LITTLE_ENDIAN |
88 | LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' | 94 | LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' |