diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-01-05 17:30:59 +1000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2015-02-20 21:17:04 -0500 |
commit | 6a145bce3a6c3515d8c8b9582af95aa6ccb7654e (patch) | |
tree | 18f6ef54fc52d7a62e92637f0b75c5ee0649862a | |
parent | ec5891037615442d62353d28f7d17e8fc4122d4e (diff) | |
download | meta-virtualization-6a145bce3a6c3515d8c8b9582af95aa6ccb7654e.tar.gz |
xen: Fix and refactor common include
* Add missing DEPENDS (dtc, lzo, libaio)
* Fix up QA issues around missing rdepends and un-shipped
files/directories
* Add export for XEN_OS
* Add the /var/lib/xen directory as a volatile directory
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r-- | recipes-extended/xen/xen.inc | 69 |
1 files changed, 64 insertions, 5 deletions
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index b1212501..ed902b27 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc | |||
@@ -8,16 +8,41 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e0f0f3ac55608719a82394cc353928df" | |||
8 | 8 | ||
9 | COMPATIBLE_HOST = '(x86_64.*).*-linux' | 9 | COMPATIBLE_HOST = '(x86_64.*).*-linux' |
10 | 10 | ||
11 | inherit autotools gettext setuptools update-rc.d | 11 | inherit autotools-brokensep gettext setuptools update-rc.d |
12 | 12 | ||
13 | PACKAGECONFIG ??= " \ | 13 | PACKAGECONFIG ??= " \ |
14 | sdl \ | 14 | sdl \ |
15 | " | 15 | " |
16 | 16 | ||
17 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," | 17 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," |
18 | PACKAGECONFIG[xsm] = "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native," | 18 | PACKAGECONFIG[xsm] = "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native," |
19 | 19 | ||
20 | DEPENDS = "util-linux util-linux-native file-native zlib ncurses openssl bison-native flex-native gettext dev86-native iasl-native pciutils bridge-utils iproute2 procps yajl pixman python xz xz-native glib-2.0" | 20 | DEPENDS = " \ |
21 | bison-native \ | ||
22 | dev86-native \ | ||
23 | flex-native \ | ||
24 | file-native \ | ||
25 | iasl-native \ | ||
26 | util-linux-native \ | ||
27 | xz-native \ | ||
28 | bridge-utils \ | ||
29 | dtc \ | ||
30 | gettext \ | ||
31 | glib-2.0 \ | ||
32 | iproute2 \ | ||
33 | ncurses \ | ||
34 | openssl \ | ||
35 | pciutils \ | ||
36 | pixman \ | ||
37 | procps \ | ||
38 | python \ | ||
39 | libaio \ | ||
40 | lzo \ | ||
41 | util-linux \ | ||
42 | xz \ | ||
43 | yajl \ | ||
44 | zlib \ | ||
45 | " | ||
21 | 46 | ||
22 | # inherit setuptools adds python to RDEPENDS, override it | 47 | # inherit setuptools adds python to RDEPENDS, override it |
23 | RDEPENDS_${PN} = "" | 48 | RDEPENDS_${PN} = "" |
@@ -50,13 +75,24 @@ RDEPENDS_${PN}-base = "\ | |||
50 | ${PN}-xl \ | 75 | ${PN}-xl \ |
51 | " | 76 | " |
52 | 77 | ||
78 | RDEPENDS_${PN}-misc = " \ | ||
79 | perl \ | ||
80 | python \ | ||
81 | " | ||
82 | |||
83 | RDEPENDS_${PN}-remus = "python" | ||
84 | |||
53 | RDEPENDS_${PN}-scripts-block = "\ | 85 | RDEPENDS_${PN}-scripts-block = "\ |
86 | bash \ | ||
54 | ${PN}-scripts-common \ | 87 | ${PN}-scripts-common \ |
55 | ${PN}-udev \ | 88 | ${PN}-udev \ |
56 | ${PN}-volatiles \ | 89 | ${PN}-volatiles \ |
57 | " | 90 | " |
58 | 91 | ||
92 | RDEPENDS_${PN}-scripts-common = "bash" | ||
93 | |||
59 | RDEPENDS_${PN}-scripts-network = "\ | 94 | RDEPENDS_${PN}-scripts-network = "\ |
95 | bash \ | ||
60 | bridge-utils \ | 96 | bridge-utils \ |
61 | ${PN}-scripts-common \ | 97 | ${PN}-scripts-common \ |
62 | ${PN}-udev \ | 98 | ${PN}-udev \ |
@@ -64,6 +100,7 @@ RDEPENDS_${PN}-scripts-network = "\ | |||
64 | " | 100 | " |
65 | 101 | ||
66 | RDEPENDS_${PN}-xencommons = "\ | 102 | RDEPENDS_${PN}-xencommons = "\ |
103 | bash \ | ||
67 | ${PN}-console \ | 104 | ${PN}-console \ |
68 | ${PN}-xenstore \ | 105 | ${PN}-xenstore \ |
69 | ${PN}-xenstored \ | 106 | ${PN}-xenstored \ |
@@ -71,6 +108,7 @@ RDEPENDS_${PN}-xencommons = "\ | |||
71 | " | 108 | " |
72 | 109 | ||
73 | RDEPENDS_${PN}-xendomains = "\ | 110 | RDEPENDS_${PN}-xendomains = "\ |
111 | bash \ | ||
74 | ${PN}-console \ | 112 | ${PN}-console \ |
75 | ${PN}-scripts-block \ | 113 | ${PN}-scripts-block \ |
76 | ${PN}-scripts-common \ | 114 | ${PN}-scripts-common \ |
@@ -79,6 +117,10 @@ RDEPENDS_${PN}-xendomains = "\ | |||
79 | 117 | ||
80 | RDEPENDS_${PN}-xl = "libgcc" | 118 | RDEPENDS_${PN}-xl = "libgcc" |
81 | 119 | ||
120 | RDEPENDS_${PN}-xentrace = "python" | ||
121 | |||
122 | RDEPENDS_${PN}-xen-watchdog = "bash" | ||
123 | |||
82 | PACKAGES = "\ | 124 | PACKAGES = "\ |
83 | ${PN}-base \ | 125 | ${PN}-base \ |
84 | ${PN}-blktap \ | 126 | ${PN}-blktap \ |
@@ -156,8 +198,10 @@ FILES_${PN}-dbg += "\ | |||
156 | ${libdir}/fs/zfs/.debug \ | 198 | ${libdir}/fs/zfs/.debug \ |
157 | ${libdir}/fs/reiserfs/.debug \ | 199 | ${libdir}/fs/reiserfs/.debug \ |
158 | ${libdir}/fs/iso9660/.debug \ | 200 | ${libdir}/fs/iso9660/.debug \ |
201 | ${libdir}/fs/*/.debug \ | ||
159 | ${sbindir}/.debug \ | 202 | ${sbindir}/.debug \ |
160 | ${libdir}exec/.debug \ | 203 | ${libdir}exec/.debug \ |
204 | ${libdir}/xen/libexec/.debug \ | ||
161 | ${bindir}/.debug \ | 205 | ${bindir}/.debug \ |
162 | ${libdir}/python2.7/dist-packages/.debug \ | 206 | ${libdir}/python2.7/dist-packages/.debug \ |
163 | ${libdir}/python2.7/dist-packages/xen/lowlevel/.debug \ | 207 | ${libdir}/python2.7/dist-packages/xen/lowlevel/.debug \ |
@@ -299,6 +343,7 @@ FILES_${PN}-misc = "\ | |||
299 | ${sbindir}/xen-hvmctx \ | 343 | ${sbindir}/xen-hvmctx \ |
300 | ${sbindir}/xenlockprof \ | 344 | ${sbindir}/xenlockprof \ |
301 | ${sbindir}/xen-lowmemd \ | 345 | ${sbindir}/xen-lowmemd \ |
346 | ${sbindir}/xen-mfndump \ | ||
302 | " | 347 | " |
303 | 348 | ||
304 | FILES_${PN}-pygrub = "\ | 349 | FILES_${PN}-pygrub = "\ |
@@ -323,8 +368,10 @@ FILES_${PN}-qemu = " \ | |||
323 | ${libdir}/xen/bin/qemu-dm \ | 368 | ${libdir}/xen/bin/qemu-dm \ |
324 | ${libdir}/xen/bin/virtfs-proxy-helper \ | 369 | ${libdir}/xen/bin/virtfs-proxy-helper \ |
325 | /usr/libexec/qemu-bridge-helper \ | 370 | /usr/libexec/qemu-bridge-helper \ |
371 | ${libdir}/xen/libexec/qemu-bridge-helper \ | ||
326 | /usr/etc/qemu \ | 372 | /usr/etc/qemu \ |
327 | /usr/etc/qemu/target-x86_64.conf \ | 373 | /usr/etc/qemu/target-x86_64.conf \ |
374 | ${libdir}/xen/etc/qemu/target-x86_64.conf \ | ||
328 | ${datadir}/qemu-xen \ | 375 | ${datadir}/qemu-xen \ |
329 | ${datadir}/qemu-xen/qemu \ | 376 | ${datadir}/qemu-xen/qemu \ |
330 | ${datadir}/qemu-xen/qemu/bamboo.dtb \ | 377 | ${datadir}/qemu-xen/qemu/bamboo.dtb \ |
@@ -421,6 +468,7 @@ FILES_${PN}-scripts-block = " \ | |||
421 | ${sysconfdir}/xen/scripts/block-enbd \ | 468 | ${sysconfdir}/xen/scripts/block-enbd \ |
422 | ${sysconfdir}/xen/scripts/block-iscsi \ | 469 | ${sysconfdir}/xen/scripts/block-iscsi \ |
423 | ${sysconfdir}/xen/scripts/block-nbd \ | 470 | ${sysconfdir}/xen/scripts/block-nbd \ |
471 | ${sysconfdir}/xen/scripts/block-drbd-probe \ | ||
424 | ${sysconfdir}/xen/scripts/vscsi \ | 472 | ${sysconfdir}/xen/scripts/vscsi \ |
425 | " | 473 | " |
426 | 474 | ||
@@ -505,6 +553,7 @@ FILES_${PN}-xl = "\ | |||
505 | ${sysconfdir}/xen/xl.conf \ | 553 | ${sysconfdir}/xen/xl.conf \ |
506 | ${libdir}/xen/bin/libxl-save-helper \ | 554 | ${libdir}/xen/bin/libxl-save-helper \ |
507 | ${sbindir}/xl \ | 555 | ${sbindir}/xl \ |
556 | ${libdir}/xen/bin/xen-init-dom0 \ | ||
508 | " | 557 | " |
509 | 558 | ||
510 | FILES_${PN}-xl-examples = "\ | 559 | FILES_${PN}-xl-examples = "\ |
@@ -522,7 +571,7 @@ FILES_${PN}-xm-examples = "\ | |||
522 | ${sysconfdir}/xen/xmexample.pv-grub \ | 571 | ${sysconfdir}/xen/xmexample.pv-grub \ |
523 | ${sysconfdir}/xen/xmexample.vti \ | 572 | ${sysconfdir}/xen/xmexample.vti \ |
524 | " | 573 | " |
525 | 574 | ||
526 | FILES_${PN}-xenmon = "\ | 575 | FILES_${PN}-xenmon = "\ |
527 | ${sbindir}/xenbaked \ | 576 | ${sbindir}/xenbaked \ |
528 | ${sbindir}/xentrace_setmask \ | 577 | ${sbindir}/xentrace_setmask \ |
@@ -546,6 +595,7 @@ FILES_${PN}-xend += " \ | |||
546 | " | 595 | " |
547 | 596 | ||
548 | FILES_${PN}-xendomains += "\ | 597 | FILES_${PN}-xendomains += "\ |
598 | ${libdir}/xen/bin/xendomains \ | ||
549 | ${sysconfdir}/default/xendomains \ | 599 | ${sysconfdir}/default/xendomains \ |
550 | ${sysconfdir}/init.d/xendomains \ | 600 | ${sysconfdir}/init.d/xendomains \ |
551 | ${sysconfdir}/sysconfig/xendomains \ | 601 | ${sysconfdir}/sysconfig/xendomains \ |
@@ -572,6 +622,9 @@ export STAGING_LIBDIR | |||
572 | export XEN_TARGET_ARCH="x86_64" | 622 | export XEN_TARGET_ARCH="x86_64" |
573 | export XEN_COMPILE_ARCH="x86_64" | 623 | export XEN_COMPILE_ARCH="x86_64" |
574 | 624 | ||
625 | # hardcoded as Linux, as the only compatible hosts are Linux. | ||
626 | export XEN_OS = "Linux" | ||
627 | |||
575 | # this is used for the header (#!${bindir}/python) of the install python scripts | 628 | # this is used for the header (#!${bindir}/python) of the install python scripts |
576 | export PYTHONPATH="${bindir}/python" | 629 | export PYTHONPATH="${bindir}/python" |
577 | 630 | ||
@@ -620,7 +673,11 @@ do_install() { | |||
620 | oe_runmake DESTDIR="${D}" install | 673 | oe_runmake DESTDIR="${D}" install |
621 | 674 | ||
622 | # remove installed volatiles | 675 | # remove installed volatiles |
623 | rm -rf ${D}${localstatedir}/run ${D}${localstatedir}/lock ${D}${localstatedir}/log ${D}${localstatedir}/volatile | 676 | rm -rf ${D}${localstatedir}/run \ |
677 | ${D}${localstatedir}/lock \ | ||
678 | ${D}${localstatedir}/log \ | ||
679 | ${D}${localstatedir}/volatile \ | ||
680 | ${D}${localstatedir}/lib/xen | ||
624 | 681 | ||
625 | # install volatiles using populate_volatiles mechanism | 682 | # install volatiles using populate_volatiles mechanism |
626 | install -d ${D}${sysconfdir}/default/volatiles | 683 | install -d ${D}${sysconfdir}/default/volatiles |
@@ -638,6 +695,8 @@ do_install() { | |||
638 | >> ${D}${sysconfdir}/default/volatiles/99_xen | 695 | >> ${D}${sysconfdir}/default/volatiles/99_xen |
639 | echo "d root root 0755 ${localstatedir}/lock/subsys none" \ | 696 | echo "d root root 0755 ${localstatedir}/lock/subsys none" \ |
640 | >> ${D}${sysconfdir}/default/volatiles/99_xen | 697 | >> ${D}${sysconfdir}/default/volatiles/99_xen |
698 | echo "d root root 0755 ${localstatedir}/lib/xen none" \ | ||
699 | >> ${D}${sysconfdir}/default/volatiles/99_xen | ||
641 | 700 | ||
642 | # workaround for xendomains script which searchs sysconfig if directory exists | 701 | # workaround for xendomains script which searchs sysconfig if directory exists |
643 | install -d ${D}${sysconfdir}/sysconfig | 702 | install -d ${D}${sysconfdir}/sysconfig |