summaryrefslogtreecommitdiffstats
path: root/recipes-containers/kubernetes
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2025-06-25 22:40:08 -0400
committerBruce Ashfield <bruce.ashfield@gmail.com>2025-06-25 22:40:08 -0400
commitbc2a750d5cd518706aff406da6e0719ce475e36b (patch)
tree50fc47c0c749ec6cb3ea6e197b7b78cb97932714 /recipes-containers/kubernetes
parent9f23867e6386ba4131c165f084c5f5de2c612451 (diff)
downloadmeta-virtualization-bc2a750d5cd518706aff406da6e0719ce475e36b.tar.gz
containers: adapt to UNPACKDIR changes
This commit updates the container recipes to the OE core UNPACKDIR changes. - We drop references to WORKDIR - We adjust destsuffix fetches to use BB_GIT_DEFAULT_DESTSUFFIX instead of 'git' - Update our GOPATH references to use UNPACKDIR - Drop S = assignemnts where possible Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/kubernetes')
-rw-r--r--recipes-containers/kubernetes/kubernetes_git.bb14
1 files changed, 7 insertions, 7 deletions
diff --git a/recipes-containers/kubernetes/kubernetes_git.bb b/recipes-containers/kubernetes/kubernetes_git.bb
index b6eb4946..7a35afd5 100644
--- a/recipes-containers/kubernetes/kubernetes_git.bb
+++ b/recipes-containers/kubernetes/kubernetes_git.bb
@@ -15,7 +15,7 @@ BBCLASSEXTEND = "devupstream:target"
15LIC_FILES_CHKSUM:class-devupstream = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" 15LIC_FILES_CHKSUM:class-devupstream = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
16DEFAULT_PREFERENCE:class-devupstream = "-1" 16DEFAULT_PREFERENCE:class-devupstream = "-1"
17SRC_URI:class-devupstream = "git://github.com/kubernetes/kubernetes.git;branch=release-1.32;name=kubernetes;protocol=https \ 17SRC_URI:class-devupstream = "git://github.com/kubernetes/kubernetes.git;branch=release-1.32;name=kubernetes;protocol=https \
18 git://github.com/kubernetes/release;branch=master;name=kubernetes-release;destsuffix=git/release;protocol=https \ 18 git://github.com/kubernetes/release;branch=master;name=kubernetes-release;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/release;protocol=https \
19 " 19 "
20SRCREV_kubernetes:class-devupstream = "e3b5e621f07f0fee298f641ebded61b8f393fe27" 20SRCREV_kubernetes:class-devupstream = "e3b5e621f07f0fee298f641ebded61b8f393fe27"
21SRCREV_kubernetes-release:class-devupstream = "21382abdbfa8e6a43fd417306fa649cb651cc06e" 21SRCREV_kubernetes-release:class-devupstream = "21382abdbfa8e6a43fd417306fa649cb651cc06e"
@@ -23,8 +23,8 @@ PV:class-devupstream = "v1.28.2+git${SRCREV_kubernetes}"
23 23
24SRCREV_FORMAT ?= "kubernetes_release" 24SRCREV_FORMAT ?= "kubernetes_release"
25 25
26SRC_URI = "git://github.com/kubernetes/kubernetes.git;branch=release-1.32;name=kubernetes;protocol=https;destsuffix=git/src/github.com/kubernetes/kubernetes \ 26SRC_URI = "git://github.com/kubernetes/kubernetes.git;branch=release-1.32;name=kubernetes;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/src/github.com/kubernetes/kubernetes \
27 git://github.com/kubernetes/release;branch=master;name=kubernetes-release;destsuffix=git/release;protocol=https" 27 git://github.com/kubernetes/release;branch=master;name=kubernetes-release;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/release;protocol=https"
28 28
29SRC_URI:append = " \ 29SRC_URI:append = " \
30 file://0001-hack-lib-golang.sh-use-CC-from-environment.patch \ 30 file://0001-hack-lib-golang.sh-use-CC-from-environment.patch \
@@ -45,7 +45,7 @@ LICENSE = "Apache-2.0"
45LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" 45LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
46 46
47GO_IMPORT = "import" 47GO_IMPORT = "import"
48S = "${WORKDIR}/git/src/github.com/kubernetes/kubernetes" 48S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}/src/github.com/kubernetes/kubernetes"
49 49
50inherit systemd 50inherit systemd
51inherit go 51inherit go
@@ -55,7 +55,7 @@ inherit cni_networking
55COMPATIBLE_HOST = '(x86_64.*|arm.*|aarch64.*)-linux' 55COMPATIBLE_HOST = '(x86_64.*|arm.*|aarch64.*)-linux'
56 56
57do_compile() { 57do_compile() {
58 export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go:${WORKDIR}/git/" 58 export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go:${UNPACKDIR}/git/"
59 cd ${S} 59 cd ${S}
60 60
61 # Build the host tools first, using the host compiler 61 # Build the host tools first, using the host compiler
@@ -107,8 +107,8 @@ do_install() {
107 107
108 install -m 755 -D ${S}/_output/local/bin/${TARGET_GOOS}/${TARGET_GOARCH}/* ${D}/${bindir} 108 install -m 755 -D ${S}/_output/local/bin/${TARGET_GOOS}/${TARGET_GOARCH}/* ${D}/${bindir}
109 109
110 install -m 0644 ${WORKDIR}/git/release/cmd/kubepkg/templates/latest/deb/kubelet/lib/systemd/system/kubelet.service ${D}${systemd_unitdir}/system/ 110 install -m 0644 ${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}/release/cmd/kubepkg/templates/latest/deb/kubelet/lib/systemd/system/kubelet.service ${D}${systemd_unitdir}/system/
111 install -m 0644 ${WORKDIR}/git/release/cmd/kubepkg/templates/latest/deb/kubeadm/10-kubeadm.conf ${D}${systemd_unitdir}/system/kubelet.service.d/ 111 install -m 0644 ${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}/release/cmd/kubepkg/templates/latest/deb/kubeadm/10-kubeadm.conf ${D}${systemd_unitdir}/system/kubelet.service.d/
112 112
113 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 113 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
114 install -d "${D}${BIN_PREFIX}${base_bindir}" 114 install -d "${D}${BIN_PREFIX}${base_bindir}"