AUTOTARGETS: also support non-version-dependent arch specific patches
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 28 Mar 2008 10:40:28 +0000 (10:40 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 28 Mar 2008 10:40:28 +0000 (10:40 -0000)
package/Makefile.autotools.in

index cffa204834615bcebdd423fa10b297c823fc17b4..1243c352219b51b1569a6434aa8301ddfd154614 100644 (file)
@@ -158,9 +158,9 @@ $(BUILD_DIR)/%/.stamp_patched:
          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; \
+           toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME) $($(PKG)_NAME)\*.patch $($(PKG)_NAME)\*.patch.$(ARCH) || exit 1; \
            if test -d package/$($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER); then \
-             toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER) \*.patch || exit 1; \
+             toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER) \*.patch \*.patch.$(ARCH) || exit 1; \
            fi; \
          fi; \
        fi; \