mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 05:28:08 +00:00
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:
parent
d59ffe07b8
commit
c9df49ad20
2
Makefile
2
Makefile
@ -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)) \
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
15
modules/bash
15
modules/bash
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user