[yocto] Problem to compile kernel (enable nfsd)

Caio caiortp at gmail.com
Mon Jun 3 06:22:28 PDT 2013


Thank you guys!

Now Works!

---
 meta-yocto/conf/distro/poky-lsb.conf |    2 +-
 meta/conf/machine/include/qemu.inc   |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta-yocto/conf/distro/poky-lsb.conf
b/meta-yocto/conf/distro/poky-lsb.conf
index 53d088f..355bd50 100644
--- a/meta-yocto/conf/distro/poky-lsb.conf
+++ b/meta-yocto/conf/distro/poky-lsb.conf
@@ -7,6 +7,6 @@ DISTRO_FEATURES_append = " pam largefile opengl"
 PREFERRED_PROVIDER_virtual/libx11 = "libx11"

 # Ensure the kernel nfs server is enabled
-KERNEL_FEATURES_append = " features/nfsd/nfsd-enable.scc"
+KERNEL_FEATURES_append_pn_linux_yocto = " features/nfsd/nfsd-enable.scc"


diff --git a/meta/conf/machine/include/qemu.inc
b/meta/conf/machine/include/qemu.inc
index 7111926..4a50b38 100644
--- a/meta/conf/machine/include/qemu.inc
+++ b/meta/conf/machine/include/qemu.inc
@@ -25,4 +25,5 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
 EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native"

 # Provide the nfs server kernel module for all qemu images
-KERNEL_FEATURES_append = " features/nfsd/nfsd-enable.scc"
+KERNEL_FEATURES_append_pn_linux-yocto = " features/nfsd/nfsd-enable.scc"
+


2013/5/30 Bruce Ashfield <bruce.ashfield at gmail.com>:
> On Thu, May 30, 2013 at 5:03 AM, Paul Eggleton
> <paul.eggleton at linux.intel.com> wrote:
>> On Wednesday 29 May 2013 23:33:04 Bruce Ashfield wrote:
>>> On 13-05-29 3:05 PM, Caio wrote:
>>> > bitbake -e -c kernel_configme linux-yocto-custom | grep KERNEL_FEATURES
>>> > # $KERNEL_FEATURES [2 operations]
>>> > KERNEL_FEATURES="features/nfsd/nfsd-enable.scc"
>>>
>>> Aha. That's the problem with cutting and pasting patches, I missed this
>>> part of the fix:
>>>
>>> diff --git a/meta/conf/machine/include/qemu.inc
>>> b/meta/conf/machine/include/qemu.inc
>>> index 7111926..b303191 100644
>>> --- a/meta/conf/machine/include/qemu.inc
>>> +++ b/meta/conf/machine/include/qemu.inc
>>> @@ -25,4 +25,4 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
>>>   EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native"
>>>
>>>   # Provide the nfs server kernel module for all qemu images
>>> -KERNEL_FEATURES_append = " features/nfsd/nfsd-enable.scc"
>>> +KERNEL_FEATURES-pn_linux-yocto_append = " features/nfsd/nfsd-enable.scc"
>>
>> I'm afraid this is not correct either.
>>
>> You need pn- instead of pn_, and I think in terms of ordering you also need
>> _append_pn-linux-yocto instead of _pn-linux-yocto_append.
>
> Heh. Well that wasn't the patch, that was me typing it in at 1AM based on
> a modified line from the original :) My laptop with the real change decided
> to drop of the network.
>
> Bruce
>
>>
>> I'd really appreciate the final fix for this as soon as possible so I can
>> integrate it into the dylan branch for the 1.4.1 release.
>>
>> Cheers,
>> Paul
>>
>> --
>>
>> Paul Eggleton
>> Intel Open Source Technology Centre
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
>
>
> --
> "Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end"
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



-- 
----------------------------------------------
Caio Pereira



More information about the yocto mailing list