| @@ -1,14 +1,43 @@ | | | @@ -1,14 +1,43 @@ |
1 | # $NetBSD: options.mk,v 1.3 2014/01/16 13:48:26 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.4 2014/05/20 18:06:07 gdt Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.py-anita | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.py-anita |
4 | PKG_SUPPORTED_OPTIONS= qemu-0 | | 4 | PKG_SUPPORTED_OPTIONS= qemu-0 qemu xen |
5 | PKG_SUGGESTED_OPTIONS= qemu-0 | | 5 | PKG_SUGGESTED_OPTIONS= |
| | | 6 | |
| | | 7 | # To run (but not to build), anita needs some way to run a virtual |
| | | 8 | # machine. The standard approach is qemu-0, because it is known to |
| | | 9 | # work. Newer qemu is problematic. xen also works, but is less well |
| | | 10 | # tested. See anita(1) for details of the above. |
| | | 11 | |
| | | 12 | # By default, py-anita does not depend on any of these, because a |
| | | 13 | # hypervisor one doesn't want to use is a large burden (qemu in |
| | | 14 | # particular is very large). While these options can be enabled, they |
| | | 15 | # also serve to document ways to fulfill the hypervisor requirement. |
6 | | | 16 | |
7 | .include "../../mk/bsd.options.mk" | | 17 | .include "../../mk/bsd.options.mk" |
8 | | | 18 | |
9 | # qemu1 does not work reliably. See the anita(1) man page. | | 19 | # In the future, qemu0 and qemu might install with different names, |
10 | .if empty(PKG_OPTIONS:Mqemu-0) | | 20 | # allowing anita to choose them dynamically. For now, they conflict, |
11 | DEPENDS+= qemu>=1.0:../../emulators/qemu | | 21 | # so don't try to build both. |
12 | .else | | 22 | .if !empty(PKG_OPTIONS:Mqemu-0) && !empty(PKG_OPTIONS:Mqemu) |
| | | 23 | .error py-anita: qemu-0 and qemu (currently) conflict |
| | | 24 | .endif |
| | | 25 | |
| | | 26 | .if !empty(PKG_OPTIONS:Mqemu-0) |
13 | DEPENDS+= qemu>=0.12.3nb2:../../emulators/qemu0 | | 27 | DEPENDS+= qemu>=0.12.3nb2:../../emulators/qemu0 |
14 | .endif | | 28 | .endif |
| | | 29 | |
| | | 30 | .if !empty(PKG_OPTIONS:Mqemu) |
| | | 31 | # qemu1/2 does not work reliably. See the anita(1) man page. |
| | | 32 | DEPENDS+= qemu>=1.0:../../emulators/qemu |
| | | 33 | .endif |
| | | 34 | |
| | | 35 | .if !empty(PKG_OPTIONS:Mxen) |
| | | 36 | # Choose 4.1 because that has been tested (with --vmm xm) and is |
| | | 37 | # arguably a reasonable version to recommend to people wanting to |
| | | 38 | # install xen to run anita. (A good case can be made for 4.2, and |
| | | 39 | # anyone who has tested it with anita is welcome to change this to |
| | | 40 | # 4.2.) |
| | | 41 | DEPENDS+= xenkernel41>=4.1:../../sysutils/xenkernel41 |
| | | 42 | DEPENDS+= xentools41>=4.1:../../sysutils/xentools41 |
| | | 43 | .endif |