scripts/build: allow installation of *.o files

commit c468820ba9bab93c9d2fd34eba765e52b703b3ee "scripts/build: cleanup"
started to silently remove *.o files from the installation without
giving an explanation why this should be needed.

Drop that as it prevents packages from including *.o files in the
image, which eg is needed to include IR BPF decoders in LibreELEC.

Packages which install *.o files that should not end up in the image
should manually remove these in post_makeinstall_target.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2020-02-09 02:11:32 +01:00
parent 75e2e560c0
commit 24c4c14ab2

View File

@ -468,7 +468,6 @@ if [ "${TARGET}" = "target" -o "${TARGET}" = "init" ]; then
rm -rf ${INSTALL}/{usr/local/,usr/,}var
find ${INSTALL} \( -name "*.orig" \
-o -name "*.rej" \
-o -name "*.o" \
-o -name "*.in" \
-o -name ".git*" \) \
-exec rm -f {} \; 2>/dev/null || :