From 885d2b1705b0c98316fdf9876e04cfaa009d2ed0 Mon Sep 17 00:00:00 2001 From: Ray-V Date: Sun, 2 Dec 2018 13:40:42 +0000 Subject: [PATCH] Removed redundant avahi-tqt check in tdebase build --- cross-compiling-TDE-for-the-RPi3.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/cross-compiling-TDE-for-the-RPi3.html b/cross-compiling-TDE-for-the-RPi3.html index 38d6efd..c4b0970 100755 --- a/cross-compiling-TDE-for-the-RPi3.html +++ b/cross-compiling-TDE-for-the-RPi3.html @@ -216,6 +216,13 @@ The cross compiler is built in this tree: │   ├── glibc-2.28 │   └── build-glibc └── pkg DESTDIR for creating package + +## Set installation directories +## for x-compiler +XGCC_DIR=/opt/cross-pi-gcc +## for sysroot +SYSROOT=$XGCC_DIR/sysroot + mkdir -p /tmp/xgcc/{gcc-8,build_all} cd /tmp/xgcc/gcc-8 @@ -480,9 +487,9 @@ installpkg /tmp/xgcc820-glibc2.28-${K_VER}_RPi_headers-en_GB-${ARCH}_${float:-s} ## Set variables ## this is where the x-compiler package has been built to install to -XGCC_DIR=/opt/cross-pi-gcc +XGCC_DIR=${XGCC_DIR:-/opt/cross-pi-gcc} ## this is where the sysroot has been set in the x-compiler tree -SYSROOT=$XGCC_DIR/sysroot +SYSROOT=${SYSROOT:-$XGCC_DIR/sysroot} ## The arm libs and headers needed for cross compiling need to be installed in SYSROOT. ## They can be [1] directly installed to $SYSROOT if the cross compiler is to be a permanent addition to the system, otherwise [2] installed to a directory [/path_to_arm_current_sysroot_directory] on a storage medium through bind-mounting it to $SYSROOT for the actual build process: @@ -1699,9 +1706,6 @@ done FindTQt-patch_fn -# Check for avahi-tqt -[[ $(ls $SYSROOT$INSTALL_TDE/lib/libavahi-tqt.so.*) ]] && AVAHI="ON" - cd_builddir_fn ## rm -rf $TMP/tmp-$PRGNAM/$SUB_DIR$PRGNAM/build-$PRGNAM/*