Skip to content

Commit edf200e

Browse files
authored
Merge pull request #1419 from JonathonHall-Purism/pureboot-27-heads-upstream
Upstream PureBoot 27
2 parents 3c492f9 + 45245fe commit edf200e

69 files changed

Lines changed: 2479 additions & 338 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ jobs:
194194
- build/x86/coreboot-4.15
195195
- build/x86/coreboot-4.17
196196
- build/x86/coreboot-4.19
197+
- build/x86/coreboot-git
197198
- build/ppc64/coreboot-git
198199
- save_cache:
199200
#Generate cache for the exact same modules definitions if hash is not previously existing

Makefile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ GIT_STATUS := $(shell \
99
fi)
1010
HEADS_GIT_VERSION := $(shell git describe --abbrev=7 --tags --dirty)
1111

12-
CB_OUTPUT_BASENAME := heads-$(BOARD)-$(HEADS_GIT_VERSION)
12+
# Override BRAND_NAME to set the name displayed in the UI, filenames, versions, etc.
13+
BRAND_NAME ?= Heads
14+
15+
CB_OUTPUT_BASENAME := $(shell echo $(BRAND_NAME) | tr A-Z a-z)-$(BOARD)-$(HEADS_GIT_VERSION)
1316
CB_OUTPUT_FILE := $(CB_OUTPUT_BASENAME).rom
1417
CB_OUTPUT_FILE_GPG_INJ := $(CB_OUTPUT_BASENAME)-gpg-injected.rom
1518
CB_BOOTBLOCK_FILE := $(CB_OUTPUT_BASENAME).bootblock
@@ -180,6 +183,7 @@ FORCE:
180183
define install_config =
181184
sed -e 's!@BOARD_BUILD_DIR@!$(board_build)!g' \
182185
-e 's!@BLOB_DIR@!$(pwd)/blobs!g' \
186+
-e 's!@BRAND_NAME@!$(BRAND_NAME)!g' \
183187
"$1" > "$2"
184188
endef
185189

@@ -513,6 +517,8 @@ bin_modules-$(CONFIG_TPM2_TOOLS) += tpm2-tools
513517
bin_modules-$(CONFIG_BASH) += bash
514518
bin_modules-$(CONFIG_POWERPC_UTILS) += powerpc-utils
515519
bin_modules-$(CONFIG_IO386) += io386
520+
bin_modules-$(CONFIG_IOPORT) += ioport
521+
bin_modules-$(CONFIG_ZSTD) += zstd
516522

517523
$(foreach m, $(bin_modules-y), \
518524
$(call map,initrd_bin_add,$(call bins,$m)) \
@@ -568,6 +574,7 @@ $(COREBOOT_UTIL_DIR)/superiotool/superiotool: \
568574
initrd-y += $(pwd)/blobs/dev.cpio
569575
initrd-y += $(build)/$(initrd_dir)/modules.cpio
570576
initrd-y += $(build)/$(initrd_dir)/tools.cpio
577+
initrd-y += $(build)/$(initrd_dir)/board.cpio
571578
initrd-$(CONFIG_HEADS) += $(build)/$(initrd_dir)/heads.cpio
572579

573580
#$(build)/$(initrd_dir)/.build: $(build)/$(initrd_dir)/initrd.cpio.xz
@@ -597,6 +604,17 @@ $(build)/$(initrd_dir)/initrd.cpio.xz: $(initrd-y)
597604
bundle-$(CONFIG_LINUX_BUNDLED) += $(board_build)/$(LINUX_IMAGE_FILE).bundled
598605
all: $(bundle-y)
599606

607+
# The board.cpio is built from the board's initrd/ directory. It contains
608+
# board-specific support scripts.
609+
610+
ifeq ($(wildcard $(pwd)/boards/$(BOARD)/initrd),)
611+
$(build)/$(initrd_dir)/board.cpio:
612+
cpio -H newc -o </dev/null >"$@"
613+
else
614+
$(build)/$(initrd_dir)/board.cpio: FORCE
615+
$(call do-cpio,$@,$(pwd)/boards/$(BOARD)/initrd)
616+
endif
617+
600618
#
601619
# The heads.cpio is built from the initrd directory in the
602620
# Heads tree.
@@ -633,6 +651,8 @@ $(initrd_tmp_dir)/etc/config: FORCE
633651
>> $@ ; \
634652
echo export CONFIG_BOARD=$(BOARD) \
635653
>> $@ ; \
654+
echo export CONFIG_BRAND_NAME=$(BRAND_NAME) \
655+
>> $@ ; \
636656
)
637657

638658
# Ensure that the initrd depends on all of the modules that produce

blobs/librem_jail/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This directory contains firmware/microcode needed for the Intel AX200 WiFi module, its Bluetooth counterparts, and the Bluetooth component (ar3k) of Ath9k WiFi modules. It is synchronized via the main system firmware (Pureboot) at each boot, and should not be modified.
45.8 KB
Binary file not shown.
1.76 KB
Binary file not shown.
9 Bytes
Binary file not shown.
772 KB
Binary file not shown.
1.2 MB
Binary file not shown.

boards/librem_13v2/librem_13v2.config

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CONFIG_LINUX_CONFIG=config/linux-librem_common.config
33
CONFIG_COREBOOT_CONFIG=config/coreboot-librem_13v2.config
44

55
export CONFIG_COREBOOT=y
6-
export CONFIG_COREBOOT_VERSION=4.17
6+
export CONFIG_COREBOOT_VERSION=purism
77
export CONFIG_LINUX_VERSION=5.10.5
88
export CONFIG_PURISM_BLOBS=y
99

@@ -30,6 +30,8 @@ CONFIG_LINUX_USB=y
3030

3131
export CONFIG_TPM=y
3232
export CONFIG_TPM_NO_LUKS_DISK_UNLOCK=y
33+
export CONFIG_TOTP_SKIP_QRCODE=y
34+
export CONFIG_OEMRESET_OFFER_DEFAULTS=y
3335
export CONFIG_BOOTSCRIPT=/bin/gui-init
3436
export CONFIG_BOOT_REQ_HASH=n
3537
export CONFIG_BOOT_REQ_ROLLBACK=n
@@ -39,3 +41,6 @@ export CONFIG_BOOT_DEV="/dev/nvme0n1p1"
3941
export CONFIG_BOARD_NAME="Librem 13 v2/v3"
4042
export CONFIG_FLASHROM_OPTIONS="-p internal"
4143
export CONFIG_AUTO_BOOT_TIMEOUT=5
44+
export CONFIG_ROOT_DEV="/dev/nvme0n1p2"
45+
export CONFIG_ROOT_DIRLIST="bin boot lib sbin usr"
46+
export CONFIG_ROOT_CHECK_AT_BOOT="n"

boards/librem_13v4/librem_13v4.config

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CONFIG_LINUX_CONFIG=config/linux-librem_common.config
33
CONFIG_COREBOOT_CONFIG=config/coreboot-librem_13v4.config
44

55
export CONFIG_COREBOOT=y
6-
export CONFIG_COREBOOT_VERSION=4.17
6+
export CONFIG_COREBOOT_VERSION=purism
77
export CONFIG_LINUX_VERSION=5.10.5
88
export CONFIG_PURISM_BLOBS=y
99

@@ -30,6 +30,8 @@ CONFIG_LINUX_USB=y
3030

3131
export CONFIG_TPM=y
3232
export CONFIG_TPM_NO_LUKS_DISK_UNLOCK=y
33+
export CONFIG_TOTP_SKIP_QRCODE=y
34+
export CONFIG_OEMRESET_OFFER_DEFAULTS=y
3335
export CONFIG_BOOTSCRIPT=/bin/gui-init
3436
export CONFIG_BOOT_REQ_HASH=n
3537
export CONFIG_BOOT_REQ_ROLLBACK=n
@@ -39,3 +41,6 @@ export CONFIG_BOOT_DEV="/dev/nvme0n1p1"
3941
export CONFIG_BOARD_NAME="Librem 13 v4"
4042
export CONFIG_FLASHROM_OPTIONS="-p internal"
4143
export CONFIG_AUTO_BOOT_TIMEOUT=5
44+
export CONFIG_ROOT_DEV="/dev/nvme0n1p2"
45+
export CONFIG_ROOT_DIRLIST="bin boot lib sbin usr"
46+
export CONFIG_ROOT_CHECK_AT_BOOT="n"

0 commit comments

Comments
 (0)