mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
docker/moby: use generic DOCKER_COMMIT in do_compile
do_compile() is shared and shouldn't have been using SRCREV_moby as that is obviously only set in the moby recipe. Switch to using a generic DOCKER_COMMIT variable and set it in both docker_moby and docker-ce. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
e675e3ebbf
commit
d3acb1a378
|
@ -45,6 +45,8 @@ SRC_URI = "\
|
|||
file://0001-cli-use-external-GO111MODULE-and-cross-compiler.patch \
|
||||
"
|
||||
|
||||
DOCKER_COMMIT = "${SRCREV_docker}"
|
||||
|
||||
require docker.inc
|
||||
|
||||
# Apache-2.0 for docker
|
||||
|
|
|
@ -48,6 +48,8 @@ SRC_URI = "\
|
|||
file://0001-dynbinary-use-go-cross-compiler.patch \
|
||||
"
|
||||
|
||||
DOCKER_COMMIT = "${SRCREV_moby}"
|
||||
|
||||
require docker.inc
|
||||
|
||||
# Apache-2.0 for docker
|
||||
|
|
|
@ -97,14 +97,14 @@ do_compile() {
|
|||
# this is the unsupported built structure
|
||||
# that doesn't rely on an existing docker
|
||||
# to build this:
|
||||
VERSION="${DOCKER_VERSION}" DOCKER_GITCOMMIT="${SRCREV_moby}" ./hack/make.sh dynbinary
|
||||
VERSION="${DOCKER_VERSION}" DOCKER_GITCOMMIT="${DOCKER_COMMIT}" ./hack/make.sh dynbinary
|
||||
|
||||
# build the cli
|
||||
cd ${S}/src/import/.gopath/src/github.com/docker/cli
|
||||
export CFLAGS=""
|
||||
export LDFLAGS=""
|
||||
export DOCKER_VERSION=${DOCKER_VERSION}
|
||||
VERSION="${DOCKER_VERSION}" DOCKER_GITCOMMIT="${SRCREV_moby}" make dynbinary
|
||||
VERSION="${DOCKER_VERSION}" DOCKER_GITCOMMIT="${DOCKER_COMMIT}" make dynbinary
|
||||
|
||||
# build the proxy
|
||||
cd ${S}/src/import/.gopath/src/github.com/docker/libnetwork
|
||||
|
|
Loading…
Reference in New Issue
Block a user