mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
make.sh: Add CUSTOM_PATH option to lfsmake1
This is required so that we use the host's tools to perform the stripping. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
52e947f7f2
commit
0ce11c680d
8
make.sh
8
make.sh
@@ -663,8 +663,12 @@ lfsmake1() {
|
||||
lfsmakecommoncheck $*
|
||||
[ $? == 1 ] && return 0
|
||||
|
||||
if [ -n "${CUSTOM_PATH}" ]; then
|
||||
local PATH="${CUSTOM_PATH}:${PATH}"
|
||||
fi
|
||||
|
||||
cd $BASEDIR/lfs && env -i \
|
||||
PATH="${TOOLS_DIR}/ccache/bin:${TOOLS_DIR}/sbin:${TOOLS_DIR}/bin:${PATH}" \
|
||||
PATH="${PATH}" \
|
||||
CCACHE_DIR="${CCACHE_DIR}"/${BUILD_ARCH}/${TOOLCHAINVER} \
|
||||
CCACHE_TEMPDIR="${CCACHE_TEMPDIR}" \
|
||||
CCACHE_COMPILERCHECK="${CCACHE_COMPILERCHECK}" \
|
||||
@@ -1062,7 +1066,7 @@ buildtoolchain() {
|
||||
lfsmake1 bison
|
||||
lfsmake1 flex
|
||||
lfsmake1 fake-environ
|
||||
lfsmake1 strip
|
||||
CUSTOM_PATH="${PATH}" lfsmake1 strip
|
||||
lfsmake1 cleanup-toolchain
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user