Skip to content

Commit

Permalink
kernel-debs: headers: postinst: switch from oldconfig to `olddefcon…
Browse files Browse the repository at this point in the history
…fig` for less messy output; better logging
  • Loading branch information
rpardini authored and igorpecovnik committed Jan 5, 2025
1 parent 3894e92 commit 87ceaaf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/functions/compilation/kernel-debs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,17 @@ function kernel_package_callback_linux_headers() {
cat <<- EOT_POSTINST
cd "/usr/src/linux-headers-${kernel_version_family}"
NCPU=\$(grep -c 'processor' /proc/cpuinfo)
echo "Compiling kernel-headers tools (${kernel_version_family}) using \$NCPU CPUs - please wait ..."
yes "" | make ARCH="${SRC_ARCH}" oldconfig
echo "Configuring kernel-headers (${kernel_version_family}) - please wait ..."
make ARCH="${SRC_ARCH}" olddefconfig
echo "Compiling kernel-headers scripts (${kernel_version_family}) using \$NCPU CPUs - please wait ..."
make ARCH="${SRC_ARCH}" -j\$NCPU scripts
echo "Compiling kernel-headers scripts/mod (${kernel_version_family}) using \$NCPU CPUs - please wait ..."
make ARCH="${SRC_ARCH}" -j\$NCPU M=scripts/mod/
# make ARCH="${SRC_ARCH}" -j\$NCPU modules_prepare # depends on too much other stuff.
echo "Done compiling kernel-headers tools (${kernel_version_family})."
echo "Done compiling kernel-headers (${kernel_version_family})."
EOT_POSTINST
if [[ "${ARCH}" == "amd64" ]]; then # This really only works on x86/amd64; @TODO revisit later
Expand Down

0 comments on commit 87ceaaf

Please sign in to comment.