From 358c14b7f3560e13e03817a50a547892ed62f2a1 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Mon, 2 Jan 2017 22:47:53 -0600 Subject: 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 Signed-off-by: Bruce Ashfield --- recipes-extended/xen/xen.inc | 8 ++++++++ 1 file changed, 8 insertions(+) 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() { addtask stubs after do_configure before do_compile +# Allow all hypervisor settings in a defconfig +EXTRA_OEMAKE += "XEN_CONFIG_EXPERT=y" + do_configure() { #./configure --enable-xsmpolicy does not set XSM_ENABLE must be done manually @@ -848,6 +851,11 @@ do_configure() { echo "XSM_ENABLE := y" > ${S}/.config fi + if [ -f "${WORKDIR}/defconfig" ]; then + cp "${WORKDIR}/defconfig" "${B}/xen/.config" || \ + bbfatal "Unable to copy defconfig to .config" + fi + # do configure oe_runconf } -- cgit v1.2.3-54-g00ecf