modules/bash: enabled by default, disabled in legacy-flash boards

- legacy-flash boards have a single purpose: to flash BIOS region through flashrom.
  - They do not need bash nor have space for it in their 4mb defined coreboot CBFS region

Test build to have legacy boards builds under osresearch#1292
This commit is contained in:
Thierry Laurion 2023-03-01 16:07:03 -05:00 committed by Jonathon Hall
parent c9df49ad20
commit d549229bfc
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114
4 changed files with 6 additions and 2 deletions

View File

@ -52,6 +52,9 @@ include $(CONFIG)
# Unless otherwise specified, we are building for heads
CONFIG_HEADS ?= y
# Unless otherwise specified, we are building bash to have non-interactive shell for scripts (arrays and bashisms)
CONFIG_BASH ?= y
# Determine arch part for a host triplet
ifeq "$(CONFIG_TARGET_ARCH)" "x86"
MUSL_ARCH := x86_64
@ -468,7 +471,6 @@ bin_modules-$(CONFIG_MSRTOOLS) += msrtools
bin_modules-$(CONFIG_NKSTORECLI) += nkstorecli
bin_modules-$(CONFIG_OPENSSL) += openssl
bin_modules-$(CONFIG_TPM2_TOOLS) += tpm2-tools
bin_modules-y += bash
$(foreach m, $(bin_modules-y), \
$(call map,initrd_bin_add,$(call bins,$m)) \

View File

@ -4,6 +4,7 @@ export CONFIG_COREBOOT=y
export CONFIG_COREBOOT_VERSION=4.13
export CONFIG_LINUX_VERSION=4.14.62
CONFIG_BASH=n
CONFIG_FLASHROM=y
#CONFIG_GPG=y
#CONFIG_FLASHTOOLS=y

View File

@ -4,6 +4,7 @@ export CONFIG_COREBOOT=y
export CONFIG_COREBOOT_VERSION=4.13
export CONFIG_LINUX_VERSION=4.14.62
CONFIG_BASH=n
CONFIG_FLASHROM=y
#CONFIG_GPG=y
#CONFIG_FLASHTOOLS=y

View File

@ -1,5 +1,5 @@
# GNU bash
modules-y += bash
modules-$(CONFIG_BASH) += bash
bash_version := 5.1.16
bash_dir := bash-$(bash_version)