mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
k3s: fix the version of k3s
When executing `k3s --version` the mentioned version `k3s version dev (HEAD)`. The root cause is, that the BUILD_FLAGS were not the expected ones. After that patch, the k3s is reporting the correct version. Signed-off-by: Vasileios Anagnostopoulos <vasileios.anagnostopoulos@siemens.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
da285876dc
commit
7106007c14
|
@ -33,8 +33,8 @@ inherit cni_networking
|
|||
PACKAGECONFIG = ""
|
||||
PACKAGECONFIG[upx] = ",,upx-native"
|
||||
GO_IMPORT = "import"
|
||||
GO_BUILD_LDFLAGS = "-X github.com/rancher/k3s/pkg/version.Version=${PV} \
|
||||
-X github.com/rancher/k3s/pkg/version.GitCommit=${@d.getVar('SRCREV_k3s', d, 1)[:8]} \
|
||||
GO_BUILD_LDFLAGS = "-X github.com/k3s-io/k3s/pkg/version.Version=${PV} \
|
||||
-X github.com/k3s-io/k3s/pkg/version.GitCommit=${@d.getVar('SRCREV_k3s', d, 1)[:8]} \
|
||||
-w -s \
|
||||
"
|
||||
BIN_PREFIX ?= "${exec_prefix}/local"
|
||||
|
|
Loading…
Reference in New Issue
Block a user