From 44b53d2ef88cfd53c5c9a22cb5b5f97934a0d49c Mon Sep 17 00:00:00 2001 From: Alex Bee Date: Tue, 22 Jun 2021 18:50:17 +0200 Subject: [PATCH] tools: refresh-patches: fix PATCH_ARCH --- tools/refresh-patches | 2 ++ 1 file changed, 2 insertions(+) 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