diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -796,6 +796,10 @@ quiet_cmd_vmlinux_version = GEN .version | |||
796 | quiet_cmd_sysmap = SYSMAP | 796 | quiet_cmd_sysmap = SYSMAP |
797 | cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap | 797 | cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap |
798 | 798 | ||
799 | # Sort exception table at build time | ||
800 | quiet_cmd_sortextable = SORTEX | ||
801 | cmd_sortextable = $(objtree)/scripts/sortextable | ||
802 | |||
799 | # Link of vmlinux | 803 | # Link of vmlinux |
800 | # If CONFIG_KALLSYMS is set .version is already updated | 804 | # If CONFIG_KALLSYMS is set .version is already updated |
801 | # Generate System.map and verify that the content is consistent | 805 | # Generate System.map and verify that the content is consistent |
@@ -808,6 +812,12 @@ define rule_vmlinux__ | |||
808 | $(call cmd,vmlinux__) | 812 | $(call cmd,vmlinux__) |
809 | $(Q)echo 'cmd_$@ := $(cmd_vmlinux__)' > $(@D)/.$(@F).cmd | 813 | $(Q)echo 'cmd_$@ := $(cmd_vmlinux__)' > $(@D)/.$(@F).cmd |
810 | 814 | ||
815 | $(if $(CONFIG_BUILDTIME_EXTABLE_SORT), \ | ||
816 | $(Q)$(if $($(quiet)cmd_sortextable), \ | ||
817 | echo ' $($(quiet)cmd_sortextable) vmlinux' &&) \ | ||
818 | $(cmd_sortextable) vmlinux) | ||
819 | |||
820 | |||
811 | $(Q)$(if $($(quiet)cmd_sysmap), \ | 821 | $(Q)$(if $($(quiet)cmd_sysmap), \ |
812 | echo ' $($(quiet)cmd_sysmap) System.map' &&) \ | 822 | echo ' $($(quiet)cmd_sysmap) System.map' &&) \ |
813 | $(cmd_sysmap) $@ System.map; \ | 823 | $(cmd_sysmap) $@ System.map; \ |