From: Gustavo Zacarias Date: Mon, 6 Dec 2010 19:40:11 +0000 (-0300) Subject: package infra: fix versioned patches for host packages X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6908149bec720e6bb4c2d1e8d03331bcd4e3343b;p=buildroot.git package infra: fix versioned patches for host packages Without this patch we'd need separate versioned patch directories for target and host packages, thus having unwanted duplication. Signed-off-by: Gustavo Zacarias Acked-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- diff --git a/package/Makefile.package.in b/package/Makefile.package.in index c4a1cf8ee1..92ce4e22f8 100644 --- a/package/Makefile.package.in +++ b/package/Makefile.package.in @@ -267,7 +267,7 @@ $(BUILD_DIR)/%/.stamp_patched: toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(NOHOSTPKG)_NAME) $(NAMEVER)\*.patch $(NAMEVER)\*.patch.$(ARCH) || exit 1; \ else \ toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(NOHOSTPKG)_NAME) $($(NOHOSTPKG)_NAME)\*.patch $($(NOHOSTPKG)_NAME)\*.patch.$(ARCH) || exit 1; \ - if test -d $($(PKG)_DIR_PREFIX)/$($(PKG)_NAME)/$(NAMEVER); then \ + if test -d $($(PKG)_DIR_PREFIX)/$($(NOHOSTPKG)_NAME)/$(NAMEVER); then \ toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(NOHOSTPKG)_NAME)/$(NAMEVER) \*.patch \*.patch.$(ARCH) || exit 1; \ fi; \ fi; \