[linux-yocto] [PATCH] common-pc: enable support for bochs vga interface (qemu stdvga)

2019-08-12 Thread Alexander Kanavin
This will enable standardizing qemu machines to '-vga std' emulated
hardware (as opposed to the current mix of vmware or cirrus cards,
both outdated).

See https://bugzilla.yoctoproject.org/show_bug.cgi?id=13466 for details.

Signed-off-by: Alexander Kanavin 
---
 bsp/common-pc-64/common-pc-64.scc | 2 ++
 bsp/common-pc/common-pc.scc   | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/bsp/common-pc-64/common-pc-64.scc 
b/bsp/common-pc-64/common-pc-64.scc
index b7b824c6..548f12d7 100644
--- a/bsp/common-pc-64/common-pc-64.scc
+++ b/bsp/common-pc-64/common-pc-64.scc
@@ -36,3 +36,5 @@ include cfg/8250.scc
 
 # sugarbay graphics
 include features/i915/i915.scc
+
+include features/drm-bochs/drm-bochs.scc
diff --git a/bsp/common-pc/common-pc.scc b/bsp/common-pc/common-pc.scc
index cd947b0f..fcb8af05 100644
--- a/bsp/common-pc/common-pc.scc
+++ b/bsp/common-pc/common-pc.scc
@@ -36,3 +36,5 @@ include features/bluetooth/bluetooth.scc
 # This stays last in the list, since it is our final override of the
 # common fragments (if required)
 kconf hardware common-pc.cfg
+
+include features/drm-bochs/drm-bochs.scc
-- 
2.17.1

-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


Re: [linux-yocto] how to add recipe-sysroot-native to PKG_CONFIG_PATH for linux-yocto

2019-05-14 Thread Alexander Kanavin
You probably need to add a dependency on glib-2.0 to your recipe, then
the needed pkgconfig will be in the target sysroot.

If you can copy-paste the entire recipe, that would help.

Alex

On Tue, 14 May 2019 at 11:06, Tong Chen  wrote:
>
> Hi all:
> I'm adding some kernel extensions to poky. In summary, I need to extend 
> kallsyms, and the new functionality depends on glib-2.0.
> So I added pkg-confi in the ./scripts/Makefile:
>
> HOSTCFLAGS_kallsyms.o := $(shell pkg-config --cflags glib-2.0) 
> -I$(srctree)/scripts
> HOSTLDLIBS_kallsyms := $(shell pkg-config --libs glib-2.0) -ldw
>
> But when compiling with bitbake, the following error occurs:
>
> | Package glib-2.0 was not found in the pkg-config search path.
> | Perhaps you should add the directory containing `glib-2.0.pc'
> | to the PKG_CONFIG_PATH environment variable
> | No package 'glib-2.0' found
>
> Extrat the setting of PKG_CONFIG_PATH from temp/run.do_compile:
>
> Export 
> PKG_CONFIG_PATH="/home/hchan/code/poky_new/poky/build_ctd/tmp/work/qemux86_64-poky-linux/linux-yocto/5.0.7+gitAUTOINC+d26eec23cf_891531d68e-r0/recipe-sysroot/usr/lib/pkgconfig
>  
> :/home/hchan/code/poky_new/poky/build_ctd/tmp/work/qemux86_64-poky-linux/linux-yocto/5.0.7+gitAUTOINC+d26eec23cf_891531d68e-r0/recipe-sysroot/usr/share/pkgconfig"
>
> Look at the recipe-sysroot directory, where there is no corresponding 
> glib-2.0.pc file, but in the recipe-sysroot-native directory, there is:
>
> ./recipe-sysroot-native/usr/lib/pkgconfig/glib-2.0.pc
>
> So my question is how to insert recipe-sysroot-native directory to 
> PKG_CONFIG_PATH variable?
>
> I am not particularly familiar with poky/bitbake at the moment. By searching, 
> I found these assignments. But not sure where to add it, and how to add:
>
> Hchan@hchan-ThinkPad:~/code/poky_new/poky$ grep --color -rnH 'export 
> PKG_CONFIG_PATH=' ./meta*
> ./meta/recipes-devtools/pkgconfig/pkgconfig/pkg-config-native.in:3:export 
> PKG_CONFIG_PATH="@PATH_NATIVE@"
> ./meta/recipes-devtools/qemu/qemu.inc:85: export 
> PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
> ./meta/classes/toolchain-scripts.bbclass:49: echo 'export 
> PKG_CONFIG_PATH=$SDKTARGETSYSROOT'"$libdir"'/pkgconfig:$SDKTARGETSYSROOT'"$prefix"'/share/pkgconfig'
>  >> $script
> ./meta/classes/toolchain-scripts.bbclass:72: echo 'export 
> PKG_CONFIG_PATH=${PKG_CONFIG_PATH}' >> $script
>
> --
> Tom
>
> --
> ___
> linux-yocto mailing list
> linux-yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/linux-yocto
-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


Re: [linux-yocto] [PATCH] virtio.cfg: enable CONFIG_DRM_VIRTIO_GPU

2018-12-17 Thread Alexander Kanavin
On Mon, 17 Dec 2018 at 04:31, Bruce Ashfield
 wrote:
> > This adds support for a virtual graphics card provided by QEMU,
> > which allows accelerated host-assisted GL inside QEMU guests.
>
> merged. This will be in my next consolidated pull request.

Thanks. I'm new to this - why is the patch in version branches, but
not in master?

Alex
-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


[linux-yocto] [PATCH] virtio.cfg: enable CONFIG_DRM_VIRTIO_GPU

2018-12-15 Thread Alexander Kanavin
This adds support for a virtual graphics card provided by QEMU,
which allows accelerated host-assisted GL inside QEMU guests.

Signed-off-by: Alexander Kanavin 
---
 cfg/virtio.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cfg/virtio.cfg b/cfg/virtio.cfg
index 98d76a67..039cb9a8 100644
--- a/cfg/virtio.cfg
+++ b/cfg/virtio.cfg
@@ -10,3 +10,4 @@ CONFIG_HW_RANDOM=y
 CONFIG_HW_RANDOM_VIRTIO=y
 CONFIG_SCSI_VIRTIO=y
 CONFIG_CRYPTO_DEV_VIRTIO=y
+CONFIG_DRM_VIRTIO_GPU=y
-- 
2.17.1

-- 
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto