Currently kubernetes does not build for qemux86, qemumips, qemumips64,
qemuppc. So set COMPATIBLE_HOST to make this clear. Otherwise we get
build failure when trying to build like below.

  fatal error: bits/long-double-64.h: No such file or directory

Signed-off-by: Chen Qi <[email protected]>
---
 recipes-containers/kubernetes/kubernetes_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-containers/kubernetes/kubernetes_git.bb 
b/recipes-containers/kubernetes/kubernetes_git.bb
index ea34719..5b4c3a9 100644
--- a/recipes-containers/kubernetes/kubernetes_git.bb
+++ b/recipes-containers/kubernetes/kubernetes_git.bb
@@ -28,6 +28,8 @@ inherit systemd
 inherit go
 inherit goarch
 
+COMPATIBLE_HOST = '(x86_64.*|arm.*|aarch64.*)-linux'
+
 do_compile() {
        export GOARCH="${TARGET_GOARCH}"
        export GOOS="${TARGET_GOOS}"
-- 
2.17.1

-- 
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Reply via email to