diff options
| author | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-09-02 11:32:59 +0300 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-09-02 10:56:17 +0000 |
| commit | 0af6a703f328205d2185429a44267d80a128b25f (patch) | |
| tree | cffe8a9cc1324fb681321d84d947421b845a8bfa /scripts | |
| parent | 2ddb4bfe04da0a162be32ac0e33b22bfd7b9c098 (diff) | |
| download | meta-boot2qt-0af6a703f328205d2185429a44267d80a128b25f.tar.gz | |
Use correct path for mkspecs
Fix qtcreator configure script to use the correct path for mkspecs.
Also add command line argument to specify the sdktool location.
Change-Id: I6534e1df6dc01767e0e9904d12e7c51c9ec3f0bb
Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/configure-qtcreator.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/configure-qtcreator.sh b/scripts/configure-qtcreator.sh index 4ffe64f..7661297 100755 --- a/scripts/configure-qtcreator.sh +++ b/scripts/configure-qtcreator.sh | |||
| @@ -29,7 +29,7 @@ ABI="arm-linux-generic-elf-32bit" | |||
| 29 | 29 | ||
| 30 | printUsage () | 30 | printUsage () |
| 31 | { | 31 | { |
| 32 | echo "Usage: $0 <toolchain-environment-setup-file> [--remove]" | 32 | echo "Usage: $0 <toolchain-environment-setup-file> [--remove] [--sdktool <path>]" |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | while test -n "$1"; do | 35 | while test -n "$1"; do |
| @@ -37,17 +37,19 @@ while test -n "$1"; do | |||
| 37 | "--help" | "-h") | 37 | "--help" | "-h") |
| 38 | printUsage | 38 | printUsage |
| 39 | exit 0 | 39 | exit 0 |
| 40 | shift | ||
| 41 | ;; | 40 | ;; |
| 42 | "--remove") | 41 | "--remove") |
| 43 | REMOVEONLY=1 | 42 | REMOVEONLY=1 |
| 43 | ;; | ||
| 44 | "--sdktool") | ||
| 44 | shift | 45 | shift |
| 46 | SDKTOOL=$1 | ||
| 45 | ;; | 47 | ;; |
| 46 | *) | 48 | *) |
| 47 | CONFIG=$1 | 49 | CONFIG=$1 |
| 48 | shift | ||
| 49 | ;; | 50 | ;; |
| 50 | esac | 51 | esac |
| 52 | shift | ||
| 51 | done | 53 | done |
| 52 | 54 | ||
| 53 | if [ ! -f "$CONFIG" ]; then | 55 | if [ ! -f "$CONFIG" ]; then |
| @@ -65,12 +67,13 @@ fi | |||
| 65 | 67 | ||
| 66 | source $CONFIG | 68 | source $CONFIG |
| 67 | 69 | ||
| 68 | if [ ! -d "${OECORE_NATIVE_SYSROOT}/mkspecs/${MKSPEC}" ]; then | 70 | MKSPECPATH=$(find ${OECORE_TARGET_SYSROOT} -name $(basename ${MKSPEC})) |
| 69 | echo Error: $CONFIG is invalid. | 71 | if [ ! -d "${MKSPECPATH}" ]; then |
| 72 | echo "Error: could not find mkspec ${MKSPEC} from the toolchain" | ||
| 70 | exit 1 | 73 | exit 1 |
| 71 | fi | 74 | fi |
| 72 | 75 | ||
| 73 | MACHINE=$(grep '^MACHINE' ${OECORE_NATIVE_SYSROOT}/mkspecs/qdevice.pri | cut -d'=' -f2 | tr -d ' ') | 76 | MACHINE=$(grep '^MACHINE' ${MKSPECPATH}/../../qdevice.pri | cut -d'=' -f2 | tr -d ' ') |
| 74 | 77 | ||
| 75 | RELEASE=$(qmake -query QT_VERSION) | 78 | RELEASE=$(qmake -query QT_VERSION) |
| 76 | 79 | ||
