mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-03 15:40:21 +00:00
20 lines
469 B
Bash
Executable File
20 lines
469 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# SPDX-License-Identifier: MIT OR Apache-2.0
|
|
#
|
|
# Copyright (c) 2018-2020 Andre Richter <andre.o.richter@gmail.com>
|
|
|
|
CONTAINER_UTILS="rustembedded/osdev-utils"
|
|
|
|
DOCKER_CMD="docker run -it --rm"
|
|
DOCKER_ARG_CURDIR="-v $(pwd):/work -w /work"
|
|
DOCKER_ARG_TTY="--privileged -v /dev:/dev"
|
|
DOCKER_EXEC_RASPBOOT="raspbootcom /dev/ttyUSB0"
|
|
|
|
$DOCKER_CMD \
|
|
$DOCKER_ARG_CURDIR \
|
|
$DOCKER_ARG_TTY \
|
|
$CONTAINER_UTILS \
|
|
$DOCKER_EXEC_RASPBOOT \
|
|
kernel8.img
|