From 00ffb9c1b1d71027f9a286b066bed3e1d0495099 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 21 Apr 2022 22:10:49 +0200 Subject: [PATCH] - buildsystem-helpers: add some more patch file masks --- make/buildsystem-helpers.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/make/buildsystem-helpers.mk b/make/buildsystem-helpers.mk index 196a26ab..cb4f7b69 100644 --- a/make/buildsystem-helpers.mk +++ b/make/buildsystem-helpers.mk @@ -75,9 +75,11 @@ define APPLY_PATCHES # (patches or directory) continue; \ fi; \ if [ -d $$i ]; then \ - for p in $$i/*.patch; do \ - $(call MESSAGE,"Applying $${p#$(PKG_PATCHES_DIR)/} (*)"); \ - patch -p1 -i $$p; \ + for p in $$i/*.patch $$i/*.patch-$(TARGET_CPU) $$i/*.patch-$(TARGET_ARCH); do \ + if [ -e $$p ]; then \ + $(call MESSAGE,"Applying $${p#$(PKG_PATCHES_DIR)/} (*)"); \ + patch -p1 -i $$p; \ + fi; \ done; \ else \ $(call MESSAGE,"Applying $${i#$(PKG_PATCHES_DIR)/}"); \