summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
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