summaryrefslogtreecommitdiffstats
path: root/recipes-extended
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2017-01-02 22:47:53 -0600
committerBruce Ashfield <bruce.ashfield@windriver.com>2017-01-04 22:32:01 -0500
commit2b7d51c9bfb393e4962d8e3fdb928b1e7be7d4f3 (patch)
treedb2ebf035e450b64a4cc4ecbf3f79d171c2b016c /recipes-extended
parentc49fa0df34fa6b8c06747bf43ff19cdf34d67266 (diff)
downloadmeta-virtualization-2b7d51c9bfb393e4962d8e3fdb928b1e7be7d4f3.tar.gz
xen: make it easy to override hypervisor config
The hypervisor is now configured with Kconfig like busybox and the kernel. This makes Xen behave like the busybox recipe by taking a defconfig if the user has one provided with a bbappend. Signed-off-by: Doug Goldstein <cardoe@cardoe.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended')
-rw-r--r--recipes-extended/xen/xen.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc
index 002a97bb..3cfb5f3e 100644
--- a/recipes-extended/xen/xen.inc
+++ b/recipes-extended/xen/xen.inc
@@ -841,6 +841,9 @@ do_stubs() {
841 841
842addtask stubs after do_configure before do_compile 842addtask stubs after do_configure before do_compile
843 843
844# Allow all hypervisor settings in a defconfig
845EXTRA_OEMAKE += "XEN_CONFIG_EXPERT=y"
846
844do_configure() { 847do_configure() {
845 848
846 #./configure --enable-xsmpolicy does not set XSM_ENABLE must be done manually 849 #./configure --enable-xsmpolicy does not set XSM_ENABLE must be done manually
@@ -848,6 +851,11 @@ do_configure() {
848 echo "XSM_ENABLE := y" > ${S}/.config 851 echo "XSM_ENABLE := y" > ${S}/.config
849 fi 852 fi
850 853
854 if [ -f "${WORKDIR}/defconfig" ]; then
855 cp "${WORKDIR}/defconfig" "${B}/xen/.config" || \
856 bbfatal "Unable to copy defconfig to .config"
857 fi
858
851 # do configure 859 # do configure
852 oe_runconf 860 oe_runconf
853} 861}