20 lines
549 B
Bash
Executable file
20 lines
549 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Entrypoint for reform-build-kernel docker image
|
|
|
|
if [ -f /output/Image ]
|
|
then
|
|
printf "Kernel image exist in destination aborting compilation.\n"
|
|
exit 0
|
|
fi
|
|
|
|
if ./make_kernel.sh
|
|
then
|
|
cp linux/arch/arm64/boot/Image /output/
|
|
cp linux/arch/arm64/boot/dts/freescale/imx8mq-mnt-reform2.dtb /output/imx8mq-mnt-reform2-single-display.dtb
|
|
cp linux/arch/arm64/boot/dts/freescale/imx8mq-mnt-reform2-hdmi.dtb /output/imx8mq-mnt-reform2-dual-display.dtb
|
|
else
|
|
printf "Error when building Kernel\n" 1>&2
|
|
exit 10
|
|
fi
|
|
exit 0
|