aboutsummaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2020-04-27 10:10:08 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2020-04-30 12:02:42 +0200
commit3265e93168126a29f004d6f801365de9e44255f9 (patch)
treed6adc7dcda95340d186d54b529cf73587d3371bf /coin
parent4aa9c4df116257103eba8576c61d6d5c412f9a08 (diff)
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 <alexandru.croitor@qt.io>
Diffstat (limited to 'coin')
-rw-r--r--coin/platform_configs/qtbase.yaml8
1 files changed, 8 insertions, 0 deletions
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
@@ -10,6 +10,14 @@ Configurations:
-
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'
Target arch: 'arm64'
Compiler: 'GCC'
Features: ['DisableTests', 'UseLegacyInstructions']