aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2018-12-19 09:17:07 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-31 17:46:11 +0100
commitf5c6d238cfd64a14aab94b3531cb428d01cec4a1 (patch)
treeb0a2951db87273d785d5ecb06a24b78e2fc099fe
parent38c55bfb316a1b42450d4ee8d48a9b8a89edb14b (diff)
downloadbuildroot-f5c6d238cfd64a14aab94b3531cb428d01cec4a1.tar.gz
buildroot-f5c6d238cfd64a14aab94b3531cb428d01cec4a1.tar.bz2
package/pkg-luarocks: add per package upgrade target
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/pkg-luarocks.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/pkg-luarocks.mk b/package/pkg-luarocks.mk
index f0985433b7..78d6c325f8 100644
--- a/package/pkg-luarocks.mk
+++ b/package/pkg-luarocks.mk
@@ -72,6 +72,12 @@ endif
# make targets
$(call inner-generic-package,$(1),$(2),$(3),$(4))
+# Upgrade helper
+$(1)-upgrade: host-luarocks
+ $$(LUAROCKS_RUN_CMD) buildroot $$($(2)_NAME_UPSTREAM) $(1)
+
+.PHONY: $(1)-upgrade
+
endef
################################################################################