diff options
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r-- | arch/sh/Makefile | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 75d049b03f7e..fc51a918b31a 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -136,6 +136,8 @@ machdir-$(CONFIG_SH_7751_SYSTEMH) += mach-systemh | |||
136 | machdir-$(CONFIG_SH_EDOSK7705) += mach-edosk7705 | 136 | machdir-$(CONFIG_SH_EDOSK7705) += mach-edosk7705 |
137 | machdir-$(CONFIG_SH_HIGHLANDER) += mach-highlander | 137 | machdir-$(CONFIG_SH_HIGHLANDER) += mach-highlander |
138 | machdir-$(CONFIG_SH_MIGOR) += mach-migor | 138 | machdir-$(CONFIG_SH_MIGOR) += mach-migor |
139 | machdir-$(CONFIG_SH_KFR2R09) += mach-kfr2r09 | ||
140 | machdir-$(CONFIG_SH_ECOVEC) += mach-ecovec24 | ||
139 | machdir-$(CONFIG_SH_SDK7780) += mach-sdk7780 | 141 | machdir-$(CONFIG_SH_SDK7780) += mach-sdk7780 |
140 | machdir-$(CONFIG_SH_X3PROTO) += mach-x3proto | 142 | machdir-$(CONFIG_SH_X3PROTO) += mach-x3proto |
141 | machdir-$(CONFIG_SH_SH7763RDP) += mach-sh7763rdp | 143 | machdir-$(CONFIG_SH_SH7763RDP) += mach-sh7763rdp |
@@ -186,17 +188,27 @@ KBUILD_CFLAGS += -pipe $(cflags-y) | |||
186 | KBUILD_CPPFLAGS += $(cflags-y) | 188 | KBUILD_CPPFLAGS += $(cflags-y) |
187 | KBUILD_AFLAGS += $(cflags-y) | 189 | KBUILD_AFLAGS += $(cflags-y) |
188 | 190 | ||
191 | ifeq ($(CONFIG_MCOUNT),y) | ||
192 | KBUILD_CFLAGS += -pg | ||
193 | endif | ||
194 | |||
195 | ifeq ($(CONFIG_DWARF_UNWINDER),y) | ||
196 | KBUILD_CFLAGS += -fasynchronous-unwind-tables | ||
197 | endif | ||
198 | |||
189 | libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) | 199 | libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) |
190 | libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) | 200 | libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) |
191 | 201 | ||
192 | PHONY += maketools FORCE | 202 | BOOT_TARGETS = uImage uImage.bz2 uImage.gz uImage.lzma uImage.srec \ |
203 | zImage vmlinux.srec romImage | ||
204 | PHONY += maketools $(BOOT_TARGETS) FORCE | ||
193 | 205 | ||
194 | maketools: include/linux/version.h FORCE | 206 | maketools: include/linux/version.h FORCE |
195 | $(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h | 207 | $(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h |
196 | 208 | ||
197 | all: $(KBUILD_IMAGE) | 209 | all: $(KBUILD_IMAGE) |
198 | 210 | ||
199 | zImage uImage uImage.srec vmlinux.srec: vmlinux | 211 | $(BOOT_TARGETS): vmlinux |
200 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ | 212 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ |
201 | 213 | ||
202 | compressed: zImage | 214 | compressed: zImage |
@@ -208,10 +220,14 @@ archclean: | |||
208 | $(Q)$(MAKE) $(clean)=arch/sh/kernel/vsyscall | 220 | $(Q)$(MAKE) $(clean)=arch/sh/kernel/vsyscall |
209 | 221 | ||
210 | define archhelp | 222 | define archhelp |
211 | @echo '* zImage - Compressed kernel image' | 223 | @echo ' zImage - Compressed kernel image' |
224 | @echo ' romImage - Compressed ROM image, if supported' | ||
212 | @echo ' vmlinux.srec - Create an ELF S-record' | 225 | @echo ' vmlinux.srec - Create an ELF S-record' |
213 | @echo ' uImage - Create a bootable image for U-Boot' | 226 | @echo '* uImage - Alias to bootable U-Boot image' |
214 | @echo ' uImage.srec - Create an S-record for U-Boot' | 227 | @echo ' uImage.srec - Create an S-record for U-Boot' |
228 | @echo '* uImage.gz - Kernel-only image for U-Boot (gzip)' | ||
229 | @echo ' uImage.bz2 - Kernel-only image for U-Boot (bzip2)' | ||
230 | @echo ' uImage.lzma - Kernel-only image for U-Boot (lzma)' | ||
215 | endef | 231 | endef |
216 | 232 | ||
217 | CLEAN_FILES += include/asm-sh/machtypes.h | 233 | CLEAN_FILES += include/asm-sh/machtypes.h |