mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
make.sh: Refactor stripper
This should *actually* exclude everything we want to exclude and *actually* strip everything to the maximum. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
f35f213850
commit
19054331c5
9
make.sh
9
make.sh
@@ -556,6 +556,11 @@ enterchroot() {
|
||||
|
||||
local PATH="${TOOLS_DIR}/ccache/bin:/bin:/usr/bin:/sbin:/usr/sbin:${TOOLS_DIR}/bin"
|
||||
|
||||
# Prepend any custom changes to PATH
|
||||
if [ -n "${CUSTOM_PATH}" ]; then
|
||||
PATH="${CUSTOM_PATH}:${PATH}"
|
||||
fi
|
||||
|
||||
PATH="${PATH}" chroot ${LFS} env -i \
|
||||
HOME="/root" \
|
||||
TERM="${TERM}" \
|
||||
@@ -695,7 +700,7 @@ lfsmake2() {
|
||||
local PS1='\u:\w$ '
|
||||
|
||||
enterchroot \
|
||||
${EXTRA_PATH}bash -x -c "cd /usr/src/lfs && \
|
||||
bash -x -c "cd /usr/src/lfs && \
|
||||
make -f $* \
|
||||
LFS_BASEDIR=/usr/src install" \
|
||||
>> ${LOGFILE} 2>&1 &
|
||||
@@ -1693,7 +1698,7 @@ buildinstaller() {
|
||||
lfsmake2 memtest
|
||||
lfsmake2 installer
|
||||
# use toolchain bash for chroot to strip
|
||||
EXTRA_PATH=${TOOLS_DIR}/bin/ lfsmake2 strip
|
||||
CUSTOM_PATH="${TOOLS_DIR}/bin" lfsmake2 strip
|
||||
}
|
||||
|
||||
buildpackages() {
|
||||
|
||||
Reference in New Issue
Block a user