diff options
Diffstat (limited to 'recipes-extended')
-rw-r--r-- | recipes-extended/images/xen-image-minimal.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-extended/images/xen-image-minimal.bb b/recipes-extended/images/xen-image-minimal.bb index 26b6d065..b8c20022 100644 --- a/recipes-extended/images/xen-image-minimal.bb +++ b/recipes-extended/images/xen-image-minimal.bb | |||
@@ -20,6 +20,14 @@ LICENSE = "MIT" | |||
20 | 20 | ||
21 | inherit core-image | 21 | inherit core-image |
22 | 22 | ||
23 | do_check_xen_state() { | ||
24 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' yes', 'no', d)}" = "no" ]; then | ||
25 | die "DISTRO_FEATURES does not contain 'xen'" | ||
26 | fi | ||
27 | } | ||
28 | |||
29 | addtask check_xen_state before do_rootfs | ||
30 | |||
23 | syslinux_iso_populate_append() { | 31 | syslinux_iso_populate_append() { |
24 | install -m 0444 ${STAGING_DATADIR}/syslinux/libcom32.c32 ${ISODIR}${ISOLINUXDIR} | 32 | install -m 0444 ${STAGING_DATADIR}/syslinux/libcom32.c32 ${ISODIR}${ISOLINUXDIR} |
25 | install -m 0444 ${STAGING_DATADIR}/syslinux/mboot.c32 ${ISODIR}${ISOLINUXDIR} | 33 | install -m 0444 ${STAGING_DATADIR}/syslinux/mboot.c32 ${ISODIR}${ISOLINUXDIR} |