18 lines
321 B
Bash
Executable file
18 lines
321 B
Bash
Executable file
#!/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
|