create a folder named with kernel version
Fot putting compiled kernel and dtb files
This commit is contained in:
parent
ed91d7ca4e
commit
4a0f6e99e9
1 changed files with 7 additions and 4 deletions
|
@ -1,8 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Entrypoint for reform-build-kernel docker image
|
||||
OUTPUT="/output/$KERNEL_VERSION"
|
||||
|
||||
if [ -f /output/Image ]
|
||||
[[ -d "$OUTPUT" ]] || mkdir "$OUTPUT"
|
||||
|
||||
if [ -f "$OUTPUT/Image" ]
|
||||
then
|
||||
printf "Kernel image exist in destination aborting compilation.\n"
|
||||
exit 0
|
||||
|
@ -10,9 +13,9 @@ 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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue