2022-08-25 18:43:31 +00:00
|
|
|
# GNU bash
|
2023-03-01 21:07:03 +00:00
|
|
|
modules-$(CONFIG_BASH) += bash
|
2022-08-25 18:43:31 +00:00
|
|
|
|
|
|
|
bash_version := 5.1.16
|
|
|
|
bash_dir := bash-$(bash_version)
|
|
|
|
bash_tar := bash-$(bash_version).tar.gz
|
|
|
|
bash_url := https://ftpmirror.gnu.org/bash/$(bash_tar)
|
|
|
|
bash_hash := 5bac17218d3911834520dad13cd1f85ab944e1c09ae1aba55906be1f8192f558
|
|
|
|
|
2024-01-10 22:04:21 +00:00
|
|
|
# --enable-debugger: Enables BASH_SOURCE tracing through functions as well as
|
|
|
|
# BASH_ARGV/BASH_ARGC. (Otherwise BASH_SOURCE[0] is empty when calling a
|
|
|
|
# function, it's only set in top level script code.)
|
2023-04-20 16:44:34 +00:00
|
|
|
bash_configure := CFLAGS="-g0 -Os" LDFLAGS="-s" ./configure \
|
2022-08-25 18:43:31 +00:00
|
|
|
$(CROSS_TOOLS) \
|
|
|
|
--host $(target) \
|
|
|
|
--prefix="/usr" \
|
2024-01-29 03:55:11 +00:00
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--mandir=/usr/share/man \
|
2022-08-25 18:43:31 +00:00
|
|
|
--disable-coprocesses \
|
|
|
|
--disable-net-redirections \
|
|
|
|
--disable-nls \
|
2024-01-29 03:55:11 +00:00
|
|
|
--enable-debugger \
|
|
|
|
--enable-largefile \
|
2024-01-17 21:30:31 +00:00
|
|
|
--enable-readline \
|
2024-01-29 03:55:11 +00:00
|
|
|
--enable-single-help-strings \
|
|
|
|
--without-bash-malloc
|
2022-08-25 18:43:31 +00:00
|
|
|
|
|
|
|
bash_target := $(MAKE_JOBS) \
|
|
|
|
&& $(MAKE) -C $(build)/$(bash_dir) \
|
|
|
|
DESTDIR="$(INSTALL)" \
|
|
|
|
install \
|
|
|
|
|
2023-02-28 20:39:32 +00:00
|
|
|
bash_output := bash
|
2022-08-25 18:43:31 +00:00
|
|
|
|
2023-02-28 20:39:32 +00:00
|
|
|
bash_depends := $(musl_dep)
|