Commit d3439dc3 authored by Volker Hilsheimer's avatar Volker Hilsheimer
Browse files

Remove outdated roles

parent 9f7d8c97
- name: Qt Builder
hosts: all
gather_facts: True
roles:
- tools
- dependencies
mkdir -p /tmp
cd /tmp
# install latest cmake
cmake_version=3.18
cmake_build=1
cmake_installed=$(cmake --version | grep "cmake version" | awk {'print $3'})
if [[ "$cmake_installed" != ${cmake_version}.${cmake_build} ]]
then
cmake_installed=$(which cmake)
[[ -z $cmake_installed ]] || prefix="$(dirname $(dirname $cmake_installed))" && prefix=/usr/local
[[ $prefix == "/" ]] && prefix="/usr" # centos has cmake in /bin when logged in as root
echo "Installing cmake $cmake_version.$cmake_build into $prefix"
echo "... Downloading cmake $cmake_version"
wget -q https://cmake.org/files/v$cmake_version/cmake-${cmake_version}.${cmake_build}-Linux-x86_64.sh 2>&1 > /dev/null
echo "... Installing cmake into $prefix"
/bin/sh ./cmake-${cmake_version}.${cmake_build}-Linux-x86_64.sh --skip-license --prefix=$prefix
echo "cmake installed"
cmake --version
fi
cd - > /dev/null
- apt:
name: "{{ item }}"
state: present
loop:
- "{{ basic }}"
- "{{ x11 }}"
- "{{ accessibility }}"
- "{{ opengl }}"
- "{{ ssl }}"
- "{{ font }}"
- "{{ wayland }}"
- "{{ vkb }}"
- block:
- include_vars:
file: redhat.yml
- import_tasks: redhat.yml
when: ansible_facts['os_family'] == 'RedHat'
- block:
- include_vars:
file: debian.yml
- import_tasks: debian.yml
when: ansible_facts['os_family'] == 'Debian'
- yum:
name: "{{ item }}"
state: present
loop:
- "{{ basic }}"
- "{{ x11 }}"
- "{{ opengl }}"
- "{{ ssl }}"
- "{{ font }}"
- "{{ wayland }}"
- "{{ vkb }}"
basic:
- pkg-config
- libpcre2-dev
x11:
- libxcb*-dev
- libx11-xcb*-dev
- libxrender-dev
- libxi-dev
- libxkbcommon-dev
- libxkbcommon-x11-dev
accessibility:
- libatspi2.0-dev
opengl:
- libglu1-mesa-dev
- freeglut3-dev
- mesa-common-dev
ssl:
- libssl-dev
font:
- fontconfig
- libfontconfig-dev
- libfreetype6-dev
wayland:
- libwayland-*
- libxcomposite-dev
vkb:
- hunspell
- libhunspell-dev
basic:
- zlib-devel
x11:
- libX11*
- libxcb*
- libxcb-devel
- libX11-xcb*
- libXrender*
- libXrender-devel*
- libXi*
- libXi-devel*
- libxkbcommon-devel
accessibility:
- libatspi2.0-dev
opengl:
- mesa-libGL-devel
ssl:
- libssl*
- openssl-devel*
font:
- fontconfig
wayland:
- libwayland-*
- mesa-libwayland-egl*
vkb:
- hunspell
- name: Enable repositories
apt_repository:
repo: deb http://archive.ubuntu.com/ubuntu bionic main restricted
state: present
- name: Install build tools
apt:
name:
- build-essential
- python
- perl
- bison
- gperf
- flex
- ninja-build
state: present
- block:
- import_tasks: redhat.yml
when: ansible_facts['os_family'] == 'RedHat'
- block:
- import_tasks: debian.yml
when: ansible_facts['os_family'] == 'Debian'
- name: Enable EPEL repository
yum:
name:
- epel-release
state: present
- name: Install build tools
yum:
name:
- gcc-toolset-9-gcc
- gcc-toolset-9-gcc-c++
- ninja-build
- perl-core
enablerepo: PowerTools
state: present
- name: Select gcc 9
command: echo ". /opt/rh/gcc-toolset-9/enable" >> /home/vagrant/.bashrc
file: qt-packages.vdi
archive: qt-packages.zip
set +ex
mkdir -p ~/rtems/tqtc-qt5
cd ~/rtems
$(git clone git@git.qt.io:mikhail.svetkin/qt-rtems-apps.git)
if [[ ! -d "qt-rtems-apps" ]]; then
echo "Failed to clone apps repository!"
exit 1
fi
if [[ "$(uname)" == "Darwin" ]]; then
$(brew install stlink)
fi
if [[ "$(which st-flash)" == "" ]]; then
echo "Failed to install st-flash"
exit 2
fi
\ No newline at end of file
POSITIONAL=()
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
--docker-password)
DOCKERPWD="$2"
shift
shift
;;
--docker-user)
DOCKERUSR="$2"
shift
shift
;;
*)
POSITIONAL+=("$1")
shift
;;
esac
done
set -- "${POSITIONAL[@]}" # restore positional parameters
apt-get -y install docker.io
docker login -u $DOCKERUSR -p $DOCKERPWD
# prevent interruption of firmware update
systemctl disable ModemManager.service
sandbox=/home/builder/qt-rtems-port
docker run \
-v /home/host/rtems/tqtc-qt5:/home/builder/qt-rtems-port/tqtc-qt5 \
-v /home/host/rtems/qt-rtems-apps:/home/builder/qt-rtems-port/qt-rtems-apps \
-e sandbox=$sandbox \
tqtc/qt-on-mcu ./build_qt5.sh
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment