aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2012-04-19 17:59:57 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2012-04-19 18:06:56 -0400
commit1dbdc6f177c627ae462752c80a5c7f3b06a7f92a (patch)
tree935aacf3b5955d36adf87197738c798d8d4341b4 /Makefile
parentd219e2e86a407035303b987e4184ca0b1de53257 (diff)
kbuild/extable: Hook up sortextable into the build system.
Define a config variable BUILDTIME_EXTABLE_SORT to control build time sorting of the kernel's exception table. Patch Makefile to do the sorting when BUILDTIME_EXTABLE_SORT is selected. Signed-off-by: David Daney <david.daney@cavium.com> Link: http://lkml.kernel.org/r/1334872799-14589-4-git-send-email-ddaney.cavm@gmail.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 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; \