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:
Martin Roth 2016-09-30 14:43:01 -06:00
parent cc3365a039
commit 3b87812f00
28 changed files with 35 additions and 35 deletions

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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,

View File

@ -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

View File

@ -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

View File

@ -39,7 +39,7 @@ config MAINBOARD_PART_NUMBER
config HW_MEM_HOLE_SIZEK
hex
default 0
default 0x0
config MAX_CPUS
int

View File

@ -39,7 +39,7 @@ config MAINBOARD_PART_NUMBER
config HW_MEM_HOLE_SIZEK
hex
default 0
default 0x0
config MAX_CPUS
int

View File

@ -44,7 +44,7 @@ config AGP_APERTURE_SIZE
config HW_MEM_HOLE_SIZEK
hex
default 0
default 0x0
config MAX_CPUS
int

View File

@ -53,7 +53,7 @@ config DCACHE_RAM_SIZE
config APIC_ID_OFFSET
hex
default 0
default 0x0
config MAINBOARD_PART_NUMBER
string

View File

@ -43,7 +43,7 @@ config DCACHE_RAM_SIZE
config APIC_ID_OFFSET
hex
default 0
default 0x0
config MAINBOARD_PART_NUMBER
string

View File

@ -54,7 +54,7 @@ config DCACHE_RAM_SIZE
config APIC_ID_OFFSET
hex
default 0
default 0x0
config MAINBOARD_PART_NUMBER
string

View File

@ -42,7 +42,7 @@ config MAINBOARD_PART_NUMBER
config HW_MEM_HOLE_SIZEK
hex
default 0
default 0x0
config MAX_CPUS
int

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -50,7 +50,7 @@ config MAINBOARD_VENDOR
config EC_GOOGLE_CHROMEEC_SPI_BUS
hex
default 0
default 0x0
config DRIVER_TPM_I2C_BUS
hex

View File

@ -42,7 +42,7 @@ config DRAM_SIZE_MB
config EC_GOOGLE_CHROMEEC_SPI_BUS
hex
default 2
default 0x2
config UART_FOR_CONSOLE
int

View File

@ -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

View File

@ -33,7 +33,7 @@ config DCACHE_RAM_SIZE
config APIC_ID_OFFSET
hex
default 0
default 0x0
config MAINBOARD_PART_NUMBER
string

View File

@ -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

View File

@ -33,7 +33,7 @@ config DCACHE_RAM_SIZE
config APIC_ID_OFFSET
hex
default 0
default 0x0
config MAINBOARD_PART_NUMBER
string

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -212,7 +212,7 @@ config VBOOT_KEYBLOCK_VERSION
config VBOOT_KEYBLOCK_PREAMBLE_FLAGS
hex "Keyblock preamble flags"
default 0
default 0x0
endmenu # Keys