mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +00:00
a4ba76fd90
Just some minor clean ups like fixing whitespace and sorting things. I added (bash)/removed (libusb) white space in order to look like the other modules. I sorted the --enable/--disable/--with blocks so that common stuff looked similar which should aid in comparing modules. I also removed a couple of duplicate config options (--disable-fallback-curses & --disable-regex). Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev> Signed-off-by: Thierry Laurion <insurgo@riseup.net>
36 lines
998 B
Makefile
36 lines
998 B
Makefile
# GNU bash
|
|
modules-$(CONFIG_BASH) += bash
|
|
|
|
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
|
|
|
|
# --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.)
|
|
bash_configure := CFLAGS="-g0 -Os" LDFLAGS="-s" ./configure \
|
|
$(CROSS_TOOLS) \
|
|
--host $(target) \
|
|
--prefix="/usr" \
|
|
--infodir=/usr/share/info \
|
|
--mandir=/usr/share/man \
|
|
--disable-coprocesses \
|
|
--disable-net-redirections \
|
|
--disable-nls \
|
|
--enable-debugger \
|
|
--enable-largefile \
|
|
--enable-readline \
|
|
--enable-single-help-strings \
|
|
--without-bash-malloc
|
|
|
|
bash_target := $(MAKE_JOBS) \
|
|
&& $(MAKE) -C $(build)/$(bash_dir) \
|
|
DESTDIR="$(INSTALL)" \
|
|
install \
|
|
|
|
bash_output := bash
|
|
|
|
bash_depends := $(musl_dep)
|