Skip to content

Commit

Permalink
Merge pull request #813 from ricardosalveti/syslinux
Browse files Browse the repository at this point in the history
image_types_ota.bbclass: add support for syslinux as OSTREE_BOOTLOADER
  • Loading branch information
aodukha authored Jul 12, 2021
2 parents d48600d + 764226d commit a0d9835
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/image_types_ota.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ IMAGE_CMD_ota () {
ln -s ../loader/grub.cfg ${OTA_SYSROOT}/boot/grub2/grub.cfg
elif [ "${OSTREE_BOOTLOADER}" = "u-boot" ]; then
touch ${OTA_SYSROOT}/boot/loader/uEnv.txt
elif [ "${OSTREE_BOOTLOADER}" = "syslinux" ]; then
mkdir -p ${OTA_SYSROOT}/boot/syslinux
touch ${OTA_SYSROOT}/boot/loader/syslinux.cfg
ln -s ../loader/syslinux.cfg ${OTA_SYSROOT}/boot/syslinux/syslinux.cfg
else
bbfatal "Invalid bootloader: ${OSTREE_BOOTLOADER}"
fi
Expand Down

0 comments on commit a0d9835

Please sign in to comment.