handful of Kconfig changes
cover handful of Kconfig changes
Mostly just simplification, consolidation, and more conversion. The last two were entries added while the original series was in the last steps of review so they just needed to be finished up.
Doug Goldstein (4):
build: consolidate CONFIG_HAS_VIDEO and CONFIG_VIDEO
build: consolidate CONFIG_HAS_ACPI and CONFIG_ACPI
build: convert HAS_NUMA to Kconfig
build: convert HAS_CORE_PARKING to Kconfig
xen/arch/arm/Kconfig | 2 +- xen/arch/x86/Kconfig | 4 +++- xen/arch/x86/Rules.mk | 5 +---- xen/common/Kconfig | 3 +++ xen/common/Makefile | 2 +- xen/common/sysctl.c | 2 +- xen/drivers/Makefile | 4 ++-- xen/drivers/acpi/Kconfig | 7 +++++-- xen/drivers/acpi/Makefile | 2 +- xen/drivers/video/Kconfig | 6 +++--- xen/drivers/video/Makefile | 8 ++++---- xen/include/asm-arm/config.h | 2 -- xen/include/asm-x86/config.h | 4 ---- 13 files changed, 25 insertions(+), 26 deletions(-)
Signature · 7 lines
2.4.10 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
PATCH 1/4 build: consolidate CONFIG_HAS_VIDEO and CONFIG_VIDEO
No real advantage to keeping these separate. The use case of this from Linux is when the platform or target board has support for something but the user wants to be given the option to disable it.
---
CC: Ian Campbell <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Keir Fraser <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Andrew Cooper <[email protected]>
--- xen/arch/arm/Kconfig | 2 +- xen/drivers/Makefile | 2 +- xen/drivers/video/Kconfig | 6 +++--- xen/drivers/video/Makefile | 8 ++++---- xen/include/asm-arm/config.h | 2 -- xen/include/asm-x86/config.h | 2 -- 6 files changed, 9 insertions(+), 13 deletions(-)
xen/arch/arm/Kconfig +1 -1
@@ -22,7 +22,7 @@ config ARM select HAS_MEM_ACCESS select HAS_PASSTHROUGH select HAS_PDX - select HAS_VIDEO + select VIDEO config ARCH_DEFCONFIG string
xen/drivers/Makefile +1 -1
@@ -3,4 +3,4 @@ subdir-$(CONFIG_HAS_CPUFREQ) += cpufreq subdir-$(CONFIG_HAS_PCI) += pci subdir-$(CONFIG_HAS_PASSTHROUGH) += passthrough subdir-$(CONFIG_HAS_ACPI) += acpi -subdir-$(CONFIG_HAS_VIDEO) += video +subdir-$(CONFIG_VIDEO) += video
xen/drivers/video/Kconfig +3 -3
@@ -1,12 +1,12 @@ -# Select HAS_VIDEO if video is supported -config HAS_VIDEO +# Select VIDEO if video is supported +config VIDEO bool # Select VGA if VGA is supported config VGA bool - select HAS_VIDEO + select VIDEO # Select HAS_ARM_HDLCD if ARM HDLCD is supported config HAS_ARM_HDLCD
xen/drivers/video/Makefile +4 -4
@@ -1,7 +1,7 @@ obj-$(CONFIG_VGA) := vga.o -obj-$(CONFIG_HAS_VIDEO) += font_8x14.o -obj-$(CONFIG_HAS_VIDEO) += font_8x16.o -obj-$(CONFIG_HAS_VIDEO) += font_8x8.o -obj-$(CONFIG_HAS_VIDEO) += lfb.o +obj-$(CONFIG_VIDEO) += font_8x14.o +obj-$(CONFIG_VIDEO) += font_8x16.o +obj-$(CONFIG_VIDEO) += font_8x8.o +obj-$(CONFIG_VIDEO) += lfb.o obj-$(CONFIG_VGA) += vesa.o obj-$(CONFIG_HAS_ARM_HDLCD) += arm_hdlcd.o
xen/include/asm-arm/config.h +0 -2
@@ -32,8 +32,6 @@#define CONFIG_SMP 1 -#define CONFIG_VIDEO 1 -#define CONFIG_IRQ_HAS_MULTIPLE_ACTION 1#define CONFIG_PAGEALLOC_MAX_ORDER 18
xen/include/asm-x86/config.h +0 -2
@@ -43,8 +43,6 @@#define CONFIG_ACPI_SRAT 1#define CONFIG_ACPI_CSTATE 1 -#define CONFIG_VIDEO 1 -#define CONFIG_WATCHDOG 1#define CONFIG_MULTIBOOT 1
Signature · 7 lines
2.4.10 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Re: [PATCH 1/4] build: consolidate CONFIG_HAS_VIDEO and CONFIG_VIDEO
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 26.02.16 at 04:39, <[email protected]> wrote:
xen/drivers/video/Kconfig +0
-1@@ -1,12 +1,12 @@ -# Select HAS_VIDEO if video is supported
xen/drivers/video/Kconfig line 9
Quoted 10 lines
xen/drivers/video/Kconfig +3
-2-config HAS_VIDEO +# Select VIDEO if video is supported +config VIDEO bool # Select VGA if VGA is supported config VGA bool - select HAS_VIDEO + select VIDEO
Even if the needed ARM ack was in place, this wouldn't apply. I suppose there is another patch missing ahead of this one, converting HAS_VGA -> VGA.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
PATCH 2/4 build: consolidate CONFIG_HAS_ACPI and CONFIG_ACPI
In reply to Doug GoldsteinNo real advantage to keeping these separate. The use case of this from Linux is when the platform or target board has support for something but the user wants to be given the option to disable it.
---
CC: Keir Fraser <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Andrew Cooper <[email protected]>
--- xen/arch/x86/Kconfig | 2 +- xen/common/sysctl.c | 2 +- xen/drivers/Makefile | 2 +- xen/drivers/acpi/Kconfig | 4 ++-- xen/include/asm-x86/config.h | 1 - 5 files changed, 5 insertions(+), 6 deletions(-)
xen/arch/x86/Kconfig +1 -1
@@ -3,9 +3,9 @@ config X86_64 config X86 def_bool y + select ACPI select ACPI_LEGACY_TABLES_LOOKUP select COMPAT - select HAS_ACPI select HAS_CPUFREQ select HAS_EHCI select HAS_GDBSX
xen/common/sysctl.c +1 -1
@@ -171,7 +171,7 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xen_sysctl_t) u_sysctl) op->u.availheap.avail_bytes <<=PAGE_SHIFT ;break ; -#if defined (CONFIG_HAS_ACPI ) && defined (CONFIG_HAS_CPUFREQ ) +#if defined (CONFIG_ACPI ) && defined (CONFIG_HAS_CPUFREQ )case XEN_SYSCTL_get_pmstat: ret =do_get_pm_info (&op->u.get_pmstat);break ;
xen/drivers/Makefile +1 -1
@@ -2,5 +2,5 @@ subdir-y += char subdir-$(CONFIG_HAS_CPUFREQ) += cpufreq subdir-$(CONFIG_HAS_PCI) += pci subdir-$(CONFIG_HAS_PASSTHROUGH) += passthrough -subdir-$(CONFIG_HAS_ACPI) += acpi +subdir-$(CONFIG_ACPI) += acpi subdir-$(CONFIG_VIDEO) += video
xen/drivers/acpi/Kconfig +2 -2
@@ -1,6 +1,6 @@ -# Select HAS_ACPI if ACPI is supported -config HAS_ACPI +# Select ACPI if ACPI is supported +config ACPI bool config ACPI_LEGACY_TABLES_LOOKUP
xen/include/asm-x86/config.h +0 -1
@@ -36,7 +36,6 @@/* Intel P4 currently has largest cache line (L2 line size is 128 bytes). */ #define CONFIG_X86_L1_CACHE_SHIFT 7 -#define CONFIG_ACPI 1#define CONFIG_ACPI_BOOT 1#define CONFIG_ACPI_SLEEP 1#define CONFIG_ACPI_NUMA 1
Signature · 7 lines
2.4.10 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
PATCH 3/4 build: convert HAS_NUMA to Kconfig
In reply to Doug GoldsteinConvert HAS_NUMA to Kconfig as CONFIG_NUMA and let CONFIG_NUMA be defined by Kconfig.
---
CC: Keir Fraser <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Andrew Cooper <[email protected]>
--- xen/arch/x86/Kconfig | 1 + xen/arch/x86/Rules.mk | 1 - xen/drivers/acpi/Kconfig | 3 +++ xen/drivers/acpi/Makefile | 2 +- xen/include/asm-x86/config.h | 1 - 5 files changed, 5 insertions(+), 3 deletions(-)
xen/arch/x86/Kconfig +1 -0
@@ -18,6 +18,7 @@ config X86 select HAS_PASSTHROUGH select HAS_PCI select HAS_PDX + select NUMA select VGA config ARCH_DEFCONFIG
xen/arch/x86/Rules.mk +0 -1
@@ -1,7 +1,6 @@ ######################################## # x86-specific definitions -HAS_NUMA := y HAS_CORE_PARKING := y CFLAGS += -I$(BASEDIR)/include
xen/drivers/acpi/Kconfig +3 -0
@@ -5,3 +5,6 @@ config ACPI config ACPI_LEGACY_TABLES_LOOKUP bool + +config NUMA + bool
xen/drivers/acpi/Makefile +1 -1
@@ -3,7 +3,7 @@ subdir-y += utilities subdir-$(CONFIG_X86) += apei obj-bin-y += tables.init.o -obj-$(HAS_NUMA) += numa.o +obj-$(CONFIG_NUMA) += numa.o obj-y += osl.o obj-$(CONFIG_HAS_CPUFREQ) += pmstat.o
xen/include/asm-x86/config.h +0 -1
@@ -24,7 +24,6 @@#define CONFIG_HPET_TIMER 1#define CONFIG_X86_MCE_THERMAL 1#define CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS 1 -#define CONFIG_NUMA 1#define CONFIG_DISCONTIGMEM 1#define CONFIG_NUMA_EMU 1#define CONFIG_DOMAIN_PAGE 1
Signature · 7 lines
2.4.10 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Re: [PATCH 3/4] build: convert HAS_NUMA to Kconfig
Quoted 21 lines · Doug Goldstein
Convert
HAS_NUMAtoKconfigasCONFIG_NUMAand letCONFIG_NUMAbe defined byKconfig.Signed-off-by Doug Goldstein <[email protected]>---
CC: Keir Fraser <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Andrew Cooper <[email protected]>--- xen/arch/x86/Kconfig | 1 + xen/arch/x86/Rules.mk | 1 - xen/drivers/acpi/Kconfig | 3 +++ xen/drivers/acpi/Makefile | 2 +- xen/include/asm-x86/config.h | 1 - 5 files changed, 5 insertions(+), 3 deletions(-)xen/arch/x86/Kconfig +0
-0
xen/arch/x86/Kconfig config X86 · line 21
Quoted 4 lines
xen/arch/x86/Kconfig +1
-0@@ -18,6 +18,7 @@ config X86 select HAS_PASSTHROUGH select HAS_PCI select HAS_PDX + select NUMA
Odd spacing?
Quoted 59 lines
xen/arch/x86/Kconfig +0
-0select VGA config ARCH_DEFCONFIGxen/arch/x86/Rules.mk +0
-1@@ -1,7 +1,6 @@ ######################################## # x86-specific definitions -HAS_NUMA := y HAS_CORE_PARKING := y CFLAGS += -I$(BASEDIR)/includexen/drivers/acpi/Kconfig +3
-0@@ -5,3 +5,6 @@ config ACPI config ACPI_LEGACY_TABLES_LOOKUP bool + +config NUMA + boolxen/drivers/acpi/Makefile +1
-1@@ -3,7 +3,7 @@ subdir-y += utilities subdir-$(CONFIG_X86) += apei obj-bin-y += tables.init.o -obj-$(HAS_NUMA) += numa.o +obj-$(CONFIG_NUMA) += numa.o obj-y += osl.o obj-$(CONFIG_HAS_CPUFREQ) += pmstat.oxen/include/asm-x86/config.h +0
-1@@ -24,7 +24,6 @@#define CONFIG_HPET_TIMER 1#define CONFIG_X86_MCE_THERMAL 1#define CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS 1 -#define CONFIG_NUMA 1#define CONFIG_DISCONTIGMEM 1#define CONFIG_NUMA_EMU 1#define CONFIG_DOMAIN_PAGE 1Signature · 7 lines
2.4.10 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 3/4] build: convert HAS_NUMA to Kconfig
Quoted 15 lines · Konrad Rzeszutek Wilk
On Thu, Feb 25, 2016 at 09:39:11PM -0600, Doug Goldstein wrote:
5 files changed, 5 insertions(+), 3 deletions(-)xen/arch/x86/Kconfig config X86 · line 21
Quoted 10 lines
xen/arch/x86/Kconfig +1
-0@@ -18,6 +18,7 @@ config X86 select HAS_PASSTHROUGH select HAS_PCI select HAS_PDX + select NUMAOdd spacing?
Yeah I screwed up. I just fixed my vimrc to ensure that doesn't happen again.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
PATCH 4/4 build: convert HAS_CORE_PARKING to Kconfig
In reply to Doug GoldsteinConvert HAS_CORE_PARKING to Kconfig as CONFIG_CORE_PARKING. While removing HAS_CORE_PARKING, removed a trailing whitespace on a near by line.
---
CC: Keir Fraser <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Andrew Cooper <[email protected]>
--- xen/arch/x86/Kconfig | 1 + xen/arch/x86/Rules.mk | 4 +--- xen/common/Kconfig | 3 +++ xen/common/Makefile | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-)
xen/arch/x86/Kconfig +1 -0
@@ -6,6 +6,7 @@ config X86 select ACPI select ACPI_LEGACY_TABLES_LOOKUP select COMPAT + select CORE_PARKING select HAS_CPUFREQ select HAS_EHCI select HAS_GDBSX
xen/arch/x86/Rules.mk +1 -3
@@ -1,9 +1,7 @@ ######################################## # x86-specific definitions -HAS_CORE_PARKING := y - -CFLAGS += -I$(BASEDIR)/include +CFLAGS += -I$(BASEDIR)/include CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default CFLAGS += '-D__OBJECT_LABEL__=$(subst /,$$,$(subst -,_,$(subst $(BASEDIR)/,,$(CURDIR))/$@))'
xen/common/Kconfig +3 -0
@@ -8,6 +8,9 @@ config COMPAT HVM and PV guests. HVMLoader makes 32-bit hypercalls irrespective of the destination runmode of the guest. +config CORE_PARKING + bool + config FLASK bool "FLux Advanced Security Kernel support" default y
xen/common/Makefile +1 -1
@@ -1,5 +1,5 @@ obj-y += bitmap.o -obj-$(HAS_CORE_PARKING) += core_parking.o +obj-$(CONFIG_CORE_PARKING) += core_parking.o obj-y += cpu.o obj-y += cpupool.o obj-$(CONFIG_HAS_DEVICE_TREE) += device_tree.o
Signature · 7 lines
2.4.10 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 26.02.16 at 04:39, <[email protected]> wrote:
Mostly just simplification, consolidation, and more conversion. The last two were entries added while the original series was in the last steps of review so they just needed to be finished up.
Doug Goldstein (4):
build: consolidateCONFIG_HAS_VIDEOandCONFIG_VIDEO
build: consolidateCONFIG_HAS_ACPIandCONFIG_ACPI
build: convertHAS_NUMAtoKconfig
build: convertHAS_CORE_PARKINGtoKconfig
Patches 3 and 4 have indentation issues, which could be fixed up while committing, and with them adjusted
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel