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

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Dec 31 16:46:11 UTC 2018


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

Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/pkg-luarocks.mk | 6 ++++++
 1 file changed, 6 insertions(+)

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
 
 ################################################################################


More information about the buildroot mailing list