[yocto] [meta-raspberrypi] How to set the kernel config variables in the recipe?

Piotr Lewicki piotr.lewicki at elfin.de
Thu Dec 15 02:11:03 PST 2016


On 14.12.2016 21:26, Khem Raj wrote:
> On Wed, Dec 14, 2016 at 3:14 AM, Piotr Lewicki <piotr.lewicki at elfin.de> wrote:
>> Hi,
>>
>> I need to set some kernel parameters and I thought that it would work with
>> "do_configure_prepend()" task in my "linux-raspberrypi_%.bbappend" file.
>>
>> I have do configure like so:
>>
>> do_configure_prepend() {
>>
>>      kernel_configure_variable USB_PRINTER n
>>
>> # and some other variables
>>
>> }
>>
>>
>> Now I have noticed that what I get in the real do_configure task is:
>>
>> do_configure() {
>>      kernel_configure_variable USB_PRINTER n
>>
>> # and some other variables
>>      # Clean .config
>>      echo "" >
>> /home/piotr.lewicki/2016-12-09/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1_4.4.28+gitAUTOINC+5afda48c34-r0/linux-raspberrypi3-standard-build/.config
>>      CONF_SED_SCRIPT=""
>>
>> ...
>>
>> }
>>
>>
>> Does this mean that my configuration does not get into the recipe?
> this should regerate .config which should account for your change too.
I've sent a patch that hopefully fixes this- allows usage of 
"do_configure_prepend()" with "kernel_configure_variable" in bbappends.
>
>> Is there a better (working) way to do it?
>>
>>
>> Best regards,
>>
>> Piotr Lewicki
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto




More information about the yocto mailing list