From ec9e374d16e65211d8a24836eb750726f88a24bd Mon Sep 17 00:00:00 2001 From: Philip Tricca Date: Thu, 17 Oct 2013 18:47:35 +0000 Subject: xen: build xsm policy when 'xsm' DISTRO_FEATURE is present This pulls in a dependency on the checkpolicy compiler (native) and adds --enable-xsmpolicy in do_configure when 'xsm' DISTRO_FEATURE is present. Signed-off-by: Philip Tricca Signed-off-by: Bruce Ashfield --- recipes-extended/xen/xen_4.3.0.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-extended/xen/xen_4.3.0.bb b/recipes-extended/xen/xen_4.3.0.bb index 228f75f9..078b39c9 100644 --- a/recipes-extended/xen/xen_4.3.0.bb +++ b/recipes-extended/xen/xen_4.3.0.bb @@ -20,7 +20,7 @@ COMPATIBLE_HOST = '(x86_64.*).*-linux' inherit autotools gettext setuptools update-rc.d -DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils virtual/libgl virtual/libsdl bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native libsdl" +DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils virtual/libgl virtual/libsdl bridge-utils iproute2 procps yajl pixman python python-setuptools-native xz xz-native libsdl ${@base_contains('DISTRO_FEATURES', 'xsm', 'checkpolicy-native', '', d )}" # inherit setuptools adds python to RDEPENDS, override it RDEPENDS_${PN} = "" @@ -580,7 +580,7 @@ do_configure() { fi # do configure - ./configure --exec-prefix=/usr --prefix=/usr --host=${HOST_SYS} --disable-stubdom --disable-ioemu-stubdom --disable-pv-grub --disable-xenstore-stubdom + ./configure --exec-prefix=/usr --prefix=/usr --host=${HOST_SYS} --disable-stubdom --disable-ioemu-stubdom --disable-pv-grub --disable-xenstore-stubdom "${@base_contains('DISTRO_FEATURES', 'xsm', '--enable-xsmpolicy', '--disable-xsmpolicy',d)}" # seabios needs a patch to specify correct compiler - pull and patch Makefile make -C ${S}/tools/firmware seabios-dir -- cgit v1.2.3-54-g00ecf