diff options
author | Derek Straka <derek@asterius.io> | 2016-03-29 08:46:38 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-03-29 13:00:37 -0400 |
commit | 441d16f55bfa1b20aa64108502c61317914eda68 (patch) | |
tree | 5e99508faf2025404219435a1e3a5855577bd9a2 | |
parent | 5d0c71bf5d2a678bae7c999b1732a3f2fd60c988 (diff) | |
download | meta-virtualization-441d16f55bfa1b20aa64108502c61317914eda68.tar.gz |
xen: add the ability to configure the name of the policy
When using non-release versions, the policy files may have a different name (xenpolicy-${PV}-unstable). Allow the policy file name to be configured by the xen recipe.
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-extended/xen/xen.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index cea762e4..ae41de53 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc | |||
@@ -17,6 +17,8 @@ PACKAGECONFIG ??= " \ | |||
17 | ${@bb.utils.contains('XEN_TARGET_ARCH', 'x86_64', 'hvm', '', d)} \ | 17 | ${@bb.utils.contains('XEN_TARGET_ARCH', 'x86_64', 'hvm', '', d)} \ |
18 | " | 18 | " |
19 | 19 | ||
20 | FLASK_POLICY_FILE ?= "xenpolicy-${PV}" | ||
21 | |||
20 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," | 22 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," |
21 | PACKAGECONFIG[xsm] = "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native," | 23 | PACKAGECONFIG[xsm] = "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native," |
22 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd," | 24 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd," |
@@ -339,7 +341,7 @@ FILES_${PN}-devd = "\ | |||
339 | " | 341 | " |
340 | 342 | ||
341 | FILES_${PN}-flask = "\ | 343 | FILES_${PN}-flask = "\ |
342 | /boot/xenpolicy-${PV} \ | 344 | /boot/${FLASK_POLICY_FILE} \ |
343 | " | 345 | " |
344 | 346 | ||
345 | FILES_${PN}-flask-tools = "\ | 347 | FILES_${PN}-flask-tools = "\ |