From 15cb018ec65f13b4fa98f72ce110ebf8081889f7 Mon Sep 17 00:00:00 2001 From: Hristo Bozhilov Date: Thu, 6 Oct 2022 15:59:22 +0200 Subject: [PATCH] Provide Kirkstone fixed M2 layer (#38) [#36 ] Provide Kirkstone fixed M2 layer Signed-off-by: Hristo Bozhilov --- .../local-digital-twins/local-digital-twins_git.bb | 5 ++++- .../suite-bootstrapping/suite-bootstrapping_git.bb | 5 ++++- .../suite-connector/suite-connector_git.bb | 5 ++++- .../container-management/container-management_git.bb | 9 ++++++++- recipes-management/file-backup/file-backup_git.bb | 5 ++++- recipes-management/file-upload/file-upload_git.bb | 5 ++++- .../software-update/software-update_git.bb | 5 ++++- recipes-monitoring/system-metrics/system-metrics_git.bb | 5 ++++- 8 files changed, 36 insertions(+), 8 deletions(-) diff --git a/recipes-connectivity/local-digital-twins/local-digital-twins_git.bb b/recipes-connectivity/local-digital-twins/local-digital-twins_git.bb index c45e297..60c88cb 100644 --- a/recipes-connectivity/local-digital-twins/local-digital-twins_git.bb +++ b/recipes-connectivity/local-digital-twins/local-digital-twins_git.bb @@ -8,7 +8,7 @@ SRC_URI = "git://github.com/eclipse-kanto/local-digital-twins;protocol=https;bra file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "667004df8bda12b8ed8188b904fc13e0c6572ccc" PV = "0.1.0-git${SRCPV}" @@ -39,6 +39,9 @@ RDEPENDS:${PN} += "mosquitto" PROVIDES:${PN} += "kanto/local-digital-twins" RPROVIDES:${PN} += "kanto/local-digital-twins" +BUILD_VERSION = "0.1.0-M2" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" + do_install() { install -d "${D}/${LDT_BIN_DD}" diff --git a/recipes-connectivity/suite-bootstrapping/suite-bootstrapping_git.bb b/recipes-connectivity/suite-bootstrapping/suite-bootstrapping_git.bb index e488121..9e9529f 100644 --- a/recipes-connectivity/suite-bootstrapping/suite-bootstrapping_git.bb +++ b/recipes-connectivity/suite-bootstrapping/suite-bootstrapping_git.bb @@ -8,7 +8,7 @@ SRC_URI = "git://github.com/eclipse-kanto/suite-bootstrapping;protocol=https;bra file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "24cb31af78ce27b365a1b120c8f6a95d188695cc" PV = "0.1.0-git${SRCPV}" @@ -39,6 +39,9 @@ RDEPENDS:${PN} += "mosquitto" PROVIDES:${PN} += "kanto/suite-bootstrapping" RPROVIDES:${PN} += "kanto/suite-bootstrapping" +BUILD_VERSION = "0.1.0-M2" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" + do_install() { install -d "${D}/${SB_BIN_DD}" diff --git a/recipes-connectivity/suite-connector/suite-connector_git.bb b/recipes-connectivity/suite-connector/suite-connector_git.bb index 613ff14..63ec285 100644 --- a/recipes-connectivity/suite-connector/suite-connector_git.bb +++ b/recipes-connectivity/suite-connector/suite-connector_git.bb @@ -8,7 +8,7 @@ SRC_URI = "git://github.com/eclipse-kanto/suite-connector;protocol=https;branch= file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "143cacbc1088ddbc219877e5d84f30a4957fc566" PV = "0.1.0-git${SRCPV}" @@ -40,6 +40,9 @@ RDEPENDS:${PN} += "mosquitto" PROVIDES:${PN} += "kanto/suite-connector" RPROVIDES:${PN} += "kanto/suite-connector" +BUILD_VERSION = "0.1.0-M2" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" + do_install() { install -d "${D}/${SC_BIN_DD}" diff --git a/recipes-containers/container-management/container-management_git.bb b/recipes-containers/container-management/container-management_git.bb index 5bad4bb..92db525 100644 --- a/recipes-containers/container-management/container-management_git.bb +++ b/recipes-containers/container-management/container-management_git.bb @@ -8,7 +8,7 @@ SRC_URI = "git://github.com/eclipse-kanto/container-management;protocol=https;br file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "e83c311979a1804dde6893f5c86208a321f6e208" PV = "0.1.0-git${SRCPV}" @@ -48,6 +48,13 @@ FILES:${PN} += "${CM_BIN_DD}/container-management ${CM_BIN_DD}/kanto-cm" # ensure all additional resources are properly packed in the resulting package if provided FILES:${PN} += "${CM_CFG_DD}/container-management/config.json" +VERSION_PKG = "github.com/eclipse-kanto/container-management/containerm" +BUILD_TIME = "${@time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime())}" +BUILD_VERSION = "0.1.0-M2" +BUILD_REVISION = "${@'${SRCREV}'[:7]}" + +export GO_EXTRA_LDFLAGS="-X ${VERSION_PKG}/version.GitCommit=${BUILD_REVISION} -X ${VERSION_PKG}/version.ProjectVersion=${BUILD_VERSION} -X ${VERSION_PKG}/version.APIVersion=${BUILD_VERSION} -X ${VERSION_PKG}/version.BuildTime=${BUILD_TIME}" + do_install() { install -d ${D}/${CM_BIN_DD} diff --git a/recipes-management/file-backup/file-backup_git.bb b/recipes-management/file-backup/file-backup_git.bb index fd21f2c..31f789c 100644 --- a/recipes-management/file-backup/file-backup_git.bb +++ b/recipes-management/file-backup/file-backup_git.bb @@ -8,7 +8,7 @@ SRC_URI = "git://github.com/eclipse-kanto/file-backup;protocol=https;branch=main file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "49e90b0ccef213008473bf244dff4671b382848a" PV = "0.1.0-git${SRCPV}" @@ -37,6 +37,9 @@ RDEPENDS:${PN} += "mosquitto" PROVIDES:${PN} += "kanto/file-backup" RPROVIDES:${PN} += "kanto/file-backup" +BUILD_VERSION = "0.1.0-M2" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" + do_install() { install -d "${D}/${FB_BIN_DD}" diff --git a/recipes-management/file-upload/file-upload_git.bb b/recipes-management/file-upload/file-upload_git.bb index 5da6ad2..977f52d 100644 --- a/recipes-management/file-upload/file-upload_git.bb +++ b/recipes-management/file-upload/file-upload_git.bb @@ -8,7 +8,7 @@ SRC_URI = "git://github.com/eclipse-kanto/file-upload;protocol=https;branch=main file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "5ba9ae26179074d8d52d836e51d3886cccc00f42" PV = "0.1.0-git${SRCPV}" @@ -37,6 +37,9 @@ RDEPENDS:${PN} += "mosquitto" PROVIDES:${PN} += "kanto/file-upload" RPROVIDES:${PN} += "kanto/file-upload" +BUILD_VERSION = "0.1.0-M2" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" + do_install() { install -d "${D}/${FU_BIN_DD}" diff --git a/recipes-management/software-update/software-update_git.bb b/recipes-management/software-update/software-update_git.bb index cf00eab..d9e5f24 100644 --- a/recipes-management/software-update/software-update_git.bb +++ b/recipes-management/software-update/software-update_git.bb @@ -8,7 +8,7 @@ SRC_URI = "git://github.com/eclipse-kanto/software-update;protocol=https;branch= file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "73758d68a6751391cbbe282235fd57d83820ab79" PV = "0.1.0-git${SRCPV}" @@ -37,6 +37,9 @@ RDEPENDS:${PN} += "mosquitto" PROVIDES:${PN} += "kanto/software-update" RPROVIDES:${PN} += "kanto/software-update" +BUILD_VERSION = "0.1.0-M2" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" + do_install() { install -d "${D}/${SU_BIN_DD}" diff --git a/recipes-monitoring/system-metrics/system-metrics_git.bb b/recipes-monitoring/system-metrics/system-metrics_git.bb index f36974a..47bf99a 100644 --- a/recipes-monitoring/system-metrics/system-metrics_git.bb +++ b/recipes-monitoring/system-metrics/system-metrics_git.bb @@ -8,7 +8,7 @@ SRC_URI = "git://github.com/eclipse-kanto/system-metrics;protocol=https;branch=m file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "f18ff434bcff41de7d6885c2b4cfa9b367fbcae2" PV = "0.1.0-git${SRCPV}" @@ -38,6 +38,9 @@ RDEPENDS:${PN} += "mosquitto" PROVIDES:${PN} += "kanto/system-metrics" RPROVIDES:${PN} += "kanto/system-metrics" +BUILD_VERSION = "0.1.0-M2" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" + do_install() { install -d "${D}/${SM_BIN_DD}"