diff options
| author | Changqing Li <changqing.li@windriver.com> | 2024-04-24 16:11:57 +0800 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-05-02 18:22:42 +0000 |
| commit | e9bb0a338fdf637f7929e19b21857d4c1d532ce6 (patch) | |
| tree | 12c54c8fb0175b08cbf4b5203609442c0363ce5e | |
| parent | e46214eea8caeac8f0c9e0205b41a854deeb4440 (diff) | |
| download | meta-virtualization-e9bb0a338fdf637f7929e19b21857d4c1d532ce6.tar.gz | |
kubernetes: Pass -trimpath to build
Fix following QA WARNING:
WARNING: QA Issue: File /usr/bin/kubectl in package kubectl contains reference to TMPDIR [buildpaths]
WARNING: QA Issue: File /usr/bin/kubeadm in package kubeadm contains reference to TMPDIR [buildpaths]
WARNING: QA Issue: File /usr/bin/kube-proxy in package kube-proxy contains reference to TMPDIR [buildpaths]
WARNING: QA Issue: File /usr/bin/kube-apiserver in package kubernetes-misc contains reference to TMPDIR
WARNING: QA Issue: File /usr/bin/kubelet in package kubelet contains reference to TMPDIR [buildpaths]
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-containers/kubernetes/kubernetes_git.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-containers/kubernetes/kubernetes_git.bb b/recipes-containers/kubernetes/kubernetes_git.bb index 0df6dbfa..044175eb 100644 --- a/recipes-containers/kubernetes/kubernetes_git.bb +++ b/recipes-containers/kubernetes/kubernetes_git.bb | |||
| @@ -92,6 +92,7 @@ do_compile() { | |||
| 92 | export CC="${CC}" | 92 | export CC="${CC}" |
| 93 | export LD="${LD}" | 93 | export LD="${LD}" |
| 94 | export GOBIN="" | 94 | export GOBIN="" |
| 95 | export GOFLAGS="-trimpath" | ||
| 95 | 96 | ||
| 96 | # to limit what is built, use 'WHAT', i.e. make WHAT=cmd/kubelet | 97 | # to limit what is built, use 'WHAT', i.e. make WHAT=cmd/kubelet |
| 97 | make cross CGO_FLAGS=${CGO_FLAGS} GO=${GO} KUBE_BUILD_PLATFORMS=${GOOS}/${GOARCH} GOLDFLAGS="" DBG=1 | 98 | make cross CGO_FLAGS=${CGO_FLAGS} GO=${GO} KUBE_BUILD_PLATFORMS=${GOOS}/${GOARCH} GOLDFLAGS="" DBG=1 |
