diff --git a/tools/refresh-patches b/tools/refresh-patches index 2e48664117..dc32bb39e5 100755 --- a/tools/refresh-patches +++ b/tools/refresh-patches @@ -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