From b45618377516f4ffb0f048d42c03318e8e086654 Mon Sep 17 00:00:00 2001 From: localhorst Date: Thu, 8 Oct 2020 19:59:27 +0200 Subject: [PATCH] added host install script --- install_host.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 install_host.sh diff --git a/install_host.sh b/install_host.sh new file mode 100644 index 0000000..a569534 --- /dev/null +++ b/install_host.sh @@ -0,0 +1,18 @@ +#! /bin/bash + +echo "installing host environment" + +mkdir /build +mkdir sysroot sysroot/usr sysroot/opt + +git clone https://github.com/raspberrypi/tools +wget https://download.qt.io/archive/qt/5.12/5.12.8/single/qt-everywhere-src-5.12.8.tar.xz +wget https://raw.githubusercontent.com/riscv/riscv-poky/master/scripts/sysroot-relativelinks.py + +tar xf qt-everywhere-src-5.12.8.tar.xz +rm qt-everywhere-src-5.12.8.tar.xz +cp -R qt-everywhere-src-5.12.8/qtbase/mkspecs/linux-arm-gnueabi-g++ qt-everywhere-src-5.10.1/qtbase/mkspecs/linux-arm-gnueabihf-g++ +sed -i -e 's/arm-linux-gnueabi-/arm-linux-gnueabihf-/g' qt-everywhere-src-5.12.8/qtbase/mkspecs/linux-arm-gnueabihf-g++/qmake.conf + +mv qt-everywhere-src-5.12.8 qt_src +