[yocto] [bitbake] Failed to patch "defconfig" for linux kernel

Karim ATIKI karim_atiki at hotmail.com
Fri Mar 10 10:57:17 PST 2017



OK.
But how then is this file "bt.cfg" included in the compilation process ?



________________________________
De : Khem Raj <raj.khem at gmail.com>
Envoyé : vendredi 10 mars 2017 19:53
À : Karim ATIKI
Objet : Re: [yocto] [bitbake] Failed to patch "defconfig" for linux kernel



On Fri, Mar 10, 2017 at 10:47 AM, Karim ATIKI <karim_atiki at hotmail.com<mailto:karim_atiki at hotmail.com>> wrote:

Hi Khem,


>You can edit do_configure_prepend() in linux-rpi.inc
>kernel_configure_variable CONFIG_BT y


Ok.

But this file "linux-rpi.inc" is available only for RaspberryPi ?

I'm not working on Rpi here.


Somehow I thought you were, anyhow if you are using linux-yocto then you can create a .cfg file e.g.
bt.cfg with

CONFIG_BT=y
CONFIG_BT_RFCOMM=y
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_HCIBTUSB=y
CONFIG_WIRELESS=y

and add it to SRC_URI e.g.

SRC_URI += "file://bt.cfg"

that should do it.






________________________________
De : Khem Raj <raj.khem at gmail.com<mailto:raj.khem at gmail.com>>
Envoyé : vendredi 10 mars 2017 19:13
À : Karim ATIKI
Cc : yocto
Objet : Re: [yocto] [bitbake] Failed to patch "defconfig" for linux kernel

On Fri, Mar 10, 2017 at 6:50 AM, Karim ATIKI <karim_atiki at hotmail.com<mailto:karim_atiki at hotmail.com>> wrote:
> Hi,
>
>
> I'm currently trying to patch the linux kernel 3.8.13-r2 of an ARM based
> board (Hachiko) in order to enable Bluetooth and RFCOMM support.
>
>
> Currently, I select these options with bitbake -c menuconfig virtual/kernel
>
> I'd like to use a patch on the defconfig in order to avoid the menuconfig
> step.
>
>
> I've created a linux_3.8.13.bbappend file to apply the path.
>
>
> Th patch file looks like:
>
>
>
> --- a defconfig
> +++ b defconfig
> @@ -107,3 +107,16 @@
>  CONFIG_CRYPTO_CBC=y
>  CONFIG_CRYPTO_MD5=y
>  CONFIG_CRYPTO_DES=y
> +#
> +# FIR device drivers
> +#
> +CONFIG_BT=y
> +CONFIG_BT_RFCOMM=y
> +CONFIG_BT_RFCOMM_TTY=y
> +
> +#
> +# Bluetooth device drivers
> +#
> +CONFIG_BT_HCIBTUSB=y
> +CONFIG_WIRELESS=y
>
>
> The working directory of the linux is:
>
>
> /home/kai/yocto/build-hachiko/tmp/work/hachiko64-poky-linux-gnueabi/linux/3.8.13-r2/linux-3.8.13
>
>
> But when the linux is fetched and unpacked, the root defconfig file is put
> in:
>
>
> /home/kai/yocto/build-hachiko/tmp/work/hachiko64-poky-linux-gnueabi/linux/3.8.13-r2
>
>
> therefore, the patch step failed.
>
>
> I tried to modify the patch with  --- a/../defconfig and b/../defconfig
>
> but it does not work better.
>
>
> Any idea how to make it work ?


You can edit do_configure_prepend() in linux-rpi.inc

kernel_configure_variable CONFIG_BT y
...



>
>
> Thanks.
>
>
> Karim
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto
yocto Info Page<https://lists.yoctoproject.org/listinfo/yocto>
lists.yoctoproject.org<http://lists.yoctoproject.org>
Discussion of all things about the Yocto Project. Read our Community Guidelines or learn more about how to participate in other community discussions.



>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170310/1e1006dc/attachment.html>


More information about the yocto mailing list