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

View file

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