From 3265e93168126a29f004d6f801365de9e44255f9 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 27 Apr 2020 10:10:08 +0200 Subject: Try to build qtbase with cmake against Yocto This adds the basic armv7 configuration and passes through two additional variables for use in the build instructions: * QT_YOCTO_ENVSETUP points to the environment-setup script that the Yocto SDK expects to be sourced before building against the target sysroot. * QT_CMAKE_DIR points to the directory that contains our cmake installation. Since the environment-setup prepends the Yocto host bin dir to the PATH, we'd end up picking the wrong cmake. Also the choice of system Harfbuzz is disabled as Qt does not build against the version shipping in Yocto. Change-Id: I8d657e773143c4db0e2437d029d62372f7b7e638 Reviewed-by: Alexandru Croitor --- coin/platform_configs/qtbase.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'coin/platform_configs/qtbase.yaml') diff --git a/coin/platform_configs/qtbase.yaml b/coin/platform_configs/qtbase.yaml index f2b8073d..57978a84 100644 --- a/coin/platform_configs/qtbase.yaml +++ b/coin/platform_configs/qtbase.yaml @@ -7,6 +7,14 @@ Configurations: Compiler: 'GCC' Features: ['DisableTests', 'UseLegacyInstructions'] Configure arguments: '-opensource -confirm-license -verbose -prefix /home/qt/work/install -developer-build -nomake tests -nomake examples -no-xcb -R . -openssl -device linux-imx7-g++ -device-option CROSS_COMPILE=/opt/yocto-armv7/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -device-option DISTRO_OPTS="hard-float boot2qt" -sysroot /opt/yocto-armv7/sysroots/armv7at2hf-neon-poky-linux-gnueabi -extprefix /home/qt/work/install -mysql_config /opt/yocto-armv7/sysroots/armv7at2hf-neon-poky-linux-gnueabi/usr/bin/mysql_config -psql_config /dev/null -tslib' +- + Template: 'qtci-linux-Ubuntu-18.04-x86_64' + Target os: 'QEMU' + Target arch: 'armv7' + Compiler: 'GCC' + Features: ['DisableTests'] + Environment variables: ['TARGET_CONFIGURE_ARGS=-DBUILD_EXAMPLES=OFF -DCMAKE_TOOLCHAIN_FILE={{.Env.QEMUARMV7_TOOLCHAIN_SYSROOT}}/../x86_64-pokysdk-linux/usr/share/cmake/OEToolchainConfig.cmake -DQT_FEATURE_system_harfbuzz=OFF', 'QT_YOCTO_ENVSETUP={{.Env.QEMUARMV7_TOOLCHAIN_SYSROOT}}/../../environment-setup-armv7at2hf-neon-poky-linux-gnueabi', "QT_CMAKE_DIR=/opt/cmake-3.17.0-rc2/bin"] + Configure arguments: '-DBUILD_EXAMPLES=OFF -DOPENSSL_ROOT_DIR={{.Env.OPENSSL_HOME}}' - Template: 'qtci-linux-Ubuntu-18.04-x86_64' Target os: 'QEMU' -- cgit v1.2.3