Skip to content

Commit 9a12efc

Browse files
committed
Merge tag 'kbuild-v4.20-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild updates from Masahiro Yamada: - clean-up leftovers in Kconfig files - remove stale oldnoconfig and silentoldconfig targets - remove unneeded cc-fullversion and cc-name variables - improve merge_config script to allow overriding option prefix * tag 'kbuild-v4.20-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: kbuild: remove cc-name variable kbuild: replace cc-name test with CONFIG_CC_IS_CLANG merge_config.sh: Allow to define config prefix kbuild: remove unused cc-fullversion variable kconfig: remove silentoldconfig target kconfig: remove oldnoconfig target powerpc: PCI_MSI needs PCI powerpc: remove CONFIG_MCA leftovers powerpc: remove CONFIG_PCI_QSPAN scsi: aha152x: rename the PCMCIA define
2 parents 1694472 + 9951674 commit 9a12efc

17 files changed

Lines changed: 28 additions & 78 deletions

File tree

‎Documentation/kbuild/makefiles.txt‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -537,21 +537,6 @@ more details, with real examples.
537537
The third parameter may be a text as in this example, but it may also
538538
be an expanded variable or a macro.
539539

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-
555540
cc-cross-prefix
556541
cc-cross-prefix is used to check if there exists a $(CC) in path with
557542
one of the listed prefixes. The first prefix where there exist a

‎Documentation/networking/ice.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Enabling the driver
2020
The driver is enabled via the standard kernel configuration system,
2121
using the make command::
2222

23-
make oldconfig/silentoldconfig/menuconfig/etc.
23+
make oldconfig/menuconfig/etc.
2424

2525
The driver is located in the menu structure at:
2626

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ ifneq ($(KBUILD_SRC),)
485485
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree)
486486
endif
487487

488-
ifeq ($(cc-name),clang)
488+
ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),)
489489
ifneq ($(CROSS_COMPILE),)
490490
CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%))
491491
GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD)))
@@ -702,7 +702,7 @@ stackp-flags-$(CONFIG_STACKPROTECTOR_STRONG) := -fstack-protector-strong
702702

703703
KBUILD_CFLAGS += $(stackp-flags-y)
704704

705-
ifeq ($(cc-name),clang)
705+
ifdef CONFIG_CC_IS_CLANG
706706
KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,)
707707
KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
708708
KBUILD_CFLAGS += $(call cc-disable-warning, gnu)

‎arch/mips/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ cflags-y += -ffreestanding
128128
# clang's output will be based upon the build machine. So for clang we simply
129129
# unconditionally specify -EB or -EL as appropriate.
130130
#
131-
ifeq ($(cc-name),clang)
131+
ifdef CONFIG_CC_IS_CLANG
132132
cflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB
133133
cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -EL
134134
else

‎arch/mips/vdso/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ccflags-vdso := \
1010
$(filter -march=%,$(KBUILD_CFLAGS)) \
1111
-D__VDSO__
1212

13-
ifeq ($(cc-name),clang)
13+
ifdef CONFIG_CC_IS_CLANG
1414
ccflags-vdso += $(filter --target=%,$(KBUILD_CFLAGS))
1515
endif
1616

‎arch/powerpc/Kconfig‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -930,10 +930,6 @@ config FSL_GTM
930930
help
931931
Freescale General-purpose Timers support
932932

933-
# Yes MCA RS/6000s exist but Linux-PPC does not currently support any
934-
config MCA
935-
bool
936-
937933
# Platforms that what PCI turned unconditionally just do select PCI
938934
# in their config node. Platforms that want to choose at config
939935
# time should select PPC_PCI_CHOICE
@@ -944,7 +940,6 @@ config PCI
944940
bool "PCI support" if PPC_PCI_CHOICE
945941
default y if !40x && !CPM2 && !PPC_8xx && !PPC_83xx \
946942
&& !PPC_85xx && !PPC_86xx && !GAMECUBE_COMMON
947-
default PCI_QSPAN if PPC_8xx
948943
select GENERIC_PCI_IOMAP
949944
help
950945
Find out whether your system includes a PCI bus. PCI is the name of
@@ -958,14 +953,6 @@ config PCI_DOMAINS
958953
config PCI_SYSCALL
959954
def_bool PCI
960955

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-
969956
config PCI_8260
970957
bool
971958
depends on PCI && 8260

‎arch/powerpc/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ aflags-$(CONFIG_CPU_BIG_ENDIAN) += $(call cc-option,-mabi=elfv1)
9696
aflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -mabi=elfv2
9797
endif
9898

99-
ifneq ($(cc-name),clang)
99+
ifndef CONFIG_CC_IS_CLANG
100100
cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -mno-strict-align
101101
endif
102102

@@ -175,7 +175,7 @@ endif
175175
# Work around gcc code-gen bugs with -pg / -fno-omit-frame-pointer in gcc <= 4.8
176176
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44199
177177
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52828
178-
ifneq ($(cc-name),clang)
178+
ifndef CONFIG_CC_IS_CLANG
179179
CC_FLAGS_FTRACE += $(call cc-ifversion, -lt, 0409, -mno-sched-epilog)
180180
endif
181181
endif

‎arch/powerpc/platforms/40x/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ config KILAUEA
2929
select 405EX
3030
select PPC40x_SIMPLE
3131
select PPC4xx_PCI_EXPRESS
32+
select PCI
3233
select PCI_MSI
3334
select PPC4xx_MSI
3435
help

‎arch/powerpc/platforms/44x/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ config BLUESTONE
2121
depends on 44x
2222
select PPC44x_SIMPLE
2323
select APM821xx
24+
select PCI
2425
select PCI_MSI
2526
select PPC4xx_MSI
2627
select PPC4xx_PCI_EXPRESS
@@ -200,6 +201,7 @@ config AKEBONO
200201
select SWIOTLB
201202
select 476FPE
202203
select PPC4xx_PCI_EXPRESS
204+
select PCI
203205
select PCI_MSI
204206
select PPC4xx_HSTA_MSI
205207
select I2C

‎drivers/scsi/Kconfig‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ config SCSI_HPTIOP
538538

539539
config SCSI_BUSLOGIC
540540
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
542542
---help---
543543
This is support for BusLogic MultiMaster and FlashPoint SCSI Host
544544
Adapters. Consult the SCSI-HOWTO, available from
@@ -1175,12 +1175,12 @@ config SCSI_LPFC_DEBUG_FS
11751175

11761176
config SCSI_SIM710
11771177
tristate "Simple 53c710 SCSI support (Compaq, NCR machines)"
1178-
depends on (EISA || MCA) && SCSI
1178+
depends on EISA && SCSI
11791179
select SCSI_SPI_ATTRS
11801180
---help---
11811181
This driver is for NCR53c710 based SCSI host adapters.
11821182

1183-
It currently supports Compaq EISA cards and NCR MCA cards
1183+
It currently supports Compaq EISA cards.
11841184

11851185
config SCSI_DC395x
11861186
tristate "Tekram DC395(U/UW/F) and DC315(U) SCSI support"

0 commit comments

Comments
 (0)