Skip to content

Commit

Permalink
Merge tag 'kconfig-v4.19-2' of git://git.kernel.org/pub/scm/linux/ker…
Browse files Browse the repository at this point in the history
…nel/git/masahiroy/linux-kbuild

Pull Kconfig consolidation from Masahiro Yamada:
 "Consolidation of Kconfig files by Christoph Hellwig.

  Move the source statements of arch-independent Kconfig files instead
  of duplicating the includes in every arch/$(SRCARCH)/Kconfig"

* tag 'kconfig-v4.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
  kconfig: add a Memory Management options" menu
  kconfig: move the "Executable file formats" menu to fs/Kconfig.binfmt
  kconfig: use a menu in arch/Kconfig to reduce clutter
  kconfig: include kernel/Kconfig.preempt from init/Kconfig
  Kconfig: consolidate the "Kernel hacking" menu
  kconfig: include common Kconfig files from top-level Kconfig
  kconfig: remove duplicate SWAP symbol defintions
  um: create a proper drivers Kconfig
  um: cleanup Kconfig files
  um: stop abusing KBUILD_KCONFIG
  • Loading branch information
torvalds committed Aug 15, 2018
2 parents 01f0e5c + 59e0b52 commit fa1b5d0
Show file tree
Hide file tree
Showing 62 changed files with 316 additions and 996 deletions.
22 changes: 21 additions & 1 deletion Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,24 @@ comment "Compiler: $(CC_VERSION_TEXT)"

source "scripts/Kconfig.include"

source "arch/$(SRCARCH)/Kconfig"
source "init/Kconfig"

source "kernel/Kconfig.freezer"

source "fs/Kconfig.binfmt"

source "mm/Kconfig"

source "net/Kconfig"

source "drivers/Kconfig"

source "fs/Kconfig"

source "security/Kconfig"

source "crypto/Kconfig"

source "lib/Kconfig"

source "lib/Kconfig.debug"
13 changes: 13 additions & 0 deletions arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
# General architecture dependent options
#

#
# Note: arch/$(SRCARCH)/Kconfig needs to be included first so that it can
# override the default values in this file.
#
source "arch/$(SRCARCH)/Kconfig"

menu "General architecture-dependent options"

config CRASH_CORE
bool

Expand Down Expand Up @@ -734,6 +742,9 @@ config COMPAT_32BIT_TIME
config ARCH_NO_COHERENT_DMA_MMAP
bool

config ARCH_NO_PREEMPT
bool

config CPU_NO_EFFICIENT_FFS
def_bool n

Expand Down Expand Up @@ -833,3 +844,5 @@ config REFCOUNT_FULL
source "kernel/gcov/Kconfig"

source "scripts/gcc-plugins/Kconfig"

endmenu
23 changes: 1 addition & 22 deletions arch/alpha/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ config ALPHA
default y
select ARCH_MIGHT_HAVE_PC_PARPORT
select ARCH_MIGHT_HAVE_PC_SERIO
select ARCH_NO_PREEMPT
select ARCH_USE_CMPXCHG_LOCKREF
select HAVE_AOUT
select HAVE_IDE
Expand Down Expand Up @@ -74,9 +75,6 @@ config PGTABLE_LEVELS
int
default 3

source "init/Kconfig"
source "kernel/Kconfig.freezer"

config AUDIT_ARCH
bool

Expand Down Expand Up @@ -573,8 +571,6 @@ config ARCH_DISCONTIGMEM_ENABLE
or have huge holes in the physical address space for other reasons.
See <file:Documentation/vm/numa.rst> for more.

source "mm/Kconfig"

config NUMA
bool "NUMA Support (EXPERIMENTAL)"
depends on DISCONTIGMEM && BROKEN
Expand Down Expand Up @@ -713,28 +709,11 @@ config SRM_ENV
This driver is also available as a module and will be called
srm_env then.

source "fs/Kconfig.binfmt"

endmenu

source "net/Kconfig"

source "drivers/Kconfig"

source "fs/Kconfig"

source "arch/alpha/Kconfig.debug"

# DUMMY_CONSOLE may be defined in drivers/video/console/Kconfig
# but we also need it if VGA_HOSE is set
config DUMMY_CONSOLE
bool
depends on VGA_HOSE
default y

source "security/Kconfig"

source "crypto/Kconfig"

source "lib/Kconfig"

5 changes: 0 additions & 5 deletions arch/alpha/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
menu "Kernel hacking"

source "lib/Kconfig.debug"

config EARLY_PRINTK
bool
Expand Down Expand Up @@ -39,5 +36,3 @@ config MATHEMU
This option is required for IEEE compliant floating point arithmetic
on the Alpha. The only time you would ever not say Y is to say M in
order to debug the code. Say Y unless you know what you are doing.

endmenu
19 changes: 0 additions & 19 deletions arch/arc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ config HAVE_ARCH_TRANSPARENT_HUGEPAGE
def_bool y
depends on ARC_MMU_V4

source "init/Kconfig"
source "kernel/Kconfig.freezer"

menu "ARC Architecture Configuration"

menu "ARC Platform/SoC/Board"
Expand Down Expand Up @@ -551,24 +548,13 @@ config ARC_BUILTIN_DTB_NAME
Set the name of the DTB to embed in the vmlinux binary
Leaving it blank selects the minimal "skeleton" dtb

source "kernel/Kconfig.preempt"

menu "Executable file formats"
source "fs/Kconfig.binfmt"
endmenu

endmenu # "ARC Architecture Configuration"

source "mm/Kconfig"

config FORCE_MAX_ZONEORDER
int "Maximum zone order"
default "12" if ARC_HUGEPAGE_16M
default "11"

source "net/Kconfig"
source "drivers/Kconfig"

menu "Bus Support"

config PCI
Expand All @@ -589,9 +575,4 @@ source "drivers/pci/Kconfig"

endmenu

source "fs/Kconfig"
source "arch/arc/Kconfig.debug"
source "security/Kconfig"
source "crypto/Kconfig"
source "lib/Kconfig"
source "kernel/power/Kconfig"
5 changes: 0 additions & 5 deletions arch/arc/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
menu "Kernel hacking"

source "lib/Kconfig.debug"

config 16KSTACKS
bool "Use 16Kb for kernel stacks instead of 8Kb"
Expand All @@ -11,5 +8,3 @@ config 16KSTACKS
This increases the resident kernel footprint and will cause less
threads to run on the system and also increase the pressure
on the VM subsystem for higher order allocations.

endmenu
27 changes: 0 additions & 27 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,6 @@ config PGTABLE_LEVELS
default 3 if ARM_LPAE
default 2

source "init/Kconfig"

source "kernel/Kconfig.freezer"

menu "System Type"

config MMU
Expand Down Expand Up @@ -1481,8 +1477,6 @@ config ARCH_NR_GPIO

If unsure, leave the default value.

source kernel/Kconfig.preempt

config HZ_FIXED
int
default 200 if ARCH_EBSA110
Expand Down Expand Up @@ -1717,8 +1711,6 @@ config ARM_MODULE_PLTS
Disabling this is usually safe for small single-platform
configurations. If unsure, say y.

source "mm/Kconfig"

config FORCE_MAX_ZONEORDER
int "Maximum zone order"
default "12" if SOC_AM33XX
Expand Down Expand Up @@ -2171,12 +2163,6 @@ config KERNEL_MODE_NEON

endmenu

menu "Userspace binary formats"

source "fs/Kconfig.binfmt"

endmenu

menu "Power management options"

source "kernel/power/Kconfig"
Expand All @@ -2197,23 +2183,10 @@ config ARCH_HIBERNATION_POSSIBLE

endmenu

source "net/Kconfig"

source "drivers/Kconfig"

source "drivers/firmware/Kconfig"

source "fs/Kconfig"

source "arch/arm/Kconfig.debug"

source "security/Kconfig"

source "crypto/Kconfig"
if CRYPTO
source "arch/arm/crypto/Kconfig"
endif

source "lib/Kconfig"

source "arch/arm/kvm/Kconfig"
5 changes: 0 additions & 5 deletions arch/arm/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
menu "Kernel hacking"

source "lib/Kconfig.debug"

config ARM_PTDUMP_CORE
def_bool n
Expand Down Expand Up @@ -1863,5 +1860,3 @@ config PID_IN_CONTEXTIDR
are planning to use hardware trace tools with this kernel.

source "drivers/hwtracing/coresight/Kconfig"

endmenu
26 changes: 0 additions & 26 deletions arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,6 @@ config ARCH_SUPPORTS_UPROBES
config ARCH_PROC_KCORE_TEXT
def_bool y

source "init/Kconfig"

source "kernel/Kconfig.freezer"

source "arch/arm64/Kconfig.platforms"

menu "Bus support"
Expand Down Expand Up @@ -768,7 +764,6 @@ config HOLES_IN_ZONE
def_bool y
depends on NUMA

source kernel/Kconfig.preempt
source kernel/Kconfig.hz

config ARCH_SUPPORTS_DEBUG_PAGEALLOC
Expand Down Expand Up @@ -806,8 +801,6 @@ config ARCH_WANT_HUGE_PMD_SHARE
config ARCH_HAS_CACHE_LINE_SIZE
def_bool y

source "mm/Kconfig"

config SECCOMP
bool "Enable seccomp to safely compute untrusted bytecode"
---help---
Expand Down Expand Up @@ -1289,10 +1282,6 @@ config DMI

endmenu

menu "Userspace binary formats"

source "fs/Kconfig.binfmt"

config COMPAT
bool "Kernel support for 32-bit EL0"
depends on ARM64_4K_PAGES || EXPERT
Expand All @@ -1316,8 +1305,6 @@ config SYSVIPC_COMPAT
def_bool y
depends on COMPAT && SYSVIPC

endmenu

menu "Power management options"

source "kernel/power/Kconfig"
Expand All @@ -1343,25 +1330,12 @@ source "drivers/cpufreq/Kconfig"

endmenu

source "net/Kconfig"

source "drivers/Kconfig"

source "drivers/firmware/Kconfig"

source "drivers/acpi/Kconfig"

source "fs/Kconfig"

source "arch/arm64/kvm/Kconfig"

source "arch/arm64/Kconfig.debug"

source "security/Kconfig"

source "crypto/Kconfig"
if CRYPTO
source "arch/arm64/crypto/Kconfig"
endif

source "lib/Kconfig"
5 changes: 0 additions & 5 deletions arch/arm64/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
menu "Kernel hacking"

source "lib/Kconfig.debug"

config ARM64_PTDUMP_CORE
def_bool n
Expand Down Expand Up @@ -97,5 +94,3 @@ config ARM64_RELOC_TEST
tristate "Relocation testing module"

source "drivers/hwtracing/coresight/Kconfig"

endmenu
Loading

0 comments on commit fa1b5d0

Please sign in to comment.