xrsh-buildroot/build.sh

23 lines
472 B
Bash
Raw Normal View History

2019-04-26 19:40:09 +02:00
#!/usr/bin/env bash
2024-09-11 14:58:31 +02:00
test "$1" = "--edit" && {
EDIT="-ti -v $PWD/edit.sh:/root/edit.sh --entrypoint bash"
}
#-v $PWD/cache:/root/buildroot-2021.02-rc2/output
test -d dist || mkdir dist
test -d cache || mkdir cache
rm -rf cache/*
docker images | grep buildroot || docker build -t buildroot .
2019-04-26 19:40:09 +02:00
docker run \
--rm \
--name build-v86 \
-v $PWD/dist:/build \
2024-09-11 14:58:31 +02:00
-v $PWD/buildroot-v86/:/buildroot-v86 ${EDIT} \
2019-04-26 19:40:09 +02:00
buildroot
echo "See ./dist for built ISO"