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:
5
buildroot-external/package/tempio/Config.in.host
Normal file
5
buildroot-external/package/tempio/Config.in.host
Normal 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.
|
||||
22
buildroot-external/package/tempio/tempio.mk
Normal file
22
buildroot-external/package/tempio/tempio.mk
Normal 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))
|
||||
Reference in New Issue
Block a user