[19/28] make.sh: Include /tools/sbin in search path

Message ID 20220204164748.315559-19-michael.tremer@ipfire.org
State Accepted
Commit 786ed505df442445281cb43f9a62b556cb76cf9b
Headers
Series [01/28] gcc: toolchain stage 2: Set sysroot to /tools_${arch} |

Commit Message

Michael Tremer Feb. 4, 2022, 4:47 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 make.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/make.sh b/make.sh
index 356173065..f3a1aeb5e 100755
--- a/make.sh
+++ b/make.sh
@@ -554,7 +554,7 @@  enterchroot() {
 	# Install QEMU helper, if needed
 	qemu_install_helper
 
-	local PATH="${TOOLS_DIR}/ccache/bin:/bin:/usr/bin:/sbin:/usr/sbin:${TOOLS_DIR}/bin"
+	local PATH="${TOOLS_DIR}/ccache/bin:/bin:/usr/bin:/sbin:/usr/sbin:${TOOLS_DIR}/sbin:${TOOLS_DIR}/bin"
 
 	# Prepend any custom changes to PATH
 	if [ -n "${CUSTOM_PATH}" ]; then
@@ -664,7 +664,7 @@  lfsmake1() {
 	[ $? == 1 ] && return 0
 
 	cd $BASEDIR/lfs && env -i \
-		PATH="${TOOLS_DIR}/ccache/bin:${TOOLS_DIR}/bin:$PATH" \
+		PATH="${TOOLS_DIR}/ccache/bin:${TOOLS_DIR}/sbin:${TOOLS_DIR}/bin:${PATH}" \
 		CCACHE_DIR="${CCACHE_DIR}"/${BUILD_ARCH}/${TOOLCHAINVER} \
 		CCACHE_TEMPDIR="${CCACHE_TEMPDIR}" \
 		CCACHE_COMPILERCHECK="${CCACHE_COMPILERCHECK}" \