[PATCH] docker-distribution: do not build for riscv64


Chen Qi
 

Currently docker-distribution has a do_compile error for riscv64.
The problem could be reproduced by:
MACHINE=qemuriscv64 bitbake docker-distribution

So explicitly set COMPATIBLE_HOST here to avoid it building for
riscv64. When someone interested in using this recipe for riscv64
fixes the compile issue, this setting could be removed.

Signed-off-by: Chen Qi <Qi.Chen@...>
---
.../docker-distribution/docker-distribution_git.bb | 2 ++
1 file changed, 2 insertions(+)

diff --git a/recipes-containers/docker-distribution/docker-distribution_git.bb b/recipes-containers/docker-distribution/docker-distribution_git.bb
index d0cd8f3..86fcd62 100644
--- a/recipes-containers/docker-distribution/docker-distribution_git.bb
+++ b/recipes-containers/docker-distribution/docker-distribution_git.bb
@@ -73,3 +73,5 @@ SYSTEMD_AUTO_ENABLE:docker-registry = "enable"
RDEPENDS:${PN}-ptest:remove = "${PN}"

CVE_PRODUCT = "docker_registry"
+
+COMPATIBLE_HOST:riscv64 = "null"
--
2.37.1


Bruce Ashfield
 

merged.

Bruce

In message: [meta-virtualization][PATCH] docker-distribution: do not build for riscv64
on 20/11/2022 Chen Qi wrote:

Currently docker-distribution has a do_compile error for riscv64.
The problem could be reproduced by:
MACHINE=qemuriscv64 bitbake docker-distribution

So explicitly set COMPATIBLE_HOST here to avoid it building for
riscv64. When someone interested in using this recipe for riscv64
fixes the compile issue, this setting could be removed.

Signed-off-by: Chen Qi <Qi.Chen@...>
---
.../docker-distribution/docker-distribution_git.bb | 2 ++
1 file changed, 2 insertions(+)

diff --git a/recipes-containers/docker-distribution/docker-distribution_git.bb b/recipes-containers/docker-distribution/docker-distribution_git.bb
index d0cd8f3..86fcd62 100644
--- a/recipes-containers/docker-distribution/docker-distribution_git.bb
+++ b/recipes-containers/docker-distribution/docker-distribution_git.bb
@@ -73,3 +73,5 @@ SYSTEMD_AUTO_ENABLE:docker-registry = "enable"
RDEPENDS:${PN}-ptest:remove = "${PN}"

CVE_PRODUCT = "docker_registry"
+
+COMPATIBLE_HOST:riscv64 = "null"
--
2.37.1