Merge pull request #5448 from knaerzche/fix-patch-arch

tools: refresh-patches: fix PATCH_ARCH
This commit is contained in:
CvH 2021-07-03 19:34:41 +02:00 committed by GitHub
commit 13403ab109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,8 @@ pkg_call_exists_opt pre_patch && pkg_call
if [ "${TARGET_ARCH}" = "x86_64" ]; then
PATCH_ARCH="x86"
elif [ "${PKG_IS_KERNEL_PKG}" = "yes" ]; then
PATCH_ARCH="${TARGET_KERNEL_PATCH_ARCH:-${TARGET_ARCH}}"
else
PATCH_ARCH="${TARGET_PATCH_ARCH:-${TARGET_ARCH}}"
fi