First commit

This commit is contained in:
Yorick Barbanneau 2021-04-20 02:40:59 +02:00
commit 43eb1eaa64
4 changed files with 174 additions and 0 deletions

18
docker/entrypoint.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
# Entrypoint for reform-build-kernel docker image
if [ -f /output/flash.bin ]
then
printf "Kernel image exist in destination aborting compilation.\n"
exit 0
fi
if ./make_uboot.sh
then
cp u-boot/flash.bin /output/flash.bin
else
printf "Error when building uBoot\n" >&2
exit 10
fi
exit 0