summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@theqtcompany.com>2015-07-16 11:52:06 +0300
committerDavid Schulz <david.schulz@theqtcompany.com>2016-01-14 13:23:52 +0000
commitfec77245682bfd988a3fd1456488b4455acb272e (patch)
treeb115e5dd26e7037ca22ce207ec8254ea72a21870 /classes
parent6f58d7d2708fbdb3ce633e7234cd5f12cdb57c7d (diff)
downloadmeta-boot2qt-fec77245682bfd988a3fd1456488b4455acb272e.tar.gz
Fix up toolchain packaging for Windows hosts
Change-Id: Idb7af9308e702b4ef5f26e6423cfa270f8c036e5 Reviewed-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/populate_b2qt_sdk.bbclass46
1 files changed, 46 insertions, 0 deletions
diff --git a/classes/populate_b2qt_sdk.bbclass b/classes/populate_b2qt_sdk.bbclass
new file mode 100644
index 0000000..54322b4
--- /dev/null
+++ b/classes/populate_b2qt_sdk.bbclass
@@ -0,0 +1,46 @@
1#############################################################################
2##
3## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4##
5## This file is part of the Qt Enterprise Embedded Scripts of the Qt
6## framework.
7##
8## $QT_BEGIN_LICENSE$
9## Commercial License Usage Only
10## Licensees holding valid commercial Qt license agreements with Digia
11## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
12## may use this file in accordance with the terms contained in said license
13## agreement.
14##
15## For further information use the contact form at
16## http://www.qt.io/contact-us.
17##
18##
19## $QT_END_LICENSE$
20##
21#############################################################################
22
23inherit populate_sdk
24
25DEPENDS_sdkmingw32 += "gzip-native"
26
27POPULATE_SDK_POST_HOST_COMMAND_append_sdkmingw32 = " replace_host_symlink;"
28
29replace_host_symlink() {
30 for SOURCE in `find ${SDK_OUTPUT}/${SDKPATHNATIVE} -type l`
31 do
32 TARGET=`readlink -f "${SOURCE}"`
33 if [ -e ${TARGET} ]; then
34 rm "${SOURCE}"
35 cp -f "${TARGET}" "${SOURCE}"
36 fi
37 done
38}
39
40fakeroot tar_sdk_sdkmingw32() {
41 # Package it up
42 mkdir -p ${SDK_DEPLOY}
43 cd ${SDK_OUTPUT}/${SDKPATH}
44 zip -r ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.zip sysroots
45}
46