[Buildroot] [git commit] pkg-perl: add per package upgrade target

Arnout Vandecappelle (Essensium/Mind) arnout at mind.be
Tue Oct 23 23:45:41 UTC 2018


commit: https://git.buildroot.net/buildroot/commit/?id=e04289beaad8f3620f5702a4841a4867b973b677
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

If PKG_DISTNAME is defined, an addition pkg-upgrade target is created
that will run scancpan with the right parameters for re-generating the
package.

Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
[Arnout:
  - make it really private to pkg-perl;
  - factor away the host/target condition, instead use $(4) directly.
]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
 package/pkg-perl.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/pkg-perl.mk b/package/pkg-perl.mk
index 07348bd5d3..1ecf31eff9 100644
--- a/package/pkg-perl.mk
+++ b/package/pkg-perl.mk
@@ -197,6 +197,14 @@ endif
 # make targets
 $(call inner-generic-package,$(1),$(2),$(3),$(4))
 
+# Upgrade helper
+ifneq ($$($(3)_DISTNAME),)
+$(1)-upgrade:
+	utils/scancpan -force -$(4) $$($(3)_DISTNAME)
+
+.PHONY: $(1)-upgrade
+endif
+
 endef
 
 ################################################################################


More information about the buildroot mailing list