diff options
author | Doug Goldstein <cardoe@cardoe.com> | 2017-01-02 22:47:53 -0600 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-01-04 22:31:57 -0500 |
commit | 358c14b7f3560e13e03817a50a547892ed62f2a1 (patch) | |
tree | a6e152f59e9e5c48eff35ae43a555baa943bd399 | |
parent | beadd3a8e6b0e010a033f0f7f54a2d5f4e6ff204 (diff) | |
download | meta-virtualization-358c14b7f3560e13e03817a50a547892ed62f2a1.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>
-rw-r--r-- | recipes-extended/xen/xen.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index c9ed73f0..1f70b3fd 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc | |||
@@ -841,6 +841,9 @@ do_stubs() { | |||
841 | 841 | ||
842 | addtask stubs after do_configure before do_compile | 842 | addtask stubs after do_configure before do_compile |
843 | 843 | ||
844 | # Allow all hypervisor settings in a defconfig | ||
845 | EXTRA_OEMAKE += "XEN_CONFIG_EXPERT=y" | ||
846 | |||
844 | do_configure() { | 847 | do_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 | } |