All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/5] New package golang-embed
@ 2018-03-10 20:39 Jens Scheidemann
  2018-03-10 20:39 ` [Buildroot] [PATCH 2/5] New package golang-gb Jens Scheidemann
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jens Scheidemann @ 2018-03-10 20:39 UTC (permalink / raw)
  To: buildroot

This package is needed for example to compile gosdm630.

Signed-off-by: Jens Scheidemann <nobodyman@gmx.de>
---
 package/golang-embed/Config.in.host  |  7 +++++++
 package/golang-embed/golang-embed.mk | 24 ++++++++++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 package/golang-embed/Config.in.host
 create mode 100644 package/golang-embed/golang-embed.mk

diff --git a/package/golang-embed/Config.in.host b/package/golang-embed/Config.in.host
new file mode 100644
index 0000000..d9449d0
--- /dev/null
+++ b/package/golang-embed/Config.in.host
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_GOLANG_EMBED
+	bool "golang-embed"
+	depends on BR2_PACKAGE_HOST_GOLANG
+	help
+          Static content embedding for Golang.
+
+	  https://github.com/aprice/embed
diff --git a/package/golang-embed/golang-embed.mk b/package/golang-embed/golang-embed.mk
new file mode 100644
index 0000000..49faeb1
--- /dev/null
+++ b/package/golang-embed/golang-embed.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# golang-embed
+#
+################################################################################
+
+GOLANG_EMBED_SITE_METHOD = local
+
+GOLANG_EMBED_DEPENDENCIES = host-go
+
+GOLANG_EMBED_GOPATH = "$(@D)"
+
+GOLANG_EMBED_MAKE_ENV = GOPATH=$(GOLANG_EMBED_GOPATH)
+
+define HOST_GOLANG_EMBED_BUILD_CMDS
+	cd $(@D) && $(GOLANG_EMBED_MAKE_ENV) $(HOST_DIR)/bin/go get github.com/aprice/embed/cmd/embed
+endef
+
+define HOST_GOLANG_EMBED_INSTALL_CMDS
+	$(INSTALL) -D -m 0755 $(GOLANG_EMBED_GOPATH)/bin/embed $(HOST_GO_ROOT)/bin/embed
+	ln -sf ../lib/go/bin/embed $(HOST_DIR)/bin
+endef
+
+$(eval $(host-generic-package))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/5] New package golang-gb
  2018-03-10 20:39 [Buildroot] [PATCH 1/5] New package golang-embed Jens Scheidemann
@ 2018-03-10 20:39 ` Jens Scheidemann
  2018-03-10 20:39 ` [Buildroot] [PATCH 3/5] New package golang-embed, golang-gb Jens Scheidemann
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Jens Scheidemann @ 2018-03-10 20:39 UTC (permalink / raw)
  To: buildroot

This package is needed for example to compile gosdm630.

Signed-off-by: Jens Scheidemann <nobodyman@gmx.de>
---
 package/golang-gb/Config.in.host |  7 +++++++
 package/golang-gb/golang-gb.mk   | 24 ++++++++++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 package/golang-gb/Config.in.host
 create mode 100644 package/golang-gb/golang-gb.mk

diff --git a/package/golang-gb/Config.in.host b/package/golang-gb/Config.in.host
new file mode 100644
index 0000000..663b0ad
--- /dev/null
+++ b/package/golang-gb/Config.in.host
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_GOLANG_GB
+	bool "golang-gb"
+	depends on BR2_PACKAGE_HOST_GOLANG
+	help
+          gb is an alternative build tool for the Go programming language.
+
+	  https://getgb.io
diff --git a/package/golang-gb/golang-gb.mk b/package/golang-gb/golang-gb.mk
new file mode 100644
index 0000000..a528ec8
--- /dev/null
+++ b/package/golang-gb/golang-gb.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# golang-gb
+#
+################################################################################
+
+GOLANG_GB_SITE_METHOD = local
+
+GOLANG_GB_DEPENDENCIES = host-go
+
+GOLANG_GB_GOPATH = "$(@D)"
+
+GOLANG_GB_MAKE_ENV = GOPATH=$(GOLANG_GB_GOPATH)
+
+define HOST_GOLANG_GB_BUILD_CMDS
+	cd $(@D) && $(GOLANG_GB_MAKE_ENV) $(HOST_DIR)/bin/go get github.com/constabulary/gb/...
+endef
+
+define HOST_GOLANG_GB_INSTALL_CMDS
+	$(INSTALL) -D -m 0755 $(GOLANG_GB_GOPATH)/bin/gb $(HOST_GO_ROOT)/bin/gb
+	ln -sf ../lib/go/bin/gb $(HOST_DIR)/bin
+endef
+
+$(eval $(host-generic-package))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 3/5] New package golang-embed, golang-gb
  2018-03-10 20:39 [Buildroot] [PATCH 1/5] New package golang-embed Jens Scheidemann
  2018-03-10 20:39 ` [Buildroot] [PATCH 2/5] New package golang-gb Jens Scheidemann
@ 2018-03-10 20:39 ` Jens Scheidemann
  2018-03-10 20:39 ` [Buildroot] [PATCH 4/5] New package gosdm630 Jens Scheidemann
  2018-03-10 20:39 ` [Buildroot] [PATCH 5/5] " Jens Scheidemann
  3 siblings, 0 replies; 5+ messages in thread
From: Jens Scheidemann @ 2018-03-10 20:39 UTC (permalink / raw)
  To: buildroot

This package is needed for example to compile gosdm630.

Signed-off-by: Jens Scheidemann <nobodyman@gmx.de>
---
 package/Config.in.host | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/Config.in.host b/package/Config.in.host
index 199a8e9..8544909 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -22,6 +22,8 @@ menu "Host utilities"
 	source "package/gnupg/Config.in.host"
 	source "package/go/Config.in.host"
 	source "package/go-bootstrap/Config.in.host"
+	source "package/golang-embed/Config.in.host"
+	source "package/golang-gb/Config.in.host"
 	source "package/google-breakpad/Config.in.host"
 	source "package/gptfdisk/Config.in.host"
 	source "package/imx-usb-loader/Config.in.host"
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 4/5] New package gosdm630
  2018-03-10 20:39 [Buildroot] [PATCH 1/5] New package golang-embed Jens Scheidemann
  2018-03-10 20:39 ` [Buildroot] [PATCH 2/5] New package golang-gb Jens Scheidemann
  2018-03-10 20:39 ` [Buildroot] [PATCH 3/5] New package golang-embed, golang-gb Jens Scheidemann
@ 2018-03-10 20:39 ` Jens Scheidemann
  2018-03-10 20:39 ` [Buildroot] [PATCH 5/5] " Jens Scheidemann
  3 siblings, 0 replies; 5+ messages in thread
From: Jens Scheidemann @ 2018-03-10 20:39 UTC (permalink / raw)
  To: buildroot

This package is useful to read data from energy meter SDM630.

Signed-off-by: Jens Scheidemann <nobodyman@gmx.de>
---
 package/gosdm630/Config.in   | 14 ++++++++++++++
 package/gosdm630/gosdm630.mk | 21 +++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 package/gosdm630/Config.in
 create mode 100644 package/gosdm630/gosdm630.mk

diff --git a/package/gosdm630/Config.in b/package/gosdm630/Config.in
new file mode 100644
index 0000000..6f29b3d
--- /dev/null
+++ b/package/gosdm630/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_GOSDM630
+	bool "gosdm630"
+	help
+	  A HTTP interface to MODBUS smart meters
+	  This project provides a http interface to smart meters
+	  with a MODBUS interface. Beside the EASTRON SDM series,
+	  the software also supports the Janitza B23 DIN-rail meters.
+	  The meters provide all measured values over an RS485
+	  connection. The software reads the measurements and wraps
+	  them into a HTTP interface, making it very easy to
+	  integrate it into your home automation system.
+	  Both a REST-style API and a streaming API are available.
+
+	  https://github.com/gonium/gosdm630
diff --git a/package/gosdm630/gosdm630.mk b/package/gosdm630/gosdm630.mk
new file mode 100644
index 0000000..6457bc0
--- /dev/null
+++ b/package/gosdm630/gosdm630.mk
@@ -0,0 +1,21 @@
+GOSDM630_VERSION = 7361b08a6bfe2629863875d4c871867ac0f75285
+GOSDM630_SITE = git://github.com/gonium/gosdm630
+
+GOSDM630_DEPENDENCIES = host-go host-golang-gb host-golang-embed
+
+GOSDM630_GOOS = linux
+GOSDM630_GOARCH = $(GO_GOARCH)
+
+GOSDM630_MAKE_ENV = GOOS=$(GOSDM630_GOOS) \
+        GOARCH=$(GOSDM630_GOARCH) \
+        $(if $(GO_GOARM),GOARM=$(GO_GOARM))
+
+define GOSDM630_BUILD_CMDS
+	cd $(@D) && $(GOSDM630_MAKE_ENV) $(HOST_DIR)/bin/gb build all
+endef
+
+define GOSDM630_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/bin/*-$(GOSDM630_GOOS)-$(GOSDM630_GOARCH) $(TARGET_DIR)/usr/bin
+endef
+
+$(eval $(generic-package))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 5/5] New package gosdm630
  2018-03-10 20:39 [Buildroot] [PATCH 1/5] New package golang-embed Jens Scheidemann
                   ` (2 preceding siblings ...)
  2018-03-10 20:39 ` [Buildroot] [PATCH 4/5] New package gosdm630 Jens Scheidemann
@ 2018-03-10 20:39 ` Jens Scheidemann
  3 siblings, 0 replies; 5+ messages in thread
From: Jens Scheidemann @ 2018-03-10 20:39 UTC (permalink / raw)
  To: buildroot

This package is useful to read data from energy meter SDM630.

Signed-off-by: Jens Scheidemann <nobodyman@gmx.de>
---
 package/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/Config.in b/package/Config.in
index 9cd5d9c..a03ccd7 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1226,6 +1226,7 @@ menu "Hardware handling"
 	source "package/tslib/Config.in"
 	source "package/urg/Config.in"
 	source "package/wiringpi/Config.in"
+	source "package/gosdm630/Config.in"
 endmenu
 
 menu "Javascript"
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-10 20:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-10 20:39 [Buildroot] [PATCH 1/5] New package golang-embed Jens Scheidemann
2018-03-10 20:39 ` [Buildroot] [PATCH 2/5] New package golang-gb Jens Scheidemann
2018-03-10 20:39 ` [Buildroot] [PATCH 3/5] New package golang-embed, golang-gb Jens Scheidemann
2018-03-10 20:39 ` [Buildroot] [PATCH 4/5] New package gosdm630 Jens Scheidemann
2018-03-10 20:39 ` [Buildroot] [PATCH 5/5] " Jens Scheidemann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.