arch/x86: CONFIG_BOOTLOADER_UNKNOWN renamed to CONFIG_X86_MULTIBOOT
The only use of the BOOTLOADER_UNKNOWN config option is on x86, where it controls whether a multiboot header is embedded in the output. This patch renames the option to be more descriptive, and makes it an x86-specific option, rather than a Zephyr top-level option. This also enables X86_MULTIBOOT by default, since the header only occupies 12-16 bytes of memory and is (almost always) harmless. Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
parent
95e1eb960b
commit
50c71e6043
10 changed files with 18 additions and 16 deletions
|
@ -392,15 +392,6 @@ config BOOTLOADER_KEXEC
|
||||||
This option signifies that Linux boots the kernel using kexec system call
|
This option signifies that Linux boots the kernel using kexec system call
|
||||||
and utility. This method is used to boot the kernel over the network.
|
and utility. This method is used to boot the kernel over the network.
|
||||||
|
|
||||||
config BOOTLOADER_UNKNOWN
|
|
||||||
bool "Generic boot loader support"
|
|
||||||
depends on X86
|
|
||||||
help
|
|
||||||
This option signifies that the target has a generic bootloader
|
|
||||||
or that it supports multiple ways of booting and it isn't clear
|
|
||||||
at build time which method is to be used. When this option is enabled
|
|
||||||
the board may have to do extra work to ensure a proper startup.
|
|
||||||
|
|
||||||
config BOOTLOADER_CONTEXT_RESTORE
|
config BOOTLOADER_CONTEXT_RESTORE
|
||||||
bool "Boot loader has context restore support"
|
bool "Boot loader has context restore support"
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -11,6 +11,16 @@ menu "X86 Architecture Options"
|
||||||
config ARCH
|
config ARCH
|
||||||
default "x86"
|
default "x86"
|
||||||
|
|
||||||
|
config X86_MULTIBOOT
|
||||||
|
bool "Generate multiboot header"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Embed a multiboot header in the output executable. This is used
|
||||||
|
by some boot loaders (e.g., GRUB) when loading Zephyr. It is safe
|
||||||
|
to leave this option on if you're not sure. It only expands the
|
||||||
|
text segment by 12-16 bytes and is typically ignored if not needed.
|
||||||
|
|
||||||
|
|
||||||
source "arch/x86/core/Kconfig"
|
source "arch/x86/core/Kconfig"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -466,7 +466,7 @@ z_x86_idt:
|
||||||
.long _idt_base_address /* physical start address */
|
.long _idt_base_address /* physical start address */
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_BOOTLOADER_UNKNOWN
|
#ifdef CONFIG_X86_MULTIBOOT
|
||||||
/* Multiboot header definition is needed for some bootloaders */
|
/* Multiboot header definition is needed for some bootloaders */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -495,7 +495,7 @@ z_x86_idt:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.long -(0x1BADB002 + 0)
|
.long -(0x1BADB002 + 0)
|
||||||
#endif /* CONFIG_BOOTLOADER_UNKNOWN */
|
#endif /* CONFIG_X86_MULTIBOOT */
|
||||||
|
|
||||||
#ifdef CONFIG_SET_GDT
|
#ifdef CONFIG_SET_GDT
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
config SOC_APOLLO_LAKE
|
config SOC_APOLLO_LAKE
|
||||||
bool "Intel Apollo Lake Soc"
|
bool "Intel Apollo Lake Soc"
|
||||||
select CPU_APOLLO_LAKE
|
select CPU_APOLLO_LAKE
|
||||||
select BOOTLOADER_UNKNOWN
|
|
||||||
select HAS_I2C_DW
|
select HAS_I2C_DW
|
||||||
select PCI
|
select PCI
|
||||||
select PCI_ENUMERATION
|
select PCI_ENUMERATION
|
||||||
|
|
|
@ -3,6 +3,5 @@
|
||||||
config SOC_ATOM
|
config SOC_ATOM
|
||||||
bool "Intel ATOM SoC"
|
bool "Intel ATOM SoC"
|
||||||
select CPU_ATOM
|
select CPU_ATOM
|
||||||
select BOOTLOADER_UNKNOWN
|
|
||||||
select X86_MMU
|
select X86_MMU
|
||||||
select ARCH_HAS_USERSPACE
|
select ARCH_HAS_USERSPACE
|
||||||
|
|
|
@ -3,4 +3,3 @@
|
||||||
config SOC_IA32
|
config SOC_IA32
|
||||||
bool "Generic IA32 SoC"
|
bool "Generic IA32 SoC"
|
||||||
select CPU_MINUTEIA
|
select CPU_MINUTEIA
|
||||||
select BOOTLOADER_UNKNOWN
|
|
||||||
|
|
|
@ -12,6 +12,9 @@ config SOC_SERIES
|
||||||
config X86_IAMCU
|
config X86_IAMCU
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config X86_MULTIBOOT
|
||||||
|
default n
|
||||||
|
|
||||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
default 32000000
|
default 32000000
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,9 @@ config SOC_SERIES
|
||||||
config X86_IAMCU
|
config X86_IAMCU
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config X86_MULTIBOOT
|
||||||
|
default n
|
||||||
|
|
||||||
config X86_NO_MELTDOWN
|
config X86_NO_MELTDOWN
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ config SOC_SERIES_QUARK_X1000
|
||||||
select CPU_MINUTEIA
|
select CPU_MINUTEIA
|
||||||
select CPU_HAS_FPU
|
select CPU_HAS_FPU
|
||||||
select HPET_TIMER
|
select HPET_TIMER
|
||||||
select BOOTLOADER_UNKNOWN
|
|
||||||
select PCI
|
select PCI
|
||||||
select PCI_ENUMERATION
|
select PCI_ENUMERATION
|
||||||
select PCIE
|
select PCIE
|
||||||
|
|
|
@ -5,7 +5,6 @@ config SOC_QUARK_X1000
|
||||||
select CPU_MINUTEIA
|
select CPU_MINUTEIA
|
||||||
select CPU_HAS_FPU
|
select CPU_HAS_FPU
|
||||||
select HPET_TIMER
|
select HPET_TIMER
|
||||||
select BOOTLOADER_UNKNOWN
|
|
||||||
select PCI
|
select PCI
|
||||||
select PCI_ENUMERATION
|
select PCI_ENUMERATION
|
||||||
select PCIE
|
select PCIE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue