Use tempio to generate RAUC configuration files (#1797)

* Add tempio host package

tempio is a template helper using Go's template engine and sprig
functions.

* Use tempio to generate rauc manifest

* Use tempio to generate rauc system.conf
This commit is contained in:
Stefan Agner
2022-03-17 20:28:40 +01:00
committed by GitHub
parent dde7a7b809
commit 616c406e8e
22 changed files with 134 additions and 88 deletions

View File

@@ -0,0 +1,5 @@
config BR2_PACKAGE_HOST_TEMPIO
bool "Home Assistant tempio"
depends on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS
help
Install Home Assistant template helper.

View File

@@ -0,0 +1,22 @@
################################################################################
#
# Home Assistant tempio
#
################################################################################
TEMPIO_VERSION = 2021.09.0
TEMPIO_SITE = $(call github,home-assistant,tempio,$(TEMPIO_VERSION))
TEMPIO_LICENSE = Apache License 2.0
TEMPIO_LICENSE_FILES = LICENSE
TEMPIO_GOMOD = github.com/home-assistant/tempio
TEMPIO_LDFLAGS = -X main.version=$(TEMPIO_VERSION)
define TEMPIO_GO_VENDORING
(cd $(@D); \
$(HOST_DIR)/bin/go mod vendor)
endef
TEMPIO_POST_PATCH_HOOKS += TEMPIO_GO_VENDORING
$(eval $(golang-package))
$(eval $(host-golang-package))