From 2ef58c264b21d36255c2754abef43e0bee764ae8 Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Wed, 8 Feb 2017 12:53:27 -0500 Subject: go-cross: add ${TARGET_ARCH} to PN Since we are building a cross tool which produces something which is ARCH specific we should stick to the -cross- naming convention. A variant of this patch has been floating around for a while but with the changes around per recipe sysroots, distributed builds, shared builds... we are best served to adopt this convention now. Signed-off-by: Mark Asselstine Signed-off-by: Bruce Ashfield --- recipes-containers/containerd/containerd_git.bb | 2 +- recipes-containers/docker/docker_git.bb | 2 +- recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb | 2 +- recipes-containers/riddler/riddler_git.bb | 2 +- recipes-containers/runc/runc_git.bb | 2 +- recipes-devtools/go-cross/go-cross.inc | 3 +++ recipes-networking/netns/netns_git.bb | 2 +- 7 files changed, 9 insertions(+), 6 deletions(-) diff --git a/recipes-containers/containerd/containerd_git.bb b/recipes-containers/containerd/containerd_git.bb index a5062e0b..c2573556 100644 --- a/recipes-containers/containerd/containerd_git.bb +++ b/recipes-containers/containerd/containerd_git.bb @@ -18,7 +18,7 @@ S = "${WORKDIR}/git" CONTAINERD_VERSION = "0.2.2" PV = "${CONTAINERD_VERSION}+git${SRCREV}" -DEPENDS = "go-cross \ +DEPENDS = "go-cross-${TARGET_ARCH} \ " RRECOMMENDS_${PN} = "lxc docker" diff --git a/recipes-containers/docker/docker_git.bb b/recipes-containers/docker/docker_git.bb index 6805d786..75da1861 100644 --- a/recipes-containers/docker/docker_git.bb +++ b/recipes-containers/docker/docker_git.bb @@ -37,7 +37,7 @@ DOCKER_VERSION = "1.13.0" PV = "${DOCKER_VERSION}+git${SRCREV}" DEPENDS = " \ - go-cross \ + go-cross-${TARGET_ARCH} \ go-cli \ go-pty \ go-context \ diff --git a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb index dac2d133..7e5af380 100644 --- a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb +++ b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb @@ -2,7 +2,7 @@ HOMEPAGE = "https://github.com/opencontainers/runtime-tools" SUMMARY = "oci-runtime-tool is a collection of tools for working with the OCI runtime specification" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://LICENSE;md5=b355a61a394a504dacde901c958f662c" -DEPENDS = "go-cross" +DEPENDS = "go-cross-${TARGET_ARCH}" SRC_URI = "git://github.com/opencontainers/runtime-tools.git" diff --git a/recipes-containers/riddler/riddler_git.bb b/recipes-containers/riddler/riddler_git.bb index 361e9d24..49e8aa01 100644 --- a/recipes-containers/riddler/riddler_git.bb +++ b/recipes-containers/riddler/riddler_git.bb @@ -2,7 +2,7 @@ HOMEPAGE = "https://github.com/jfrazelle/riddler" SUMMARY = "Convert `docker inspect` to opencontainers (OCI compatible) runc spec." LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=20ce4c6a4f32d6ee4a68e3a7506db3f1" -DEPENDS = "go-cross" +DEPENDS = "go-cross-${TARGET_ARCH}" SRC_URI = "git://github.com/jfrazelle/riddler;branch=master" SRCREV = "23befa0b232877b5b502b828e24161d801bd67f6" diff --git a/recipes-containers/runc/runc_git.bb b/recipes-containers/runc/runc_git.bb index ed9a32e4..23c0094d 100644 --- a/recipes-containers/runc/runc_git.bb +++ b/recipes-containers/runc/runc_git.bb @@ -18,7 +18,7 @@ S = "${WORKDIR}/git" RUNC_VERSION = "1.0.0-rc1" PV = "${RUNC_VERSION}+git${SRCREV}" -DEPENDS = "go-cross \ +DEPENDS = "go-cross-${TARGET_ARCH} \ " RRECOMMENDS_${PN} = "lxc docker" diff --git a/recipes-devtools/go-cross/go-cross.inc b/recipes-devtools/go-cross/go-cross.inc index 857fbd54..a7117bcd 100644 --- a/recipes-devtools/go-cross/go-cross.inc +++ b/recipes-devtools/go-cross/go-cross.inc @@ -1,5 +1,8 @@ inherit cross +# Produces target arch specific code so we should reflect this in the PN +PN = "go-cross-${TARGET_ARCH}" + # libgcc is required for the target specific libraries to build properly DEPENDS += "go-initial-native libgcc virtual/${TARGET_PREFIX}gcc" diff --git a/recipes-networking/netns/netns_git.bb b/recipes-networking/netns/netns_git.bb index 073022e5..247b37d6 100644 --- a/recipes-networking/netns/netns_git.bb +++ b/recipes-networking/netns/netns_git.bb @@ -2,7 +2,7 @@ HOMEPAGE = "https://github.com/jfrazelle/netns" SUMMARY = "Runc hook for setting up default bridge networking." LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=20ce4c6a4f32d6ee4a68e3a7506db3f1" -DEPENDS = "go-cross" +DEPENDS = "go-cross-${TARGET_ARCH}" SRC_URI = "git://github.com/jfrazelle/netns;branch=master" SRCREV = "2804050eeab661bfa75c3aa06bdcf60273b02ca7" -- cgit v1.2.3-54-g00ecf