<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 7, 2013 at 12:26 PM, Raymond Danks <span dir="ltr"><<a href="mailto:ray.danks@se-eng.com" target="_blank">ray.danks@se-eng.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm going to show my lack of knowledge in this area, but I know this is going to come up when I push a xen.cfg that I apparently never added.<br>


<br>
Is it possible to do something along the lines of PACKAGE_CONFIG in the linux-yocto.bbappend?  For example, in the libvirt package one can use PACKAGE_CONFIG to construct a "minimal" build of libvirt.  What would be the method for one to do the same in this package?<br>

</blockquote><div><br></div><div>kernel configuration fragment use are controlled via the KERNEL_FEATURES variable, and</div><div>for anything pre-yocto 1.4 that means an in-tree kernel configuration fragment (I'm still pushing</div>
<div>for the fragments to be maintained in tree, since that allows them to be reused and maintained</div><div>more easily).</div><div><br></div><div style>KERNEL_FEATURES is managed like any other variable in the system, including updating</div>
<div style>it via optional/dynamic features as we see fit.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Yes, I imagine that worst case there can be a SRC_URI_distro definition that includes only the .scc files required for that "minimal" image build, but it seems like we want to keep away from that as much as possible being that this isn't a distro layer.<br>


<br></blockquote><div><br></div><div style>Typically we do this via a base KERNEL_FEATURES specification in the relevant recipe(s), and</div><div style>distros, or other configurations can override/extend it as required.</div>
<div style><br></div><div style>Cheers,</div><div style><br></div><div style>Buce</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks,<br>
Ray<div><div><br>
<br>
On 01/07/2013 05:08 AM, Mihai Prica wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Signed-off-by: Mihai Prica <<a href="mailto:mihai.prica@intel.com" target="_blank">mihai.prica@intel.com</a>><br>
---<br>
  recipes-kernel/linux/linux-<u></u>yocto/kvm-enable.scc |    4 ++++<br>
  recipes-kernel/linux/linux-<u></u>yocto/kvm.cfg        |    4 ++++<br>
  recipes-kernel/linux/linux-<u></u>yocto_3.4.bbappend   |    1 +<br>
  3 files changed, 9 insertions(+)<br>
  create mode 100644 recipes-kernel/linux/linux-<u></u>yocto/kvm-enable.scc<br>
  create mode 100644 recipes-kernel/linux/linux-<u></u>yocto/kvm.cfg<br>
<br>
diff --git a/recipes-kernel/linux/linux-<u></u>yocto/kvm-enable.scc b/recipes-kernel/linux/linux-<u></u>yocto/kvm-enable.scc<br>
new file mode 100644<br>
index 0000000..0b5f4fc<br>
--- /dev/null<br>
+++ b/recipes-kernel/linux/linux-<u></u>yocto/kvm-enable.scc<br>
@@ -0,0 +1,4 @@<br>
+define KFEATURE_DESCRIPTION "Enable KVM host support"<br>
+define KFEATURE_COMPATIBILITY board<br>
+<br>
+kconf non-hardware kvm.cfg<br>
diff --git a/recipes-kernel/linux/linux-<u></u>yocto/kvm.cfg b/recipes-kernel/linux/linux-<u></u>yocto/kvm.cfg<br>
new file mode 100644<br>
index 0000000..0cfcf58<br>
--- /dev/null<br>
+++ b/recipes-kernel/linux/linux-<u></u>yocto/kvm.cfg<br>
@@ -0,0 +1,4 @@<br>
+CONFIG_KVM=y<br>
+CONFIG_KVM_INTEL=y<br>
+CONFIG_KVM_AMD=y<br>
+CONFIG_TUN=y<br>
diff --git a/recipes-kernel/linux/linux-<u></u>yocto_3.4.bbappend b/recipes-kernel/linux/linux-<u></u>yocto_3.4.bbappend<br>
index 5b163ff..71bead2 100644<br>
--- a/recipes-kernel/linux/linux-<u></u>yocto_3.4.bbappend<br>
+++ b/recipes-kernel/linux/linux-<u></u>yocto_3.4.bbappend<br>
@@ -4,5 +4,6 @@ SRC_URI += "file://xt-checksum.scc \<br>
              file://ebtables.scc \<br>
            file://vswitch.scc \<br>
            file://lxc.scc \<br>
+            file://kvm-enable.scc \<br>
            "<br>
  <br>
</blockquote>
<br></div></div><div><div>
______________________________<u></u>_________________<br>
meta-virtualization mailing list<br>
<a href="mailto:meta-virtualization@yoctoproject.org" target="_blank">meta-virtualization@<u></u>yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/meta-virtualization" target="_blank">https://lists.yoctoproject.<u></u>org/listinfo/meta-<u></u>virtualization</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
</div></div>