* [bitbake] Failed to patch "defconfig" for linux kernel
@ 2017-03-10 14:50 Karim ATIKI
2017-03-10 18:13 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Karim ATIKI @ 2017-03-10 14:50 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 1238 bytes --]
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 ?
Thanks.
Karim
[-- Attachment #2: Type: text/html, Size: 4449 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [bitbake] Failed to patch "defconfig" for linux kernel
2017-03-10 14:50 [bitbake] Failed to patch "defconfig" for linux kernel Karim ATIKI
@ 2017-03-10 18:13 ` Khem Raj
[not found] ` <DB5PR0101MB168622D766CB2BF14A860D2792200@DB5PR0101MB1686.eurprd01.prod.exchangelabs.com>
0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2017-03-10 18:13 UTC (permalink / raw)
To: Karim ATIKI; +Cc: yocto
On Fri, Mar 10, 2017 at 6:50 AM, Karim ATIKI <karim_atiki@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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [bitbake] Failed to patch "defconfig" for linux kernel
[not found] ` <CAMKF1sqqZxHaEMPr60LmRV0BJ+yCs+oMYTA4ZZK=JkK6i-yA9w@mail.gmail.com>
@ 2017-03-10 18:57 ` Karim ATIKI
2017-03-10 18:58 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Karim ATIKI @ 2017-03-10 18:57 UTC (permalink / raw)
To: Khem Raj, yocto
[-- Attachment #1: Type: text/plain, Size: 3224 bytes --]
OK.
But how then is this file "bt.cfg" included in the compilation process ?
________________________________
De : Khem Raj <raj.khem@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@hotmail.com<mailto:karim_atiki@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@gmail.com<mailto:raj.khem@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@hotmail.com<mailto:karim_atiki@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@yoctoproject.org<mailto:yocto@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.
>
[-- Attachment #2: Type: text/html, Size: 11608 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [bitbake] Failed to patch "defconfig" for linux kernel
2017-03-10 18:57 ` Karim ATIKI
@ 2017-03-10 18:58 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2017-03-10 18:58 UTC (permalink / raw)
To: Karim ATIKI; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 3726 bytes --]
On Fri, Mar 10, 2017 at 10:57 AM, Karim ATIKI <karim_atiki@hotmail.com>
wrote:
>
>
> OK.
> But how then is this file "bt.cfg" included in the compilation process ?
>
>
>
linux-yocto have provisions for it. It basically
users merge-config feature of kernel kconfig.
>
> ------------------------------
> *De :* Khem Raj <raj.khem@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@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@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@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@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/yocto
>> yocto Info Page <https://lists.yoctoproject.org/listinfo/yocto>
>> 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.
>>
>>
>> >
>>
>
>
[-- Attachment #2: Type: text/html, Size: 12595 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-10 18:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-10 14:50 [bitbake] Failed to patch "defconfig" for linux kernel Karim ATIKI
2017-03-10 18:13 ` Khem Raj
[not found] ` <DB5PR0101MB168622D766CB2BF14A860D2792200@DB5PR0101MB1686.eurprd01.prod.exchangelabs.com>
[not found] ` <CAMKF1sqqZxHaEMPr60LmRV0BJ+yCs+oMYTA4ZZK=JkK6i-yA9w@mail.gmail.com>
2017-03-10 18:57 ` Karim ATIKI
2017-03-10 18:58 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.