Skip to content

Commit 19ee692

Browse files
ShamrockLeerichardweinberger
authored andcommitted
um: Makefile: use bash from the environment
Set Makefile SHELL to bash instead of /bin/bash for better portability. Some systems do not install binaries to /bin, and therefore do not provide /bin/bash. This includes Linux distros which intentionally avoid implementing the Filesystem Hierarchy Standard (FHS), such as NixOS and Guix System. The recipies inside arch/um/Makefile don't require top-level Bash to build, and setting "SHELL" to "bash" makes Make pick the Bash executable from the environment, hence this patch. Changes since last roll: - Rebase onto a more recent commit on the master branch. - Remove a dangling in-text citation from the change log. - Reword the change log. Signed-off-by: Yueh-Shun Li <[email protected]> Reviewed-by: Johannes Berg <[email protected] Signed-off-by: Richard Weinberger <[email protected]>
1 parent a0fbbd3 commit 19ee692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/um/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ endif
2020
ARCH_DIR := arch/um
2121
# We require bash because the vmlinux link and loader script cpp use bash
2222
# features.
23-
SHELL := /bin/bash
23+
SHELL := bash
2424

2525
MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas
2626

0 commit comments

Comments
 (0)