diff options
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 15 | ||||
-rw-r--r-- | Documentation/networking/ice.rst | 2 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | arch/mips/Makefile | 2 | ||||
-rw-r--r-- | arch/mips/vdso/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/Kconfig | 13 | ||||
-rw-r--r-- | arch/powerpc/Makefile | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/40x/Kconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/Kconfig | 2 | ||||
-rw-r--r-- | drivers/scsi/Kconfig | 6 | ||||
-rw-r--r-- | drivers/scsi/aha152x.c | 14 | ||||
-rw-r--r-- | drivers/scsi/pcmcia/aha152x_core.c | 2 | ||||
-rw-r--r-- | scripts/Kbuild.include | 8 | ||||
-rw-r--r-- | scripts/Makefile.extrawarn | 2 | ||||
-rw-r--r-- | scripts/kconfig/Makefile | 16 | ||||
-rw-r--r-- | scripts/kconfig/conf.c | 7 | ||||
-rwxr-xr-x | scripts/kconfig/merge_config.sh | 6 |
17 files changed, 28 insertions, 78 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index 7b6a2b2bdc98..8da26c6dd886 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
@@ -537,21 +537,6 @@ more details, with real examples. | |||
537 | The third parameter may be a text as in this example, but it may also | 537 | The third parameter may be a text as in this example, but it may also |
538 | be an expanded variable or a macro. | 538 | be an expanded variable or a macro. |
539 | 539 | ||
540 | cc-fullversion | ||
541 | cc-fullversion is useful when the exact version of gcc is needed. | ||
542 | One typical use-case is when a specific GCC version is broken. | ||
543 | cc-fullversion points out a more specific version than cc-version does. | ||
544 | |||
545 | Example: | ||
546 | #arch/powerpc/Makefile | ||
547 | $(Q)if test "$(cc-fullversion)" = "040200" ; then \ | ||
548 | echo -n '*** GCC-4.2.0 cannot compile the 64-bit powerpc ' ; \ | ||
549 | false ; \ | ||
550 | fi | ||
551 | |||
552 | In this example for a specific GCC version the build will error out | ||
553 | explaining to the user why it stops. | ||
554 | |||
555 | cc-cross-prefix | 540 | cc-cross-prefix |
556 | cc-cross-prefix is used to check if there exists a $(CC) in path with | 541 | cc-cross-prefix is used to check if there exists a $(CC) in path with |
557 | one of the listed prefixes. The first prefix where there exist a | 542 | one of the listed prefixes. The first prefix where there exist a |
diff --git a/Documentation/networking/ice.rst b/Documentation/networking/ice.rst index 1e4948c9e989..4d118b827bbb 100644 --- a/Documentation/networking/ice.rst +++ b/Documentation/networking/ice.rst | |||
@@ -20,7 +20,7 @@ Enabling the driver | |||
20 | The driver is enabled via the standard kernel configuration system, | 20 | The driver is enabled via the standard kernel configuration system, |
21 | using the make command:: | 21 | using the make command:: |
22 | 22 | ||
23 | make oldconfig/silentoldconfig/menuconfig/etc. | 23 | make oldconfig/menuconfig/etc. |
24 | 24 | ||
25 | The driver is located in the menu structure at: | 25 | The driver is located in the menu structure at: |
26 | 26 | ||
@@ -485,7 +485,7 @@ ifneq ($(KBUILD_SRC),) | |||
485 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree) | 485 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree) |
486 | endif | 486 | endif |
487 | 487 | ||
488 | ifeq ($(cc-name),clang) | 488 | ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),) |
489 | ifneq ($(CROSS_COMPILE),) | 489 | ifneq ($(CROSS_COMPILE),) |
490 | CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%)) | 490 | CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%)) |
491 | GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD))) | 491 | GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD))) |
@@ -702,7 +702,7 @@ stackp-flags-$(CONFIG_STACKPROTECTOR_STRONG) := -fstack-protector-strong | |||
702 | 702 | ||
703 | KBUILD_CFLAGS += $(stackp-flags-y) | 703 | KBUILD_CFLAGS += $(stackp-flags-y) |
704 | 704 | ||
705 | ifeq ($(cc-name),clang) | 705 | ifdef CONFIG_CC_IS_CLANG |
706 | KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) | 706 | KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) |
707 | KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) | 707 | KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) |
708 | KBUILD_CFLAGS += $(call cc-disable-warning, gnu) | 708 | KBUILD_CFLAGS += $(call cc-disable-warning, gnu) |
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 15a84cfd0719..68410490e12f 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -128,7 +128,7 @@ cflags-y += -ffreestanding | |||
128 | # clang's output will be based upon the build machine. So for clang we simply | 128 | # clang's output will be based upon the build machine. So for clang we simply |
129 | # unconditionally specify -EB or -EL as appropriate. | 129 | # unconditionally specify -EB or -EL as appropriate. |
130 | # | 130 | # |
131 | ifeq ($(cc-name),clang) | 131 | ifdef CONFIG_CC_IS_CLANG |
132 | cflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB | 132 | cflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB |
133 | cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -EL | 133 | cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -EL |
134 | else | 134 | else |
diff --git a/arch/mips/vdso/Makefile b/arch/mips/vdso/Makefile index 34605ca21498..58a0315ad743 100644 --- a/arch/mips/vdso/Makefile +++ b/arch/mips/vdso/Makefile | |||
@@ -10,7 +10,7 @@ ccflags-vdso := \ | |||
10 | $(filter -march=%,$(KBUILD_CFLAGS)) \ | 10 | $(filter -march=%,$(KBUILD_CFLAGS)) \ |
11 | -D__VDSO__ | 11 | -D__VDSO__ |
12 | 12 | ||
13 | ifeq ($(cc-name),clang) | 13 | ifdef CONFIG_CC_IS_CLANG |
14 | ccflags-vdso += $(filter --target=%,$(KBUILD_CFLAGS)) | 14 | ccflags-vdso += $(filter --target=%,$(KBUILD_CFLAGS)) |
15 | endif | 15 | endif |
16 | 16 | ||
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 2d51b2bd4aa1..8be31261aec8 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -930,10 +930,6 @@ config FSL_GTM | |||
930 | help | 930 | help |
931 | Freescale General-purpose Timers support | 931 | Freescale General-purpose Timers support |
932 | 932 | ||
933 | # Yes MCA RS/6000s exist but Linux-PPC does not currently support any | ||
934 | config MCA | ||
935 | bool | ||
936 | |||
937 | # Platforms that what PCI turned unconditionally just do select PCI | 933 | # Platforms that what PCI turned unconditionally just do select PCI |
938 | # in their config node. Platforms that want to choose at config | 934 | # in their config node. Platforms that want to choose at config |
939 | # time should select PPC_PCI_CHOICE | 935 | # time should select PPC_PCI_CHOICE |
@@ -944,7 +940,6 @@ config PCI | |||
944 | bool "PCI support" if PPC_PCI_CHOICE | 940 | bool "PCI support" if PPC_PCI_CHOICE |
945 | default y if !40x && !CPM2 && !PPC_8xx && !PPC_83xx \ | 941 | default y if !40x && !CPM2 && !PPC_8xx && !PPC_83xx \ |
946 | && !PPC_85xx && !PPC_86xx && !GAMECUBE_COMMON | 942 | && !PPC_85xx && !PPC_86xx && !GAMECUBE_COMMON |
947 | default PCI_QSPAN if PPC_8xx | ||
948 | select GENERIC_PCI_IOMAP | 943 | select GENERIC_PCI_IOMAP |
949 | help | 944 | help |
950 | Find out whether your system includes a PCI bus. PCI is the name of | 945 | Find out whether your system includes a PCI bus. PCI is the name of |
@@ -958,14 +953,6 @@ config PCI_DOMAINS | |||
958 | config PCI_SYSCALL | 953 | config PCI_SYSCALL |
959 | def_bool PCI | 954 | def_bool PCI |
960 | 955 | ||
961 | config PCI_QSPAN | ||
962 | bool "QSpan PCI" | ||
963 | depends on PPC_8xx | ||
964 | select PPC_I8259 | ||
965 | help | ||
966 | Say Y here if you have a system based on a Motorola 8xx-series | ||
967 | embedded processor with a QSPAN PCI interface, otherwise say N. | ||
968 | |||
969 | config PCI_8260 | 956 | config PCI_8260 |
970 | bool | 957 | bool |
971 | depends on PCI && 8260 | 958 | depends on PCI && 8260 |
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 17be664dafa2..8a2ce14d68d0 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -96,7 +96,7 @@ aflags-$(CONFIG_CPU_BIG_ENDIAN) += $(call cc-option,-mabi=elfv1) | |||
96 | aflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -mabi=elfv2 | 96 | aflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -mabi=elfv2 |
97 | endif | 97 | endif |
98 | 98 | ||
99 | ifneq ($(cc-name),clang) | 99 | ifndef CONFIG_CC_IS_CLANG |
100 | cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -mno-strict-align | 100 | cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -mno-strict-align |
101 | endif | 101 | endif |
102 | 102 | ||
@@ -175,7 +175,7 @@ endif | |||
175 | # Work around gcc code-gen bugs with -pg / -fno-omit-frame-pointer in gcc <= 4.8 | 175 | # Work around gcc code-gen bugs with -pg / -fno-omit-frame-pointer in gcc <= 4.8 |
176 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44199 | 176 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44199 |
177 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52828 | 177 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52828 |
178 | ifneq ($(cc-name),clang) | 178 | ifndef CONFIG_CC_IS_CLANG |
179 | CC_FLAGS_FTRACE += $(call cc-ifversion, -lt, 0409, -mno-sched-epilog) | 179 | CC_FLAGS_FTRACE += $(call cc-ifversion, -lt, 0409, -mno-sched-epilog) |
180 | endif | 180 | endif |
181 | endif | 181 | endif |
diff --git a/arch/powerpc/platforms/40x/Kconfig b/arch/powerpc/platforms/40x/Kconfig index 2a9d66254ffc..5326ece36120 100644 --- a/arch/powerpc/platforms/40x/Kconfig +++ b/arch/powerpc/platforms/40x/Kconfig | |||
@@ -29,6 +29,7 @@ config KILAUEA | |||
29 | select 405EX | 29 | select 405EX |
30 | select PPC40x_SIMPLE | 30 | select PPC40x_SIMPLE |
31 | select PPC4xx_PCI_EXPRESS | 31 | select PPC4xx_PCI_EXPRESS |
32 | select PCI | ||
32 | select PCI_MSI | 33 | select PCI_MSI |
33 | select PPC4xx_MSI | 34 | select PPC4xx_MSI |
34 | help | 35 | help |
diff --git a/arch/powerpc/platforms/44x/Kconfig b/arch/powerpc/platforms/44x/Kconfig index f024efd5a4c2..9a85d350b1b6 100644 --- a/arch/powerpc/platforms/44x/Kconfig +++ b/arch/powerpc/platforms/44x/Kconfig | |||
@@ -21,6 +21,7 @@ config BLUESTONE | |||
21 | depends on 44x | 21 | depends on 44x |
22 | select PPC44x_SIMPLE | 22 | select PPC44x_SIMPLE |
23 | select APM821xx | 23 | select APM821xx |
24 | select PCI | ||
24 | select PCI_MSI | 25 | select PCI_MSI |
25 | select PPC4xx_MSI | 26 | select PPC4xx_MSI |
26 | select PPC4xx_PCI_EXPRESS | 27 | select PPC4xx_PCI_EXPRESS |
@@ -200,6 +201,7 @@ config AKEBONO | |||
200 | select SWIOTLB | 201 | select SWIOTLB |
201 | select 476FPE | 202 | select 476FPE |
202 | select PPC4xx_PCI_EXPRESS | 203 | select PPC4xx_PCI_EXPRESS |
204 | select PCI | ||
203 | select PCI_MSI | 205 | select PCI_MSI |
204 | select PPC4xx_HSTA_MSI | 206 | select PPC4xx_HSTA_MSI |
205 | select I2C | 207 | select I2C |
diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig index 70988c381268..f07444d30b21 100644 --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig | |||
@@ -538,7 +538,7 @@ config SCSI_HPTIOP | |||
538 | 538 | ||
539 | config SCSI_BUSLOGIC | 539 | config SCSI_BUSLOGIC |
540 | tristate "BusLogic SCSI support" | 540 | tristate "BusLogic SCSI support" |
541 | depends on (PCI || ISA || MCA) && SCSI && ISA_DMA_API && VIRT_TO_BUS | 541 | depends on (PCI || ISA) && SCSI && ISA_DMA_API && VIRT_TO_BUS |
542 | ---help--- | 542 | ---help--- |
543 | This is support for BusLogic MultiMaster and FlashPoint SCSI Host | 543 | This is support for BusLogic MultiMaster and FlashPoint SCSI Host |
544 | Adapters. Consult the SCSI-HOWTO, available from | 544 | Adapters. Consult the SCSI-HOWTO, available from |
@@ -1175,12 +1175,12 @@ config SCSI_LPFC_DEBUG_FS | |||
1175 | 1175 | ||
1176 | config SCSI_SIM710 | 1176 | config SCSI_SIM710 |
1177 | tristate "Simple 53c710 SCSI support (Compaq, NCR machines)" | 1177 | tristate "Simple 53c710 SCSI support (Compaq, NCR machines)" |
1178 | depends on (EISA || MCA) && SCSI | 1178 | depends on EISA && SCSI |
1179 | select SCSI_SPI_ATTRS | 1179 | select SCSI_SPI_ATTRS |
1180 | ---help--- | 1180 | ---help--- |
1181 | This driver is for NCR53c710 based SCSI host adapters. | 1181 | This driver is for NCR53c710 based SCSI host adapters. |
1182 | 1182 | ||
1183 | It currently supports Compaq EISA cards and NCR MCA cards | 1183 | It currently supports Compaq EISA cards. |
1184 | 1184 | ||
1185 | config SCSI_DC395x | 1185 | config SCSI_DC395x |
1186 | tristate "Tekram DC395(U/UW/F) and DC315(U) SCSI support" | 1186 | tristate "Tekram DC395(U/UW/F) and DC315(U) SCSI support" |
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c index 4d7b0e0adbf7..301b3cad15f8 100644 --- a/drivers/scsi/aha152x.c +++ b/drivers/scsi/aha152x.c | |||
@@ -269,7 +269,7 @@ static LIST_HEAD(aha152x_host_list); | |||
269 | /* DEFINES */ | 269 | /* DEFINES */ |
270 | 270 | ||
271 | /* For PCMCIA cards, always use AUTOCONF */ | 271 | /* For PCMCIA cards, always use AUTOCONF */ |
272 | #if defined(PCMCIA) || defined(MODULE) | 272 | #if defined(AHA152X_PCMCIA) || defined(MODULE) |
273 | #if !defined(AUTOCONF) | 273 | #if !defined(AUTOCONF) |
274 | #define AUTOCONF | 274 | #define AUTOCONF |
275 | #endif | 275 | #endif |
@@ -297,7 +297,7 @@ CMD_INC_RESID(struct scsi_cmnd *cmd, int inc) | |||
297 | 297 | ||
298 | #define DELAY_DEFAULT 1000 | 298 | #define DELAY_DEFAULT 1000 |
299 | 299 | ||
300 | #if defined(PCMCIA) | 300 | #if defined(AHA152X_PCMCIA) |
301 | #define IRQ_MIN 0 | 301 | #define IRQ_MIN 0 |
302 | #define IRQ_MAX 16 | 302 | #define IRQ_MAX 16 |
303 | #else | 303 | #else |
@@ -328,7 +328,7 @@ MODULE_AUTHOR("Jürgen Fischer"); | |||
328 | MODULE_DESCRIPTION(AHA152X_REVID); | 328 | MODULE_DESCRIPTION(AHA152X_REVID); |
329 | MODULE_LICENSE("GPL"); | 329 | MODULE_LICENSE("GPL"); |
330 | 330 | ||
331 | #if !defined(PCMCIA) | 331 | #if !defined(AHA152X_PCMCIA) |
332 | #if defined(MODULE) | 332 | #if defined(MODULE) |
333 | static int io[] = {0, 0}; | 333 | static int io[] = {0, 0}; |
334 | module_param_hw_array(io, int, ioport, NULL, 0); | 334 | module_param_hw_array(io, int, ioport, NULL, 0); |
@@ -391,7 +391,7 @@ static struct isapnp_device_id id_table[] = { | |||
391 | MODULE_DEVICE_TABLE(isapnp, id_table); | 391 | MODULE_DEVICE_TABLE(isapnp, id_table); |
392 | #endif /* ISAPNP */ | 392 | #endif /* ISAPNP */ |
393 | 393 | ||
394 | #endif /* !PCMCIA */ | 394 | #endif /* !AHA152X_PCMCIA */ |
395 | 395 | ||
396 | static struct scsi_host_template aha152x_driver_template; | 396 | static struct scsi_host_template aha152x_driver_template; |
397 | 397 | ||
@@ -863,7 +863,7 @@ void aha152x_release(struct Scsi_Host *shpnt) | |||
863 | if (shpnt->irq) | 863 | if (shpnt->irq) |
864 | free_irq(shpnt->irq, shpnt); | 864 | free_irq(shpnt->irq, shpnt); |
865 | 865 | ||
866 | #if !defined(PCMCIA) | 866 | #if !defined(AHA152X_PCMCIA) |
867 | if (shpnt->io_port) | 867 | if (shpnt->io_port) |
868 | release_region(shpnt->io_port, IO_RANGE); | 868 | release_region(shpnt->io_port, IO_RANGE); |
869 | #endif | 869 | #endif |
@@ -2924,7 +2924,7 @@ static struct scsi_host_template aha152x_driver_template = { | |||
2924 | .slave_alloc = aha152x_adjust_queue, | 2924 | .slave_alloc = aha152x_adjust_queue, |
2925 | }; | 2925 | }; |
2926 | 2926 | ||
2927 | #if !defined(PCMCIA) | 2927 | #if !defined(AHA152X_PCMCIA) |
2928 | static int setup_count; | 2928 | static int setup_count; |
2929 | static struct aha152x_setup setup[2]; | 2929 | static struct aha152x_setup setup[2]; |
2930 | 2930 | ||
@@ -3392,4 +3392,4 @@ static int __init aha152x_setup(char *str) | |||
3392 | __setup("aha152x=", aha152x_setup); | 3392 | __setup("aha152x=", aha152x_setup); |
3393 | #endif | 3393 | #endif |
3394 | 3394 | ||
3395 | #endif /* !PCMCIA */ | 3395 | #endif /* !AHA152X_PCMCIA */ |
diff --git a/drivers/scsi/pcmcia/aha152x_core.c b/drivers/scsi/pcmcia/aha152x_core.c index dba3716511c5..24b89228b241 100644 --- a/drivers/scsi/pcmcia/aha152x_core.c +++ b/drivers/scsi/pcmcia/aha152x_core.c | |||
@@ -1,3 +1,3 @@ | |||
1 | #define PCMCIA 1 | 1 | #define AHA152X_PCMCIA 1 |
2 | #define AHA152X_STAT 1 | 2 | #define AHA152X_STAT 1 |
3 | #include "aha152x.c" | 3 | #include "aha152x.c" |
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index ca21a35fa244..bb015551c2d9 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -140,17 +140,9 @@ cc-option-yn = $(call try-run,\ | |||
140 | cc-disable-warning = $(call try-run,\ | 140 | cc-disable-warning = $(call try-run,\ |
141 | $(CC) -Werror $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1))) | 141 | $(CC) -Werror $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1))) |
142 | 142 | ||
143 | # cc-name | ||
144 | # Expands to either gcc or clang | ||
145 | cc-name = $(shell $(CC) -v 2>&1 | grep -q "clang version" && echo clang || echo gcc) | ||
146 | |||
147 | # cc-version | 143 | # cc-version |
148 | cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC)) | 144 | cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC)) |
149 | 145 | ||
150 | # cc-fullversion | ||
151 | cc-fullversion = $(shell $(CONFIG_SHELL) \ | ||
152 | $(srctree)/scripts/gcc-version.sh -p $(CC)) | ||
153 | |||
154 | # cc-ifversion | 146 | # cc-ifversion |
155 | # Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1) | 147 | # Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1) |
156 | cc-ifversion = $(shell [ $(cc-version) $(1) $(2) ] && echo $(3) || echo $(4)) | 148 | cc-ifversion = $(shell [ $(cc-version) $(1) $(2) ] && echo $(3) || echo $(4)) |
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index cf6cd0ef6975..768306add591 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn | |||
@@ -65,7 +65,7 @@ endif | |||
65 | KBUILD_CFLAGS += $(warning) | 65 | KBUILD_CFLAGS += $(warning) |
66 | else | 66 | else |
67 | 67 | ||
68 | ifeq ($(cc-name),clang) | 68 | ifdef CONFIG_CC_IS_CLANG |
69 | KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides) | 69 | KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides) |
70 | KBUILD_CFLAGS += $(call cc-disable-warning, unused-value) | 70 | KBUILD_CFLAGS += $(call cc-disable-warning, unused-value) |
71 | KBUILD_CFLAGS += $(call cc-disable-warning, format) | 71 | KBUILD_CFLAGS += $(call cc-disable-warning, format) |
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 67ed9f6ccdf8..63b609243d03 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -68,21 +68,7 @@ PHONY += $(simple-targets) | |||
68 | $(simple-targets): $(obj)/conf | 68 | $(simple-targets): $(obj)/conf |
69 | $< $(silent) --$@ $(Kconfig) | 69 | $< $(silent) --$@ $(Kconfig) |
70 | 70 | ||
71 | PHONY += oldnoconfig silentoldconfig savedefconfig defconfig | 71 | PHONY += savedefconfig defconfig |
72 | |||
73 | # oldnoconfig is an alias of olddefconfig, because people already are dependent | ||
74 | # on its behavior (sets new symbols to their default value but not 'n') with the | ||
75 | # counter-intuitive name. | ||
76 | oldnoconfig: olddefconfig | ||
77 | @echo " WARNING: \"oldnoconfig\" target will be removed after Linux 4.19" | ||
78 | @echo " Please use \"olddefconfig\" instead, which is an alias." | ||
79 | |||
80 | # We do not expect manual invokcation of "silentoldcofig" (or "syncconfig"). | ||
81 | silentoldconfig: syncconfig | ||
82 | @echo " WARNING: \"silentoldconfig\" has been renamed to \"syncconfig\"" | ||
83 | @echo " and is now an internal implementation detail." | ||
84 | @echo " What you want is probably \"oldconfig\"." | ||
85 | @echo " \"silentoldconfig\" will be removed after Linux 4.19" | ||
86 | 72 | ||
87 | savedefconfig: $(obj)/conf | 73 | savedefconfig: $(obj)/conf |
88 | $< $(silent) --$@=defconfig $(Kconfig) | 74 | $< $(silent) --$@=defconfig $(Kconfig) |
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 7b2b37260669..98e0c7a34699 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c | |||
@@ -460,12 +460,6 @@ static struct option long_opts[] = { | |||
460 | {"randconfig", no_argument, NULL, randconfig}, | 460 | {"randconfig", no_argument, NULL, randconfig}, |
461 | {"listnewconfig", no_argument, NULL, listnewconfig}, | 461 | {"listnewconfig", no_argument, NULL, listnewconfig}, |
462 | {"olddefconfig", no_argument, NULL, olddefconfig}, | 462 | {"olddefconfig", no_argument, NULL, olddefconfig}, |
463 | /* | ||
464 | * oldnoconfig is an alias of olddefconfig, because people already | ||
465 | * are dependent on its behavior(sets new symbols to their default | ||
466 | * value but not 'n') with the counter-intuitive name. | ||
467 | */ | ||
468 | {"oldnoconfig", no_argument, NULL, olddefconfig}, | ||
469 | {NULL, 0, NULL, 0} | 463 | {NULL, 0, NULL, 0} |
470 | }; | 464 | }; |
471 | 465 | ||
@@ -480,7 +474,6 @@ static void conf_usage(const char *progname) | |||
480 | printf(" --syncconfig Similar to oldconfig but generates configuration in\n" | 474 | printf(" --syncconfig Similar to oldconfig but generates configuration in\n" |
481 | " include/{generated/,config/}\n"); | 475 | " include/{generated/,config/}\n"); |
482 | printf(" --olddefconfig Same as oldconfig but sets new symbols to their default value\n"); | 476 | printf(" --olddefconfig Same as oldconfig but sets new symbols to their default value\n"); |
483 | printf(" --oldnoconfig An alias of olddefconfig\n"); | ||
484 | printf(" --defconfig <file> New config with default defined in <file>\n"); | 477 | printf(" --defconfig <file> New config with default defined in <file>\n"); |
485 | printf(" --savedefconfig <file> Save the minimal current configuration to <file>\n"); | 478 | printf(" --savedefconfig <file> Save the minimal current configuration to <file>\n"); |
486 | printf(" --allnoconfig New config where all options are answered with no\n"); | 479 | printf(" --allnoconfig New config where all options are answered with no\n"); |
diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh index 67d131447631..da66e7742282 100755 --- a/scripts/kconfig/merge_config.sh +++ b/scripts/kconfig/merge_config.sh | |||
@@ -33,12 +33,15 @@ usage() { | |||
33 | echo " -n use allnoconfig instead of alldefconfig" | 33 | echo " -n use allnoconfig instead of alldefconfig" |
34 | echo " -r list redundant entries when merging fragments" | 34 | echo " -r list redundant entries when merging fragments" |
35 | echo " -O dir to put generated output files. Consider setting \$KCONFIG_CONFIG instead." | 35 | echo " -O dir to put generated output files. Consider setting \$KCONFIG_CONFIG instead." |
36 | echo | ||
37 | echo "Used prefix: '$CONFIG_PREFIX'. You can redefine it with \$CONFIG_ environment variable." | ||
36 | } | 38 | } |
37 | 39 | ||
38 | RUNMAKE=true | 40 | RUNMAKE=true |
39 | ALLTARGET=alldefconfig | 41 | ALLTARGET=alldefconfig |
40 | WARNREDUN=false | 42 | WARNREDUN=false |
41 | OUTPUT=. | 43 | OUTPUT=. |
44 | CONFIG_PREFIX=${CONFIG_-CONFIG_} | ||
42 | 45 | ||
43 | while true; do | 46 | while true; do |
44 | case $1 in | 47 | case $1 in |
@@ -99,7 +102,8 @@ if [ ! -r "$INITFILE" ]; then | |||
99 | fi | 102 | fi |
100 | 103 | ||
101 | MERGE_LIST=$* | 104 | MERGE_LIST=$* |
102 | SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(CONFIG_[a-zA-Z0-9_]*\)[= ].*/\2/p" | 105 | SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(${CONFIG_PREFIX}[a-zA-Z0-9_]*\)[= ].*/\2/p" |
106 | |||
103 | TMP_FILE=$(mktemp ./.tmp.config.XXXXXXXXXX) | 107 | TMP_FILE=$(mktemp ./.tmp.config.XXXXXXXXXX) |
104 | 108 | ||
105 | echo "Using $INITFILE as base" | 109 | echo "Using $INITFILE as base" |