Kconfig: Update default hex values to start with 0x
Kconfig hex values don't need to be in quotes, and should start with '0x'. If the default value isn't set this way, Kconfig will add the 0x to the start, and the entry can be added unnecessarily to the defconfig since it's "different" than what was set by the default. A check for this has been added to the Kconfig lint tool. Change-Id: I86f37340682771700011b6285e4b4af41b7e9968 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/16834 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
cc3365a039
commit
3b87812f00
|
@ -634,7 +634,7 @@ config IOAPIC
|
|||
|
||||
config CACHE_ROM_SIZE_OVERRIDE
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
# TODO: Can probably be removed once all chipsets have kconfig options for it.
|
||||
config VIDEO_MB
|
||||
|
|
|
@ -330,7 +330,7 @@ config CMOS_POST
|
|||
config CMOS_POST_OFFSET
|
||||
hex "Offset into CMOS to store POST codes"
|
||||
depends on CMOS_POST
|
||||
default 0
|
||||
default 0x0
|
||||
help
|
||||
If CMOS_POST is enabled then an offset into CMOS must be provided.
|
||||
If CONFIG_HAVE_OPTION_TABLE is enabled then it will use the value
|
||||
|
|
|
@ -288,7 +288,7 @@ endif # EARLY_PCI_BRIDGE
|
|||
config SUBSYSTEM_VENDOR_ID
|
||||
hex "Override PCI Subsystem Vendor ID"
|
||||
depends on PCI
|
||||
default "0x0000"
|
||||
default 0x0000
|
||||
help
|
||||
This config option will override the devicetree settings for
|
||||
PCI Subsystem Vendor ID.
|
||||
|
@ -296,7 +296,7 @@ config SUBSYSTEM_VENDOR_ID
|
|||
config SUBSYSTEM_DEVICE_ID
|
||||
hex "Override PCI Subsystem Device ID"
|
||||
depends on PCI
|
||||
default "0x0000"
|
||||
default 0x0000
|
||||
help
|
||||
This config option will override the devicetree settings for
|
||||
PCI Subsystem Device ID.
|
||||
|
|
|
@ -22,12 +22,12 @@ endchoice
|
|||
|
||||
config DRIVER_TPM_I2C_BUS
|
||||
hex "I2C TPM chip bus"
|
||||
default 9 # FIXME, workaround for Kconfig BS
|
||||
default 0x9 # FIXME, workaround for Kconfig BS
|
||||
depends on I2C_TPM
|
||||
|
||||
config DRIVER_TPM_I2C_ADDR
|
||||
hex "I2C TPM chip address"
|
||||
default 2 # FIXME, workaround for Kconfig BS
|
||||
default 0x2 # FIXME, workaround for Kconfig BS
|
||||
depends on I2C_TPM
|
||||
|
||||
config DRIVER_TPM_I2C_IRQ
|
||||
|
|
|
@ -25,7 +25,7 @@ config TPM_TIS_BASE_ADDRESS
|
|||
|
||||
config TPM_PIRQ
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
depends on LPC_TPM
|
||||
help
|
||||
This can be used to specify a PIRQ to use instead of SERIRQ,
|
||||
|
|
|
@ -4,7 +4,7 @@ config SPI_TPM
|
|||
|
||||
config DRIVER_TPM_SPI_BUS
|
||||
hex "SPI bus TPM chip is connected to"
|
||||
default 0
|
||||
default 0x0
|
||||
depends on SPI_TPM
|
||||
|
||||
config DRIVER_TPM_SPI_CHIP
|
||||
|
|
|
@ -72,7 +72,7 @@ config EC_GOOGLE_CHROMEEC_SPI_WAKEUP_DELAY_US
|
|||
config EC_GOOGLE_CHROMEEC_SPI_CHIP
|
||||
depends on EC_GOOGLE_CHROMEEC_SPI
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config EC_GOOGLE_CHROMEEC_BOARDNAME
|
||||
depends on EC_GOOGLE_CHROMEEC
|
||||
|
|
|
@ -39,7 +39,7 @@ config MAINBOARD_PART_NUMBER
|
|||
|
||||
config HW_MEM_HOLE_SIZEK
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config MAX_CPUS
|
||||
int
|
||||
|
|
|
@ -39,7 +39,7 @@ config MAINBOARD_PART_NUMBER
|
|||
|
||||
config HW_MEM_HOLE_SIZEK
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config MAX_CPUS
|
||||
int
|
||||
|
|
|
@ -44,7 +44,7 @@ config AGP_APERTURE_SIZE
|
|||
|
||||
config HW_MEM_HOLE_SIZEK
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config MAX_CPUS
|
||||
int
|
||||
|
|
|
@ -53,7 +53,7 @@ config DCACHE_RAM_SIZE
|
|||
|
||||
config APIC_ID_OFFSET
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config MAINBOARD_PART_NUMBER
|
||||
string
|
||||
|
|
|
@ -43,7 +43,7 @@ config DCACHE_RAM_SIZE
|
|||
|
||||
config APIC_ID_OFFSET
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config MAINBOARD_PART_NUMBER
|
||||
string
|
||||
|
|
|
@ -54,7 +54,7 @@ config DCACHE_RAM_SIZE
|
|||
|
||||
config APIC_ID_OFFSET
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config MAINBOARD_PART_NUMBER
|
||||
string
|
||||
|
|
|
@ -42,7 +42,7 @@ config MAINBOARD_PART_NUMBER
|
|||
|
||||
config HW_MEM_HOLE_SIZEK
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config MAX_CPUS
|
||||
int
|
||||
|
|
|
@ -65,7 +65,7 @@ config DRAM_SIZE_MB
|
|||
|
||||
config EC_GOOGLE_CHROMEEC_SPI_BUS
|
||||
hex
|
||||
default 5
|
||||
default 0x5
|
||||
|
||||
config BOOT_DEVICE_SPI_FLASH_BUS
|
||||
int
|
||||
|
@ -73,7 +73,7 @@ config BOOT_DEVICE_SPI_FLASH_BUS
|
|||
|
||||
config DRIVER_TPM_I2C_BUS
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config DRIVER_TPM_I2C_ADDR
|
||||
hex
|
||||
|
|
|
@ -72,7 +72,7 @@ config BOOT_DEVICE_SPI_FLASH_BUS
|
|||
|
||||
config EC_GOOGLE_CHROMEEC_SPI_BUS
|
||||
hex
|
||||
default 1
|
||||
default 0x1
|
||||
|
||||
config DRIVER_TPM_I2C_BUS
|
||||
hex
|
||||
|
|
|
@ -73,7 +73,7 @@ config BOOT_DEVICE_SPI_FLASH_BUS
|
|||
|
||||
config EC_GOOGLE_CHROMEEC_SPI_BUS
|
||||
hex
|
||||
default 1
|
||||
default 0x1
|
||||
|
||||
config DRIVER_TPM_I2C_BUS
|
||||
hex
|
||||
|
|
|
@ -74,7 +74,7 @@ config BOOT_DEVICE_SPI_FLASH_BUS
|
|||
|
||||
config EC_GOOGLE_CHROMEEC_SPI_BUS
|
||||
hex
|
||||
default 1
|
||||
default 0x1
|
||||
|
||||
config DRIVER_TPM_I2C_BUS
|
||||
hex
|
||||
|
|
|
@ -50,7 +50,7 @@ config MAINBOARD_VENDOR
|
|||
|
||||
config EC_GOOGLE_CHROMEEC_SPI_BUS
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config DRIVER_TPM_I2C_BUS
|
||||
hex
|
||||
|
|
|
@ -42,7 +42,7 @@ config DRAM_SIZE_MB
|
|||
|
||||
config EC_GOOGLE_CHROMEEC_SPI_BUS
|
||||
hex
|
||||
default 2
|
||||
default 0x2
|
||||
|
||||
config UART_FOR_CONSOLE
|
||||
int
|
||||
|
|
|
@ -54,7 +54,7 @@ config MAINBOARD_VENDOR
|
|||
|
||||
config EC_GOOGLE_CHROMEEC_SPI_BUS
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config EC_GOOGLE_CHROMEEC_SPI_WAKEUP_DELAY_US
|
||||
int
|
||||
|
|
|
@ -33,7 +33,7 @@ config DCACHE_RAM_SIZE
|
|||
|
||||
config APIC_ID_OFFSET
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config MAINBOARD_PART_NUMBER
|
||||
string
|
||||
|
|
|
@ -38,7 +38,7 @@ config MAX_PHYSICAL_CPUS
|
|||
|
||||
config HT_CHAIN_UNITID_BASE
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config HT_CHAIN_END_UNITID_BASE
|
||||
hex
|
||||
|
|
|
@ -33,7 +33,7 @@ config DCACHE_RAM_SIZE
|
|||
|
||||
config APIC_ID_OFFSET
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config MAINBOARD_PART_NUMBER
|
||||
string
|
||||
|
|
|
@ -40,7 +40,7 @@ config MAX_PHYSICAL_CPUS
|
|||
|
||||
config HT_CHAIN_UNITID_BASE
|
||||
hex
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
config HT_CHAIN_END_UNITID_BASE
|
||||
hex
|
||||
|
|
|
@ -167,7 +167,7 @@ config INTEL_PCH_UART_CONSOLE
|
|||
|
||||
config INTEL_PCH_UART_CONSOLE_NUMBER
|
||||
hex "Serial IO UART number to use for console"
|
||||
default "0x0"
|
||||
default 0x0
|
||||
depends on INTEL_PCH_UART_CONSOLE
|
||||
|
||||
config TTYS0_BASE
|
||||
|
|
|
@ -39,8 +39,8 @@ config ENABLE_IDE_COMBINED_MODE
|
|||
|
||||
config IDE_COMBINED_MODE
|
||||
hex
|
||||
default "0x0" if ENABLE_IDE_COMBINED_MODE
|
||||
default "0x1" if !ENABLE_IDE_COMBINED_MODE
|
||||
default 0x0 if ENABLE_IDE_COMBINED_MODE
|
||||
default 0x1 if !ENABLE_IDE_COMBINED_MODE
|
||||
|
||||
choice
|
||||
prompt "SATA Mode"
|
||||
|
@ -70,9 +70,9 @@ endchoice
|
|||
config SB800_SATA_MODE
|
||||
hex
|
||||
depends on (SB800_SATA_IDE || SB800_SATA_RAID || SB800_SATA_AHCI)
|
||||
default "0x0" if SB800_SATA_IDE
|
||||
default "0x1" if SB800_SATA_RAID
|
||||
default "0x2" if SB800_SATA_AHCI
|
||||
default 0x0 if SB800_SATA_IDE
|
||||
default 0x1 if SB800_SATA_RAID
|
||||
default 0x2 if SB800_SATA_AHCI
|
||||
|
||||
config SB_SUPERIO_HWM
|
||||
bool
|
||||
|
|
|
@ -212,7 +212,7 @@ config VBOOT_KEYBLOCK_VERSION
|
|||
|
||||
config VBOOT_KEYBLOCK_PREAMBLE_FLAGS
|
||||
hex "Keyblock preamble flags"
|
||||
default 0
|
||||
default 0x0
|
||||
|
||||
endmenu # Keys
|
||||
|
||||
|
|
Loading…
Reference in New Issue