From: Peter Korsgaard Date: Fri, 28 Mar 2008 10:39:55 +0000 (-0000) Subject: AUTOTARGETS: support arch specific *.patch.$(ARCH) patches X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b64a86e8c6ce20dd3ad4e57fb60480f771e556e;p=buildroot.git AUTOTARGETS: support arch specific *.patch.$(ARCH) patches --- diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in index 7b08be1a5b..cffa204834 100644 --- a/package/Makefile.autotools.in +++ b/package/Makefile.autotools.in @@ -155,8 +155,8 @@ $(BUILD_DIR)/%/.stamp_patched: $(if $($(PKG)_PATCH),toolchain/patch-kernel.sh $(@D) $(DL_DIR) $($(PKG)_PATCH)) $(Q)( \ if test -d $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME); then \ - if test "$(wildcard $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER)*.patch)"; then \ - toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME) $(NAMEVER)\*.patch || exit 1; \ + if test "$(wildcard $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER)*.patch*)"; then \ + toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME) $(NAMEVER)\*.patch $(NAMEVER)\*.patch.$(ARCH) || exit 1; \ else \ toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME) $($(PKG)_NAME)\*.patch || exit 1; \ if test -d package/$($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER); then \