Re: [yocto] [qemu] can't find qemu-native recipe
On Mon, Nov 18, 2019 at 4:10 PM Greg Wilson-Lindberg wrote: > > 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" ^^ If you pasted exactly what you have then there is a typo above it should be SRC_URI_append_class-native ... > And here is the patch file > .../qemu/syscall.c-add_missing_sockios_header_include.patch: > --- a/linux-user/syscall.c2019-11-18 09:42:39.0 -0800 > +++ b/linux-user/syscall.c2019-11-18 09:23:23.0 -0800 > @@ -34,6 +34,7 @@ > #include > #include > #include > +#include > #include > #include > #include > > 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 > 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 > 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@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [qemu] can't find qemu-native recipe
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 Cc: Yocto list discussion 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.0 -0800 +++ b/linux-user/syscall.c 2019-11-18 09:23:23.0 -0800 @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include 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 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 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@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
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.c2019-11-18 09:42:39.0 -0800 +++ b/linux-user/syscall.c2019-11-18 09:23:23.0 -0800 @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include 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 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 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@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [qemu] can't find qemu-native recipe
On Mon, Nov 18, 2019 at 3:27 PM Greg Wilson-Lindberg 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@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto