mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 21:32:13 +02:00
pkgconfig: Add pkg-config-native to SDK
Building weston with an SDK fails to find pkg-config-native: ``` Did not find pkg-config by name 'pkg-config-native' Found pkg-config: NO Found CMake: /opt/poky/5.1/sysroots/x86_64-pokysdk-linux/usr/bin/cmake (3.31.0) Build-time dependency wayland-scanner found: NO (tried cmake) protocol/meson.build:1:14: ERROR: Dependency lookup for wayland-scanner with method 'pkgconfig' failed: Pkg-config for machine build machine not found. Giving up. ``` Fix the problem by extending the pkg-config-native wrapper install to class-nativesdk. (From OE-Core rev: 065ab44943b78ccb806477684b1167d69d5d1d6d) Signed-off-by: Tom Hochstein <tom.hochstein@oss.nxp.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9dbeec7fa7
commit
3675ea0765
@@ -46,9 +46,9 @@ FILES:${PN} += "${datadir}/aclocal/pkg.m4"
|
||||
# specifying an appropriate provide.
|
||||
RPROVIDES:${PN} += "pkgconfig(pkg-config)"
|
||||
|
||||
# Install a pkg-config-native wrapper that will use the native sysroot instead
|
||||
# of the MACHINE sysroot, for using pkg-config when building native tools.
|
||||
do_install:append:class-native () {
|
||||
# Install a pkg-config-native wrapper that will use the native sysroot instead
|
||||
# of the MACHINE sysroot, for using pkg-config when building native tools.
|
||||
sed -e "s|@PATH_NATIVE@|${PKG_CONFIG_PATH}|" \
|
||||
-e "s|@LIBDIR_NATIVE@|${PKG_CONFIG_LIBDIR}|" \
|
||||
< ${UNPACKDIR}/pkg-config-native.in > ${B}/pkg-config-native
|
||||
@@ -59,6 +59,15 @@ do_install:append:class-native () {
|
||||
install -m755 ${B}/pkg-config-esdk ${D}${bindir}/pkg-config-esdk
|
||||
}
|
||||
|
||||
do_install:append:class-nativesdk () {
|
||||
# Install a pkg-config-native wrapper that will use the native sysroot instead
|
||||
# of the MACHINE sysroot, for using pkg-config when building native tools.
|
||||
sed -e "s|@PATH_NATIVE@|\$OECORE_NATIVE_SYSROOT|" \
|
||||
-e "s|@LIBDIR_NATIVE@|\$OECORE_NATIVE_SYSROOT/usr/lib/pkgconfig|" \
|
||||
< ${UNPACKDIR}/pkg-config-native.in > ${B}/pkg-config-native
|
||||
install -m755 ${B}/pkg-config-native ${D}${bindir}/pkg-config-native
|
||||
}
|
||||
|
||||
pkgconfig_sstate_fixup_esdk () {
|
||||
if [ "${BB_CURRENTTASK}" = "populate_sysroot_setscene" -a "${WITHIN_EXT_SDK}" = "1" ] ; then
|
||||
pkgconfdir="${SSTATE_INSTDIR}/recipe-sysroot-native/${bindir_native}"
|
||||
|
||||
Reference in New Issue
Block a user