rpi-kernel-headers: remove objects from scripts/

Shipping objects generated during crossbuild makes no sense and breaks
"make scripts" on the target upon first run of the dkms trigger
This commit is contained in:
Piraty 2019-10-25 16:03:34 +02:00
parent cb426d6bfc
commit 32ff7bfa55

View file

@ -10,7 +10,7 @@ _gitshort="${_githash:0:7}"
pkgname=rpi-kernel
version=4.19.80
revision=1
revision=2
wrksrc="linux-${_githash}"
maintainer="Peter Bui <pbui@github.bx612.space>"
homepage="http://www.kernel.org"
@ -181,6 +181,8 @@ do_install() {
# they need to be copied to ${hdrdest} before this step
if [ "$CROSS_BUILD" ]; then
make ${makejobs} ARCH=${_arch} _mrproper_scripts
# remove host specific objects as well
find scripts -name '*.o' -delete
fi
# Copy files necessary for later builds.