[meta-virtualization] [meta-virtualization (krogoth)][PATCH 4/5] xen: make it easy to override hypervisor config

Doug Goldstein cardoe at cardoe.com
Mon Jan 2 20:56:32 PST 2017


On 1/2/17 10:47 PM, Doug Goldstein wrote:
> 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 at cardoe.com>
> ---
>  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 0d156dc..38922dc 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
>  }
> 

This should also be applied to morty and master.

-- 
Doug Goldstein

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 959 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20170102/91948e0a/attachment.pgp>


More information about the meta-virtualization mailing list