diff options
author | Chris Patterson <cjp256@gmail.com> | 2013-09-10 21:02:41 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-09-24 11:45:52 -0400 |
commit | 214c4715f0ed53ba9c499932b0b6ee3f602ff89f (patch) | |
tree | dba7911c15c6c4948e14d0429cbe6e52b83a2493 | |
parent | ea6350801914734629fe5ae90070ea4d3d900c94 (diff) | |
download | meta-virtualization-214c4715f0ed53ba9c499932b0b6ee3f602ff89f.tar.gz |
xen-image-minimal: update image to support xen 4.3.0 base with xl toolstack.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
-rw-r--r-- | recipes-extended/images/xen-image-minimal.bb | 52 |
1 files changed, 46 insertions, 6 deletions
diff --git a/recipes-extended/images/xen-image-minimal.bb b/recipes-extended/images/xen-image-minimal.bb index 0cf55d65..23c49117 100644 --- a/recipes-extended/images/xen-image-minimal.bb +++ b/recipes-extended/images/xen-image-minimal.bb | |||
@@ -1,14 +1,54 @@ | |||
1 | DESCRIPTION = "A minimal xen image" | 1 | DESCRIPTION = "A minimal xen image" |
2 | IMAGE_INSTALL = "packagegroup-core-boot xen-minimal dropbear mdadm" | ||
3 | 2 | ||
4 | IMAGE_LINGUAS = " " | 3 | INITRD_IMAGE = "core-image-minimal-initramfs" |
4 | |||
5 | IMAGE_INSTALL += " \ | ||
6 | packagegroup-core-boot \ | ||
7 | packagegroup-core-ssh-openssh \ | ||
8 | kernel-module-xen-acpi-processor \ | ||
9 | kernel-module-xen-blkback \ | ||
10 | kernel-module-xen-blkfront \ | ||
11 | kernel-module-xen-evtchn \ | ||
12 | kernel-module-xenfs \ | ||
13 | kernel-module-xen-gntalloc \ | ||
14 | kernel-module-xen-gntdev \ | ||
15 | kernel-module-xen-netback \ | ||
16 | kernel-module-xen-netfront \ | ||
17 | kernel-module-xen-pciback \ | ||
18 | kernel-module-xen-pcifront \ | ||
19 | kernel-module-xen-privcmd \ | ||
20 | kernel-module-xen-wdt \ | ||
21 | xen-base \ | ||
22 | xen-qemu \ | ||
23 | " | ||
24 | |||
5 | LICENSE = "MIT" | 25 | LICENSE = "MIT" |
6 | 26 | ||
7 | inherit core-image | 27 | inherit core-image |
8 | 28 | ||
9 | IMAGE_ROOTFS_SIZE = "8192" | 29 | syslinux_iso_populate_append() { |
30 | install -m 0444 ${STAGING_DATADIR}/syslinux/mboot.c32 ${ISODIR}${ISOLINUXDIR} | ||
31 | } | ||
32 | |||
33 | syslinux_hddimg_populate_append() { | ||
34 | install -m 0444 ${STAGING_DATADIR}/syslinux/mboot.c32 ${HDDDIR}${SYSLINUXDIR} | ||
35 | } | ||
36 | |||
37 | grubefi_populate_append() { | ||
38 | install -m 0644 ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}.gz ${DEST}${EFIDIR}/xen.gz | ||
39 | } | ||
40 | |||
41 | populate_append() { | ||
42 | install -m 0644 ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}.gz ${DEST}/xen.gz | ||
43 | } | ||
10 | 44 | ||
11 | # remove not needed ipkg informations | 45 | build_syslinux_cfg () { |
12 | ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; " | 46 | echo "ALLOWOPTIONS 1" > ${SYSLINUXCFG} |
47 | echo "DEFAULT boot" >> ${SYSLINUXCFG} | ||
48 | echo "TIMEOUT 10" >> ${SYSLINUXCFG} | ||
49 | echo "PROMPT 1" >> ${SYSLINUXCFG} | ||
50 | echo "LABEL boot" >> ${SYSLINUXCFG} | ||
51 | echo " KERNEL mboot.c32" >> ${SYSLINUXCFG} | ||
52 | echo " APPEND /xen.gz loglvl=all guest_loglvl=all console=com1,vga com1=115200,8n1 --- /vmlinuz ramdisk_size=32768 root=/dev/ram0 rw console=hvc0 earlyprintk=xen console=tty0 panic=10 LABEL=boot debugshell=5 --- /initrd" >> ${SYSLINUXCFG} | ||
53 | } | ||
13 | 54 | ||
14 | require xen-bootimg.inc | ||