Skip to content

Commit 77de9f0

Browse files
author
Simon Hausmann
committed
Add helper script for setting up the toolchain symlinks from the Qt SDK
Also changed a the scripts to use bash (we can and I'm lazy to avoid bashisms :)
1 parent 230d480 commit 77de9f0

12 files changed

+51
-10
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
arm-toolchain-bin

build-sources.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

builddeps-install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
d=`dirname $0`
44
. $d/common.sh

clone-sources.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

qt-components-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

qt5-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ elif [ $device_target = "xarmel" ]; then
1717
if [ -z "$SYSROOT_DIR" ]; then
1818
die "Need sysroot dir to be set to build Qt with cross-arm target"
1919
fi
20-
extra_configure_flags="-xplatform linux-arm-gnueabi-g++ -force-pkg-config -little-endian -arch arm -no-pch -sysroot $SYSROOT_DIR"
20+
extra_configure_flags="-xplatform linux-arm-gnueabi-g++ -force-pkg-config -little-endian -arch arm -no-pch -sysroot $SYSROOT_DIR -release"
2121
fi
2222

2323
cd $qt5_dir

setup-arm-toolchain-bin.sh

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
sdkPath=$1
6+
if [ -n "$sdkPath" ]; then
7+
shift
8+
else
9+
sdkPath=$HOME/QtSDK
10+
fi
11+
12+
d=`dirname $0`
13+
. $d/common.sh
14+
15+
if is_sbox; then
16+
echo "Running in Scratchbox, nothing to setup."
17+
exit 0
18+
fi
19+
20+
toolChainPath=$sdkPath/Madde/toolchains/arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu/arm-2009q3-67/bin
21+
22+
if [ ! -d "$toolChainPath" ]; then
23+
echo "Cannot locate Qt SDK. Tried looking in \"$sdkPath\". Please provide the path to your SDK"
24+
echo "as argument to this script."
25+
exit 1
26+
fi
27+
28+
symlinkPath=$script_dir/arm-toolchain-bin
29+
if [ -d $symlinkPath ]; then
30+
echo "Looks like the toolchain symlinks are already set up in $symlinkPath. Nothing to do then."
31+
exit 1
32+
fi
33+
34+
mkdir -p $symlinkPath
35+
36+
for file in `cd $toolChainPath; ls arm-none-linux-gnueabi-*`; do
37+
ln -s $toolChainPath/$file $symlinkPath/`echo $file | sed -e "s,none-,,"`
38+
done
39+
40+
echo "Okay, now is a good time to put $symlinkPath into your PATH."

setup-qt-components-theme-dir.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

update-qt-components-sources.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

update-qt-sources.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

update-sources.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

webkit-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
d=`dirname $0`
44
. $d/common.sh

0 commit comments

Comments
 (0)