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

Karim ATIKI karim_atiki at hotmail.com
Fri Mar 10 06:50:46 PST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170310/aa361081/attachment.html>


More information about the yocto mailing list