From 2d7c0f3069965080fffb078edcae17d768b739b9 Mon Sep 17 00:00:00 2001 From: Kristiyan Gostev Date: Fri, 7 Jun 2024 15:58:52 +0300 Subject: [PATCH] Provide fixed v1.0.0 layer for the kirkstone branch (#99) [#98] Provide fixed v1.0.0 layer for the kirkstone branch Signed-off-by: Kristiyan Gostev --- .../{aws-connector.bb => aws-connector_git.bb} | 7 +++++-- .../azure-connector/azure-connector_git.bb | 7 +++++-- .../local-digital-twins/local-digital-twins_git.bb | 8 ++++---- .../suite-connector/suite-connector_git.bb | 8 ++++---- .../container-management_git.bb | 14 +++++++------- recipes-management/file-backup/file-backup_git.bb | 8 ++++---- recipes-management/file-upload/file-upload_git.bb | 8 ++++---- .../software-update/software-update_git.bb | 8 ++++---- .../update-manager/update-manager_git.bb | 8 ++++---- .../system-metrics/system-metrics_git.bb | 8 ++++---- 10 files changed, 45 insertions(+), 39 deletions(-) rename recipes-connectivity/aws-connector/{aws-connector.bb => aws-connector_git.bb} (93%) diff --git a/recipes-connectivity/aws-connector/aws-connector.bb b/recipes-connectivity/aws-connector/aws-connector_git.bb similarity index 93% rename from recipes-connectivity/aws-connector/aws-connector.bb rename to recipes-connectivity/aws-connector/aws-connector_git.bb index 602aa4e..2e91775 100644 --- a/recipes-connectivity/aws-connector/aws-connector.bb +++ b/recipes-connectivity/aws-connector/aws-connector_git.bb @@ -8,9 +8,9 @@ SRC_URI = "git://github.com/eclipse-kanto/aws-connector;protocol=https;branch=ma file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "05fcdc45e5829930ca7b32bb4f03c821eeaa1eef" -PV = "0.1.0-git${SRCPV}" +PV = "1.0.0-git${SRCPV}" GO_IMPORT = "github.com/eclipse-kanto/aws-connector" GO_INSTALL = "${GO_IMPORT}/cmd/aws-connector" @@ -39,6 +39,9 @@ RDEPENDS:${PN} += "mosquitto" PROVIDES:${PN} += "kanto/aws-connector" RPROVIDES:${PN} += "kanto/aws-connector" +BUILD_VERSION = "1.0.0" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" + do_install() { install -d "${D}/${SC_BIN_DD}" diff --git a/recipes-connectivity/azure-connector/azure-connector_git.bb b/recipes-connectivity/azure-connector/azure-connector_git.bb index b82ae59..c1c9367 100644 --- a/recipes-connectivity/azure-connector/azure-connector_git.bb +++ b/recipes-connectivity/azure-connector/azure-connector_git.bb @@ -8,9 +8,9 @@ SRC_URI = "git://github.com/eclipse-kanto/azure-connector;protocol=https;branch= file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "c610acb7a3ea92afdde45b25bd4c197965266f95" -PV = "0.1.0-git${SRCPV}" +PV = "1.0.0-git${SRCPV}" GO_IMPORT = "github.com/eclipse-kanto/azure-connector" GO_INSTALL = "${GO_IMPORT}/cmd/azure-connector" @@ -39,6 +39,9 @@ RDEPENDS:${PN} += "mosquitto" PROVIDES:${PN} += "kanto/azure-connector" RPROVIDES:${PN} += "kanto/azure-connector" +BUILD_VERSION = "1.0.0" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" + do_install() { install -d "${D}/${SC_BIN_DD}" 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 dc3f840..3a717be 100644 --- a/recipes-connectivity/local-digital-twins/local-digital-twins_git.bb +++ b/recipes-connectivity/local-digital-twins/local-digital-twins_git.bb @@ -8,9 +8,9 @@ SRC_URI = "git://github.com/eclipse-kanto/local-digital-twins;protocol=https;bra file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "b12fba36af75174753223e63fafaf1a95f17c3f0" -PV = "0.1.0-git${SRCPV}" +PV = "1.0.0-git${SRCPV}" GO_IMPORT = "github.com/eclipse-kanto/local-digital-twins" GO_INSTALL = "${GO_IMPORT}/cmd/twins" @@ -39,8 +39,8 @@ 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}" +BUILD_VERSION = "1.0.0" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" do_install() { install -d "${D}/${LDT_BIN_DD}" diff --git a/recipes-connectivity/suite-connector/suite-connector_git.bb b/recipes-connectivity/suite-connector/suite-connector_git.bb index 9ee7165..0bd7980 100644 --- a/recipes-connectivity/suite-connector/suite-connector_git.bb +++ b/recipes-connectivity/suite-connector/suite-connector_git.bb @@ -8,9 +8,9 @@ SRC_URI = "git://github.com/eclipse-kanto/suite-connector;protocol=https;branch= file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "938ae1560e09058463972061de2a63275fa32d46" -PV = "0.1.0-git${SRCPV}" +PV = "1.0.0-git${SRCPV}" GO_IMPORT = "github.com/eclipse-kanto/suite-connector" GO_INSTALL = "${GO_IMPORT}/cmd/connector" @@ -40,8 +40,8 @@ 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}" +BUILD_VERSION = "1.0.0" +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 bfbf061..e4111a7 100644 --- a/recipes-containers/container-management/container-management_git.bb +++ b/recipes-containers/container-management/container-management_git.bb @@ -8,9 +8,9 @@ SRC_URI = "git://github.com/eclipse-kanto/container-management;protocol=https;br file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "4b2cd25bd9f6f78c480677994b20ab7b6e46c39c" -PV = "0.1.0-git${SRCPV}" +PV = "1.0.0-git${SRCPV}" GO_IMPORT = "github.com/eclipse-kanto/container-management" GO_INSTALL = "${GO_IMPORT}/containerm/daemon \ @@ -51,11 +51,11 @@ 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}" +VERSION_PKG = "github.com/eclipse-kanto/container-management/containerm" +BUILD_TIME = "${@time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime())}" +BUILD_VERSION = "1.0.0" +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 c38c318..2c5370f 100644 --- a/recipes-management/file-backup/file-backup_git.bb +++ b/recipes-management/file-backup/file-backup_git.bb @@ -8,9 +8,9 @@ SRC_URI = "git://github.com/eclipse-kanto/file-backup;protocol=https;branch=main file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "4ea460c50aeba1d1706528927b1564fe37c425dc" -PV = "0.1.0-git${SRCPV}" +PV = "1.0.0-git${SRCPV}" GO_IMPORT = "github.com/eclipse-kanto/file-backup" GO_INSTALL = "${GO_IMPORT}" @@ -37,8 +37,8 @@ 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}" +BUILD_VERSION = "1.0.0" +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 e336534..448f52c 100644 --- a/recipes-management/file-upload/file-upload_git.bb +++ b/recipes-management/file-upload/file-upload_git.bb @@ -8,9 +8,9 @@ SRC_URI = "git://github.com/eclipse-kanto/file-upload;protocol=https;branch=main file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "be9c7f236de2f2b64ca4fa58ceb1a95c4382b8b6" -PV = "0.1.0-git${SRCPV}" +PV = "1.0.0-git${SRCPV}" GO_IMPORT = "github.com/eclipse-kanto/file-upload" GO_INSTALL = "${GO_IMPORT}" @@ -37,8 +37,8 @@ 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}" +BUILD_VERSION = "1.0.0" +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 18d1bf8..3d2314b 100644 --- a/recipes-management/software-update/software-update_git.bb +++ b/recipes-management/software-update/software-update_git.bb @@ -8,9 +8,9 @@ SRC_URI = "git://github.com/eclipse-kanto/software-update;protocol=https;branch= file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "74b2b454b2e66c212f450c822f9f7394a6fc30e1" -PV = "0.1.0-git${SRCPV}" +PV = "1.0.0-git${SRCPV}" GO_IMPORT = "github.com/eclipse-kanto/software-update" GO_INSTALL = "${GO_IMPORT}/cmd/software-update" @@ -37,8 +37,8 @@ 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}" +BUILD_VERSION = "1.0.0" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" do_install() { install -d "${D}/${SU_BIN_DD}" diff --git a/recipes-management/update-manager/update-manager_git.bb b/recipes-management/update-manager/update-manager_git.bb index 4645e56..7624e75 100644 --- a/recipes-management/update-manager/update-manager_git.bb +++ b/recipes-management/update-manager/update-manager_git.bb @@ -8,9 +8,9 @@ SRC_URI = "git://github.com/eclipse-kanto/update-manager;protocol=https;branch=m file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "0b23c81367480892efd99c9fb086bad135d2e9e2" -PV = "0.1.0-git${SRCPV}" +PV = "1.0.0-git${SRCPV}" GO_IMPORT = "github.com/eclipse-kanto/update-manager" GO_INSTALL = "${GO_IMPORT}/cmd/update-manager" @@ -37,8 +37,8 @@ RDEPENDS:${PN} += "mosquitto" PROVIDES:${PN} += "kanto/update-manager" RPROVIDES:${PN} += "kanto/update-manager" -# BUILD_VERSION = "0.1.0-M2" -# export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" +BUILD_VERSION = "1.0.0" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" do_install() { install -d "${D}/${UM_BIN_DD}" diff --git a/recipes-monitoring/system-metrics/system-metrics_git.bb b/recipes-monitoring/system-metrics/system-metrics_git.bb index 29062c2..93031c8 100644 --- a/recipes-monitoring/system-metrics/system-metrics_git.bb +++ b/recipes-monitoring/system-metrics/system-metrics_git.bb @@ -8,9 +8,9 @@ SRC_URI = "git://github.com/eclipse-kanto/system-metrics;protocol=https;branch=m file://service.template \ " -SRCREV = "${AUTOREV}" +SRCREV = "6be7a9b7dcd26df1687785ada267211ff7851435" -PV = "0.1.0-git${SRCPV}" +PV = "1.0.0-git${SRCPV}" GO_IMPORT = "github.com/eclipse-kanto/system-metrics" GO_INSTALL = "${GO_IMPORT}/cmd/metrics" @@ -38,8 +38,8 @@ 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}" +BUILD_VERSION = "1.0.0" +export GO_EXTRA_LDFLAGS="-X main.version=${BUILD_VERSION}" do_install() { install -d "${D}/${SM_BIN_DD}"