purism/librem_bdl: Convert to variant setup

Convert the purism/librem13v1 to a variant setup, in
preparation for adding the librem15v2 board as a new variant.
The Librem 13 v1 and Librem 15 v2 are nearly identical, so
this minimizes new code to add support for the latter.

Also update the URL in board_info to an archive.org link.

Change-Id: I00bb82b9e895e2464ddaa92915c01ce0e35933a2
Signed-off-by: Youness Alaoui <youness.alaoui@puri.sm>
Reviewed-on: https://review.coreboot.org/26183
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Youness Alaoui 2018-05-08 19:19:13 -04:00 committed by Patrick Georgi
parent 96184e9f2d
commit b799e0df3d
17 changed files with 39 additions and 10 deletions

View File

@ -1,7 +1,5 @@
if BOARD_PURISM_LIBREM13_V1
config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y
config BOARD_PURISM_BASEBOARD_LIBREM_BDL
def_bool n
select SYSTEM_TYPE_LAPTOP
select BOARD_ROMSIZE_KB_8192
select EC_PURISM_LIBREM
@ -10,6 +8,16 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select INTEL_INT15
select SOC_INTEL_BROADWELL
if BOARD_PURISM_BASEBOARD_LIBREM_BDL
config VARIANT_DIR
string
default "librem13v1" if BOARD_PURISM_LIBREM13_V1
config DEVICETREE
string
default "variants/librem13v1/devicetree.cb" if BOARD_PURISM_LIBREM13_V1
config DRIVERS_PS2_KEYBOARD
def_bool y
help
@ -37,11 +45,23 @@ config HAVE_ME_BIN
config MAINBOARD_DIR
string
default purism/librem13v1
default purism/librem_bdl
config MAINBOARD_VENDOR
string
default "Purism"
config MAINBOARD_PART_NUMBER
string
default "Librem 13 v1"
default "Librem 13 v1" if BOARD_PURISM_LIBREM13_V1
config MAINBOARD_FAMILY
string
default "Librem 13" if BOARD_PURISM_LIBREM13_V1
config MAINBOARD_VERSION
string
default "1.0" if BOARD_PURISM_LIBREM13_V1
config MAX_CPUS
int

View File

@ -1,2 +1,3 @@
config BOARD_PURISM_LIBREM13_V1
bool "Librem 13 v1"
select BOARD_PURISM_BASEBOARD_LIBREM_BDL

View File

@ -13,5 +13,5 @@
## GNU General Public License for more details.
##
romstage-y += pei_data.c
ramstage-y += pei_data.c
romstage-y += variants/$(VARIANT_DIR)/pei_data.c
ramstage-y += variants/$(VARIANT_DIR)/pei_data.c

View File

@ -1,7 +1,6 @@
Category: laptop
Vendor name: Purism
Board name: Librem 13 v1
Board URL: https://puri.sm/librem-13/
Board name: Librem Broadwell baseboard
ROM package: SOIC8
ROM protocol: SPI
ROM socketed: n

View File

@ -0,0 +1,9 @@
Category: laptop
Vendor name: Purism
Board name: Librem 13 v1
Board URL: https://web.archive.org/web/20161018125457/https://puri.sm/librem-13
ROM package: SOIC8
ROM protocol: SPI
ROM socketed: n
Flashrom support: y
Release year: 2015