mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Set test running to happen on non-developer static target for modules upstream of QtDeclarative. Qtdeclarative tests do not build with static flag, due to this only up to this. Update VSB and VIP. Change-Id: If7e016f11b5d3908dff584fc05bcc8985d471a94 Reviewed-by: Simo Fält <simo.falt@qt.io>
63 lines
2.6 KiB
Bash
Executable File
63 lines
2.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2023 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
# This script installs vxworks libs and toolchain.
|
|
|
|
set -ex
|
|
|
|
# shellcheck source=../unix/InstallFromCompressedFileFromURL.sh
|
|
source "${BASH_SOURCE%/*}/../unix/InstallFromCompressedFileFromURL.sh"
|
|
# shellcheck source=../unix/SetEnvVar.sh
|
|
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
|
|
|
######### VXworks libs #########
|
|
# Installs to /opt/vxworks
|
|
PrimaryUrl="http://ci-files01-hki.ci.qt.io/input/vxworks/vxworks_libs_2403.tar.gz"
|
|
AltUrl=""
|
|
sha1="8152c527ca489b1e51f2954e6e88c6daa22d88f6"
|
|
targetFolder="/opt"
|
|
InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$sha1" "$targetFolder" ""
|
|
SetEnvVar "VXWORKS_HOME" "/opt/vxworks"
|
|
|
|
VXWORKS_BUILD_VER="19-08-2024"
|
|
######### VXworks toolchain #########
|
|
# Installs to /opt/fsl_imx6_2_0_6_2_VSB
|
|
PrimaryUrl="http://ci-files01-hki.ci.qt.io/input/vxworks/vxworks_arm_vsb_${VXWORKS_BUILD_VER}.tar.gz"
|
|
AltUrl=""
|
|
sha1="9c1abcc066aff40230a7f432e1f076bac8c6912a"
|
|
targetFolder="/opt/"
|
|
InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$sha1" "$targetFolder" ""
|
|
SetEnvVar "WIND_CC_SYSROOT" "/opt/fsl_imx6_2_0_6_2_VSB"
|
|
|
|
######### VXworks VIP kernel #########
|
|
# Installs to /opt/fsl_imx6_2_0_6_2_VIP_QEMU
|
|
PrimaryUrl="http://ci-files01-hki.ci.qt.io/input/vxworks/vxworks_arm_vip_${VXWORKS_BUILD_VER}.tar.gz"
|
|
AltUrl=""
|
|
sha1="db48525d9f5b105f9da632f0c3f557247c1fd041"
|
|
targetFolder="/opt/"
|
|
InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$sha1" "$targetFolder" ""
|
|
SetEnvVar "VXWORKS_SSH" "WindRiver@172.31.1.10"
|
|
|
|
######### VXworks fonts and certs #########
|
|
# Installs to /opt/fsl_imx6_2_0_6_2_VSB
|
|
PrimaryUrl="http://ci-files01-hki.ci.qt.io/input/vxworks/vxworks_misc.tar.gz"
|
|
AltUrl=""
|
|
sha1="1bc529b90b35b0b249f219e47d5798225a9b68d8"
|
|
targetFolder="/opt/fsl_imx6_2_0_6_2_VSB/"
|
|
InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$sha1" "$targetFolder" ""
|
|
|
|
# Setup NFS exports that are needed by VxWorks qemu
|
|
sudo bash -c "echo '/home/qt/work 172.31.1.10/24(rw,sync,root_squash,no_subtree_check,anonuid=2001,anongid=100)' >> /etc/exports"
|
|
sudo bash -c "echo '/opt/fsl_imx6_2_0_6_2_VSB 172.31.1.10/24(rw,sync,root_squash,no_subtree_check,anonuid=2001,anongid=100)' >> /etc/exports"
|
|
sudo exportfs -a
|
|
|
|
# Enable ipv4 routing from vxWorks to Qt DNS
|
|
sudo sed -i s/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/g /etc/sysctl.conf
|
|
sudo iptables -I FORWARD 1 -j ACCEPT
|
|
sudo iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
|
|
|
|
# Copy start script in place
|
|
cp "${BASH_SOURCE%/*}/../linux/vxworks_qemu_launcher.sh" "${HOME}"
|
|
SetEnvVar "VXWORKS_EMULATOR" "${HOME}/vxworks_qemu_launcher.sh"
|