First commit
This commit is contained in:
commit
43eb1eaa64
4 changed files with 174 additions and 0 deletions
18
docker/entrypoint.sh
Executable file
18
docker/entrypoint.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue