mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
Pre 1.58.1 have CVE-2022-21658 Cros toolchain got upgraded to 1.58.1 BUG=None TEST=cq Change-Id: I2ce5a08b40bcc4895c4f2ecef83efd4162d67494 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3435385 Reviewed-by: Dennis Kempin <denniskempin@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Anton Romanov <romanton@google.com>
36 lines
984 B
Makefile
36 lines
984 B
Makefile
# Copyright 2021 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
#
|
|
# To locally build the docker container for usage with dev_container:
|
|
#
|
|
# make -C tools/impl/dev_container crosvm_dev
|
|
#
|
|
# To upload a new version of the container, uprev the `version` file and run;
|
|
#
|
|
# make -C tools/impl/dev_container upload
|
|
#
|
|
# You need write permission to the crosvm-packages cloud registry to do so.
|
|
|
|
export DOCKER_BUILDKIT=1
|
|
|
|
TAG_BASE=gcr.io/crosvm-packages
|
|
VERSION=$(shell cat version)
|
|
RUST_VERSION=$(shell cat ../../../rust-toolchain | grep channel | grep -E -o "[0-9\.]+")
|
|
BUILD_CONTEXT=$(shell realpath ../../../)
|
|
|
|
DOCKER ?= docker
|
|
|
|
all: crosvm_dev
|
|
|
|
upload: all
|
|
$(DOCKER) push $(TAG_BASE)/crosvm_dev:$(VERSION)
|
|
|
|
crosvm_dev:
|
|
$(DOCKER) build \
|
|
--build-arg RUST_VERSION=$(RUST_VERSION) \
|
|
-t $(TAG_BASE)/$@:$(VERSION) \
|
|
-f Dockerfile \
|
|
$(BUILD_CONTEXT)
|
|
|
|
.PHONY: all crosvm_dev upload
|