mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
kernel-headers: don't try to build objtool if not amd64 target
This commit is contained in:
committed by
Igor Pečovnik
parent
8493d91b61
commit
4509e3fcf2
@@ -438,5 +438,17 @@ function kernel_package_callback_linux_headers() {
|
||||
make ARCH="${SRC_ARCH}" -j\$NCPU tools/objtool
|
||||
echo "Done compiling kernel-headers tools (${kernel_version_family})."
|
||||
EOT_POSTINST
|
||||
|
||||
if [[ "${ARCH}" == "amd64" ]]; then # This really only works on x86/amd64; @TODO revisit later
|
||||
cat <<- EOT_POSTINST_OBJTOOL
|
||||
echo "Compiling kernel-header objtool (${kernel_version_family})."
|
||||
make ARCH="${SRC_ARCH}" -j\$NCPU tools/objtool
|
||||
echo "Done compiling kernel-header objtool (${kernel_version_family})."
|
||||
EOT_POSTINST_OBJTOOL
|
||||
fi
|
||||
|
||||
cat <<- EOT_POSTINST_FINISH
|
||||
echo "Done compiling kernel-headers tools (${kernel_version_family})."
|
||||
EOT_POSTINST_FINISH
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user