build-style/void-cross: check for kernel-libc-headers/patches

The directory isn't always present, so add the same check as used in
other stages of the build.
This commit is contained in:
Érico Nogueira 2021-10-06 22:09:45 -03:00
parent 3304c6533f
commit 26d349303e
1 changed files with 5 additions and 3 deletions

View File

@ -167,9 +167,11 @@ _void_cross_build_kernel_headers() {
msg_normal "Patching Linux headers for ${tgt}\n"
cd ${wrksrc}/linux-${ver}
for f in ${XBPS_SRCPKGDIR}/kernel-libc-headers/patches/*.patch; do
_void_cross_apply_patch "$f"
done
if [ -d "${XBPS_SRCPKGDIR}/kernel-libc-headers/patches" ]; then
for f in ${XBPS_SRCPKGDIR}/kernel-libc-headers/patches/*.patch; do
_void_cross_apply_patch "$f"
done
fi
cd ..
msg_normal "Building Linux headers for ${tgt}\n"