blob: 093aa683dc44bf8e13b2aa25ef436560a0634f07 [file] [log] [blame]
Patrick Williamsd849ec72016-08-17 14:59:38 -05001SYSLINUX_TIMEOUT = "10"
2SYSLINUX_LABEL = "boot"
3SYSLINUX_XEN_APPEND = "dom0_mem=1048576"
4SYSLINUX_KERNEL_APPEND = "ramdisk_size=32768 root=/dev/ram0 rw console=tty0 console=ttyS0,115200n8"
5#LABELS_append = " ${SYSLINUX_LABEL} "
6
7INITRD = "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.cpio.lzma"
8
9do_bootimg[depends] += "${IMAGE_BASENAME}:do_rootfs"
10
11inherit bootimg
12
13syslinux_populate_append() {
14 install -m 0444 ${STAGING_LIBDIR}/syslinux/mboot.c32 ${HDDDIR}${SYSLINUXDIR}/mboot.c32
15}
16
17grubefi_populate_append() {
18 install -m 0644 ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}.gz ${DEST}${EFIDIR}/xen.gz
19}
20
21populate_append() {
22 install -m 0644 ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}.gz ${DEST}/xen.gz
23}
24
25build_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