Patrick Williams | d849ec7 | 2016-08-17 14:59:38 -0500 | [diff] [blame] | 1 | SYSLINUX_TIMEOUT = "10" |
| 2 | SYSLINUX_LABEL = "boot" |
| 3 | SYSLINUX_XEN_APPEND = "dom0_mem=1048576" |
| 4 | SYSLINUX_KERNEL_APPEND = "ramdisk_size=32768 root=/dev/ram0 rw console=tty0 console=ttyS0,115200n8" |
| 5 | #LABELS_append = " ${SYSLINUX_LABEL} " |
| 6 | |
| 7 | INITRD = "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.cpio.lzma" |
| 8 | |
| 9 | do_bootimg[depends] += "${IMAGE_BASENAME}:do_rootfs" |
| 10 | |
| 11 | inherit bootimg |
| 12 | |
| 13 | syslinux_populate_append() { |
| 14 | install -m 0444 ${STAGING_LIBDIR}/syslinux/mboot.c32 ${HDDDIR}${SYSLINUXDIR}/mboot.c32 |
| 15 | } |
| 16 | |
| 17 | grubefi_populate_append() { |
| 18 | install -m 0644 ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}.gz ${DEST}${EFIDIR}/xen.gz |
| 19 | } |
| 20 | |
| 21 | populate_append() { |
| 22 | install -m 0644 ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}.gz ${DEST}/xen.gz |
| 23 | } |
| 24 | |
| 25 | build_syslinux_cfg() { |
| 26 | echo ALLOWOPTIONS 1 > ${SYSLINUXCFG} |
| 27 | echo SERIAL 0 115200 > ${SYSLINUXCFG} |
| 28 | echo DEFAULT ${SYSLINUX_LABEL} >> ${SYSLINUXCFG} |
| 29 | echo TIMEOUT ${SYSLINUX_TIMEOUT} >> ${SYSLINUXCFG} |
| 30 | echo PROMPT 1 >> ${SYSLINUXCFG} |
| 31 | echo LABEL ${SYSLINUX_LABEL} >> ${SYSLINUXCFG} |
| 32 | echo KERNEL mboot.c32 >> ${SYSLINUXCFG} |
| 33 | echo APPEND xen.gz ${SYSLINUX_XEN_APPEND} --- vmlinuz ${SYSLINUX_KERNEL_APPEND} --- initrd >> ${SYSLINUXCFG} |
| 34 | } |
| 35 | |