strip: Do not try to strip QEMU

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2022-02-22 12:51:34 +00:00
committed by Peter Müller
parent 9fa3eed00a
commit 1432531ac8
3 changed files with 5 additions and 2 deletions

View File

@@ -58,6 +58,7 @@ else
# /usr/sbin/vdr.
$(DIR_SRC)/src/stripper / \
--exclude=$(TOOLS_DIR) \
--exclude=$(QEMU_TARGET_HELPER) \
--exclude=/tmp \
--exclude=/usr/src \
--exclude=/usr/lib/vdr \

View File

@@ -781,7 +781,7 @@ fake_environ() {
}
qemu_environ() {
local env
local env="QEMU_TARGET_HELPER=${QEMU_TARGET_HELPER}"
# Don't add anything if qemu is not used.
if ! qemu_is_required; then

View File

@@ -11,7 +11,9 @@ while [ $# -gt 0 ]; do
strip="${1#*=}"
;;
--exclude=*)
excludes+=( "!" "-path" "${1#*=}/*" )
if [ -n "${1#*=}" ]; then
excludes+=( "!" "-path" "${1#*=}" "!" "-path" "${1#*=}/*" )
fi
;;
--ignore-errors)
break_on_error="0"