[yocto] [qemu] can't find qemu-native recipe
Greg Wilson-Lindberg
GWilson at sakuraus.com
Mon Nov 18 16:15:50 PST 2019
Hi Khem,
And just after I hit send I realized that I changed 'SRC_URI' to 'SRC_URII_append_class-native' with the 'II'. I deleted the 'II' and now the file is changed like it should be.
Thanks fo all of your help,
Greg Wilson-Lindberg
From: Greg Wilson-Lindberg
Sent: Monday, November 18, 2019 04:10 PM
To: Khem Raj <raj.khem at gmail.com>
Cc: Yocto list discussion <yocto at yoctoproject.org>
Subject: Re: [yocto] [qemu] can't find qemu-native recipe
Hi Khem,
I found the BBCLASSEXTEND in the qemu.inc file, I also found a line in the .bb file:
SRC_URI_append_class-native = " \
so I changed my SRC_URI to that and I stopped getting the 'can't find file to patch' error, but the file (syscall.c) is not modified.
Here is my qemu_3.0.0.bbappend file, meta-sakura/recipes-devtools/qemu/qemu_3.0.0.bbappend:
FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/${PN}:"
SRC_URII_append_class-native = "file://syscall.c-add_missing_sockios_header_include.patch"
And here is the patch file .../qemu/syscall.c-add_missing_sockios_header_include.patch:
--- a/linux-user/syscall.c 2019-11-18 09:42:39.000000000 -0800
+++ b/linux-user/syscall.c 2019-11-18 09:23:23.000000000 -0800
@@ -34,6 +34,7 @@
#include <sys/resource.h>
#include <sys/swap.h>
#include <linux/capability.h>
+#include <linux/sockios.h>
#include <sched.h>
#include <sys/timex.h>
#include <sys/socket.h>
I am not getting the:
...tmp/work/x86_64-linux/qemu-native/3.0.0-r0/qemu-3.0.0/linux-user/syscall.c
modified.
I'm obviously missing something. Any help would be greatly appreciated.
Regards,
Greg
________________________________________
From: Khem Raj <raj.khem at gmail.com>
Sent: Monday, November 18, 2019 3:30:27 PM
To: Greg Wilson-Lindberg
Cc: Yocto list discussion
Subject: Re: [yocto] [qemu] can't find qemu-native recipe
On Mon, Nov 18, 2019 at 3:27 PM Greg Wilson-Lindberg
<GWilson at sakuraus.com> wrote:
>
> I'm building thud for the raspberry pi3 for boot2qt on Ubuntu 18.04.
> I've got a patch that I need to apply to to fix an include file problem and I can't find the qemu-native recipe. I can find a number of recipes that depend in one way or another on 'qemu-native', but I can't find a recipe, class for it or anything that provides it. I can see it being built, and I get an error that indicates that the patch that I have needs to be applied. I can find tmp/work/x86_64-linux/qemu-native/.
>
> In the cooker log I see:
> task qemu_3.0.0
> recipe qemu-native-3.0.0
>
> But I can't find a qemu-native.bb file,or bbclass.
>
> I'm rather confused at this point, can someone shed a bit of light on what I'm missing?
>
there must be BBCLASSEXTEND = "native" in qemu recipe which
essentially automatically extends the recipe for native case
see
https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#var-BBCLASSEXTEND
> Regards,
> Greg Wilson-Lindberg
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
More information about the yocto
mailing list