tools: refresh-patches: fix PATCH_ARCH

This commit is contained in:
Alex Bee 2021-06-22 18:50:17 +02:00
parent 48fe2995e6
commit 44b53d2ef8

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