Fix issues 4589 (#4614)

* Fix: Install dependencies if we install kernel headers

* DEBUG builddeb for armhf

* Remove DEBUG echo
This commit is contained in:
The-going 2022-12-26 21:12:34 +03:00 committed by GitHub
parent d20fb2811e
commit 36d9420d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -299,6 +299,9 @@ PRE_INSTALL_KERNEL_DEBS
install_deb_chroot "${DEB_STORAGE}/${CHOSEN_KERNEL/image/dtb}_${REVISION}_${ARCH}.deb"
fi
if [[ $INSTALL_HEADERS == yes ]]; then
chroot "${SDCARD}" /bin/bash -c "DEBIAN_FRONTEND=noninteractive \
apt-get ${APT_EXTRA_DIST_PARAMS} -yqq --no-install-recommends \
install build-essential kmod debhelper devscripts" >> "${DEST}"/${LOG_SUBPATH}/install.log
install_deb_chroot "${DEB_STORAGE}/${CHOSEN_KERNEL/image/headers}_${REVISION}_${ARCH}.deb"
fi
else

View File

@ -94,9 +94,9 @@ create_package() {
echo "Compiling headers - please wait ..."
NCPU=\$(grep -c 'processor' /proc/cpuinfo)
find -type f -exec touch {} +
yes "" | make oldconfig >/dev/null
make -j\$NCPU -s scripts >/dev/null
make -j\$NCPU -s M=scripts/mod/ >/dev/null
yes "" | make ARCH=$ARCH oldconfig >/dev/null
make -j\$NCPU ARCH=$ARCH -s scripts >/dev/null
make -j\$NCPU ARCH=$ARCH -s M=scripts/mod/ >/dev/null
exit 0
EOT