[Buildroot] [PATCH v3] pkg-luarocks: add per package upgrade target

Francois Perrad fperrad at gmail.com
Wed Dec 19 08:17:07 UTC 2018


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

diff --git a/package/pkg-luarocks.mk b/package/pkg-luarocks.mk
index f0985433b..78d6c325f 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
 
 ################################################################################
-- 
2.17.1



More information about the buildroot mailing list