diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2023-06-28 11:29:36 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-07-05 23:46:19 -0400 |
commit | 3ce3ef94866483aecd10dce426c8ac91602339f2 (patch) | |
tree | 6175faec268039030b45f92d1731fc9265c02bde | |
parent | 4bc2f6e550c4f8cdad1944e159a3a12b5c2f148a (diff) | |
download | meta-virtualization-3ce3ef94866483aecd10dce426c8ac91602339f2.tar.gz |
kubernetes: do not strip binaries at build
Yocto/OE has its own way to control binary stripping. So don't do
it in the go build process. Otherwise, we'll get empty dbg packages.
Setting DBG=1 solves this problem, as stated in comments in the Makefile.
"""
# Note: Specify DBG=1 for building unstripped binaries, which allows you to use code debugging
# tools like delve. When DBG is unspecified, it defaults to "-s -w" which strips debug
# information.
"""
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-containers/kubernetes/kubernetes_git.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-containers/kubernetes/kubernetes_git.bb b/recipes-containers/kubernetes/kubernetes_git.bb index 3a6e7119..8b7c9e06 100644 --- a/recipes-containers/kubernetes/kubernetes_git.bb +++ b/recipes-containers/kubernetes/kubernetes_git.bb | |||
@@ -87,7 +87,7 @@ do_compile() { | |||
87 | export GOBIN="" | 87 | export GOBIN="" |
88 | 88 | ||
89 | # to limit what is built, use 'WHAT', i.e. make WHAT=cmd/kubelet | 89 | # to limit what is built, use 'WHAT', i.e. make WHAT=cmd/kubelet |
90 | make cross CGO_FLAGS=${CGO_FLAGS} GO=${GO} KUBE_BUILD_PLATFORMS=${GOOS}/${GOARCH} GOLDFLAGS="" | 90 | make cross CGO_FLAGS=${CGO_FLAGS} GO=${GO} KUBE_BUILD_PLATFORMS=${GOOS}/${GOARCH} GOLDFLAGS="" DBG=1 |
91 | } | 91 | } |
92 | 92 | ||
93 | do_install() { | 93 | do_install() { |