diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2020-04-28 11:58:06 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2020-04-29 22:26:25 +0200 |
commit | e9b8837c31041326a0e4d66eed6775d385913915 (patch) | |
tree | 5fe3a8b3fdd169d698c44d5c77d11b98b95b3bbd /coin/instructions/prepare_building_env.yaml | |
parent | 9c76047b076ef143a0bb53f4d41d5071a3f509ed (diff) |
Add support for building building against yocto
Using an environment prefix wrapper shell script that sources the SDK's
env setup. The script also ensure that we don't loose cmake on the way.
Change-Id: I9d08bc58f0efaf688512ab26a7ddb800309a5015
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'coin/instructions/prepare_building_env.yaml')
-rw-r--r-- | coin/instructions/prepare_building_env.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/coin/instructions/prepare_building_env.yaml b/coin/instructions/prepare_building_env.yaml index d9a22c76b2..e03179a0e8 100644 --- a/coin/instructions/prepare_building_env.yaml +++ b/coin/instructions/prepare_building_env.yaml @@ -200,3 +200,30 @@ instructions: condition: property property: host.os equals_value: Windows + + - type: Group + instructions: + - type: WriteFile + fileContents: "#!/bin/bash\nunset LD_LIBRARY_PATH\n. {{.Env.QT_YOCTO_ENVSETUP}}\nexport PATH={{.Env.QT_CMAKE_DIR}}:$PATH;\n$*" + filename: "{{.Env.HOME}}/prefix.sh" + fileMode: 493 + maxTimeInSeconds: 20 + maxTimeBetweenOutput: 20 + enable_if: + condition: property + property: target.osVersion + equals_value: QEMU + - type: EnvironmentVariable + variableName: TARGET_ENV_PREFIX + variableValue: "{{.Env.HOME}}/prefix.sh" + enable_if: + condition: property + property: target.osVersion + equals_value: QEMU + - type: EnvironmentVariable + variableName: TARGET_ENV_PREFIX + variableValue: "" + disable_if: + condition: property + property: target.osVersion + equals_value: QEMU |