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

Khem Raj raj.khem at gmail.com
Fri Mar 10 10:13:25 PST 2017


On Fri, Mar 10, 2017 at 6:50 AM, Karim ATIKI <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
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list