mainboard/google/reef: prepare sharing directory for variants
Instead of completely duplicating the a reference board's directory when doing a variant or follower device start providing a means to share code within a single directory. This change just starts the process from the Kconfig side, but subsequent patches will follow which disentangles the board specific pieces from and common logic. BUG=chrome-os-partner:56677 Change-Id: I96628920d78012e488ec008e35daac9c1be0cf79 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/16417 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
5a87de86ae
commit
4435a490cd
|
@ -1,7 +1,6 @@
|
||||||
if BOARD_GOOGLE_REEF
|
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS
|
config BOARD_GOOGLE_BASEBOARD_REEF
|
||||||
def_bool y
|
def_bool n
|
||||||
select SOC_INTEL_APOLLOLAKE
|
select SOC_INTEL_APOLLOLAKE
|
||||||
select BOARD_ROMSIZE_KB_16384
|
select BOARD_ROMSIZE_KB_16384
|
||||||
select EC_GOOGLE_CHROMEEC
|
select EC_GOOGLE_CHROMEEC
|
||||||
|
@ -10,10 +9,15 @@ config BOARD_SPECIFIC_OPTIONS
|
||||||
select HAVE_ACPI_TABLES
|
select HAVE_ACPI_TABLES
|
||||||
select MAINBOARD_HAS_CHROMEOS
|
select MAINBOARD_HAS_CHROMEOS
|
||||||
select MAINBOARD_HAS_LPC_TPM
|
select MAINBOARD_HAS_LPC_TPM
|
||||||
|
|
||||||
|
if BOARD_GOOGLE_BASEBOARD_REEF
|
||||||
|
|
||||||
|
config BASEBOARD_REEF_LAPTOP
|
||||||
|
def_bool n
|
||||||
select SYSTEM_TYPE_LAPTOP
|
select SYSTEM_TYPE_LAPTOP
|
||||||
|
|
||||||
config CHROMEOS
|
config CHROMEOS
|
||||||
select LID_SWITCH
|
select LID_SWITCH if BASEBOARD_REEF_LAPTOP
|
||||||
|
|
||||||
config DRIVERS_I2C_DA7219
|
config DRIVERS_I2C_DA7219
|
||||||
default y
|
default y
|
||||||
|
@ -30,16 +34,16 @@ config MAINBOARD_DIR
|
||||||
|
|
||||||
config MAINBOARD_PART_NUMBER
|
config MAINBOARD_PART_NUMBER
|
||||||
string
|
string
|
||||||
default "Reef"
|
default "Reef" if BOARD_GOOGLE_REEF
|
||||||
|
|
||||||
config MAINBOARD_FAMILY
|
config MAINBOARD_FAMILY
|
||||||
string
|
string
|
||||||
default "Google_Reef"
|
default "Google_Reef" if BOARD_GOOGLE_REEF
|
||||||
|
|
||||||
config GBB_HWID
|
config GBB_HWID
|
||||||
string
|
string
|
||||||
depends on CHROMEOS
|
depends on CHROMEOS
|
||||||
default "REEF TEST 3240"
|
default "REEF TEST 3240" if BOARD_GOOGLE_REEF
|
||||||
|
|
||||||
config MAX_CPUS
|
config MAX_CPUS
|
||||||
int
|
int
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
config BOARD_GOOGLE_REEF
|
config BOARD_GOOGLE_REEF
|
||||||
bool "Reef"
|
bool "Reef"
|
||||||
|
select BOARD_GOOGLE_BASEBOARD_REEF
|
||||||
|
select BASEBOARD_REEF_LAPTOP
|
||||||
|
|
Loading…
Reference in New Issue