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

2019-05-16 Thread Tong Chen
Yes, kallsyms is a helper program for handling symbols during kernel build and is not itself transferred to target. For the kernel, it is essentially used for the target, but its compilation process needs native tools like kallsyms. Is this case not be considered in Yocto at the beginning? Anyway,

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

2019-05-14 Thread Tong Chen
Hi Alex, thank you so much for your quick reply. In fact, I just modified the linux-yocto_5.0.bb file directly: ~/code/poky_new/poky$ git diff meta/recipes-kernel/linux/linux-yocto_5.0.bb Diff --git a/meta/recipes-kernel/linux/linux-yocto_5.0.bb b/meta/recipes-kernel/linux/linux-yocto_5.0.bb

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

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

2019-05-14 Thread Tong Chen
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 :=