modules/bash: Include bash in all builds, remove CONFIG_BASH

Include bash in all builds.  Remove CONFIG_BASH.

Remove CONFIG_BASH_IS_ASH from busybox configuration and clean up hacks
in modules/bash.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2023-02-28 15:39:32 -05:00
parent d59ffe07b8
commit c9df49ad20
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114
13 changed files with 5 additions and 24 deletions

View File

@ -468,7 +468,7 @@ bin_modules-$(CONFIG_MSRTOOLS) += msrtools
bin_modules-$(CONFIG_NKSTORECLI) += nkstorecli
bin_modules-$(CONFIG_OPENSSL) += openssl
bin_modules-$(CONFIG_TPM2_TOOLS) += tpm2-tools
bin_modules-$(CONFIG_BASH) += bash
bin_modules-y += bash
$(foreach m, $(bin_modules-y), \
$(call map,initrd_bin_add,$(call bins,$m)) \

View File

@ -62,7 +62,6 @@ export CONFIG_BOOT_KERNEL_ADD="console=ttyS0 console=tty systemd.zram=0"
export CONFIG_BOOT_KERNEL_REMOVE="quiet rhgb splash"
export CONFIG_TPM=y
CONFIG_BASH=y
export CONFIG_BOOT_DEV="/dev/vda1"
export CONFIG_BOARD_NAME="qemu-coreboot-fbwhiptail-tpm1-hotp"

View File

@ -60,7 +60,6 @@ export CONFIG_BOOT_KERNEL_ADD="console=ttyS0 console=tty systemd.zram=0"
export CONFIG_BOOT_KERNEL_REMOVE="quiet rhgb splash"
export CONFIG_TPM=y
CONFIG_BASH=y
export CONFIG_BOOT_DEV="/dev/vda1"
export CONFIG_BOARD_NAME="qemu-coreboot-fbwhiptail-tpm1"

View File

@ -65,7 +65,6 @@ export CONFIG_TPM2_TOOLS=y
export CONFIG_PRIMARY_KEY_TYPE=ecc
CONFIG_TPM2_TSS=y
CONFIG_OPENSSL=y
CONFIG_BASH=y
export CONFIG_BOOT_DEV="/dev/vda1"
export CONFIG_BOARD_NAME="qemu-coreboot-fbwhiptail-tpm2-hotp"

View File

@ -64,7 +64,6 @@ export CONFIG_TPM2_TOOLS=y
export CONFIG_PRIMARY_KEY_TYPE=ecc
CONFIG_TPM2_TSS=y
CONFIG_OPENSSL=y
CONFIG_BASH=y
export CONFIG_BOOT_DEV="/dev/vda1"
export CONFIG_BOARD_NAME="qemu-coreboot-fbwhiptail-tpm2"

View File

@ -50,7 +50,6 @@ export CONFIG_BOOTSCRIPT=/bin/gui-init
#export CONFIG_BOOTSCRIPT=/bin/generic-init
export CONFIG_TPM=n
CONFIG_BASH=y
export CONFIG_BOOT_DEV="/dev/sda1"
export CONFIG_BOARD_NAME="qemu-coreboot-fbwhiptail"

View File

@ -62,7 +62,6 @@ export CONFIG_BOOT_KERNEL_ADD="console=ttyS0 console=tty systemd.zram=0"
export CONFIG_BOOT_KERNEL_REMOVE="quiet rhgb splash"
export CONFIG_TPM=y
CONFIG_BASH=y
export CONFIG_BOOT_DEV="/dev/vda1"
export CONFIG_BOARD_NAME="qemu-coreboot-whiptail-tpm1-hotp"

View File

@ -60,7 +60,6 @@ export CONFIG_BOOT_KERNEL_ADD="console=ttyS0 console=tty systemd.zram=0"
export CONFIG_BOOT_KERNEL_REMOVE="quiet rhgb splash"
export CONFIG_TPM=y
CONFIG_BASH=y
export CONFIG_BOOT_DEV="/dev/vda1"
export CONFIG_BOARD_NAME="qemu-coreboot-whiptail-tpm1"

View File

@ -65,7 +65,6 @@ export CONFIG_TPM2_TOOLS=y
export CONFIG_PRIMARY_KEY_TYPE=ecc
CONFIG_TPM2_TSS=y
CONFIG_OPENSSL=y
CONFIG_BASH=y
export CONFIG_BOOT_DEV="/dev/vda1"
export CONFIG_BOARD_NAME="qemu-coreboot-whiptail-tpm2-hotp"

View File

@ -64,7 +64,6 @@ export CONFIG_TPM2_TOOLS=y
export CONFIG_PRIMARY_KEY_TYPE=ecc
CONFIG_TPM2_TSS=y
CONFIG_OPENSSL=y
CONFIG_BASH=y
export CONFIG_BOOT_DEV="/dev/vda1"
export CONFIG_BOARD_NAME="qemu-coreboot-whiptail-tpm2"

View File

@ -51,7 +51,6 @@ CONFIG_LINUX_E1000=y
export CONFIG_BOOTSCRIPT=/bin/generic-init
export CONFIG_TPM=n
CONFIG_BASH=y
export CONFIG_BOOT_DEV="/dev/sda1"
export CONFIG_BOARD_NAME="qemu-coreboot"

View File

@ -1096,7 +1096,7 @@ CONFIG_SV_DEFAULT_SERVICE_DIR=""
CONFIG_SH_IS_ASH=y
# CONFIG_SH_IS_HUSH is not set
# CONFIG_SH_IS_NONE is not set
CONFIG_BASH_IS_ASH=y
# CONFIG_BASH_IS_ASH is not set
# CONFIG_BASH_IS_HUSH is not set
# CONFIG_BASH_IS_NONE is not set
CONFIG_SHELL_ASH=y

View File

@ -1,5 +1,5 @@
# GNU bash
modules-$(CONFIG_BASH) += bash
modules-y += bash
bash_version := 5.1.16
bash_dir := bash-$(bash_version)
@ -27,15 +27,6 @@ bash_target := $(MAKE_JOBS) \
DESTDIR="$(INSTALL)" \
install \
ifeq "$(CONFIG_BASH)" "y"
initrd_bins += $(initrd_tmp_dir)/bin/bash
endif
bash_output := bash
$(build)/$(bash_dir)/bash: $(build)/$(bash_dir)/.build
# Replace /bin/bash linked to busybox
$(initrd_tmp_dir)/bin/bash: $(build)/$(bash_dir)/bash $(initrd_tmp_dir)/bin/busybox
install -Dm 755 "$<" "$@"
$(CROSS)strip --preserve-dates "$@" 2>&-
bash_depends := $(musl_dep) busybox
bash_depends := $(musl_dep)