SummerCart64/sw/bootloader/build.sh
Polprzewodnikowy 3f3f375906 x fix
2021-03-11 00:19:41 +01:00

11 lines
328 B
Bash
Executable File

#!/bin/bash
build_in_docker() {
docker run -t \
--mount type=bind,src=`realpath $(pwd)`,target="/src" \
--mount type=bind,src=`realpath "$(pwd)/../libsc64"`,target="/src/libsc64" \
$1 /bin/bash -c "cd /src && make clean && make -f $2 all"
}
build_in_docker "anacierdem/libdragon:latest" "Makefile"