mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-11 07:10:59 +00:00
26 lines
804 B
Makefile
26 lines
804 B
Makefile
## SPDX-License-Identifier: MIT OR Apache-2.0
|
|
##
|
|
## Copyright (c) 2019-2022 Andre Richter <andre.o.richter@gmail.com>
|
|
|
|
# Reference followed: https://www.docker.com/blog/getting-started-with-docker-for-arm-on-linux
|
|
|
|
TAG := 2021.12
|
|
|
|
default: build_local
|
|
|
|
build_local:
|
|
cp ../../Gemfile .
|
|
docker build \
|
|
--tag rustembedded/osdev-utils:$(TAG) \
|
|
--build-arg VCS_REF=`git rev-parse --short HEAD` .
|
|
rm Gemfile
|
|
|
|
buildx_push:
|
|
cp ../../Gemfile .
|
|
docker buildx build \
|
|
--push \
|
|
--platform linux/arm64/v8,linux/amd64 \
|
|
--tag rustembedded/osdev-utils:$(TAG) \
|
|
--build-arg VCS_REF=`git rev-parse --short HEAD` .
|
|
rm Gemfile
|