aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile10
-rw-r--r--init/Kconfig3
2 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f6578f47e21e..622c918abff8 100644
--- a/Makefile
+++ b/Makefile
@@ -784,6 +784,10 @@ quiet_cmd_vmlinux_version = GEN .version
784quiet_cmd_sysmap = SYSMAP 784quiet_cmd_sysmap = SYSMAP
785 cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap 785 cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap
786 786
787# Sort exception table at build time
788quiet_cmd_sortextable = SORTEX
789 cmd_sortextable = $(objtree)/scripts/sortextable
790
787# Link of vmlinux 791# Link of vmlinux
788# If CONFIG_KALLSYMS is set .version is already updated 792# If CONFIG_KALLSYMS is set .version is already updated
789# Generate System.map and verify that the content is consistent 793# Generate System.map and verify that the content is consistent
@@ -796,6 +800,12 @@ define rule_vmlinux__
796 $(call cmd,vmlinux__) 800 $(call cmd,vmlinux__)
797 $(Q)echo 'cmd_$@ := $(cmd_vmlinux__)' > $(@D)/.$(@F).cmd 801 $(Q)echo 'cmd_$@ := $(cmd_vmlinux__)' > $(@D)/.$(@F).cmd
798 802
803 $(if $(CONFIG_BUILDTIME_EXTABLE_SORT), \
804 $(Q)$(if $($(quiet)cmd_sortextable), \
805 echo ' $($(quiet)cmd_sortextable) vmlinux' &&) \
806 $(cmd_sortextable) vmlinux)
807
808
799 $(Q)$(if $($(quiet)cmd_sysmap), \ 809 $(Q)$(if $($(quiet)cmd_sysmap), \
800 echo ' $($(quiet)cmd_sysmap) System.map' &&) \ 810 echo ' $($(quiet)cmd_sysmap) System.map' &&) \
801 $(cmd_sysmap) $@ System.map; \ 811 $(cmd_sysmap) $@ System.map; \
diff --git a/init/Kconfig b/init/Kconfig
index 6cfd71d06463..92a1296ba9fa 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -27,6 +27,9 @@ config IRQ_WORK
27 bool 27 bool
28 depends on HAVE_IRQ_WORK 28 depends on HAVE_IRQ_WORK
29 29
30config BUILDTIME_EXTABLE_SORT
31 bool
32
30menu "General setup" 33menu "General setup"
31 34
32config EXPERIMENTAL 35config EXPERIMENTAL