diff options
-rw-r--r-- | Makefile | 13 | ||||
-rw-r--r-- | init/Kconfig | 12 |
2 files changed, 8 insertions, 17 deletions
@@ -797,15 +797,17 @@ ifdef CONFIG_KALLSYMS | |||
797 | # o The correct .tmp_kallsyms2.o is linked into the final vmlinux. | 797 | # o The correct .tmp_kallsyms2.o is linked into the final vmlinux. |
798 | # o Verify that the System.map from vmlinux matches the map from | 798 | # o Verify that the System.map from vmlinux matches the map from |
799 | # .tmp_vmlinux2, just in case we did not generate kallsyms correctly. | 799 | # .tmp_vmlinux2, just in case we did not generate kallsyms correctly. |
800 | # o If CONFIG_KALLSYMS_EXTRA_PASS is set, do an extra pass using | 800 | # o If 'make KALLSYMS_EXTRA_PASS=1" was used, do an extra pass using |
801 | # .tmp_vmlinux3 and .tmp_kallsyms3.o. This is only meant as a | 801 | # .tmp_vmlinux3 and .tmp_kallsyms3.o. This is only meant as a |
802 | # temporary bypass to allow the kernel to be built while the | 802 | # temporary bypass to allow the kernel to be built while the |
803 | # maintainers work out what went wrong with kallsyms. | 803 | # maintainers work out what went wrong with kallsyms. |
804 | 804 | ||
805 | ifdef CONFIG_KALLSYMS_EXTRA_PASS | ||
806 | last_kallsyms := 3 | ||
807 | else | ||
808 | last_kallsyms := 2 | 805 | last_kallsyms := 2 |
806 | |||
807 | ifdef KALLSYMS_EXTRA_PASS | ||
808 | ifneq ($(KALLSYMS_EXTRA_PASS),0) | ||
809 | last_kallsyms := 3 | ||
810 | endif | ||
809 | endif | 811 | endif |
810 | 812 | ||
811 | kallsyms.o := .tmp_kallsyms$(last_kallsyms).o | 813 | kallsyms.o := .tmp_kallsyms$(last_kallsyms).o |
@@ -816,7 +818,8 @@ define verify_kallsyms | |||
816 | $(cmd_sysmap) .tmp_vmlinux$(last_kallsyms) .tmp_System.map | 818 | $(cmd_sysmap) .tmp_vmlinux$(last_kallsyms) .tmp_System.map |
817 | $(Q)cmp -s System.map .tmp_System.map || \ | 819 | $(Q)cmp -s System.map .tmp_System.map || \ |
818 | (echo Inconsistent kallsyms data; \ | 820 | (echo Inconsistent kallsyms data; \ |
819 | echo Try setting CONFIG_KALLSYMS_EXTRA_PASS; \ | 821 | echo This is a bug - please report about it; \ |
822 | echo Try "make KALLSYMS_EXTRA_PASS=1" as a workaround; \ | ||
820 | rm .tmp_kallsyms* ; /bin/false ) | 823 | rm .tmp_kallsyms* ; /bin/false ) |
821 | endef | 824 | endef |
822 | 825 | ||
diff --git a/init/Kconfig b/init/Kconfig index 563065df29a5..0edda616640f 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -981,18 +981,6 @@ config KALLSYMS_ALL | |||
981 | 981 | ||
982 | Say N unless you really need all symbols. | 982 | Say N unless you really need all symbols. |
983 | 983 | ||
984 | config KALLSYMS_EXTRA_PASS | ||
985 | bool "Do an extra kallsyms pass" | ||
986 | depends on KALLSYMS | ||
987 | help | ||
988 | If kallsyms is not working correctly, the build will fail with | ||
989 | inconsistent kallsyms data. If that occurs, log a bug report and | ||
990 | turn on KALLSYMS_EXTRA_PASS which should result in a stable build. | ||
991 | Always say N here unless you find a bug in kallsyms, which must be | ||
992 | reported. KALLSYMS_EXTRA_PASS is only a temporary workaround while | ||
993 | you wait for kallsyms to be fixed. | ||
994 | |||
995 | |||
996 | config HOTPLUG | 984 | config HOTPLUG |
997 | bool "Support for hot-pluggable devices" if EXPERT | 985 | bool "Support for hot-pluggable devices" if EXPERT |
998 | default y | 986 | default y |