um: Makefile: use bash from the environment
authorYueh-Shun Li <shamrocklee@posteo.net>
Sat, 23 Mar 2024 17:44:25 +0000 (17:44 +0000)
committerRichard Weinberger <richard@nod.at>
Mon, 22 Apr 2024 20:17:29 +0000 (22:17 +0200)
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 <shamrocklee@posteo.net>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/Makefile

index 34957dcb88b9c31befa3c2b7e08809de73b23a3e..00b63bac5effb5bcf18ffb00fa23cfc28c358f3b 100644 (file)
@@ -20,7 +20,7 @@ endif
 ARCH_DIR := arch/um
 # We require bash because the vmlinux link and loader script cpp use bash
 # features.
-SHELL := /bin/bash
+SHELL := bash
 
 MODE_INCLUDE   += -I$(srctree)/$(ARCH_DIR)/include/shared/skas