我想如何在yocto中安装内核补丁.请指导我
我在calibrate.c文件中包含了几个printk语句,该文件位于/home/host/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/linux-libc-headers/3.8-r0 /linux-3.8/init/calibrate.c
然后我用diff -uar创建了一个补丁文件〜/ calibrate.c /home/host/poky/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/linux-libc-headers/3.8-r0 /linux-3.8/init/calibrate.c> calibrate.patch
然后将calibrat.patch文件放在poky/meta/recipies-kernel/linux-libc-headers/linux-libc-headers /目录中
然后我编辑了位于/ poky/meta/recipies-kernel/linux-libc-headers /中的linux-libc-headers_3.8.bb文件,其中包含以下SCR_URI = file://calibrate.patch
然后执行bitbake -k core-image-minimal后,我收到以下错误.
ERROR: Command Error: exit status: 1 Output: Applying patch calibrate.patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was:
-------------------------- |--- calibrate.c 2015-12-09 15:00:11.547924616 +0530 |+++ a/calibrate.c 2015-12-09 14:59:31.387923200 +0530
-------------------------- No file to patch. Skipping patch. 1 …Run Code Online (Sandbox Code Playgroud) yocto ×2