mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
xen-image-minimal: if DISTRO_FEATURES is missing xen error
It can be confusing to users why things are failing with missing kernel dependencies when you don't have 'xen' in your DISTRO_FEATURES. This should provide them with some better info. Signed-off-by: Doug Goldstein <cardoe@cardoe.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
c613f19bf2
commit
c0d11eeb26
|
@ -20,6 +20,14 @@ LICENSE = "MIT"
|
||||||
|
|
||||||
inherit core-image
|
inherit core-image
|
||||||
|
|
||||||
|
do_check_xen_state() {
|
||||||
|
if [ "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' yes', 'no', d)}" = "no" ]; then
|
||||||
|
die "DISTRO_FEATURES does not contain 'xen'"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
addtask check_xen_state before do_rootfs
|
||||||
|
|
||||||
syslinux_iso_populate_append() {
|
syslinux_iso_populate_append() {
|
||||||
install -m 0444 ${STAGING_DATADIR}/syslinux/libcom32.c32 ${ISODIR}${ISOLINUXDIR}
|
install -m 0444 ${STAGING_DATADIR}/syslinux/libcom32.c32 ${ISODIR}${ISOLINUXDIR}
|
||||||
install -m 0444 ${STAGING_DATADIR}/syslinux/mboot.c32 ${ISODIR}${ISOLINUXDIR}
|
install -m 0444 ${STAGING_DATADIR}/syslinux/mboot.c32 ${ISODIR}${ISOLINUXDIR}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user