File tree Expand file tree Collapse file tree 5 files changed +70
-158
lines changed Expand file tree Collapse file tree 5 files changed +70
-158
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ src/github.com/docker/scan-cli-plugin:
5454 git init $@
5555 git -C $@ remote add origin " $( DOCKER_SCAN_REPO) "
5656
57+ src/github.com/tonistiigi/xx :
58+ $(call title,Init $(XX_REPO ) )
59+ git init $@
60+ git -C $@ remote add origin " $( XX_REPO) "
5761
5862.PHONY : checkout-cli
5963checkout-cli : src/github.com/docker/cli
@@ -83,6 +87,11 @@ checkout-scan-cli-plugin: src/github.com/docker/scan-cli-plugin
8387.PHONY : checkout
8488checkout : checkout-cli checkout-docker checkout-buildx checkout-compose checkout-scan-cli-plugin # # checkout source at the given reference(s)
8589
90+ .PHONY : checkout-xx
91+ checkout-xx : src/github.com/tonistiigi/xx
92+ $(call title,Checkout $(XX_REPO ) #$(XX_REF ) )
93+ ./scripts/checkout.sh src/github.com/tonistiigi/xx " $( XX_REF) "
94+
8695.PHONY : clean
8796clean : clean-src # # remove build artifacts
8897 $(MAKE ) -C rpm clean
@@ -101,9 +110,8 @@ centos-% fedora-% rhel-%: checkout ## build rpm packages for the specified distr
101110debian-% raspbian-% ubuntu-% : checkout # # build deb packages for the specified distro
102111 $(MAKE ) -C deb $@
103112
104-
105113.PHONY : static
106- static : checkout # # build static package
114+ static : checkout checkout-xx # # build static package
107115 $(MAKE ) -C static build
108116
109117.PHONY : verify
Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ DOCKER_SCAN_REF ?= v0.17.0
4343DOCKER_COMPOSE_REF ?= v2.6.1
4444DOCKER_BUILDX_REF ?= v0.8.2
4545
46+ # XX is used as cross-compilation helper for static bundles
47+ XX_REPO ?= https://github.com/tonistiigi/xx.git
48+ XX_REF ?= v1.1.1
49+
4650# Use "stage" to install dependencies from download-stage.docker.com during the
4751# verify step. Leave empty or use any other value to install from download.docker.com
4852VERIFY_PACKAGE_REPO ?= staging
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ ENGINE_DIR=$(realpath $(CURDIR)/../src/github.com/docker/docker)
55BUILDX_DIR =$(realpath $(CURDIR ) /../src/github.com/docker/buildx)
66COMPOSE_DIR =$(realpath $(CURDIR ) /../src/github.com/docker/compose)
77SCAN_DIR =$(realpath $(CURDIR ) /../src/github.com/docker/scan-cli-plugin)
8+ XX_DIR =$(realpath $(CURDIR ) /../src/github.com/tonistiigi/xx)
89
910STATIC_VERSION =$(shell ./gen-static-ver $(CLI_DIR ) $(VERSION ) )
1011HASH_CMD =docker run -v $(CURDIR ) :/sum -w /sum alpine sh hash_files
@@ -15,6 +16,7 @@ export ENGINE_DIR
1516export BUILDX_DIR
1617export COMPOSE_DIR
1718export SCAN_DIR
19+ export XX_DIR
1820
1921export STATIC_VERSION
2022export CONTAINERD_VERSION
You can’t perform that action at this time.
0 commit comments