diff options
author | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-08-14 13:24:24 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-08-14 13:24:24 +0300 |
commit | 71df5c0dfbbe43b6538487ddf7cee735a620a139 (patch) | |
tree | feb41717b4ee0c638c3c0958e58c488f86e10299 | |
parent | 62626c1517f08f8d34aa8e9b49508b464abf21c4 (diff) | |
parent | 0fe5a62bd4c557e245128d4671b1f5af7dd6b4b1 (diff) | |
download | meta-boot2qt-71df5c0dfbbe43b6538487ddf7cee735a620a139.tar.gz |
Merge remote-tracking branch 'origin/dizzy' into dev
* origin/dizzy: (95 commits)
Update VirtualBox kernel modules
Check if VirtualBox kernel modules do exist
toradex: move to V2.4 branch
qt5: use 5.5 branch
Change all tab characters to spaces
boundary: include uvcvideo kernel module
Add Emulator sdcardmountd
Include tzdata and ntp tools to image
qt5: add declarative tools and host libs to sdk
Some projects were moved from internal gerrit to codereview
Use correct versions for addons
Use correct path for QT_SDK_PATH
fonts: update checksums for otf-noto
gstreamer: make gstreamer version a DISTRO_FEATURE
b2qt-demos: add QtQuick Controls demos
Increase CMA reserved size on nitrogen6x.
qtquickcompiler: disable for BYOS
Remove recipe for QtQuick Enteprise Controls
Support BYOS for enterprise only addons
b2qt-demos: include qtcanvas3d planets demo
...
Conflicts:
recipes/hunspell/hunspell_1.3.2.bb
Change-Id: I13814d8501d266d5930c63e879c704001adb3b6c
175 files changed, 5795 insertions, 607 deletions
diff --git a/b2qt-init-build-env b/b2qt-init-build-env index 2ef61c3..2dfed01 100755 --- a/b2qt-init-build-env +++ b/b2qt-init-build-env | |||
@@ -82,7 +82,10 @@ get_repo() { | |||
82 | 82 | ||
83 | get_groups() { | 83 | get_groups() { |
84 | case ${DEVICE} in | 84 | case ${DEVICE} in |
85 | apalis-imx6|colibri-vf) | 85 | all) |
86 | PROJECT_GROUPS="all" | ||
87 | ;; | ||
88 | apalis-imx6|colibri-imx6|colibri-vf) | ||
86 | PROJECT_GROUPS="toradex" | 89 | PROJECT_GROUPS="toradex" |
87 | ;; | 90 | ;; |
88 | imx53qsb|imx6qsabresd|imx6dlsabresd|nitrogen6x) | 91 | imx53qsb|imx6qsabresd|imx6dlsabresd|nitrogen6x) |
@@ -97,7 +100,7 @@ get_groups() { | |||
97 | beaglebone) | 100 | beaglebone) |
98 | PROJECT_GROUPS="bbb" | 101 | PROJECT_GROUPS="bbb" |
99 | ;; | 102 | ;; |
100 | raspberrypi) | 103 | raspberrypi|raspberrypi2) |
101 | PROJECT_GROUPS="rpi" | 104 | PROJECT_GROUPS="rpi" |
102 | ;; | 105 | ;; |
103 | emulator) | 106 | emulator) |
@@ -127,20 +130,6 @@ mirror() { | |||
127 | ${REPO} sync | 130 | ${REPO} sync |
128 | } | 131 | } |
129 | 132 | ||
130 | patch_poky() { | ||
131 | cd sources/poky | ||
132 | found=$(git rev-list --grep="bitbake: cooker: add support for using % as a wildcard in bbappend filename" HEAD) | ||
133 | if [ -z "$found" ]; then | ||
134 | git cherry-pick 381d5920188398bc53b2454843054c8690bca243 > /dev/null | ||
135 | fi | ||
136 | |||
137 | found=$(git rev-list --grep="bitbake: cooker: Fix support for wildcards in bbappend filenames" HEAD) | ||
138 | if [ -z "$found" ]; then | ||
139 | git cherry-pick f91a3f46a1ee586e330be0868e8fbc4d2e78d361 > /dev/null | ||
140 | fi | ||
141 | cd - | ||
142 | } | ||
143 | |||
144 | init() { | 133 | init() { |
145 | if [ -z "${DEVICE}" ]; then | 134 | if [ -z "${DEVICE}" ]; then |
146 | echo "device not defined" | 135 | echo "device not defined" |
@@ -150,6 +139,7 @@ init() { | |||
150 | 139 | ||
151 | get_groups | 140 | get_groups |
152 | mkdir -p .repo/manifests | 141 | mkdir -p .repo/manifests |
142 | rm -f .repo/manifests/manifest*.xml | ||
153 | cp ${DIR}/scripts/manifest*.xml .repo/manifests | 143 | cp ${DIR}/scripts/manifest*.xml .repo/manifests |
154 | if [ -f .repo/manifests/manifest_${DEVICE}.xml ]; then | 144 | if [ -f .repo/manifests/manifest_${DEVICE}.xml ]; then |
155 | MANIFEST="manifest_${DEVICE}.xml" | 145 | MANIFEST="manifest_${DEVICE}.xml" |
@@ -159,12 +149,14 @@ init() { | |||
159 | ${REPO} init -u ${PWD}/.repo/repo -b default -m ${MANIFEST} -g "${PROJECT_GROUPS}" ${REFERENCE} | 149 | ${REPO} init -u ${PWD}/.repo/repo -b default -m ${MANIFEST} -g "${PROJECT_GROUPS}" ${REFERENCE} |
160 | ${REPO} sync | 150 | ${REPO} sync |
161 | 151 | ||
162 | patch_poky | ||
163 | |||
164 | if [ ! -e "sources/meta-b2qt" ]; then | 152 | if [ ! -e "sources/meta-b2qt" ]; then |
165 | ln -s ${DIR} sources/meta-b2qt | 153 | ln -s ${DIR} sources/meta-b2qt |
166 | fi | 154 | fi |
167 | 155 | ||
156 | if [ ! -e "sources/meta-qt5" ] && [ -e "${DIR}/../meta-qt5" ]; then | ||
157 | ln -s $(readlink -f ${DIR}/../meta-qt5) sources/meta-qt5 | ||
158 | fi | ||
159 | |||
168 | cp ${DIR}/scripts/setup-environment.sh . | 160 | cp ${DIR}/scripts/setup-environment.sh . |
169 | 161 | ||
170 | } | 162 | } |
diff --git a/classes/bootfs-image.bbclass b/classes/bootfs-image.bbclass index 7203b01..ccc995f 100644 --- a/classes/bootfs-image.bbclass +++ b/classes/bootfs-image.bbclass | |||
@@ -26,24 +26,24 @@ BOOTFS_LINK_NAME = "${IMAGE_BASENAME}-boot-${MACHINE}" | |||
26 | BOOTFS_DEPENDS ?= "" | 26 | BOOTFS_DEPENDS ?= "" |
27 | 27 | ||
28 | fakeroot do_bootfs () { | 28 | fakeroot do_bootfs () { |
29 | if [ -z "${BOOTFS_CONTENT}" ]; then | 29 | if [ -z "${BOOTFS_CONTENT}" ]; then |
30 | exit 0 | 30 | exit 0 |
31 | fi | 31 | fi |
32 | 32 | ||
33 | mkdir -p ${S}/bootfs | 33 | mkdir -p ${S}/bootfs |
34 | 34 | ||
35 | for item in ${BOOTFS_CONTENT}; do | 35 | for item in ${BOOTFS_CONTENT}; do |
36 | src=`echo $item | awk -F':' '{ print $1 }'` | 36 | src=`echo $item | awk -F':' '{ print $1 }'` |
37 | dst=`echo $item | awk -F':' '{ print $2 }'` | 37 | dst=`echo $item | awk -F':' '{ print $2 }'` |
38 | 38 | ||
39 | install -D -m 0755 ${DEPLOY_DIR_IMAGE}/$src ${S}/bootfs/$dst | 39 | install -D -m 0755 ${DEPLOY_DIR_IMAGE}/$src ${S}/bootfs/$dst |
40 | done | 40 | done |
41 | 41 | ||
42 | cd ${S}/bootfs | 42 | cd ${S}/bootfs |
43 | rm -f ${DEPLOY_DIR_IMAGE}/${BOOTFS_NAME}.tar.gz ${DEPLOY_DIR_IMAGE}/${BOOTFS_LINK_NAME}.tar.gz | 43 | rm -f ${DEPLOY_DIR_IMAGE}/${BOOTFS_NAME}.tar.gz ${DEPLOY_DIR_IMAGE}/${BOOTFS_LINK_NAME}.tar.gz |
44 | 44 | ||
45 | tar czvf ${DEPLOY_DIR_IMAGE}/${BOOTFS_NAME}.tar.gz . | 45 | tar czvf ${DEPLOY_DIR_IMAGE}/${BOOTFS_NAME}.tar.gz . |
46 | ln -s ${BOOTFS_NAME}.tar.gz ${DEPLOY_DIR_IMAGE}/${BOOTFS_LINK_NAME}.tar.gz | 46 | ln -s ${BOOTFS_NAME}.tar.gz ${DEPLOY_DIR_IMAGE}/${BOOTFS_LINK_NAME}.tar.gz |
47 | } | 47 | } |
48 | 48 | ||
49 | addtask bootfs before do_rootfs | 49 | addtask bootfs before do_rootfs |
diff --git a/classes/image-hdd.bbclass b/classes/image-hdd.bbclass index e6a0cb5..482be06 100644 --- a/classes/image-hdd.bbclass +++ b/classes/image-hdd.bbclass | |||
@@ -34,9 +34,9 @@ SYSLINUX_DEFAULT_CONSOLE = "console=ttyS0,115200" | |||
34 | inherit image_types boot-directdisk | 34 | inherit image_types boot-directdisk |
35 | 35 | ||
36 | create_hdd_image () { | 36 | create_hdd_image () { |
37 | cd ${DEPLOY_DIR_IMAGE} | 37 | cd ${DEPLOY_DIR_IMAGE} |
38 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hdd | 38 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hdd |
39 | ln -s ${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hdd | 39 | ln -s ${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hdd |
40 | } | 40 | } |
41 | 41 | ||
42 | python do_hddimg() { | 42 | python do_hddimg() { |
diff --git a/classes/qtquickcompiler.bbclass b/classes/qtquickcompiler.bbclass new file mode 100644 index 0000000..1478741 --- /dev/null +++ b/classes/qtquickcompiler.bbclass | |||
@@ -0,0 +1,34 @@ | |||
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 | |||
23 | python __anonymous() { | ||
24 | sdk_path = d.getVar('QT_SDK_PATH', True) or "" | ||
25 | if len(sdk_path) != 0: | ||
26 | bb.note("TODO: QtQuickCompiler not yet available for external builds") | ||
27 | else: | ||
28 | pn = d.getVar("PN", True) | ||
29 | if pn.startswith("nativesdk-"): | ||
30 | d.appendVar('RDEPENDS_' + pn, " nativesdk-qtquickcompiler-tools") | ||
31 | else: | ||
32 | d.appendVar('DEPENDS', " qtquickcompiler qtquickcompiler-native") | ||
33 | d.appendVar('EXTRA_QMAKEVARS_PRE', " CONFIG+=qtquickcompiler CONFIG+=no_qtquickcompiler_depend") | ||
34 | } | ||
diff --git a/classes/local-sources.bbclass b/classes/sdk-sources.bbclass index b7c68fb..1c3629b 100644 --- a/classes/local-sources.bbclass +++ b/classes/sdk-sources.bbclass | |||
@@ -30,9 +30,13 @@ python do_fetch () { | |||
30 | uris = list(src_uri); | 30 | uris = list(src_uri); |
31 | for url in uris: | 31 | for url in uris: |
32 | ud = list(bb.fetch2.decodeurl(url)) | 32 | ud = list(bb.fetch2.decodeurl(url)) |
33 | if ("local-uri" in ud[5]): | 33 | if ("sdk-uri" in ud[5]): |
34 | src_uri.remove(url) | 34 | src_uri.remove(url) |
35 | 35 | ||
36 | |||
37 | if len(src_uri) == 0: | ||
38 | return | ||
39 | |||
36 | try: | 40 | try: |
37 | fetcher = bb.fetch2.Fetch(src_uri, d) | 41 | fetcher = bb.fetch2.Fetch(src_uri, d) |
38 | fetcher.download() | 42 | fetcher.download() |
@@ -52,10 +56,13 @@ python do_unpack () { | |||
52 | uris = list(src_uri); | 56 | uris = list(src_uri); |
53 | for url in uris: | 57 | for url in uris: |
54 | ud = list(bb.fetch2.decodeurl(url)) | 58 | ud = list(bb.fetch2.decodeurl(url)) |
55 | if ("local-uri" in ud[5]): | 59 | if ("sdk-uri" in ud[5]): |
56 | unpack_local_uri(ud, d) | 60 | unpack_local_uri(ud, d) |
57 | src_uri.remove(url) | 61 | src_uri.remove(url) |
58 | 62 | ||
63 | if len(src_uri) == 0: | ||
64 | return | ||
65 | |||
59 | try: | 66 | try: |
60 | fetcher = bb.fetch2.Fetch(src_uri, d) | 67 | fetcher = bb.fetch2.Fetch(src_uri, d) |
61 | fetcher.unpack(rootdir) | 68 | fetcher.unpack(rootdir) |
@@ -69,9 +76,11 @@ def unpack_local_uri(ud, d): | |||
69 | sdk_path = d.getVar('QT_SDK_PATH', True) | 76 | sdk_path = d.getVar('QT_SDK_PATH', True) |
70 | 77 | ||
71 | destdir = os.path.join(rootdir, ud[5].get("destsuffix", "git")) | 78 | destdir = os.path.join(rootdir, ud[5].get("destsuffix", "git")) |
72 | srcdir = os.path.join(sdk_path, ud[5].get("local-uri")) | 79 | srcdir = os.path.join(sdk_path, ud[5].get("sdk-uri")) |
73 | cmd = "cp -vrf %s %s" % (srcdir, destdir) | 80 | cmd = "cp -vrf %s %s" % (srcdir, destdir) |
74 | 81 | ||
82 | bb.note("Unpacking SDK sources %s to %s" % (srcdir, destdir)) | ||
83 | |||
75 | if os.path.exists(destdir): | 84 | if os.path.exists(destdir): |
76 | bb.utils.prunedir(destdir) | 85 | bb.utils.prunedir(destdir) |
77 | 86 | ||
diff --git a/conf/bblayers.conf.bbb.sample b/conf/bblayers.conf.bbb.sample index f7374a0..e2d95d3 100644 --- a/conf/bblayers.conf.bbb.sample +++ b/conf/bblayers.conf.bbb.sample | |||
@@ -34,6 +34,10 @@ BBLAYERS ?= " \ | |||
34 | ${BSPDIR}/sources/meta-beagleboard/common-bsp \ | 34 | ${BSPDIR}/sources/meta-beagleboard/common-bsp \ |
35 | ${BSPDIR}/sources/meta-ti \ | 35 | ${BSPDIR}/sources/meta-ti \ |
36 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ | 36 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ |
37 | ${BSPDIR}/sources/meta-openembedded/meta-python \ | ||
38 | ${BSPDIR}/sources/meta-openembedded/meta-networking \ | ||
39 | ${BSPDIR}/sources/meta-qt5 \ | ||
40 | ${BSPDIR}/sources/meta-openembedded/meta-ruby \ | ||
37 | ${BSPDIR}/sources/meta-b2qt \ | 41 | ${BSPDIR}/sources/meta-b2qt \ |
38 | ${BSPDIR}/sources/meta-b2qt/meta-ti-extras \ | 42 | ${BSPDIR}/sources/meta-b2qt/meta-ti-extras \ |
39 | ${BSPDIR}/sources/meta-b2qt/meta-beagleboard-extras \ | 43 | ${BSPDIR}/sources/meta-b2qt/meta-beagleboard-extras \ |
diff --git a/conf/bblayers.conf.emulator.sample b/conf/bblayers.conf.emulator.sample index c961b9f..1e65b47 100644 --- a/conf/bblayers.conf.emulator.sample +++ b/conf/bblayers.conf.emulator.sample | |||
@@ -32,6 +32,10 @@ BBLAYERS ?= " \ | |||
32 | ${BSPDIR}/sources/poky/meta \ | 32 | ${BSPDIR}/sources/poky/meta \ |
33 | ${BSPDIR}/sources/poky/meta-yocto \ | 33 | ${BSPDIR}/sources/poky/meta-yocto \ |
34 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ | 34 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ |
35 | ${BSPDIR}/sources/meta-openembedded/meta-python \ | ||
36 | ${BSPDIR}/sources/meta-openembedded/meta-networking \ | ||
37 | ${BSPDIR}/sources/meta-qt5 \ | ||
38 | ${BSPDIR}/sources/meta-openembedded/meta-ruby \ | ||
35 | ${BSPDIR}/sources/meta-b2qt \ | 39 | ${BSPDIR}/sources/meta-b2qt \ |
36 | " | 40 | " |
37 | BBLAYERS_NON_REMOVABLE ?= " \ | 41 | BBLAYERS_NON_REMOVABLE ?= " \ |
diff --git a/conf/bblayers.conf.fsl.sample b/conf/bblayers.conf.fsl.sample index c867cda..71c3a2f 100644 --- a/conf/bblayers.conf.fsl.sample +++ b/conf/bblayers.conf.fsl.sample | |||
@@ -34,6 +34,10 @@ BBLAYERS ?= " \ | |||
34 | ${BSPDIR}/sources/meta-fsl-arm \ | 34 | ${BSPDIR}/sources/meta-fsl-arm \ |
35 | ${BSPDIR}/sources/meta-fsl-arm-extra \ | 35 | ${BSPDIR}/sources/meta-fsl-arm-extra \ |
36 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ | 36 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ |
37 | ${BSPDIR}/sources/meta-openembedded/meta-python \ | ||
38 | ${BSPDIR}/sources/meta-openembedded/meta-networking \ | ||
39 | ${BSPDIR}/sources/meta-qt5 \ | ||
40 | ${BSPDIR}/sources/meta-openembedded/meta-ruby \ | ||
37 | ${BSPDIR}/sources/meta-b2qt \ | 41 | ${BSPDIR}/sources/meta-b2qt \ |
38 | ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \ | 42 | ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \ |
39 | " | 43 | " |
diff --git a/conf/bblayers.conf.rpi.sample b/conf/bblayers.conf.rpi.sample index d6bda2e..2cee63a 100644 --- a/conf/bblayers.conf.rpi.sample +++ b/conf/bblayers.conf.rpi.sample | |||
@@ -33,7 +33,12 @@ BBLAYERS ?= " \ | |||
33 | ${BSPDIR}/sources/poky/meta-yocto \ | 33 | ${BSPDIR}/sources/poky/meta-yocto \ |
34 | ${BSPDIR}/sources/meta-raspberrypi \ | 34 | ${BSPDIR}/sources/meta-raspberrypi \ |
35 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ | 35 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ |
36 | ${BSPDIR}/sources/meta-openembedded/meta-python \ | ||
37 | ${BSPDIR}/sources/meta-openembedded/meta-networking \ | ||
38 | ${BSPDIR}/sources/meta-qt5 \ | ||
39 | ${BSPDIR}/sources/meta-openembedded/meta-ruby \ | ||
36 | ${BSPDIR}/sources/meta-b2qt \ | 40 | ${BSPDIR}/sources/meta-b2qt \ |
41 | ${BSPDIR}/sources/meta-b2qt/meta-raspberrypi-extras \ | ||
37 | " | 42 | " |
38 | BBLAYERS_NON_REMOVABLE ?= " \ | 43 | BBLAYERS_NON_REMOVABLE ?= " \ |
39 | ${BSPDIR}/sources/poky/meta \ | 44 | ${BSPDIR}/sources/poky/meta \ |
diff --git a/conf/bblayers.conf.sample b/conf/bblayers.conf.sample index d01c12a..f306303 100644 --- a/conf/bblayers.conf.sample +++ b/conf/bblayers.conf.sample | |||
@@ -38,6 +38,8 @@ BBLAYERS ?= " \ | |||
38 | ${BSPDIR}/sources/meta-raspberrypi \ | 38 | ${BSPDIR}/sources/meta-raspberrypi \ |
39 | ${BSPDIR}/sources/meta-toradex \ | 39 | ${BSPDIR}/sources/meta-toradex \ |
40 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ | 40 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ |
41 | ${BSPDIR}/sources/meta-qt5 \ | ||
42 | ${BSPDIR}/sources/meta-openembedded/meta-ruby \ | ||
41 | ${BSPDIR}/sources/meta-b2qt \ | 43 | ${BSPDIR}/sources/meta-b2qt \ |
42 | ${BSPDIR}/sources/meta-b2qt/meta-ti-extras \ | 44 | ${BSPDIR}/sources/meta-b2qt/meta-ti-extras \ |
43 | ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \ | 45 | ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \ |
diff --git a/conf/bblayers.conf.ti.sample b/conf/bblayers.conf.ti.sample index df762a1..be4d670 100644 --- a/conf/bblayers.conf.ti.sample +++ b/conf/bblayers.conf.ti.sample | |||
@@ -33,6 +33,10 @@ BBLAYERS ?= " \ | |||
33 | ${BSPDIR}/sources/poky/meta-yocto \ | 33 | ${BSPDIR}/sources/poky/meta-yocto \ |
34 | ${BSPDIR}/sources/meta-ti \ | 34 | ${BSPDIR}/sources/meta-ti \ |
35 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ | 35 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ |
36 | ${BSPDIR}/sources/meta-openembedded/meta-python \ | ||
37 | ${BSPDIR}/sources/meta-openembedded/meta-networking \ | ||
38 | ${BSPDIR}/sources/meta-qt5 \ | ||
39 | ${BSPDIR}/sources/meta-openembedded/meta-ruby \ | ||
36 | ${BSPDIR}/sources/meta-b2qt \ | 40 | ${BSPDIR}/sources/meta-b2qt \ |
37 | ${BSPDIR}/sources/meta-b2qt/meta-ti-extras \ | 41 | ${BSPDIR}/sources/meta-b2qt/meta-ti-extras \ |
38 | " | 42 | " |
diff --git a/conf/bblayers.conf.tibidabo.sample b/conf/bblayers.conf.tibidabo.sample index c12cde1..e827ae3 100644 --- a/conf/bblayers.conf.tibidabo.sample +++ b/conf/bblayers.conf.tibidabo.sample | |||
@@ -32,8 +32,12 @@ BBLAYERS ?= " \ | |||
32 | ${BSPDIR}/sources/poky/meta \ | 32 | ${BSPDIR}/sources/poky/meta \ |
33 | ${BSPDIR}/sources/poky/meta-yocto \ | 33 | ${BSPDIR}/sources/poky/meta-yocto \ |
34 | ${BSPDIR}/sources/meta-fsl-arm \ | 34 | ${BSPDIR}/sources/meta-fsl-arm \ |
35 | ${BSPDIR}/sources/meta-fsl-arm-extra \ | ||
35 | ${BSPDIR}/sources/meta-tibidabo \ | 36 | ${BSPDIR}/sources/meta-tibidabo \ |
36 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ | 37 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ |
38 | ${BSPDIR}/sources/meta-openembedded/meta-python \ | ||
39 | ${BSPDIR}/sources/meta-openembedded/meta-networking \ | ||
40 | ${BSPDIR}/sources/meta-qt5 \ | ||
37 | ${BSPDIR}/sources/meta-b2qt \ | 41 | ${BSPDIR}/sources/meta-b2qt \ |
38 | ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \ | 42 | ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \ |
39 | ${BSPDIR}/sources/meta-b2qt/meta-architech-extras \ | 43 | ${BSPDIR}/sources/meta-b2qt/meta-architech-extras \ |
diff --git a/conf/bblayers.conf.toradex.sample b/conf/bblayers.conf.toradex.sample index 00c64f7..e0a77f6 100644 --- a/conf/bblayers.conf.toradex.sample +++ b/conf/bblayers.conf.toradex.sample | |||
@@ -35,6 +35,10 @@ BBLAYERS ?= " \ | |||
35 | ${BSPDIR}/sources/meta-fsl-arm-extra \ | 35 | ${BSPDIR}/sources/meta-fsl-arm-extra \ |
36 | ${BSPDIR}/sources/meta-toradex \ | 36 | ${BSPDIR}/sources/meta-toradex \ |
37 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ | 37 | ${BSPDIR}/sources/meta-openembedded/meta-oe \ |
38 | ${BSPDIR}/sources/meta-openembedded/meta-python \ | ||
39 | ${BSPDIR}/sources/meta-openembedded/meta-networking \ | ||
40 | ${BSPDIR}/sources/meta-qt5 \ | ||
41 | ${BSPDIR}/sources/meta-openembedded/meta-ruby \ | ||
38 | ${BSPDIR}/sources/meta-b2qt \ | 42 | ${BSPDIR}/sources/meta-b2qt \ |
39 | ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \ | 43 | ${BSPDIR}/sources/meta-b2qt/meta-fsl-extras \ |
40 | ${BSPDIR}/sources/meta-b2qt/meta-toradex-extras \ | 44 | ${BSPDIR}/sources/meta-b2qt/meta-toradex-extras \ |
diff --git a/conf/distro/b2qt.conf b/conf/distro/b2qt.conf index 5d8ba73..ac635d8 100644 --- a/conf/distro/b2qt.conf +++ b/conf/distro/b2qt.conf | |||
@@ -24,7 +24,7 @@ include conf/distro/poky.conf | |||
24 | 24 | ||
25 | DISTRO = "b2qt" | 25 | DISTRO = "b2qt" |
26 | DISTRO_NAME = "Boot to Qt for Embedded Linux" | 26 | DISTRO_NAME = "Boot to Qt for Embedded Linux" |
27 | DISTRO_VERSION = "1.6" | 27 | DISTRO_VERSION = "1.7" |
28 | SDK_VERSION := "${DISTRO_VERSION}" | 28 | SDK_VERSION := "${DISTRO_VERSION}" |
29 | 29 | ||
30 | MAINTAINER = "B2Qt <B2Qt@digia.com>" | 30 | MAINTAINER = "B2Qt <B2Qt@digia.com>" |
@@ -33,20 +33,21 @@ SANITY_TESTED_DISTROS += " \ | |||
33 | Ubuntu 11.04 \n \ | 33 | Ubuntu 11.04 \n \ |
34 | LinuxMint-14 \n \ | 34 | LinuxMint-14 \n \ |
35 | LinuxMint-16 \n \ | 35 | LinuxMint-16 \n \ |
36 | LinuxMint-17.1 \n \ | ||
36 | " | 37 | " |
37 | 38 | ||
38 | SYSVINIT_ENABLED_GETTYS = "" | 39 | SYSVINIT_ENABLED_GETTYS = "" |
39 | 40 | ||
40 | DISTRO_FEATURES_DEFAULT = "alsa argp bluetooth ext2 largefile usbgadget usbhost wifi xattr nfs" | 41 | DISTRO_FEATURES_DEFAULT = "alsa argp bluetooth ext2 largefile usbgadget usbhost wifi xattr nfs webengine" |
41 | POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl multiarch" | 42 | POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl multiarch" |
42 | DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio" | 43 | DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio" |
43 | 44 | ||
45 | # use GStreamer 0.10, optionally change to "gstreamer" to use GStreamer 1.0 | ||
46 | DISTRO_FEATURES += "gstreamer010" | ||
47 | |||
44 | PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo" | 48 | PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo" |
45 | PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo-native" | 49 | PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo-native" |
46 | 50 | ||
47 | COMMERCIAL_AUDIO_PLUGINS ?= "gst-plugins-ugly-mad gst-plugins-ugly-mpegaudioparse" | ||
48 | COMMERCIAL_VIDEO_PLUGINS ?= "gst-plugins-ugly-mpeg2dec gst-plugins-ugly-mpegstream gst-plugins-bad-mpegvideoparse" | ||
49 | |||
50 | MACHINE_EXTRA_INSTALL ?= "" | 51 | MACHINE_EXTRA_INSTALL ?= "" |
51 | MACHINE_EXTRA_INSTALL_SDK ?= "" | 52 | MACHINE_EXTRA_INSTALL_SDK ?= "" |
52 | MACHINE_EXTRA_INSTALL_SDK_HOST ?= "" | 53 | MACHINE_EXTRA_INSTALL_SDK_HOST ?= "" |
diff --git a/conf/distro/include/am335x-evm.conf b/conf/distro/include/am335x-evm.conf index 401dc64..d8ae042 100644 --- a/conf/distro/include/am335x-evm.conf +++ b/conf/distro/include/am335x-evm.conf | |||
@@ -26,6 +26,11 @@ BOOTFS_CONTENT = "\ | |||
26 | " | 26 | " |
27 | BOOTFS_DEPENDS = "u-boot:do_deploy" | 27 | BOOTFS_DEPENDS = "u-boot:do_deploy" |
28 | 28 | ||
29 | DISTRO_FEATURES_remove = "webengine" | ||
30 | |||
31 | PREFERRED_PROVIDER_virtual/egl = "libgles-omap3" | ||
32 | PREFERRED_PROVIDER_virtual/libgles2 = "libgles-omap3" | ||
33 | |||
29 | PREFERRED_VERSION_libgles-omap3 = "5.01.01.01" | 34 | PREFERRED_VERSION_libgles-omap3 = "5.01.01.01" |
30 | PREFERRED_VERSION_omap3-sgx-modules = "5.01.01.01" | 35 | PREFERRED_VERSION_omap3-sgx-modules = "5.01.01.01" |
31 | 36 | ||
@@ -33,10 +38,8 @@ MACHINE_EXTRA_INSTALL = "\ | |||
33 | libgles-omap3 \ | 38 | libgles-omap3 \ |
34 | libgles-omap3-rawdemos \ | 39 | libgles-omap3-rawdemos \ |
35 | lighttpd \ | 40 | lighttpd \ |
36 | wayland \ | ||
37 | " | 41 | " |
38 | 42 | ||
39 | MACHINE_EXTRA_INSTALL_SDK = "\ | 43 | MACHINE_EXTRA_INSTALL_SDK = "\ |
40 | libgles-omap3-dev \ | 44 | libgles-omap3-dev \ |
41 | wayland-dev \ | ||
42 | " | 45 | " |
diff --git a/conf/distro/include/apalis-imx6.conf b/conf/distro/include/apalis-imx6.conf index 0d69898..2ceb4fe 100644 --- a/conf/distro/include/apalis-imx6.conf +++ b/conf/distro/include/apalis-imx6.conf | |||
@@ -21,20 +21,26 @@ | |||
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | include conf/distro/include/toradex.inc | 23 | include conf/distro/include/toradex.inc |
24 | include conf/distro/include/imx6.inc | ||
25 | |||
26 | KERNEL_IMAGETYPE = "uImage" | ||
24 | 27 | ||
25 | BOOTFS_CONTENT = "\ | 28 | BOOTFS_CONTENT = "\ |
26 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ | 29 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ |
27 | ${KERNEL_IMAGETYPE}-imx6q-apalis-eval.dtb:imx6q-apalis-eval.dtb \ | 30 | ${KERNEL_IMAGETYPE}-imx6q-apalis-eval.dtb:imx6q-apalis-eval.dtb \ |
31 | ${KERNEL_IMAGETYPE}-imx6q-apalis-eval_v1_0.dtb:imx6q-apalis-eval_v1_0.dtb \ | ||
28 | u-boot-${MACHINE}.imx:u-boot.imx \ | 32 | u-boot-${MACHINE}.imx:u-boot.imx \ |
29 | flash_mmc-${MACHINE}.img:flash_mmc.img \ | 33 | flash_mmc-${MACHINE}.img:flash_mmc.img \ |
34 | flash_blk-${MACHINE}.img:flash_blk.img \ | ||
30 | " | 35 | " |
31 | BOOTFS_DEPENDS = "u-boot:do_deploy" | 36 | BOOTFS_DEPENDS = "u-boot:do_deploy u-boot-script-toradex:do_deploy virtual/kernel:do_deploy" |
32 | 37 | ||
33 | MACHINE_EXTRA_INSTALL = "\ | 38 | MACHINE_EXTRA_INSTALL = "\ |
34 | libgal-mx6 \ | 39 | libgal-mx6 \ |
35 | libegl-mx6 \ | 40 | libegl-mx6 \ |
36 | libgles2-mx6 \ | 41 | libgles2-mx6 \ |
37 | gst-fsl-plugin \ | 42 | ${@base_contains("DISTRO_FEATURES", "gstreamer010", "gst-fsl-plugin", "", d)} \ |
43 | ${@base_contains("DISTRO_FEATURES", "gstreamer", "gstreamer1.0-plugins-imx-meta", "", d)} \ | ||
38 | " | 44 | " |
39 | 45 | ||
40 | MACHINE_EXTRA_INSTALL_SDK = " \ | 46 | MACHINE_EXTRA_INSTALL_SDK = " \ |
diff --git a/conf/distro/include/beagleboard.conf b/conf/distro/include/beagleboard.conf index 87c986c..b597481 100644 --- a/conf/distro/include/beagleboard.conf +++ b/conf/distro/include/beagleboard.conf | |||
@@ -26,6 +26,9 @@ BOOTFS_CONTENT = "\ | |||
26 | " | 26 | " |
27 | BOOTFS_DEPENDS = "u-boot:do_deploy" | 27 | BOOTFS_DEPENDS = "u-boot:do_deploy" |
28 | 28 | ||
29 | PREFERRED_PROVIDER_virtual/egl = "libgles-omap3" | ||
30 | PREFERRED_PROVIDER_virtual/libgles2 = "libgles-omap3" | ||
31 | |||
29 | PREFERRED_VERSION_libgles-omap3 = "4.09.00.01" | 32 | PREFERRED_VERSION_libgles-omap3 = "4.09.00.01" |
30 | PREFERRED_VERSION_omap3-sgx-modules = "4.09.00.01" | 33 | PREFERRED_VERSION_omap3-sgx-modules = "4.09.00.01" |
31 | 34 | ||
diff --git a/conf/distro/include/beaglebone.conf b/conf/distro/include/beaglebone.conf index 96662d6..93cd569 100644 --- a/conf/distro/include/beaglebone.conf +++ b/conf/distro/include/beaglebone.conf | |||
@@ -24,9 +24,14 @@ BOOTFS_DEPENDS = "u-boot:do_deploy u-boot-uenv-script:do_deploy" | |||
24 | 24 | ||
25 | EXTRA_IMAGEDEPENDS += "u-boot-uenv-script" | 25 | EXTRA_IMAGEDEPENDS += "u-boot-uenv-script" |
26 | 26 | ||
27 | DISTRO_FEATURES_remove = "webengine" | ||
28 | |||
27 | PREFERRED_VERSION_libgles-omap3 = "4.10.00.01" | 29 | PREFERRED_VERSION_libgles-omap3 = "4.10.00.01" |
28 | PREFERRED_VERSION_omap3-sgx-modules = "4.10.00.01" | 30 | PREFERRED_VERSION_omap3-sgx-modules = "4.10.00.01" |
29 | 31 | ||
32 | PREFERRED_PROVIDER_virtual/egl = "libgles-omap3" | ||
33 | PREFERRED_PROVIDER_virtual/libgles2 = "libgles-omap3" | ||
34 | |||
30 | PREFERRED_PROVIDER_u-boot = "u-boot" | 35 | PREFERRED_PROVIDER_u-boot = "u-boot" |
31 | EXTRA_IMAGEDEPENDS_remove = "u-boot-denx" | 36 | EXTRA_IMAGEDEPENDS_remove = "u-boot-denx" |
32 | UBOOT_MACHINE = "am335x_boneblack_config" | 37 | UBOOT_MACHINE = "am335x_boneblack_config" |
diff --git a/conf/distro/include/colibri-imx6.conf b/conf/distro/include/colibri-imx6.conf new file mode 100644 index 0000000..fcf716a --- /dev/null +++ b/conf/distro/include/colibri-imx6.conf | |||
@@ -0,0 +1,51 @@ | |||
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 | |||
23 | include conf/distro/include/toradex.inc | ||
24 | include conf/distro/include/imx6.inc | ||
25 | |||
26 | KERNEL_IMAGETYPE = "uImage" | ||
27 | |||
28 | BOOTFS_CONTENT = "\ | ||
29 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ | ||
30 | ${KERNEL_IMAGETYPE}-imx6dl-colibri-eval-v3.dtb:imx6dl-colibri-eval-v3.dtb \ | ||
31 | ${KERNEL_IMAGETYPE}-imx6dl-colibri-cam-eval-v3.dtb:imx6dl-colibri-cam-eval-v3.dtb \ | ||
32 | u-boot-${MACHINE}.imx:u-boot.imx \ | ||
33 | " | ||
34 | BOOTFS_DEPENDS = "u-boot:do_deploy virtual/kernel:do_deploy" | ||
35 | |||
36 | MACHINE_EXTRA_INSTALL = "\ | ||
37 | libgal-mx6 \ | ||
38 | libegl-mx6 \ | ||
39 | libgles2-mx6 \ | ||
40 | gst-fsl-plugin \ | ||
41 | ${@base_contains("DISTRO_FEATURES", "gstreamer010", "gst-fsl-plugin", "", d)} \ | ||
42 | ${@base_contains("DISTRO_FEATURES", "gstreamer", "gstreamer1.0-plugins-imx-meta", "", d)} \ | ||
43 | " | ||
44 | |||
45 | MACHINE_EXTRA_INSTALL_SDK = " \ | ||
46 | libgal-mx6 \ | ||
47 | libegl-mx6 \ | ||
48 | libegl-mx6-dev \ | ||
49 | libgles2-mx6 \ | ||
50 | libgles2-mx6-dev \ | ||
51 | " | ||
diff --git a/conf/distro/include/colibri-vf.conf b/conf/distro/include/colibri-vf.conf index df85419..d92410c 100644 --- a/conf/distro/include/colibri-vf.conf +++ b/conf/distro/include/colibri-vf.conf | |||
@@ -23,13 +23,16 @@ | |||
23 | include conf/distro/include/toradex.inc | 23 | include conf/distro/include/toradex.inc |
24 | 24 | ||
25 | BOOTFS_CONTENT = "\ | 25 | BOOTFS_CONTENT = "\ |
26 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ | 26 | u-boot-nand-${MACHINE}.imx:u-boot-nand.imx \ |
27 | u-boot-${MACHINE}.imx:u-boot.imx \ | 27 | flash_mmc-${MACHINE}.img:flash_mmc.img \ |
28 | flash_blk-${MACHINE}.img:flash_blk.img \ | ||
28 | " | 29 | " |
29 | BOOTFS_DEPENDS = "u-boot:do_deploy" | 30 | BOOTFS_DEPENDS = "u-boot:do_deploy u-boot-script-toradex:do_deploy virtual/kernel:do_deploy" |
30 | 31 | ||
31 | SERIAL_CONSOLES = "115200;ttymxc0 \ | 32 | PREFERRED_PROVIDER_virtual/egl = "opengldummy" |
32 | 115200;ttymxc1" | 33 | PREFERRED_PROVIDER_virtual/libgles2 = "opengldummy" |
34 | |||
35 | DISTRO_FEATURES_remove = "webengine" | ||
33 | 36 | ||
34 | MACHINE_EXTRA_INSTALL = "\ | 37 | MACHINE_EXTRA_INSTALL = "\ |
35 | opengldummy \ | 38 | opengldummy \ |
diff --git a/conf/distro/include/emulator.conf b/conf/distro/include/emulator.conf index 3888cc5..0457756 100644 --- a/conf/distro/include/emulator.conf +++ b/conf/distro/include/emulator.conf | |||
@@ -29,12 +29,25 @@ MACHINE_EXTRA_RRECOMMENDS += "\ | |||
29 | kernel-module-snd-intel8x0 \ | 29 | kernel-module-snd-intel8x0 \ |
30 | " | 30 | " |
31 | 31 | ||
32 | kernel_autoload_snd-intel8x0 = "snd-intel8x0" | 32 | PREFERRED_PROVIDER_virtual/egl = "qtglesstream-dummy-client" |
33 | PREFERRED_PROVIDER_virtual/libgles2 = "qtglesstream-dummy-client" | ||
34 | |||
35 | KERNEL_MODULE_AUTOLOAD += "snd-intel8x0 vboxguest" | ||
36 | |||
37 | DISTRO_FEATURES_remove = "webengine" | ||
33 | 38 | ||
34 | MACHINE_EXTRA_INSTALL = "\ | 39 | MACHINE_EXTRA_INSTALL = "\ |
35 | mount-vboxsf \ | 40 | mount-vboxsf \ |
36 | " | 41 | " |
37 | |||
38 | MACHINE_EXTRA_INSTALL_SDK = "\ | 42 | MACHINE_EXTRA_INSTALL_SDK = "\ |
39 | qtglesstream-dummy-client-dev \ | 43 | qtglesstream-dummy-client-dev \ |
40 | " | 44 | " |
45 | MACHINE_EXTRA_INSTALL_QT = "\ | ||
46 | qtglesstream \ | ||
47 | b2qt-emulator-proxy \ | ||
48 | b2qt-emulator-vinput \ | ||
49 | b2qt-emulator-sdcardmountd \ | ||
50 | " | ||
51 | MACHINE_EXTRA_INSTALL_QT_SDK = "\ | ||
52 | qtglesstream-dev \ | ||
53 | " | ||
diff --git a/conf/distro/include/imx53qsb.conf b/conf/distro/include/imx53qsb.conf index 39c4688..13eb70e 100644 --- a/conf/distro/include/imx53qsb.conf +++ b/conf/distro/include/imx53qsb.conf | |||
@@ -20,11 +20,15 @@ | |||
20 | ## | 20 | ## |
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | include conf/distro/include/imx6.inc | ||
24 | |||
23 | BOOTFS_CONTENT = "\ | 25 | BOOTFS_CONTENT = "\ |
24 | u-boot-${MACHINE}.${UBOOT_SUFFIX}:u-boot.${UBOOT_SUFFIX} \ | 26 | u-boot-${MACHINE}.${UBOOT_SUFFIX}:u-boot.${UBOOT_SUFFIX} \ |
25 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ | 27 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ |
26 | " | 28 | " |
27 | BOOTFS_DEPENDS = "u-boot:do_deploy" | 29 | BOOTFS_DEPENDS = "u-boot:do_deploy virtual/kernel:do_deploy" |
30 | |||
31 | DISTRO_FEATURES_remove = "webengine" | ||
28 | 32 | ||
29 | MACHINE_EXTRA_INSTALL = "\ | 33 | MACHINE_EXTRA_INSTALL = "\ |
30 | amd-gpu-bin-mx51 \ | 34 | amd-gpu-bin-mx51 \ |
diff --git a/conf/distro/include/imx6.inc b/conf/distro/include/imx6.inc new file mode 100644 index 0000000..5cb3814 --- /dev/null +++ b/conf/distro/include/imx6.inc | |||
@@ -0,0 +1,2 @@ | |||
1 | BBMASK ?= " " | ||
2 | BBMASK .= "|meta-fsl-arm/qt5-layer/recipes-qt/qt5" | ||
diff --git a/conf/distro/include/imx6qsabresd.conf b/conf/distro/include/imx6qsabresd.conf index 033ff07..c677500 100644 --- a/conf/distro/include/imx6qsabresd.conf +++ b/conf/distro/include/imx6qsabresd.conf | |||
@@ -20,6 +20,8 @@ | |||
20 | ## | 20 | ## |
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | include conf/distro/include/imx6.inc | ||
24 | |||
23 | BOOTFS_CONTENT = "\ | 25 | BOOTFS_CONTENT = "\ |
24 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ | 26 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ |
25 | ${KERNEL_IMAGETYPE}-imx6q-sabresd.dtb:imx6q-sabresd.dtb \ | 27 | ${KERNEL_IMAGETYPE}-imx6q-sabresd.dtb:imx6q-sabresd.dtb \ |
@@ -32,19 +34,17 @@ BOOTFS_CONTENT = "\ | |||
32 | " | 34 | " |
33 | BOOTFS_DEPENDS = "u-boot:do_deploy virtual/kernel:do_deploy" | 35 | BOOTFS_DEPENDS = "u-boot:do_deploy virtual/kernel:do_deploy" |
34 | 36 | ||
35 | PREFERRED_VERSION_gpu-viv-bin-mx6q = "3.10.17-1.0.1-hfp" | ||
36 | PREFERRED_VERSION_imx-lib = "3.10.17-1.0.0" | ||
37 | |||
38 | DISTRO_FEATURES_DEFAULT += "wayland" | 37 | DISTRO_FEATURES_DEFAULT += "wayland" |
39 | 38 | ||
40 | MACHINE_EXTRA_INSTALL = "\ | 39 | MACHINE_EXTRA_INSTALL = "\ |
41 | libgal-mx6 \ | 40 | libgal-mx6 \ |
42 | libegl-mx6 \ | 41 | libegl-mx6 \ |
43 | libgles2-mx6 \ | 42 | libgles2-mx6 \ |
44 | gst-fsl-plugin \ | 43 | ${@base_contains("DISTRO_FEATURES", "gstreamer010", "gst-fsl-plugin", "", d)} \ |
45 | wayland \ | 44 | ${@base_contains("DISTRO_FEATURES", "gstreamer", "gstreamer1.0-plugins-imx-meta", "", d)} \ |
46 | weston \ | 45 | libopencv-core \ |
47 | weston-examples \ | 46 | libopencv-imgproc \ |
47 | libopencv-objdetect \ | ||
48 | " | 48 | " |
49 | 49 | ||
50 | MACHINE_EXTRA_INSTALL_SDK = " \ | 50 | MACHINE_EXTRA_INSTALL_SDK = " \ |
@@ -53,15 +53,10 @@ MACHINE_EXTRA_INSTALL_SDK = " \ | |||
53 | libegl-mx6-dev \ | 53 | libegl-mx6-dev \ |
54 | libgles2-mx6 \ | 54 | libgles2-mx6 \ |
55 | libgles2-mx6-dev \ | 55 | libgles2-mx6-dev \ |
56 | libwayland-egl-mx6-dev \ | 56 | opencv-dev \ |
57 | libxkbcommon-dev \ | ||
58 | " | ||
59 | |||
60 | MACHINE_EXTRA_INSTALL_SDK_HOST = "\ | ||
61 | wayland-nativesdk \ | ||
62 | " | 57 | " |
63 | 58 | ||
64 | module_autoload_mxc_v4l2_capture = "mxc_v4l2_capture" | 59 | KERNEL_MODULE_AUTOLOAD += "mxc_v4l2_capture" |
65 | 60 | ||
66 | # add support for both imx6qsabresd and imx6dlsabresd | 61 | # add support for both imx6qsabresd and imx6dlsabresd |
67 | KERNEL_DEVICETREE = "imx6q-sabresd.dtb imx6q-sabresd-ldo.dtb imx6q-sabresd-hdcp.dtb \ | 62 | KERNEL_DEVICETREE = "imx6q-sabresd.dtb imx6q-sabresd-ldo.dtb imx6q-sabresd-hdcp.dtb \ |
diff --git a/conf/distro/include/nitrogen6x.conf b/conf/distro/include/nitrogen6x.conf index 088514e..819960d 100644 --- a/conf/distro/include/nitrogen6x.conf +++ b/conf/distro/include/nitrogen6x.conf | |||
@@ -20,6 +20,8 @@ | |||
20 | ## | 20 | ## |
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | include conf/distro/include/imx6.inc | ||
24 | |||
23 | BOOTFS_CONTENT = "\ | 25 | BOOTFS_CONTENT = "\ |
24 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ | 26 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ |
25 | ${KERNEL_IMAGETYPE}-imx6q-${MACHINE}.dtb:imx6q-${MACHINE}.dtb \ | 27 | ${KERNEL_IMAGETYPE}-imx6q-${MACHINE}.dtb:imx6q-${MACHINE}.dtb \ |
@@ -30,6 +32,7 @@ BOOTFS_CONTENT = "\ | |||
30 | ${KERNEL_IMAGETYPE}-imx6q-nitrogen6_max.dtb:imx6q-nitrogen6_max.dtb \ | 32 | ${KERNEL_IMAGETYPE}-imx6q-nitrogen6_max.dtb:imx6q-nitrogen6_max.dtb \ |
31 | 6x_bootscript-${MACHINE}:6x_bootscript \ | 33 | 6x_bootscript-${MACHINE}:6x_bootscript \ |
32 | 6x_upgrade-${MACHINE}:6x_upgrade \ | 34 | 6x_upgrade-${MACHINE}:6x_upgrade \ |
35 | u-boot-${MACHINE}.imx:u-boot.imx \ | ||
33 | ${KERNEL_IMAGETYPE}:update/${KERNEL_IMAGETYPE} \ | 36 | ${KERNEL_IMAGETYPE}:update/${KERNEL_IMAGETYPE} \ |
34 | ${KERNEL_IMAGETYPE}-imx6q-${MACHINE}.dtb:update/imx6q-${MACHINE}.dtb \ | 37 | ${KERNEL_IMAGETYPE}-imx6q-${MACHINE}.dtb:update/imx6q-${MACHINE}.dtb \ |
35 | ${KERNEL_IMAGETYPE}-imx6dl-${MACHINE}.dtb:update/imx6dl-${MACHINE}.dtb \ | 38 | ${KERNEL_IMAGETYPE}-imx6dl-${MACHINE}.dtb:update/imx6dl-${MACHINE}.dtb \ |
@@ -43,9 +46,6 @@ BOOTFS_DEPENDS = "u-boot:do_deploy virtual/kernel:do_deploy u-boot-script-bounda | |||
43 | 46 | ||
44 | EXTRA_IMAGEDEPENDS += "u-boot-script-boundary" | 47 | EXTRA_IMAGEDEPENDS += "u-boot-script-boundary" |
45 | 48 | ||
46 | PREFERRED_VERSION_gpu-viv-bin-mx6q = "3.10.17-1.0.1-hfp" | ||
47 | PREFERRED_VERSION_imx-lib = "3.10.17-1.0.0" | ||
48 | |||
49 | KERNEL_DEVICETREE += "imx6dl-nit6xlite.dtb" | 49 | KERNEL_DEVICETREE += "imx6dl-nit6xlite.dtb" |
50 | 50 | ||
51 | DISTRO_FEATURES_DEFAULT += "wayland" | 51 | DISTRO_FEATURES_DEFAULT += "wayland" |
@@ -54,11 +54,12 @@ MACHINE_EXTRA_INSTALL = "\ | |||
54 | libgal-mx6 \ | 54 | libgal-mx6 \ |
55 | libegl-mx6 \ | 55 | libegl-mx6 \ |
56 | libgles2-mx6 \ | 56 | libgles2-mx6 \ |
57 | gst-fsl-plugin \ | 57 | ${@base_contains("DISTRO_FEATURES", "gstreamer010", "gst-fsl-plugin", "", d)} \ |
58 | wayland \ | 58 | ${@base_contains("DISTRO_FEATURES", "gstreamer", "gstreamer1.0-plugins-imx-meta", "", d)} \ |
59 | weston \ | ||
60 | weston-examples \ | ||
61 | bcm4330-nvram-config \ | 59 | bcm4330-nvram-config \ |
60 | libopencv-core \ | ||
61 | libopencv-imgproc \ | ||
62 | libopencv-objdetect \ | ||
62 | " | 63 | " |
63 | 64 | ||
64 | MACHINE_EXTRA_INSTALL_SDK = " \ | 65 | MACHINE_EXTRA_INSTALL_SDK = " \ |
@@ -67,12 +68,7 @@ MACHINE_EXTRA_INSTALL_SDK = " \ | |||
67 | libegl-mx6-dev \ | 68 | libegl-mx6-dev \ |
68 | libgles2-mx6 \ | 69 | libgles2-mx6 \ |
69 | libgles2-mx6-dev \ | 70 | libgles2-mx6-dev \ |
70 | libwayland-egl-mx6-dev \ | 71 | opencv-dev \ |
71 | libxkbcommon-dev \ | ||
72 | " | ||
73 | |||
74 | MACHINE_EXTRA_INSTALL_SDK_HOST = "\ | ||
75 | wayland-nativesdk \ | ||
76 | " | 72 | " |
77 | 73 | ||
78 | B2QT_PLATFORM = "iMX6-eLinux" | 74 | B2QT_PLATFORM = "iMX6-eLinux" |
diff --git a/conf/distro/include/raspberrypi.conf b/conf/distro/include/raspberrypi.conf index 33f3728..ec57b19 100644 --- a/conf/distro/include/raspberrypi.conf +++ b/conf/distro/include/raspberrypi.conf | |||
@@ -28,6 +28,8 @@ BOOTFS_DEPENDS = "bcm2835-bootfiles:do_deploy virtual/kernel:do_deploy" | |||
28 | 28 | ||
29 | PREFERRED_PROVIDER_virtual/libgles1 = "userland" | 29 | PREFERRED_PROVIDER_virtual/libgles1 = "userland" |
30 | 30 | ||
31 | DISTRO_FEATURES_remove = "webengine" | ||
32 | |||
31 | MACHINE_EXTRA_INSTALL = "\ | 33 | MACHINE_EXTRA_INSTALL = "\ |
32 | userland \ | 34 | userland \ |
33 | " | 35 | " |
@@ -36,8 +38,8 @@ MACHINE_EXTRA_INSTALL_SDK = " \ | |||
36 | userland-dev \ | 38 | userland-dev \ |
37 | " | 39 | " |
38 | 40 | ||
39 | module_autoload_snd-bcm2835 = "snd-bcm2835" | 41 | KERNEL_MODULE_AUTOLOAD += "snd-bcm2835 bcm2835-v4l2" |
40 | module_autoload_bcm2835-v4l2 = "bcm2835-v4l2" | 42 | KERNEL_MODULE_PROBECONF += "bcm2835-v4l2" |
41 | module_conf_bcm2835-v4l2 = "options bcm2835-v4l2 gst_v4l2src_is_broken=1" | 43 | module_conf_bcm2835-v4l2 = "options bcm2835-v4l2 gst_v4l2src_is_broken=1" |
42 | 44 | ||
43 | # additional memory for GPU | 45 | # additional memory for GPU |
diff --git a/conf/distro/include/raspberrypi2.conf b/conf/distro/include/raspberrypi2.conf new file mode 100644 index 0000000..28989aa --- /dev/null +++ b/conf/distro/include/raspberrypi2.conf | |||
@@ -0,0 +1,45 @@ | |||
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 | |||
23 | BOOTFS_CONTENT = "\ | ||
24 | bcm2835-bootfiles/*: \ | ||
25 | ${KERNEL_IMAGETYPE}:kernel.img \ | ||
26 | " | ||
27 | BOOTFS_DEPENDS = "bcm2835-bootfiles:do_deploy virtual/kernel:do_deploy" | ||
28 | |||
29 | MACHINE_EXTRA_INSTALL = "\ | ||
30 | userland \ | ||
31 | omxplayer \ | ||
32 | " | ||
33 | |||
34 | MACHINE_EXTRA_INSTALL_SDK = " \ | ||
35 | userland \ | ||
36 | " | ||
37 | |||
38 | KERNEL_MODULE_AUTOLOAD += "snd-bcm2835 bcm2835-v4l2" | ||
39 | KERNEL_MODULE_PROBECONF += "bcm2835-v4l2" | ||
40 | module_conf_bcm2835-v4l2 = "options bcm2835-v4l2 gst_v4l2src_is_broken=1" | ||
41 | |||
42 | # additional memory for GPU | ||
43 | GPU_MEM = "256" | ||
44 | # video camera support | ||
45 | VIDEO_CAMERA = "1" | ||
diff --git a/conf/distro/include/tibidabo.conf b/conf/distro/include/tibidabo.conf index 1e5e7e0..cec9fd5 100644 --- a/conf/distro/include/tibidabo.conf +++ b/conf/distro/include/tibidabo.conf | |||
@@ -20,6 +20,10 @@ | |||
20 | ## | 20 | ## |
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | include conf/distro/include/imx6.inc | ||
24 | |||
25 | KERNEL_IMAGETYPE = "uImage" | ||
26 | |||
23 | BOOTFS_CONTENT = "\ | 27 | BOOTFS_CONTENT = "\ |
24 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ | 28 | ${KERNEL_IMAGETYPE}:${KERNEL_IMAGETYPE} \ |
25 | bootscript:bootscript \ | 29 | bootscript:bootscript \ |
@@ -30,7 +34,8 @@ MACHINE_EXTRA_INSTALL = "\ | |||
30 | libgal-mx6 \ | 34 | libgal-mx6 \ |
31 | libegl-mx6 \ | 35 | libegl-mx6 \ |
32 | libgles2-mx6 \ | 36 | libgles2-mx6 \ |
33 | gst-fsl-plugin \ | 37 | ${@base_contains("DISTRO_FEATURES", "gstreamer010", "gst-fsl-plugin", "", d)} \ |
38 | ${@base_contains("DISTRO_FEATURES", "gstreamer", "gstreamer1.0-plugins-imx-meta", "", d)} \ | ||
34 | " | 39 | " |
35 | 40 | ||
36 | MACHINE_EXTRA_INSTALL_SDK = " \ | 41 | MACHINE_EXTRA_INSTALL_SDK = " \ |
@@ -41,6 +46,4 @@ MACHINE_EXTRA_INSTALL_SDK = " \ | |||
41 | libgles2-mx6-dev \ | 46 | libgles2-mx6-dev \ |
42 | " | 47 | " |
43 | 48 | ||
44 | module_autoload_mxc_v4l2_capture = "mxc_v4l2_capture" | 49 | KERNEL_MODULE_AUTOLOAD += "mxc_v4l2_capture" |
45 | |||
46 | BBMASK += "|meta-fsl-extras/recipes/u-boot|meta-fsl-extras/recipes/linux/linux-boundary|meta-fsl-extras/recipes/broadcom-nvram-config" | ||
diff --git a/conf/distro/include/toradex.inc b/conf/distro/include/toradex.inc index 616b77f..5256eb4 100644 --- a/conf/distro/include/toradex.inc +++ b/conf/distro/include/toradex.inc | |||
@@ -1 +1,2 @@ | |||
1 | BBMASK += "|meta-toradex/recipes-mozilla|meta-toradex/recipes-browser|meta-toradex/recipes-lxde|meta-toradex/recipes-connectivity|meta-toradex/recipes-gnome|meta-toradex/recipes/trdx-config|meta-toradex/recipes-multimedia/webm|meta-toradex/recipes-qt|meta-toradex/recipes-core/psplash|meta-toradex/recipes-support/florence|meta-toradex/recipes-core/systemd|meta-toradex/recipes-efl|meta-toradex/recipes-core/dropbear" | 1 | BBMASK ?= " " |
2 | BBMASK .= "|meta-toradex/recipes-mozilla|meta-toradex/recipes-browser|meta-toradex/recipes-lxde|meta-toradex/recipes-connectivity|meta-toradex/recipes-gnome|meta-toradex/recipes/trdx-config|meta-toradex/recipes-multimedia/webm|meta-toradex/recipes-qt|meta-toradex/recipes-core/psplash|meta-toradex/recipes-support/florence|meta-toradex/recipes-core/systemd|meta-toradex/recipes-efl|meta-toradex/recipes-core/dropbear|meta-toradex/recipes-support/icu|meta-toradex/recipes-support/i2c-tools|meta-toradex/recipes-benchmark|meta-toradex/recipes-core/udev|meta-toradex/recipes-support/gnutls" | ||
diff --git a/conf/layer.conf b/conf/layer.conf index f658ce5..404957f 100644 --- a/conf/layer.conf +++ b/conf/layer.conf | |||
@@ -24,10 +24,14 @@ | |||
24 | BBPATH .= ":${LAYERDIR}" | 24 | BBPATH .= ":${LAYERDIR}" |
25 | 25 | ||
26 | # We have a recipes directory, add to BBFILES | 26 | # We have a recipes directory, add to BBFILES |
27 | BBFILES += "${LAYERDIR}/recipes*/*/*.bb \ | 27 | BBFILES += "${LAYERDIR}/recipes/*/*.bb \ |
28 | ${LAYERDIR}/recipes*/*/*.bbappend \ | 28 | ${LAYERDIR}/recipes/*/*.bbappend \ |
29 | " | 29 | " |
30 | BBFILES += "${@bb.utils.contains("BBFILE_COLLECTIONS", "qt5-layer", "${LAYERDIR}/recipes-qt/*/*.bb ${LAYERDIR}/recipes-qt/*/*.bbappend" , "", d)}" | ||
30 | 31 | ||
31 | BBFILE_COLLECTIONS += "b2qt" | 32 | BBFILE_COLLECTIONS += "b2qt" |
32 | BBFILE_PATTERN_b2qt := "^${LAYERDIR}/" | 33 | BBFILE_PATTERN_b2qt := "^${LAYERDIR}/" |
33 | BBFILE_PRIORITY_b2qt = "20" | 34 | BBFILE_PRIORITY_b2qt = "20" |
35 | |||
36 | LICENSE_PATH += "${LAYERDIR}/licenses" | ||
37 | QT_LICENCE = "${LAYERDIR}/licenses/QtEnterprise" | ||
diff --git a/conf/local.conf.sample b/conf/local.conf.sample index 474db68..595aaae 100644 --- a/conf/local.conf.sample +++ b/conf/local.conf.sample | |||
@@ -39,18 +39,14 @@ | |||
39 | # These two options control how much parallelism BitBake should use. The first | 39 | # These two options control how much parallelism BitBake should use. The first |
40 | # option determines how many tasks bitbake should run in parallel: | 40 | # option determines how many tasks bitbake should run in parallel: |
41 | # | 41 | # |
42 | BB_NUMBER_THREADS ?= "4" | ||
43 | # | ||
44 | # Default to setting automatically based on cpu count | 42 | # Default to setting automatically based on cpu count |
45 | #BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}" | 43 | BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}" |
46 | # | 44 | # |
47 | # The second option controls how many processes make should run in parallel when | 45 | # The second option controls how many processes make should run in parallel when |
48 | # running compile tasks: | 46 | # running compile tasks: |
49 | # | 47 | # |
50 | PARALLEL_MAKE ?= "-j 4" | ||
51 | # | ||
52 | # Default to setting automatically based on cpu count | 48 | # Default to setting automatically based on cpu count |
53 | #PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}" | 49 | PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}" |
54 | # | 50 | # |
55 | # For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would | 51 | # For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would |
56 | # be appropriate for example. | 52 | # be appropriate for example. |
diff --git a/licenses/QtEnterprise b/licenses/QtEnterprise new file mode 100644 index 0000000..29a4f47 --- /dev/null +++ b/licenses/QtEnterprise | |||
@@ -0,0 +1,706 @@ | |||
1 | Qt FOR DEVICE CREATION LICENSE AGREEMENT | ||
2 | Agreement version 1.5 | ||
3 | |||
4 | This Qt for Device Creation License Agreement ("Agreement") is a legal agreement | ||
5 | between The Qt Company Ltd ("The Qt Company") with its registered office at | ||
6 | Valimotie 21, 00380 Helsinki, Finland, and you (either an individual or a legal | ||
7 | entity) ("Licensee") for the Licensed Software (as defined below). | ||
8 | |||
9 | 1. DEFINITIONS "Affiliate" of a Party shall mean an entity (i) which is directly | ||
10 | or indirectly controlling such Party; (ii) which is under the same direct or | ||
11 | indirect ownership or control as such Party; or (iii) which is directly or | ||
12 | indirectly owned or controlled by such Party. For these purposes, an entity | ||
13 | shall be treated as being controlled by another if that other entity has fifty | ||
14 | percent (50 %) or more of the votes in such entity, is able to direct its | ||
15 | affairs and/or to control the composition of its board of directors or | ||
16 | equivalent body. "Applications" shall mean Licensee's software products created | ||
17 | using the Licensed Software which may include portions of the Licensed Software. | ||
18 | "Customers" shall mean the third parties to whom Licensee directly or indirectly | ||
19 | distributes copies of the Licensed Software. "Deployment Platforms" shall mean | ||
20 | those operating systems in which the Licensed Software can be distributed on | ||
21 | according to the terms and conditions of this Agreement, especially Section 5.2. | ||
22 | "Designated User(s)" shall mean the employee(s) of Licensee acting within the | ||
23 | scope of their employment or Licensee's consultant(s) or contractor(s) acting | ||
24 | within the scope of their services for Licensee and on behalf of Licensee. | ||
25 | "Development Platforms" shall mean those operating systems in which the Licensed | ||
26 | Software can be used only for designing, developing and testing Applications, | ||
27 | but not distributed in any form or used for any other purpose. "Devices" shall | ||
28 | mean devices or products that 1) are manufactured, sold or distributed by | ||
29 | Licensee that include the Licensed Software, and 2) fulfill the definition of a | ||
30 | Joint Hardware and Software Distribution. "Initial Term" shall mean the period | ||
31 | of time one (1) year from the later of (a) the Effective Date; or (b) the date | ||
32 | the Licensed Software was initially delivered to Licensee by The Qt Company. If | ||
33 | no specific Effective Date is set forth in the Agreement, the Effective Date | ||
34 | shall be deemed to be the date the Licensed Software was initially delivered to | ||
35 | Licensee. "Intellectual Property Rights" shall mean patents (including utility | ||
36 | models), design patents, and designs (whether or not capable of registration), | ||
37 | chip topography rights and other like protection, copyright, trademark and any | ||
38 | other form of statutory protection of any kind and applications for any of the | ||
39 | foregoing as well as any trade secrets. "Joint Hardware and Software | ||
40 | Distribution" shall mean either: (i) distribution of a hardware device where, in | ||
41 | its final end user configuration, the main user interface or substantial | ||
42 | functionality of the device is provided by Application(s) created by Licensee or | ||
43 | others, using Licensed Software or Licensed Software based software product, and | ||
44 | depends on the Licensed Software or an open source version of Qt or any Qt based | ||
45 | software product; or (ii) distribution of the Licensed Software with a device | ||
46 | designed to facilitate the installation of the Licensed Software onto the same | ||
47 | device where the main user interface or substantial functionality of such device | ||
48 | is provided by Application(s) created by Licensee or others, using the Licensed | ||
49 | Software, and depends on the Licensed Software. "License Certificate" shall mean | ||
50 | the document accompanying the Licensed Software which specifies the modules | ||
51 | which are licensed under the Agreement, Development Platforms, Deployment | ||
52 | Platforms and Designated Users. "License Fee" shall mean the fee charged to | ||
53 | Licensee for (i) each copy of the Licensed Software purchased, as well as (ii) | ||
54 | reproduction and distribution of Licensed Software under the terms of this | ||
55 | Agreement. "License Packs" shall mean set of prepaid Distribution Licenses, as | ||
56 | defined in Section 5.2 b). "Licensed Software" shall mean the computer software, | ||
57 | "online" or electronic documentation, associated media and printed materials, | ||
58 | including the source code, example programs and the documentation delivered by | ||
59 | The Qt Company to Licensee in conjunction with this Agreement. Licensed Software | ||
60 | does not include Third Party Software (as defined in Section 7). "Modified | ||
61 | Software" shall mean modifications made to the Licensed Software by Licensee. | ||
62 | "Nokia" shall mean Nokia Corporation, a corporation incorporated under the laws | ||
63 | of Finland, having its registered office at PO box 226, 00045 Nokia Group, | ||
64 | Finland (visiting address Karakaari 7, 02610 Espoo, Finland) and registered with | ||
65 | the Finnish Trade Register under business ID 0112038-9 and acting on behalf of | ||
66 | its respective Affiliates. "Online Services" shall mean any services or access | ||
67 | to systems provided by The Qt Company to the Licensee over Internet in | ||
68 | conjunction with the Licensed Software or for the purpose of use by the Licensee | ||
69 | of the Licensed Software or Support. Using some of the Online Services may be | ||
70 | subject to additional fees. "Party or Parties" shall mean Licensee and/or The Qt | ||
71 | Company. "Redistributables" shall mean the portions of the Licensed Software set | ||
72 | forth in Appendix 1, Section 1 that may be distributed with or as part of | ||
73 | Applications in object code form. "Renewal Term" shall mean a time period of | ||
74 | twelve months calculated from the end of the Initial Term, or from end of the | ||
75 | previous Renewal Term. "Support" shall mean standard developer support that is | ||
76 | provided by The Qt Company to assist eligible Designated Users in using the | ||
77 | Licensed Software in accordance with its established standard support | ||
78 | procedures. "Updates" shall mean a release or version of the Licensed Software | ||
79 | containing enhancements, new features, bug fixes, error corrections and other | ||
80 | changes that are generally made available to users of the Licensed Software that | ||
81 | have contracted for maintenance and support. | ||
82 | |||
83 | 2. OWNERSHIP The Licensed Software is protected by copyright laws and | ||
84 | international copyright treaties, as well as other intellectual property laws | ||
85 | and treaties. The Licensed Software is licensed, not sold. To the extent | ||
86 | Licensee submits bug fixes or error corrections, including information related | ||
87 | thereto, Licensee hereby grants The Qt Company a sublicensable, irrevocable, | ||
88 | perpetual, worldwide, non-exclusive, royalty-free and fully paid-up copyright | ||
89 | and trade secret license to reproduce, adapt, translate, modify, and prepare | ||
90 | derivative works of, publicly display, publicly perform, sublicense, make | ||
91 | available and distribute error corrections and bug fixes, including derivative | ||
92 | works thereof. All The Qt Company's and/or its licensors' trademarks, service | ||
93 | marks, trade names, logos or other words or symbols are and shall remain the | ||
94 | exclusive property of The Qt Company or its licensors respectively. | ||
95 | |||
96 | 3. MODULES Some of the files in the Licensed Software have been grouped into | ||
97 | modules. These files contain specific notices defining the module of which they | ||
98 | are a part. The modules licensed to Licensee are specified in the License | ||
99 | Certificate accompanying the Licensed Software. The terms of the License | ||
100 | Certificate are considered part of the Agreement. In the event of inconsistency | ||
101 | or conflict between the language of this Agreement and the License Certificate, | ||
102 | the provisions of this Agreement shall govern. 4. VALIDITY OF THE AGREEMENT By | ||
103 | installing, copying, or otherwise using the Licensed Software, Licensee agrees | ||
104 | to be bound by the terms of this Agreement. If Licensee does not agree to the | ||
105 | terms of this Agreement, Licensee should not install, copy, or otherwise use the | ||
106 | Licensed Software. In addition, by installing, copying, or otherwise using any | ||
107 | Updates or other components of the Licensed Software that Licensee receives | ||
108 | separately as part of the Licensed Software, Licensee agrees to be bound by any | ||
109 | additional license terms that accompany such Updates, if any. If Licensee does | ||
110 | not agree to the additional license terms that accompany such Updates, Licensee | ||
111 | should not install, copy, or otherwise use such Updates. Upon Licensee's | ||
112 | acceptance of the terms and conditions of this Agreement, The Qt Company grants | ||
113 | Licensee the right to use the Licensed Software in the manner provided below. | ||
114 | |||
115 | 5. LICENSES 5.1 Using, Modifying and Copying The Qt Company grants to Licensee a | ||
116 | non-exclusive, non-transferable, perpetual license to use, modify and copy the | ||
117 | Licensed Software for Designated Users specified in the License Certificate for | ||
118 | the sole purposes of: (i) designing, developing, and testing Application(s); | ||
119 | (ii) modifying the Licensed Software as limited by section 8 below; and (iii) | ||
120 | compiling the Licensed Software and/or Modified Software source code into object | ||
121 | code. Licensee may install copies of the Licensed Software on an unlimited | ||
122 | number of computers provided that only the Designated Users use the Licensed | ||
123 | Software. Licensee may at any time designate another Designated User to replace | ||
124 | a then-current Designated User by notifying The Qt Company, provided that a) the | ||
125 | then-current Designated User has not been designated as a replacement during the | ||
126 | last six (6) months; and b) there is no more than the specified number of | ||
127 | Designated Users at any given time. | ||
128 | |||
129 | 5.2 Right for Redistribution a) License for creating Applications For the | ||
130 | purpose of creating Applications The Qt Company grants Licensee a non-exclusive, | ||
131 | royalty-free right to reproduce and distribute the object code form of | ||
132 | Redistributables (listed in Appendix 1, Section 1) for execution on the | ||
133 | specified Deployment Platforms, excluding the Joint Hardware and Software | ||
134 | Distribution. Copies of Redistributables may only be distributed with and for | ||
135 | the sole purpose of executing Applications permitted under this Agreement that | ||
136 | Licensee has created using the Licensed Software. Under no circumstances may any | ||
137 | copies of Redistributables be distributed separately. This Agreement does not | ||
138 | give Licensee any rights to distribute any of the parts of the Licensed Software | ||
139 | listed in Appendix 1, Section 2, neither as a whole nor as parts or snippets of | ||
140 | code. Licensee may not distribute, transfer, assign or otherwise dispose of | ||
141 | Applications and/or Redistributables, in binary/compiled form, or in any other | ||
142 | form, if such action is part of a Joint Software and Hardware Distribution, | ||
143 | except as provided in Section 5.2b) below. b) License for creating Devices For | ||
144 | the purpose of creating Devices The Qt Company grants to Licensee a | ||
145 | non-exclusive, non-transferable license to (a) install copies of the compiled | ||
146 | Licensed Software (in object code form only) in Devices and/or bundle or | ||
147 | integrate copies of the Licensed Software (in object code form only) into or | ||
148 | with Devices and other services; (b) distribute Licensed Software (in object | ||
149 | code form only) to one or more tiers of distributors as incorporated or | ||
150 | integrated in Devices; and (c) sublicense the Licensed Software (in object code | ||
151 | form only), as incorporated or integrated in Devices, to end users under | ||
152 | Licensee's standard terms and conditions, which must meet the requirements set | ||
153 | out in Appendix 2 (collectively, the "Distribution License"). This Distribution | ||
154 | License does not entitle Licensee to receive, or grant Licensee any rights with | ||
155 | respect to any source code. Should any third party that has received a product, | ||
156 | software and/or a sublicense from Licensee in accordance with the provisions | ||
157 | above, wish to use the product and sublicensed software in a manner not | ||
158 | warranted in Appendix 2, such third party must request a licensing agreement for | ||
159 | this purpose directly from The Qt Company. Licensee may also reproduce and | ||
160 | distribute the Licensed Software (in object code form only) under the | ||
161 | Distribution License independent of the Device, (i.e. the Licensed Software may | ||
162 | be reproduced and distributed by Licensee to others as a stand-alone or | ||
163 | independent product or for use independent of the Device). The Distribution | ||
164 | License provided under this Section 5.2b) is conditional, subject to Licensee´s | ||
165 | full compliance of Section 14 of this Agreement. All reproduction and | ||
166 | distribution of the Licensed Software or any portion thereof requires the | ||
167 | payment of License Fees from Licensee to The Qt Company. The licenses granted in | ||
168 | this Section by The Qt Company to Licensee are subject to Licensee's compliance | ||
169 | with Section 5.3 of this Agreement. c) For the avoidance of doubt, should the | ||
170 | Licensee wish to distribute Licensed Software as a part of software development | ||
171 | kit (SDK) for the purpose of developing Applications by Licensee´s customers | ||
172 | for Licensee´s products, such distribution is subject to a separate Qt SDK | ||
173 | distribution license agreement to be concluded with The Qt Company. 5.3 Further | ||
174 | Requirements It is expressly acknowledged and understood by Licensee, that | ||
175 | Licensee is strictly prohibited from using or licensing Licensed Software for | ||
176 | creation of mobile phones or tablet computers targeted for consumer end users. | ||
177 | The aforementioned shall not prohibit Licensee from using Licensed Software for | ||
178 | the purpose of creating Applications for any devices, including mobile phones | ||
179 | and tablet computers. Notwithstanding anything contrary to this Agreement, it is | ||
180 | expressly acknowledged and understood by Licensee, that Nokia shall hereby be | ||
181 | named as a third party beneficiary under this Agreement with respect to this | ||
182 | Section 5.3. Therefore, Nokia shall have the same rights as The Qt Company under | ||
183 | this Agreement with respect to this Section 5.3, and shall be entitled to | ||
184 | exercise such rights independent from The Qt Company. The licenses granted in | ||
185 | this Section 5 by The Qt Company to Licensee are subject to Licensee's | ||
186 | compliance with Section 8 of this Agreement. | ||
187 | |||
188 | 6. VERIFICATION The Qt Company or a certified auditor on The Qt Company's | ||
189 | behalf, may, upon its reasonable request and at its expense, audit Licensee with | ||
190 | respect to the use of the Licensed Software. Such audit may be conducted by | ||
191 | mail, electronic means or through an in-person visit to Licensee's place of | ||
192 | business. Any such in-person audit shall be conducted during regular business | ||
193 | hours at Licensee's facilities and shall not unreasonably interfere with | ||
194 | Licensee's business activities. The Qt Company will not remove, copy, or | ||
195 | redistribute any electronic material during the course of an audit. If an audit | ||
196 | reveals that Licensee is using the Licensed Software in a way that is in | ||
197 | material violation of the terms of the Agreement, then Licensee shall pay The Qt | ||
198 | Company's reasonable costs of conducting the audit. In the case of a material | ||
199 | violation, Licensee agrees to pay The Qt Company any amounts owing that are | ||
200 | attributable to the unauthorized use. Alternatively, The Qt Company reserves the | ||
201 | right, at The Qt Company's sole option, to terminate the licenses for the | ||
202 | Licensed Software. | ||
203 | |||
204 | 7. THIRD PARTY SOFTWARE The Licensed Software may provide links to third party | ||
205 | libraries or code (collectively "Third Party Software") to implement various | ||
206 | functions. Third Party Software does not comprise part of the Licensed Software. | ||
207 | In some cases, access to Third Party Software may be included along with the | ||
208 | Licensed Software delivery as a convenience for development and testing only. | ||
209 | Such source code and libraries may be listed in the ".../src/3rdparty" source | ||
210 | tree delivered with the Licensed Software or documented in the Licensed Software | ||
211 | where the Third Party Software is used, as may be amended from time to time, do | ||
212 | not comprise the Licensed Software. Licensee acknowledges (i) that some part of | ||
213 | Third Party Software may require additional licensing of copyright and patents | ||
214 | from the owners of such, and (ii) that distribution of any of the Licensed | ||
215 | Software referencing any portion of a Third Party Software may require | ||
216 | appropriate licensing from such third parties. | ||
217 | |||
218 | 8. CONDITIONS FOR CREATING APPLICATIONS The licenses granted in this Agreement | ||
219 | for Licensee to create, modify and distribute Applications is subject to all of | ||
220 | the following conditions: (i) all copies of the Applications Licensee creates | ||
221 | must bear a valid copyright notice either Licensee's own or the copyright notice | ||
222 | that appears on the Licensed Software; (ii) Licensee may not remove or alter any | ||
223 | copyright, trademark or other proprietary rights notice contained in any portion | ||
224 | of the Licensed Software including but not limited to the About Boxes; (iii) | ||
225 | Licensee will indemnify and hold The Qt Company, its Affiliates, contractors, | ||
226 | and its suppliers, harmless from and against any claims or liabilities arising | ||
227 | out of the use, reproduction or distribution of Applications; (iv) Applications | ||
228 | must be developed using a licensed, registered copy of the Licensed Software; | ||
229 | (v) Applications must add primary and substantial functionality to the Licensed | ||
230 | Software; (vi) Applications may not pass on functionality which in any way makes | ||
231 | it possible for others to create software with the Licensed Software; however | ||
232 | Licensee may use the Licensed Software's scripting and QML ("Qt Quick") | ||
233 | functionality solely in order to enable scripting, themes and styles that | ||
234 | augment the functionality and appearance of the Application(s) without adding | ||
235 | primary and substantial functionality to the Application(s); (vii) Licensee may | ||
236 | create Modified Software that breaks the source or binary compatibility with the | ||
237 | Licensed Software. This includes, but is not limited to, changing the | ||
238 | application programming interfaces ("API") by adding, changing or deleting any | ||
239 | variable, method, or class signature in the Licensed Software, the inter-process | ||
240 | QCop specification, and/or any inter-process protocols, services or standards in | ||
241 | the Licensed Software libraries. To the extent that Licensee breaks source or | ||
242 | binary compatibility with the Licensed Software, Licensee acknowledges that The | ||
243 | Qt Company's ability to provide Support may be prevented or limited and | ||
244 | Licensee's ability to make use of Updates may be restricted; (viii) Applications | ||
245 | may not compete with the Licensed Software; (ix) Licensee may not use The Qt | ||
246 | Company's or any of its suppliers' names, logos, or trademarks to market | ||
247 | Applications, except to state that Licensee's Application(s) was developed using | ||
248 | the Licensed Software; and (x) each Designated User creating the Application(s) | ||
249 | needs to have a separate license for the Licensed Software. NOTE: If Licensee, | ||
250 | or another third party, has, at any time, developed all (or any portions of) the | ||
251 | Application(s) using an open source version of Qt licensed under the terms of | ||
252 | the GNU Lesser General Public License, version 2.1 or later ("LGPL") or the GNU | ||
253 | General Public License version 2.0 or later ("GPL"), Licensee may not combine | ||
254 | such development work with the Licensed Software without an express written | ||
255 | permission from The Qt Company, and must license such Application(s) (or any | ||
256 | portions derived there from) under the terms of such applicable version of LGPL | ||
257 | (Qt only) or GPL (Qt, Qtopia and Qt Extended) . Copies of the licenses referred | ||
258 | to above are located at http://www.gnu.org/licenses/old-licenses/lgpl- 2.1.html, | ||
259 | https://www.gnu.org/licenses/lgpl.html, | ||
260 | http://www.fsf.org/licensing/licenses/info/GPLv2.html, and | ||
261 | http://www.gnu.org/copyleft/gpl.html. 9. PRE-RELEASE CODE The Licensed Software | ||
262 | may contain pre-release code and functionality marked or otherwise stated as | ||
263 | "Technology Preview", "Alpha", "Beta" or similar. Such pre-release code may be | ||
264 | present in order to provide experimental support for new platforms or | ||
265 | preliminary version of new functionality. The pre-release code is not at the | ||
266 | level of performance and compatibility of a final, generally available, product | ||
267 | offering. The pre- release parts of the Licensed Software may not operate | ||
268 | correctly and may be substantially modified prior to the first commercial | ||
269 | product release, if any. The Qt Company is under no obligation to make | ||
270 | pre-release code commercially available, or provide any Support or Updates | ||
271 | relating thereto. The pre-release code must not be used for commercial purposes | ||
272 | or in a live operating environment where it may be relied upon to perform in the | ||
273 | same manner as a commercially released product or with data that has not been | ||
274 | sufficiently backed up. | ||
275 | |||
276 | 10. LIMITED WARRANTY AND WARRANTY DISCLAIMER The Qt Company hereby represents | ||
277 | and warrants with respect to the Licensed Software that it has the power and | ||
278 | authority to grant the rights and licenses granted to Licensee under this | ||
279 | Agreement. Except as set forth above, the Licensed Software is licensed to | ||
280 | Licensee "as is". TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE QT | ||
281 | COMPANY ON BEHALF OF ITSELF AND ITS LICENSORS, SUPPLIERS AND AFFILIATES, | ||
282 | DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, | ||
283 | IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE | ||
284 | AND NON-INFRINGEMENT WITH REGARD TO THE LICENSED SOFTWARE. THE QT COMPANY DOES | ||
285 | NOT WARRANT THAT THE LICENSED SOFTWARE WILL SATISFY LICENSEE'S REQUIREMENTS OR | ||
286 | THAT IT IS WITHOUT DEFECT OR ERROR OR THAT THE OPERATION THEREOF WILL BE | ||
287 | UNINTERRUPTED. ALL USE OF AND RELIANCE ON THE LICENSED SOFTWARE IS AT THE SOLE | ||
288 | RISK OF AND RESPONSIBILITY OF LICENSEE. 11. LIMITATION OF LIABILITY AND OTHER | ||
289 | COVENANTS 11.1 Risk Allocation If, The Qt Company's warranty disclaimer | ||
290 | notwithstanding, The Qt Company is held to be liable to Licensee whether in | ||
291 | contract, tort, or any other legal theory, based on the Licensed Software, The | ||
292 | Qt Company's entire liability to Licensee and Licensee's exclusive remedy shall | ||
293 | be, at The Qt Company's option, either (a) return of the price Licensee paid for | ||
294 | the Licensed Software, or (b) repair or replacement of the Licensed Software, | ||
295 | provided Licensee returns all copies of the Licensed Software to The Qt Company | ||
296 | as originally delivered to Licensee. EXCEPT FOR INJURY TO PERSONS OR IN CASES OF | ||
297 | INTENTIONAL MISCONDUCT AND IN CASE OF THE LICENSEE WITH RESPECT TO AMOUNTS | ||
298 | PAYABLE UNDER SECTION 14 OR LICENSEE'S MATERIAL BREACH OF THIS AGREEMENT AND TO | ||
299 | THE EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL EITHER PARTY BE LIABLE | ||
300 | TO THE OTHER PARTY IN CONTRACT, TORT OR OTHERWISE, WHATEVER THE CAUSE THEREOF, | ||
301 | FOR ANY LOSS OF PROFIT, LOSS OF DATA, LOSS OF BUSINESS OR GOODWILL OR ANY | ||
302 | INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE COST, DAMAGES OR | ||
303 | EXPENSE OF ANY KIND, HOWSOEVER ARISING UNDER OR IN CONNECTION WITH THIS | ||
304 | AGREEMENT. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, LIABILITY FOR SUCH | ||
305 | DAMAGE SHALL BE EXCLUDED, EVEN IF THE EXCLUSIVE REMEDIES PROVIDED FOR IN THIS | ||
306 | AGREEMENT FAIL OF THEIR ESSENTIAL PURPOSE. EXCEPT FOR INJURY TO PERSONS OR IN | ||
307 | CASES OF INTENTIONAL MISCONDUCT AND IN CASE OF THE LICENSEE WITH RESPECT TO | ||
308 | AMOUNTS PAYABLE UNDER SECTION 14 OR LICENSEE'S MATERIAL BREACH OF THIS AGREEMENT | ||
309 | AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL EITHER PARTY'S | ||
310 | TOTAL AGGREGATE LIABILITY UNDER THIS AGREEMENT EXCEED THE AGGREGATE LICENSE FEES | ||
311 | RECEIVED FROM LICENSEE FOR THE LICENSED SOFTWARE DURING THE PERIOD OF TWELVE | ||
312 | (12) MONTHS IMMEDIATELY PRECEDING THE EVENT RESULTING IN SUCH LIABILITY. THE | ||
313 | PROVISIONS OF THIS SECTION 11 ALLOCATE THE RISKS UNDER THIS AGREEMENT BETWEEN | ||
314 | THE QT COMPANY AND LICENSEE AND THE PARTIES HAVE RELIED UPON THE LIMITATIONS SET | ||
315 | FORTH HEREIN IN DETERMINING WHETHER TO ENTER INTO THIS AGREEMENT 11.2 No Third | ||
316 | Party Representations, Warranties or Transfers Licensee shall make no | ||
317 | representations or warranties concerning the Licensed Software on behalf of The | ||
318 | Qt Company, nor shall Licensee sell, transfer, publish, disclose, display or | ||
319 | otherwise make available the Licensed Software, or copies thereof, to any third | ||
320 | party except as specifically set forth herein or in another written agreement | ||
321 | with The Qt Company. Any representation or warranty Licensee makes or purports | ||
322 | to make on The Qt Company's behalf shall be void as to The Qt Company. 11.3 | ||
323 | Licensee´s Indemnification Licensee shall indemnify and hold harmless The Qt | ||
324 | Company and its officers, directors, employees, representative, licensors, and | ||
325 | suppliers from and against any claim, injury, judgment, settlement, loss or | ||
326 | expense, including attorneys' fees, arising as a consequence of: (a) Licensee's | ||
327 | breach of its warranties or any other provisions of this Agreement, including, | ||
328 | but not limited to, (i) the failure of Licensee to comply with the provisions of | ||
329 | this Section 11, (ii) any misrepresentations of Licensee in connection with The | ||
330 | Qt Company or the Licensed Software, and (iii) any other wrongful conduct of | ||
331 | Licensee, its employees, representatives, agents, or (b) the Device. 12. | ||
332 | SUPPORT, UPDATES AND ONLINE SERVICES Licensee will be eligible to receive | ||
333 | Support and Updates and to use the Online Services during the Initial Term, in | ||
334 | accordance with The Qt Company's then current policies and procedures, if any. | ||
335 | Such policies and procedures may be changed from time to time. Following the | ||
336 | Initial Term, The Qt Company shall no longer make the Licensed Software, | ||
337 | Support, Updates or Online Services available to Licensee unless Licensee | ||
338 | purchases additional Support, Updates and Online Services according to this | ||
339 | Section 12 below. Licensee shall be responsible for providing service and | ||
340 | support to Licensee's Customers with respect to the Licensed Software. Licensee, | ||
341 | as appropriate, shall inform Licensee's Customers that all requests for support | ||
342 | or service are to be made to Licensee, and not to The Qt Company. Updates shall | ||
343 | be considered to be Licensed Software and governed by this Agreement as such, | ||
344 | unless The Qt Company designates that a different agreement shall govern. | ||
345 | Licensee shall be responsible for distributing patches and fixes to Customers if | ||
346 | and as The Qt Company reasonable requests. Licensee may purchase additional | ||
347 | Support, Updates and Online Services following the Initial Term or the currently | ||
348 | ongoing Renewal Term subject to The Qt Company's terms and conditions applicable | ||
349 | at the time of renewal. 13. CONFIDENTIALITY Each party acknowledges that during | ||
350 | the Initial Term of this Agreement it shall have access to information about the | ||
351 | other party's business, business methods, business plans, customers, business | ||
352 | relations, technology, and other information, including the terms of this | ||
353 | Agreement, that is confidential and of great value to the other party, and the | ||
354 | value of which would be significantly reduced if disclosed to third parties | ||
355 | ("Confidential Information"). Accordingly, when a party (the "Receiving Party") | ||
356 | receives Confidential Information from another party (the "Disclosing Party"), | ||
357 | the Receiving Party shall, and shall obligate its employees and agents and | ||
358 | employees and agents of its Affiliates to: (i) maintain the Confidential | ||
359 | Information in strict confidence; (ii) not disclose the Confidential Information | ||
360 | to a third party without the Disclosing Party's prior written approval; and | ||
361 | (iii) not, directly or indirectly, use the Confidential Information for any | ||
362 | purpose other than for exercising its rights and fulfilling its responsibilities | ||
363 | pursuant to this Agreement. Each party shall take reasonable measures to protect | ||
364 | the Confidential Information of the other party, which measures shall not be | ||
365 | less than the measures taken by such party to protect its own confidential and | ||
366 | proprietary information. "Confidential Information" shall not include | ||
367 | information that (a) is or becomes generally known to the public through no act | ||
368 | or omission of the Receiving Party; (b) was in the Receiving Party's lawful | ||
369 | possession prior to the disclosure hereunder and was not subject to limitations | ||
370 | on disclosure or use; (c) is developed by employees of the Receiving Party or | ||
371 | other persons working for the Receiving Party who have not had access to the | ||
372 | Confidential Information of the Disclosing Party, as proven by the written | ||
373 | records of the Receiving Party or by persons who have not had access to the | ||
374 | Confidential Information of the Disclosing Party as proven by the written | ||
375 | records of the Receiving Party; (d) is lawfully disclosed to the Receiving Party | ||
376 | without restrictions, by a third party not under an obligation of | ||
377 | confidentiality; or (e) the Receiving Party is legally compelled to disclose the | ||
378 | information, in which case the Receiving Party shall assert the privileged and | ||
379 | confidential nature of the information and cooperate fully with the Disclosing | ||
380 | Party to protect against and prevent disclosure of any Confidential Information | ||
381 | and to limit the scope of disclosure and the dissemination of disclosed | ||
382 | Confidential Information by all legally available means. The obligations of the | ||
383 | Receiving Party under this Section shall continue during the Initial Term and | ||
384 | for a period of five (5) years after expiration or termination of this | ||
385 | Agreement. To the extent that the terms of the Non-Disclosure Agreement between | ||
386 | The Qt Company and Licensee conflict with the terms of this Section 13, this | ||
387 | Section 13 shall be controlling over the terms of the Non-Disclosure Agreement. | ||
388 | |||
389 | 14 FEES, ORDERS, DELIVERY AND PAYMENT 14.1 DISTRIBUTION LICENSE FEES The | ||
390 | Distribution License provided under Section 5.2b) is conditional on the Licensee | ||
391 | purchasing the needed amount of Distribution Licenses separately from The Qt | ||
392 | Company before distributing Devices to Customers. Distribution licenses are sold | ||
393 | in License Packs subject to a fee. The License Fee for a Distribution License | ||
394 | purchased by Licensee cannot be refunded or claimed as a credit, even on the | ||
395 | ground that it is not distributed, by sale or otherwise, from Licensee to | ||
396 | Customers or for any other reason. Licensee will have an account of Distribution | ||
397 | Licenses that will be applied to each copy of Licensed Software that is bundled | ||
398 | or integrated with any of the Devices or that is distributed to Customers. | ||
399 | Licensee may bundle, integrate and distribute copies of the Licensed Software so | ||
400 | long as Licensee has Distribution Licenses paid for, but not yet used. Each time | ||
401 | Licensee bundles, integrates or distributes a copy of Licensed Software, then | ||
402 | one Distribution License is used, and Licensee's account of available | ||
403 | Distribution Licenses is decreased accordingly. 14.2 DISTRIBUTION LICENSES | ||
404 | ORDERED Licensee shall submit all purchase orders for Distribution Licenses to | ||
405 | The Qt Company either by fax or mail or any other method acceptable to The Qt | ||
406 | Company (each such order is referred to herein as a "Purchase Order"). If The Qt | ||
407 | Company wishes to accept the Purchase Order, The Qt Company may then confirm and | ||
408 | return the Purchase Order to Licensee, whereupon the Purchase Order shall become | ||
409 | binding between the Parties. In the event of conflict or inconsistency between | ||
410 | this Agreement and a Purchase Order, this Agreement shall control. 14.3 PAYMENT | ||
411 | TERMS The Qt Company will submit an invoice to Licensee any time after The Qt | ||
412 | Company receives a subsequent purchase order(s) from Licensee, and delivers the | ||
413 | goods or services described in the Agreement or purchase order to Licensee. | ||
414 | Licensee's payments for the Licensed Software and any other charges under this | ||
415 | Agreement shall be paid by Licensee no later than thirty (30) days from the time | ||
416 | The Qt Company mails its invoices to Licensee. A late payment charge of the | ||
417 | lower of (a) one percent per month; or (b) the highest interest rate allowed by | ||
418 | applicable law, shall be charged on unpaid balances that remain past due for | ||
419 | more than thirty (30) days. The Qt Company shall have the right to suspend, | ||
420 | terminate or withhold Distribution Licenses, License Certificates, deliveries | ||
421 | and/or services should Licensee fail to make payment in a timely fashion. | ||
422 | Licensee shall at all times maintain accurate and up-to-date written records of | ||
423 | the number of copies of the Licensed Software that Licensee installs in each | ||
424 | Device(s). 14.4 TAXES All amounts payable are gross amounts but exclusive of any | ||
425 | value added tax, use tax, sales tax or similar tax. Licensee shall be entitled | ||
426 | to withhold from payments any applicable withholding taxes and comply with all | ||
427 | applicable tax and employment legislation. Each party shall pay all taxes | ||
428 | (including, but not limited to, taxes based upon its income) or levies imposed | ||
429 | on it under applicable laws, regulations and tax treaties as a result of this | ||
430 | Agreement and any payments made hereunder (including those required to be | ||
431 | withheld or deducted from payments). Each party shall furnish evidence of such | ||
432 | paid taxes as is sufficient to enable the other party to obtain any credits | ||
433 | available to it, including original withholding tax certificates. 15 | ||
434 | RECORD-KEEPING AND REPORTING OBLIGATIONS; AUDIT RIGHTS 15.1 LICENSEE'S | ||
435 | RECORD-KEEPING Licensee shall at all times maintain accurate and up-to-date | ||
436 | written records of Licensee's activities related to the Licensed Software and | ||
437 | Distribution Licenses, including copying and distribution. The records shall be | ||
438 | adequate to determine Licensee's compliance with the provisions of this | ||
439 | Agreement and to demonstrate the number of Distribution Licenses of the Licensed | ||
440 | Software distributed by Licensee. The records shall conform to good accounting | ||
441 | practices commonly accepted in the industry and consistently applied. Licensee | ||
442 | shall, within thirty (30) days from the end of each calendar quarter, deliver to | ||
443 | The Qt Company a report detailing the number of copies of Licensed Software | ||
444 | distributed by Licensee during that calendar quarter, and detailing also the | ||
445 | number of undistributed copies of Licensed Software made by Licensee and | ||
446 | remaining in its account (i.e., undistributed copies for which Distribution | ||
447 | Licenses have been or need to be obtained from The Qt Company). Such report | ||
448 | shall contain such other information as The Qt Company shall require from time | ||
449 | to time. 15.2. THE QT COMPANY'S INSPECTION RIGHTS The Qt Company or an | ||
450 | independent auditor on The Qt Company's behalf, may, upon at least five (5) | ||
451 | business days' prior written notice and at its expense, audit Licensee with | ||
452 | respect to the use of the Licensed, but not more frequently than once during | ||
453 | each 6-month period. Such audit may be conducted by mail, electronic means or | ||
454 | through an in-person visit to Licensee's place of business. Any such in-person | ||
455 | audit shall be conducted during regular business hours at Licensee's facilities | ||
456 | and shall not unreasonably interfere with Licensee's business activities. The Qt | ||
457 | Company or the independent auditor shall be entitled to inspect Licensee's books | ||
458 | and records that likely to contain information bearing on Licensee's compliance | ||
459 | with this Agreement or the payments due to The Qt Company under this Agreement, | ||
460 | including, but not limited to: assembly logs, sales records, distribution | ||
461 | records ("Licensee's Records") The Qt Company shall not remove, copy, or | ||
462 | redistribute any electronic material during the course of an audit. If an audit | ||
463 | reveals that Licensee is using the Licensed Software in a way that is in | ||
464 | material violation of the terms of the Agreement, then Licensee shall pay The Qt | ||
465 | Company's reasonable costs of conducting the audit. In the case of a material | ||
466 | violation, Licensee agrees to pay The Qt Company any amounts owing that are | ||
467 | attributable to the unauthorized use. In the alternative, The Qt Company | ||
468 | reserves the right, at The Qt Company's sole option, to terminate the licenses | ||
469 | for the Licensed Software. 16. GENERAL PROVISIONS 16.1 Marketing The Qt Company | ||
470 | may include Licensee's company name and logo in a publicly available list of The | ||
471 | Qt Company customers and in its public communications. | ||
472 | |||
473 | 16.2 No Assignment Licensee shall not be entitled to assign or transfer all or | ||
474 | any of its rights, benefits and obligations under this Agreement without the | ||
475 | prior written consent of The Qt Company, which shall not be unreasonably | ||
476 | withheld. The Qt Company shall be entitled to assign or transfer any of its | ||
477 | rights, benefits or obligations under this Agreement on an unrestricted basis. | ||
478 | |||
479 | 16.3 Termination 16.3.1 Termination by The Qt Company The Qt Company shall have | ||
480 | the right to terminate this Agreement upon thirty (30) days prior written notice | ||
481 | if (i) the Licensee is in breach of any material obligation under this Agreement | ||
482 | and the breaching Party fails to remedy such breach within such notice period; | ||
483 | (ii) any Third Party Software license grant to The Qt Company terminates or | ||
484 | expires; or (iii) Licensee or any of its Affiliates bring a suit before any | ||
485 | court or administrative agency or otherwise assert a claim for infringement of | ||
486 | Intellectual Property Rights owned or licensable by Licensee or its Affiliates | ||
487 | against (a) The Qt Company or any of its Affiliates; or (b) any other recipient | ||
488 | of a license from The Qt Company with respect to the Licensed Software; or (c) | ||
489 | any contractor, customer or distributor of a Party listed above in a or b; where | ||
490 | such suit or claim relates to the use of the Licensed Software. 16.3.2 Mutual | ||
491 | right to Terminate Either party shall have the right to terminate this Agreement | ||
492 | immediately upon written notice in the event that the other party becomes | ||
493 | insolvent, files for any form of bankruptcy, makes any assignment for the | ||
494 | benefit of creditors, has a receiver, administrative receiver or officer | ||
495 | appointed over the whole or a substantial part of its assets, ceases to conduct | ||
496 | business, or an act equivalent to any of the above occurs under the laws of the | ||
497 | jurisdiction of the other party. 16.3.3 Parties´ Rights and Duties upon | ||
498 | Termination 16.3.3.1 Licensed Software which has not been subject to | ||
499 | Distribution Upon termination of the Licenses, Licensee shall cease using the | ||
500 | Licensed Software and return to The Qt Company all copies of Licensed Software | ||
501 | that were supplied by The Qt Company. All other copies of Licensed Software in | ||
502 | the possession or control of Licensee must be erased or destroyed. An officer of | ||
503 | Licensee must promptly deliver to The Qt Company a written confirmation that | ||
504 | this has occurred. 16.3.3.2 Licensed Software which has been distributed in | ||
505 | connection with Licensed Products Upon termination or expiration of this | ||
506 | Agreement, the following rights granted hereunder, shall terminate, as follows: | ||
507 | a) Licensee shall, within: (i) thirty (30) days if termination is based on | ||
508 | Sections 16.3.1, 16.3.2, 15.2; or (ii) within six (6) months of the termination | ||
509 | date, if termination is based on any other reason, discontinue all copying, | ||
510 | embedding, production and distribution of any copies of the Licensed, and will | ||
511 | cause any third parties who obtained from it the right to manufacture or | ||
512 | distribution of copies of the Licensed Software to do likewise. b) Any | ||
513 | termination of this Agreement shall not affect any rights of an end-user to use | ||
514 | the Licensed Software. c) Licensee shall cease using the Licensed Software as | ||
515 | provided for above, including without limitation all source code, master | ||
516 | diskettes and tapes, user manuals for the Licensed Software and Documentation, | ||
517 | and deliver such to The Qt Company and/or permanently destroy all copies of the | ||
518 | Licensed Software and all materials relating to the Licensed Software, except | ||
519 | that Licensee may retain and exploit only such copies of the Licensed Software | ||
520 | as it may reasonably require in providing continued support to its end-user | ||
521 | customers, and will certify that that is the case upon the request of the The Qt | ||
522 | Company. 16.4 Surviving Sections Any terms and conditions that by their nature | ||
523 | or otherwise reasonably should survive a cancellation or termination of this | ||
524 | Agreement shall also be deemed to survive. The following Sections and | ||
525 | Subsections of this Agreement shall survive its termination: 3, 10, 11, 13, 15, | ||
526 | 16.3, 16.9, but none of the licenses or rights granted to Licensee shall | ||
527 | survive. Any obligation to make payment (including, without limitation, any | ||
528 | obligation to pay License Fees, interest, and taxes) shall also survive | ||
529 | termination of this Agreement and be paid in accordance with this Agreement. | ||
530 | 16.5 Entire Agreement This Agreement constitutes the complete agreement between | ||
531 | the parties and supersedes all prior or contemporaneous discussions, | ||
532 | representations, and proposals, written or oral, with respect to the subject | ||
533 | matters discussed herein, with the exception of the non-disclosure agreement | ||
534 | executed by the parties in connection with this Agreement ("Non-Disclosure | ||
535 | Agreement"), if any, shall be subject to Section 13. No modification of this | ||
536 | Agreement shall be effective unless contained in a writing executed by an | ||
537 | authorized representative of each party. No term or condition contained in | ||
538 | Licensee's purchase order shall apply unless expressly accepted by The Qt | ||
539 | Company in writing. If any provision of the Agreement is found void or | ||
540 | unenforceable, the remainder shall remain valid and enforceable according to its | ||
541 | terms. If any remedy provided is determined to have failed for its essential | ||
542 | purpose, all limitations of liability and exclusions of damages set forth in | ||
543 | this Agreement shall remain in effect. | ||
544 | |||
545 | 16.6 Force Majeure Neither party shall be liable to the other for any delay or | ||
546 | non-performance of its obligations hereunder other than the obligation of paying | ||
547 | the license fees in the event and to the extent that such delay or non- | ||
548 | performance is due to an event of Force Majeure (as defined below). If any event | ||
549 | of Force Majeure results in a delay or non-performance of a party for a period | ||
550 | of three (3) months or longer, then either party shall have the right to | ||
551 | terminate this Agreement with immediate effect without any liability (except for | ||
552 | the obligations of payment arising prior to the event of Force Majeure) towards | ||
553 | the other party. A "Force Majeure" event shall mean an act of God, terrorist | ||
554 | attack or other catastrophic event of nature that prevents either party for | ||
555 | fulfilling its obligations under this Agreement. | ||
556 | |||
557 | 16.7 Notices Any notice given by one party to the other shall be deemed properly | ||
558 | given and deemed received if specifically acknowledged by the receiving party in | ||
559 | writing or when successfully delivered to the recipient by hand, fax, or special | ||
560 | courier during normal business hours on a business day to the addresses | ||
561 | specified below. Each communication and document made or delivered by one party | ||
562 | to the other party pursuant to this Agreement shall be in the English language | ||
563 | or accompanied by a translation thereof. Notices to The Qt Company shall be | ||
564 | given to: The Qt Company Ltd Attn: Legal Valimotie 21 FI-00380 Helsinki Finland | ||
565 | Fax: +358 10 313 3700 16.8 Export Control Licensee acknowledges that the | ||
566 | Licensed Software may be subject to export control restrictions of various | ||
567 | countries. Licensee shall fully comply with all applicable export license | ||
568 | restrictions and requirements as well as with all laws and regulations relating | ||
569 | to the importation of the Licensed Software and/or Modified Software and/or | ||
570 | Applications and shall procure all necessary governmental authorizations, | ||
571 | including without limitation, all necessary licenses, approvals, permissions or | ||
572 | consents, where necessary for the re- exportation of the Licensed Software, | ||
573 | Modified Software or Applications. | ||
574 | |||
575 | 16.9 Governing Law and Legal Venue This Agreement shall be construed and | ||
576 | interpreted in accordance with the laws of Finland, excluding its choice of law | ||
577 | provisions. Any disputes, controversy or claim arising out of or relating to | ||
578 | this Agreement, or the breach, termination or validity thereof shall be shall be | ||
579 | finally settled by arbitration in accordance with the Arbitration Rules of the | ||
580 | Central Chamber of Commerce of Finland. The arbitration tribunal shall consist | ||
581 | of one (1), or if either Party so requires, of three (3), arbitrators. The award | ||
582 | shall be final and binding and enforceable in any court of competent | ||
583 | jurisdiction. The arbitration shall be held in Helsinki, Finland and the process | ||
584 | shall be conducted in the English language. | ||
585 | |||
586 | 16.10 No Implied License There are no implied licenses or other implied rights | ||
587 | granted under this Agreement, and all rights, save for those expressly granted | ||
588 | hereunder, shall remain with The Qt Company and its licensors. In addition, no | ||
589 | licenses or immunities are granted to the combination of the Licensed Software | ||
590 | and/or Modified Software, as applicable, with any other software or hardware not | ||
591 | delivered by The Qt Company under this Agreement. | ||
592 | |||
593 | Appendix 1: Licensed Software | ||
594 | |||
595 | 1. Parts of the Licensed Software that are permitted for distribution | ||
596 | ("Redistributables") - The Licensed Software's essential and add-on libraries as | ||
597 | listed in the License Certificate in object code form - The Licensed Software's | ||
598 | configuration tool ("qtconfig") - The Licensed Software's help tool in object | ||
599 | code/executable form ("Qt Assistant") - The Licensed Software's | ||
600 | internationalization tools in object code/executable form ("Qt Linguist", | ||
601 | "lupdate", "lrelease") - The Licensed Software's designer tool ("Qt Designer") | ||
602 | - The Licensed Software's IDE tool ("Qt Creator"), excluding any parts or | ||
603 | plug-ins which are delivered to Licensee only in object code - The Licensed | ||
604 | Software's QML ("Qt Quick") launcher tool ("qmlscene" and "qmlviewer") in object | ||
605 | code/executable form - The Licensed Software's installer framework | ||
606 | |||
607 | 2. Parts of the Licensed Software that are not permitted for distribution | ||
608 | without a separate SDK distribution license agreement include, but are not | ||
609 | limited to - The Licensed Software's source code and header files - The Licensed | ||
610 | Software's documentation - The Licensed Software's documentation generation tool | ||
611 | ("qdoc") - The Licensed Software's tool for writing makefiles ("qmake") - The | ||
612 | Licensed Software's Meta Object Compiler ("moc") - The Licensed Software's User | ||
613 | Interface Compiler ("uic" or in the case of Qt Jambi: "juic") - The Licensed | ||
614 | Software's Resource Compiler ("rcc") - The Licensed Software's generator (only | ||
615 | in the case of Qt Jambi if applicable) - The Licensed Software's parts of the | ||
616 | IDE tool ("Qt Creator") that are delivered to Licensee only in object code - The | ||
617 | Licensed Software's Emulator - Build scripts, recipes and other material for | ||
618 | creating the configuration of Licensed Software and/or 3rd party components, | ||
619 | including the reference operating system configuration delivered in conjunction | ||
620 | with the Licensed Software | ||
621 | |||
622 | Appendix 2: Distribution Licensing | ||
623 | |||
624 | I - Definitions The terms used in this Appendix 3 shall have the same meaning as | ||
625 | defined in the main part of the Agreement. "Sublicensed Software" shall mean the | ||
626 | Licensed Software, which is sublicensed to end-users (Sublicensees) in | ||
627 | accordance with Section 5.2 of the Agreement. "Sublicensee" shall mean the | ||
628 | end-user to which the Sublicensed Software is licensed. "Sublicense" shall mean | ||
629 | the license given by Licensee to Sublicensee in accordance with Section 5.2 of | ||
630 | the Agreement and this Appendix 3. II - Sublicensing The sublicensing referred | ||
631 | to in Section 5.2 of the Agreement must satisfy the criteria set forth under | ||
632 | sections 1 - 11 below: 1. Source code. Only the object code of the Sublicensed | ||
633 | Software may be sublicensed. Unless authorized in a separate agreement with The | ||
634 | Qt Company, the source code may not be sublicensed. 2. End-User Documentation. | ||
635 | Sublicensee may be given the right to use the end-user Documentation, provided | ||
636 | that such rights are limited to use in connection with the Sublicensed Software. | ||
637 | Whenever the context reasonably permits, any reference in this Appendix to | ||
638 | Sublicensed Software shall also apply to the end-user Documentation. 3. | ||
639 | Limitations on Numbers of Computers and Processors. The Sublicensee's right to | ||
640 | use the Sublicensed Software must be limited so that each Sublicense can only be | ||
641 | used on a single computer or processor within the possession and control of the | ||
642 | Sublicensee. Each Sublicense may not withstanding the foregoing also cover | ||
643 | additional computers or processors, but in such case, each additional computer | ||
644 | or processor covered by the Sublicense shall require Licensee's purchase of one | ||
645 | additional Distribution license from The Qt Company. 4. Limits on Use, | ||
646 | Distribution and Derivative Works. The Sublicense and Sublicensee's rights must | ||
647 | be limited to Sublicensee's internal use purposes only and must not include any | ||
648 | license, right or authorization to distribute or disclose any copy or portion of | ||
649 | the Sublicensed Software to any other person. Sublicensee must not be given the | ||
650 | right to modify or create derivative works based on the Sublicensed Software, | ||
651 | and it must be stated explicitly in the Sublicense that such modification or | ||
652 | creation is prohibited. | ||
653 | |||
654 | 5. Copies. Sublicensee may be given the right to make copies of the Sublicensed | ||
655 | Software, provided that any such copy: (a) is created as an essential step in | ||
656 | the utilization of Sublicensed Software in accordance with the Sublicense, or | ||
657 | (b) is only for archival purposes to back-up the licensed use of Sublicensed | ||
658 | Software. Sublicensee may also be given the right to make copies of Sublicensed | ||
659 | Software to the extent reasonably needed to exercise rights under the | ||
660 | Sublicense. Sublicensee must be obliged under the Sublicense to make sure that | ||
661 | all The Qt Company trademark, copyright and intellectual property notices are | ||
662 | faithfully reproduced and included on copies made by Sublicensee. Sublicensee | ||
663 | may be given the right to make copies of the Documentation, but only as | ||
664 | reasonably needed to facilitate the use of Sublicensed Software. Sublicensee may | ||
665 | not be given the right to make any other copies of Licensed Software or | ||
666 | Documentation unless and except as permitted by The Qt Company in a separate, | ||
667 | written agreement. 6. Other Versions and Updates. If Licensee is entitled to | ||
668 | Updates in accordance with Section 12of the Agreement, such Updates may also be | ||
669 | sublicensed, subject to the terms and conditions found in this Appendix 3. 7. | ||
670 | Protection of Sublicensed Software. Except as expressly permitted in this | ||
671 | Appendix 3 (or in another written agreement with The Qt Company), Sublicensee | ||
672 | must not be given any rights to modify or create derivative works based on | ||
673 | Sublicensed Software, or reproduce Sublicensed Software, or distribute any | ||
674 | copies of Sublicensed Software, or disclose any Sublicensed Software to any | ||
675 | third party, or decompile, disassemble or otherwise reverse engineer Sublicensed | ||
676 | Software, or use any Sublicensed Software or information learned therefrom. | ||
677 | Sublicensee must as part of the contractual terms in the Sublicense acknowledge | ||
678 | that The Qt Company and its licensors own the copyrights and other intellectual | ||
679 | property in and to the Sublicensed Software. 8. Disclaimers Of Warranties. | ||
680 | Licensee may not give any warranties regarding the Sublicensed Software to | ||
681 | Sublicensee on behalf of The Qt Company. 9. Responsibility of Sublicensee. | ||
682 | Sublicensee shall, as part of the Sublicense, be made responsible for decisions | ||
683 | made and actions taken based on Sublicensed Software. Sublicensee shall as part | ||
684 | of the contractual terms of the Sublicense be made aware that the Sublicensed | ||
685 | Software is not designed, intended or licensed for use in or with systems, | ||
686 | devices or products intended for surgical implant into the body or other | ||
687 | applications intended to support or sustain life or for any aviation or nuclear | ||
688 | reactor application or any other application in which the software or its | ||
689 | failure, malfunction or inadequacy could directly or indirectly cause or | ||
690 | contribute to personal injury or death or significant property damage. It shall | ||
691 | further be stated in the Sublicense that it is Sublicensee's responsibility to | ||
692 | ascertain the suitability of Sublicensed Software for any situation or | ||
693 | application. It shall also be stated that the Sublicense defines a mutually | ||
694 | agreed-upon allocation of risk and the Sublicense fees reflect such allocation | ||
695 | of risk. 10. Termination. Licensee shall, as part of the terms of the | ||
696 | Sublicense, be entitled to terminate the Sublicense granted to Sublicensee if | ||
697 | Sublicensee breaches terms and conditions set to comply with this Appendix 3. | ||
698 | The Qt Company may instruct Licensee to terminate the Sublicense without undue | ||
699 | delay if termination is warranted in accordance with the foregoing. Upon | ||
700 | termination of the Sublicense, Sublicensee shall be obliged to immediately cease | ||
701 | all use of Sublicensed Software and to destroy all copies of Sublicensed | ||
702 | Software within the possession or control of Sublicensee. 11. Mandatory law. The | ||
703 | requirements above shall not apply to the extent they contravene mandatory | ||
704 | provisions of the law governing the Sublicense, but in such case, The Qt Company | ||
705 | shall be notified about the changes. | ||
706 | |||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc new file mode 100644 index 0000000..6b0cd3c --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | |||
@@ -0,0 +1,246 @@ | |||
1 | # Copyright (C) 2012-2013 Freescale Semiconductor | ||
2 | # Copyright (C) 2012-2013 O.S. Systems Software LTDA. | ||
3 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
4 | |||
5 | DESCRIPTION = "GPU driver and apps for imx6" | ||
6 | SECTION = "libs" | ||
7 | LICENSE = "Proprietary" | ||
8 | LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=19f5925343fa3da65596eeaa4ddb5fd3" | ||
9 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamage libxext libxfixes mesa', '', d)}" | ||
10 | PROVIDES += "virtual/wayland-egl virtual/libgl virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 virtual/libopenvg" | ||
11 | |||
12 | PE = "1" | ||
13 | |||
14 | inherit fsl-eula-unpack | ||
15 | |||
16 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \ | ||
17 | file://egl.pc \ | ||
18 | file://egl_x11.pc \ | ||
19 | file://glesv1_cm.pc \ | ||
20 | file://glesv1_cm_x11.pc \ | ||
21 | file://glesv2.pc \ | ||
22 | file://glesv2_x11.pc \ | ||
23 | file://vg.pc \ | ||
24 | file://vg_x11.pc \ | ||
25 | file://gc_wayland_protocol.pc \ | ||
26 | file://wayland-egl.pc \ | ||
27 | file://wayland-viv.pc \ | ||
28 | " | ||
29 | |||
30 | PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \ | ||
31 | libgl-mx6 libgl-mx6-dev libgl-mx6-dbg \ | ||
32 | libgles-mx6 libgles-mx6-dev libgles-mx6-dbg \ | ||
33 | libgles2-mx6 libgles2-mx6-dev libgles2-mx6-dbg \ | ||
34 | libglslc-mx6 libglslc-mx6-dev libglslc-mx6-dbg \ | ||
35 | libopencl-mx6 libopencl-mx6-dev libopencl-mx6-dbg \ | ||
36 | libopenvg-mx6 libopenvg-mx6-dev libopenvg-mx6-dbg \ | ||
37 | libvdk-mx6 libvdk-mx6-dev libvdk-mx6-dbg \ | ||
38 | libegl-mx6 libegl-mx6-dev libegl-mx6-dbg \ | ||
39 | libgal-mx6 libgal-mx6-dev libgal-mx6-dbg \ | ||
40 | libvivante-mx6 libvivante-mx6-dev libvivante-mx6-dbg \ | ||
41 | libvivante-dri-mx6 \ | ||
42 | libvivante-dfb-mx6 \ | ||
43 | libwayland-viv-mx6 libwayland-viv-mx6-dev libwayland-viv-mx6-dbg \ | ||
44 | libgc-wayland-protocol-mx6 libgc-wayland-protocol-mx6-dev libgc-wayland-protocol-mx6-dbg \ | ||
45 | libwayland-egl-mx6-dev \ | ||
46 | " | ||
47 | |||
48 | # Skip package if it does not match the machine float-point type in use | ||
49 | python __anonymous () { | ||
50 | is_machine_hardfp = base_contains("TUNE_FEATURES", "callconvention-hard", True, False, d) | ||
51 | is_package_hardfp = d.getVar("PACKAGE_FP_TYPE", True) == "hardfp" | ||
52 | |||
53 | if is_package_hardfp != is_machine_hardfp: | ||
54 | PN = d.getVar("PN", True) | ||
55 | PV = d.getVar("PV", True) | ||
56 | bb.debug(1, "Skipping %s (%s) as machine and package float-point does not match" % (PN, PV)) | ||
57 | raise bb.parse.SkipPackage("Package Float-Point is not compatible with the machine") | ||
58 | } | ||
59 | |||
60 | USE_X11 = "${@base_contains("DISTRO_FEATURES", "x11", "yes", "no", d)}" | ||
61 | USE_DFB = "${@base_contains("DISTRO_FEATURES", "directfb", "yes", "no", d)}" | ||
62 | USE_WL = "${@base_contains("DISTRO_FEATURES", "wayland", "yes", "no", d)}" | ||
63 | |||
64 | # Inhibit warnings about files being stripped. | ||
65 | INHIBIT_PACKAGE_STRIP = "1" | ||
66 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
67 | |||
68 | # FIXME: The provided binary doesn't provide soname. If in future BSP | ||
69 | # release the libraries are fixed, we can drop this hack. | ||
70 | REALSOLIBS := "${SOLIBS}" | ||
71 | SOLIBS = "${SOLIBSDEV}" | ||
72 | |||
73 | # For the packages that make up the OpenGL interfaces, inject variables so that | ||
74 | # they don't get Debian-renamed (which would remove the -mx6 suffix). | ||
75 | # | ||
76 | # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have | ||
77 | # the source we cannot fix it. Disable the insane check for now. | ||
78 | python __anonymous() { | ||
79 | packages = d.getVar('PACKAGES', True).split() | ||
80 | for p in packages: | ||
81 | d.appendVar("INSANE_SKIP_%s" % p, " ldflags") | ||
82 | |||
83 | for p in (("libegl", "libegl1"), ("libgl", "libgl1"), | ||
84 | ("libgles1", "libglesv1-cm1"), ("libgles2", "libglesv2-2"), | ||
85 | ("libgles3",)): | ||
86 | fullp = p[0] + "-mx6" | ||
87 | pkgs = " ".join(p) | ||
88 | d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") | ||
89 | d.appendVar("RREPLACES_" + fullp, pkgs) | ||
90 | d.appendVar("RPROVIDES_" + fullp, pkgs) | ||
91 | d.appendVar("RCONFLICTS_" + fullp, pkgs) | ||
92 | |||
93 | # For -dev, the first element is both the Debian and original name | ||
94 | fullp += "-dev" | ||
95 | pkgs = p[0] + "-dev" | ||
96 | d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") | ||
97 | d.appendVar("RREPLACES_" + fullp, pkgs) | ||
98 | d.appendVar("RPROVIDES_" + fullp, pkgs) | ||
99 | d.appendVar("RCONFLICTS_" + fullp, pkgs) | ||
100 | } | ||
101 | |||
102 | do_install () { | ||
103 | install -d ${D}${libdir} | ||
104 | install -d ${D}${includedir} | ||
105 | |||
106 | cp -a ${S}/usr/lib/*.so* ${D}${libdir} | ||
107 | cp -axr ${S}/usr/include/* ${D}${includedir} | ||
108 | cp -axr ${S}/opt ${D} | ||
109 | |||
110 | install -d ${D}${libdir}/pkgconfig | ||
111 | |||
112 | # The preference order, based in DISTRO_FEATURES, is x11, wayland, directfb and fb | ||
113 | if [ "${USE_X11}" = "yes" ]; then | ||
114 | cp -r ${S}/usr/lib/dri ${D}${libdir} | ||
115 | backend=x11 | ||
116 | |||
117 | install -m 0644 ${WORKDIR}/egl_x11.pc ${D}${libdir}/pkgconfig/egl.pc | ||
118 | install -m 0644 ${WORKDIR}/glesv1_cm_x11.pc ${D}${libdir}/pkgconfig/glesv1_cm.pc | ||
119 | install -m 0644 ${WORKDIR}/glesv2_x11.pc ${D}${libdir}/pkgconfig/glesv2.pc | ||
120 | install -m 0644 ${WORKDIR}/vg_x11.pc ${D}${libdir}/pkgconfig/vg.pc | ||
121 | #FIXME: WL & X11 is not currently functional | ||
122 | #if [ "${USE_WL}" = "yes" ]; then | ||
123 | # install -m 0644 ${WORKDIR}/gc_wayland_protocol.pc ${D}${libdir}/pkgconfig/gc_wayland_protocol.pc | ||
124 | # install -m 0644 ${WORKDIR}/wayland-egl.pc ${D}${libdir}/pkgconfig/wayland-egl.pc | ||
125 | # install -m 0644 ${WORKDIR}/wayland-viv.pc ${D}${libdir}/pkgconfig/wayland-viv.pc | ||
126 | #fi | ||
127 | elif [ "${USE_WL}" = "yes" ]; then | ||
128 | backend=wl | ||
129 | |||
130 | install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/egl.pc | ||
131 | install -m 0644 ${WORKDIR}/glesv1_cm.pc ${D}${libdir}/pkgconfig/glesv1_cm.pc | ||
132 | install -m 0644 ${WORKDIR}/glesv2.pc ${D}${libdir}/pkgconfig/glesv2.pc | ||
133 | install -m 0644 ${WORKDIR}/vg.pc ${D}${libdir}/pkgconfig/vg.pc | ||
134 | install -m 0644 ${WORKDIR}/gc_wayland_protocol.pc ${D}${libdir}/pkgconfig/gc_wayland_protocol.pc | ||
135 | install -m 0644 ${WORKDIR}/wayland-egl.pc ${D}${libdir}/pkgconfig/wayland-egl.pc | ||
136 | install -m 0644 ${WORKDIR}/wayland-viv.pc ${D}${libdir}/pkgconfig/wayland-viv.pc | ||
137 | else | ||
138 | install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/egl.pc | ||
139 | install -m 0644 ${WORKDIR}/glesv1_cm.pc ${D}${libdir}/pkgconfig/glesv1_cm.pc | ||
140 | install -m 0644 ${WORKDIR}/glesv2.pc ${D}${libdir}/pkgconfig/glesv2.pc | ||
141 | install -m 0644 ${WORKDIR}/vg.pc ${D}${libdir}/pkgconfig/vg.pc | ||
142 | |||
143 | if [ "${USE_DFB}" = "yes" ]; then | ||
144 | cp -r ${S}/usr/lib/directfb-1.6-0 ${D}${libdir} | ||
145 | backend=dfb | ||
146 | else | ||
147 | # Regular framebuffer | ||
148 | backend=fb | ||
149 | fi | ||
150 | fi | ||
151 | |||
152 | # We'll only have one backend here so we rename it to generic name | ||
153 | # and avoid rework in other packages, when possible | ||
154 | mv ${D}${libdir}/libGL.so.1.2 ${D}${libdir}/libGL.so.1.2.0 | ||
155 | ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so.1.2 | ||
156 | ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so | ||
157 | mv ${D}${libdir}/libEGL-${backend}.so ${D}${libdir}/libEGL.so.1.0 | ||
158 | ln -sf libEGL.so.1.0 ${D}${libdir}/libEGL.so.1 | ||
159 | ln -sf libEGL.so.1.0 ${D}${libdir}/libEGL.so | ||
160 | mv ${D}${libdir}/libGAL-${backend}.so ${D}${libdir}/libGAL.so | ||
161 | mv ${D}${libdir}/libVIVANTE-${backend}.so ${D}${libdir}/libVIVANTE.so | ||
162 | |||
163 | for backend in wl x11 fb dfb; do | ||
164 | find ${D}${libdir} -name "*-$backend.so" -exec rm '{}' ';' | ||
165 | done | ||
166 | |||
167 | find ${D}${libdir} -type f -exec chmod 644 {} \; | ||
168 | find ${D}${includedir} -type f -exec chmod 644 {} \; | ||
169 | } | ||
170 | |||
171 | S = "${WORKDIR}/${PN}-${PV}" | ||
172 | |||
173 | FILES_${PN} += "/opt" | ||
174 | FILES_${PN}-dev = "${includedir}" | ||
175 | FILES_${PN}-dbg = "${libdir}/.debug /opt/viv_samples/*/*/.debug" | ||
176 | |||
177 | FILES_libclc-mx6 = "${libdir}/libCLC${SOLIBS}" | ||
178 | FILES_libclc-mx6-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}" | ||
179 | FILES_libclc-mx6-dbg = "${libdir}/.debug/libCLC${SOLIBS}" | ||
180 | |||
181 | # libEGL.so is used by some demo apps from Freescale | ||
182 | INSANE_SKIP_libegl-mx6 += "dev-so" | ||
183 | FILES_libegl-mx6 = "${libdir}/libEGL${REALSOLIBS} ${libdir}/libEGL${SOLIBSDEV} " | ||
184 | FILES_libegl-mx6-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" | ||
185 | FILES_libegl-mx6-dbg = "${libdir}/.debug/libEGL${SOLIBS}" | ||
186 | |||
187 | FILES_libgal-mx6 = "${libdir}/libGAL${SOLIBS}" | ||
188 | FILES_libgal-mx6-dev = "${libdir}/libGAL${SOLIBSDEV}" | ||
189 | FILES_libgal-mx6-dbg = "${libdir}/.debug/libGAL${SOLIBS}" | ||
190 | |||
191 | FILES_libgl-mx6 = "${libdir}/libGL${REALSOLIBS}" | ||
192 | FILES_libgl-mx6-dev = "${libdir}/libGL${SOLIBSDEV}" | ||
193 | FILES_libgl-mx6-dbg = "${libdir}/.debug/libGL.${SOLIBS}" | ||
194 | RDEPENDS_libgl-mx6-dev = "libgl-mesa-dev" | ||
195 | |||
196 | # libEGL needs to open libGLESv1.so | ||
197 | INSANE_SKIP_libgles-mx6 += "dev-so" | ||
198 | FILES_libgles-mx6 = "${libdir}/libGLESv1*${REALSOLIBS} ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBS}" | ||
199 | FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV} ${libdir}/pkgconfig/glesv1_cm.pc" | ||
200 | FILES_libgles-mx6-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS} ${libdir}/.debug/libGLES_*${SOLIBS}" | ||
201 | |||
202 | # libEGL needs to open libGLESv2.so | ||
203 | INSANE_SKIP_libgles2-mx6 += "dev-so" | ||
204 | FILES_libgles2-mx6 = "${libdir}/libGLESv2${REALSOLIBS} ${libdir}/libGLESv2${SOLIBS}" | ||
205 | FILES_libgles2-mx6-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV} ${libdir}/pkgconfig/glesv2.pc" | ||
206 | FILES_libgles2-mx6-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}" | ||
207 | RDEPENDS_libgles2-mx6 = "libglslc-mx6" | ||
208 | |||
209 | FILES_libglslc-mx6 = "${libdir}/libGLSLC${SOLIBS}" | ||
210 | FILES_libglslc-mx6-dev = "${includedir}/CL ${libdir}/libGLSLC${SOLIBSDEV}" | ||
211 | FILES_libglslc-mx6-dbg = "${libdir}/.debug/libGLSLC${SOLIBS}" | ||
212 | |||
213 | FILES_libopencl-mx6 = "${libdir}/libOpenCL${SOLIBS}" | ||
214 | FILES_libopencl-mx6-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}" | ||
215 | FILES_libopencl-mx6-dbg = "${libdir}/.debug/libOpenCL${SOLIBS}" | ||
216 | RDEPENDS_libopencl-mx6 = "libclc-mx6" | ||
217 | |||
218 | FILES_libopenvg-mx6 = "${libdir}/libOpenVG*${SOLIBS}" | ||
219 | FILES_libopenvg-mx6-dev = "${includedir}/VG ${libdir}/libOpenVG*${SOLIBSDEV} ${libdir}/pkgconfig/vg.pc" | ||
220 | FILES_libopenvg-mx6-dbg = "${libdir}/.debug/libOpenVG*${SOLIBS}" | ||
221 | |||
222 | FILES_libvdk-mx6 = "${libdir}/libVDK${SOLIBS}" | ||
223 | FILES_libvdk-mx6-dev = "${includedir}/*vdk.h ${libdir}/libVDK${SOLIBSDEV}" | ||
224 | FILES_libvdk-mx6-dbg = "${libdir}/.debug/libVDK${SOLIBS}" | ||
225 | |||
226 | FILES_libvivante-mx6 = "${libdir}/libVIVANTE${SOLIBS}" | ||
227 | FILES_libvivante-mx6-dev = "${libdir}/libVIVANTE${SOLIBSDEV}" | ||
228 | FILES_libvivante-mx6-dbg = "${libdir}/.debug/libVIVANTE${SOLIBS}" | ||
229 | |||
230 | FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri.so" | ||
231 | |||
232 | FILES_libvivante-dfb-mx6 = "${libdir}/directfb-1.6-0/gfxdrivers/libdirectfb_gal.so" | ||
233 | |||
234 | INSANE_SKIP_libwayland-viv-mx6 += "dev-so" | ||
235 | FILES_libwayland-viv-mx6 = "${libdir}/libwayland-viv${REALSOLIBS} ${libdir}/libwayland-viv${SOLIBS}" | ||
236 | FILES_libwayland-viv-mx6-dev = "${libdir})/libwayland-viv${SOLIBSDEV} ${libdir}/pkgconfig/wayland-viv.pc" | ||
237 | FILES_libwayland-viv-mx6-dbg = "${libdir}/.debug/libwayland-viv${SOLIBS}" | ||
238 | |||
239 | INSANE_SKIP_libgc-wayland-protocol-mx6 += "dev-so" | ||
240 | FILES_libgc-wayland-protocol-mx6 = "${libdir}/libgc_wayland_protocol${REALSOLIBS} ${libdir}/libgc_wayland_protocol${SOLIBS}" | ||
241 | FILES_libgc-wayland-protocol-mx6-dev = "${libdir}/libgc_wayland_protocol${SOLIBSDEV} ${libdir}/pkgconfig/gc_wayland_protocol.pc" | ||
242 | FILES_libgc-wayland-protocol-mx6-dbg = "${libdir}/libgc_wayland_protocol${SOLIBS}" | ||
243 | |||
244 | FILES_libwayland-egl-mx6-dev = "${libdir}/pkgconfig/wayland-egl.pc" | ||
245 | |||
246 | COMPATIBLE_MACHINE = "(mx6)" | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/0001-change-header-path-to-HAL.patch b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/0001-change-header-path-to-HAL.patch new file mode 100644 index 0000000..dc91d7c --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/0001-change-header-path-to-HAL.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 1a4a35678ef70283d1a31835deecd39711a9db86 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jeremy Stashluk <jstashluk@dekaresearch.com> | ||
3 | Date: Wed, 30 Jan 2013 13:16:53 -0500 | ||
4 | Subject: [PATCH] change header path to HAL | ||
5 | |||
6 | The gpu-viv-bin-mx6q package from Freescale puts this header in the HAL | ||
7 | directory under the system. I think this is a problem in the LTIB release as | ||
8 | well. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Jeremy Stashluk <jstashluk@dekaresearch.com> | ||
13 | |||
14 | --- | ||
15 | usr/include/gc_vdk_types.h | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | Index: gpu-viv-bin-mx6q-1.1.0/usr/include/gc_vdk_types.h | ||
19 | =================================================================== | ||
20 | --- gpu-viv-bin-mx6q-1.1.0.orig/usr/include/gc_vdk_types.h | ||
21 | +++ gpu-viv-bin-mx6q-1.1.0/usr/include/gc_vdk_types.h | ||
22 | @@ -39,7 +39,7 @@ extern "C" { | ||
23 | #endif | ||
24 | |||
25 | #include <EGL/egl.h> | ||
26 | -#include "gc_hal_eglplatform_type.h" | ||
27 | +#include <HAL/gc_hal_eglplatform_type.h> | ||
28 | |||
29 | |||
30 | /******************************************************************************* | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl.pc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl.pc new file mode 100644 index 0000000..a21922d --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: egl | ||
7 | Description: Vivante EGL library | ||
8 | Requires.private: | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lEGL | ||
11 | Libs.private: -lm -lpthread -ldl | ||
12 | Cflags: -I${includedir} -DLINUX | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl_x11.pc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl_x11.pc new file mode 100644 index 0000000..5921583 --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl_x11.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: egl | ||
7 | Description: Vivante EGL library | ||
8 | Requires.private: libdrm x11 xext xdamage xfixes xcb | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lEGL | ||
11 | Libs.private: -lm -lpthread -ldl | ||
12 | Cflags: -I${includedir} -DLINUX | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/fix-conflicting-TLS-definition.patch b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/fix-conflicting-TLS-definition.patch new file mode 100644 index 0000000..3eac116 --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/fix-conflicting-TLS-definition.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Avoid conflicting types with Xorg newer code | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
5 | |||
6 | Index: gpu-viv-bin-mx6q-1.1.0/usr/include/HAL/gc_hal_base.h | ||
7 | =================================================================== | ||
8 | --- gpu-viv-bin-mx6q-1.1.0.orig/usr/include/HAL/gc_hal_base.h | ||
9 | +++ gpu-viv-bin-mx6q-1.1.0/usr/include/HAL/gc_hal_base.h | ||
10 | @@ -101,7 +101,7 @@ extern gcsPLS gcPLS; | ||
11 | typedef struct _gcsTLS * gcsTLS_PTR; | ||
12 | |||
13 | typedef void (* gctTLS_DESTRUCTOR) ( | ||
14 | - gcsTLS_PTR TLS | ||
15 | + gcsTLS_PTR pTLS | ||
16 | ); | ||
17 | |||
18 | typedef struct _gcsTLS | ||
19 | @@ -648,10 +648,10 @@ gcoOS_SetPLSValue( | ||
20 | /* Get access to the thread local storage. */ | ||
21 | gceSTATUS | ||
22 | gcoOS_GetTLS( | ||
23 | - OUT gcsTLS_PTR * TLS | ||
24 | + OUT gcsTLS_PTR * pTLS | ||
25 | ); | ||
26 | |||
27 | - /* Copy the TLS from a source thread. */ | ||
28 | + /* Copy the pTLS from a source thread. */ | ||
29 | gceSTATUS gcoOS_CopyTLS(IN gcsTLS_PTR Source); | ||
30 | |||
31 | /* Destroy the objects associated with the current thread. */ | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/gc_hal_eglplatform-remove-xlib-undefs.patch b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/gc_hal_eglplatform-remove-xlib-undefs.patch new file mode 100644 index 0000000..732a073 --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/gc_hal_eglplatform-remove-xlib-undefs.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From c59f9640d185759208f9d55a93b6602936dcb5e8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Adrian Alonso <aalonso00@gmail.com> | ||
3 | Date: Sat, 26 Jan 2013 17:52:04 -0600 | ||
4 | Subject: [PATCH 2/2] gc_hal_eglplatform: remove xlib undefs | ||
5 | |||
6 | * Remove header undefs for Always and Status definitions | ||
7 | |||
8 | Signed-off-by: Adrian Alonso <aalonso00@gmail.com> | ||
9 | --- | ||
10 | usr/include/HAL/gc_hal_eglplatform.h | 3 --- | ||
11 | 1 file changed, 3 deletions(-) | ||
12 | |||
13 | diff --git a/usr/include/HAL/gc_hal_eglplatform.h b/usr/include/HAL/gc_hal_eglplatform.h | ||
14 | index a968fe7..e80c65a 100644 | ||
15 | --- a/usr/include/HAL/gc_hal_eglplatform.h | ||
16 | +++ b/usr/include/HAL/gc_hal_eglplatform.h | ||
17 | @@ -341,14 +341,11 @@ typedef Pixmap HALNativePixmapType; | ||
18 | /* Rename some badly named X defines. */ | ||
19 | #ifdef Status | ||
20 | # define XStatus int | ||
21 | -# undef Status | ||
22 | #endif | ||
23 | #ifdef Always | ||
24 | # define XAlways 2 | ||
25 | -# undef Always | ||
26 | #endif | ||
27 | #ifdef CurrentTime | ||
28 | -# undef CurrentTime | ||
29 | # define XCurrentTime 0 | ||
30 | #endif | ||
31 | |||
32 | -- | ||
33 | 1.8.1 | ||
34 | |||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/gc_wayland_protocol.pc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/gc_wayland_protocol.pc new file mode 100644 index 0000000..f4610ea --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/gc_wayland_protocol.pc | |||
@@ -0,0 +1,10 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=${exec_prefix}/lib | ||
4 | includedir=${prefix}/include | ||
5 | |||
6 | Name: gc_wayland_protocol | ||
7 | Description: Vivante Wayland Protocol Extension Library | ||
8 | Version: 0.1 | ||
9 | Cflags: -I${includedir} | ||
10 | Libs: -L${libdir} -lgc_wayland_protocol | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm.pc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm.pc new file mode 100644 index 0000000..d97b067 --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: glesv1_cm | ||
7 | Description: Vivante OpenGL ES 1.1 CM library | ||
8 | Requires.private: | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lGLESv1_CM -lEGL -lGAL | ||
11 | Libs.private: -lm -lpthread -ldl | ||
12 | Cflags: -I${includedir} | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm_x11.pc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm_x11.pc new file mode 100644 index 0000000..e801633 --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm_x11.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: glesv1_cm | ||
7 | Description: Vivante OpenGL ES 1.1 CM library | ||
8 | Requires.private: libdrm x11 xext xdamage xfixes xcb | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lGLESv1_CM -lEGL -lGAL | ||
11 | Libs.private: -lm -lpthread -ldl | ||
12 | Cflags: -I${includedir} | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2.pc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2.pc new file mode 100644 index 0000000..9be46f2 --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: glesv2 | ||
7 | Description: Vivante OpenGL ES 2.0 library | ||
8 | Requires.private: | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lGLESv2 -lEGL -lGAL | ||
11 | Libs.private: -lpthread -lrt | ||
12 | Cflags: -I${includedir} | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2_x11.pc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2_x11.pc new file mode 100644 index 0000000..57ad807 --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2_x11.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: glesv2 | ||
7 | Description: Vivante OpenGL ES 2.0 library | ||
8 | Requires.private: libdrm x11 xext xdamage xfixes xcb | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lGLESv2 -lEGL -lGAL | ||
11 | Libs.private: -lpthread -lrt | ||
12 | Cflags: -I${includedir} | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/vg.pc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/vg.pc new file mode 100644 index 0000000..7c00def --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/vg.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: vg | ||
7 | Description: Vivante OpenVG 1.1 library | ||
8 | Requires.private: | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lOpenVG -lEGL -lGAL | ||
11 | Libs.private: -lpthread -lrt | ||
12 | Cflags: -I${includedir} | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/vg_x11.pc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/vg_x11.pc new file mode 100644 index 0000000..94fb91e --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/vg_x11.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: vg | ||
7 | Description: Vivante OpenVG 1.1 library | ||
8 | Requires.private: libdrm x11 xext xdamage xfixes xcb | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lOpenVG -lEGL -lGAL | ||
11 | Libs.private: -lpthread -lrt | ||
12 | Cflags: -I${includedir} | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/wayland-egl.pc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/wayland-egl.pc new file mode 100644 index 0000000..ba1b898 --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/wayland-egl.pc | |||
@@ -0,0 +1,10 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=${exec_prefix}/lib | ||
4 | includedir=${prefix}/include | ||
5 | |||
6 | Name: wayland-egl | ||
7 | Description: Bind the driver EGL to the Wayland API | ||
8 | Version: 1.0.0 | ||
9 | Libs: -L${libdir} -lEGL | ||
10 | Cflags: -I${includedir} | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/wayland-viv.pc b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/wayland-viv.pc new file mode 100644 index 0000000..3fdedd0 --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/wayland-viv.pc | |||
@@ -0,0 +1,10 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=${exec_prefix}/lib | ||
4 | includedir=${prefix}/include | ||
5 | |||
6 | Name: Wayland Vivante Lib | ||
7 | Description: Wayland server side library for Vivante's EGL driver | ||
8 | Version: 0.1 | ||
9 | Cflags: -I${includedir}/wayland-viv | ||
10 | Libs: -L${libdir} -lwayland-viv | ||
diff --git a/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_3.10.9-1.0.0-hfp.bb b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_3.10.9-1.0.0-hfp.bb new file mode 100644 index 0000000..56610fb --- /dev/null +++ b/meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_3.10.9-1.0.0-hfp.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | # Copyright (C) 2013 Freescale Semiconductor | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | require gpu-viv-bin-mx6q.inc | ||
5 | |||
6 | SRC_URI[md5sum] = "52f5ebbb6a9b5d0eafdb952246de584e" | ||
7 | SRC_URI[sha256sum] = "8b0386e13d4a7c770f8bc8e7a6119629c5ed379488dd5ef635bc92353f906003" | ||
8 | |||
9 | PACKAGE_FP_TYPE = "hardfp" | ||
diff --git a/meta-architech-extras/recipes/imx-lib/imx-lib_3.10.9-1.0.0.bb b/meta-architech-extras/recipes/imx-lib/imx-lib_3.10.9-1.0.0.bb new file mode 100644 index 0000000..f2a736a --- /dev/null +++ b/meta-architech-extras/recipes/imx-lib/imx-lib_3.10.9-1.0.0.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | # Copyright (C) 2013 Freescale Semiconductor | ||
2 | |||
3 | require recipes-bsp/imx-lib/imx-lib.inc | ||
4 | |||
5 | SRC_URI[md5sum] = "5cc9c8d09c7ba401cdab4a2ecbda89e2" | ||
6 | SRC_URI[sha256sum] = "d1581c2f2956731da0c42e9dc17514a4d00790deeb83defeb5e07d14746190d8" | ||
7 | |||
8 | PE = "1" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "(mx6)" | ||
diff --git a/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0001-perf-tools-Fix-getrusage-related-build-failure-on-gl.patch b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0001-perf-tools-Fix-getrusage-related-build-failure-on-gl.patch new file mode 100644 index 0000000..abc02c9 --- /dev/null +++ b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0001-perf-tools-Fix-getrusage-related-build-failure-on-gl.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 503daf4789dd23e4dc1e16c256de0c163fc2bf87 Mon Sep 17 00:00:00 2001 | ||
2 | From: Markus Trippelsdorf <markus@trippelsdorf.de> | ||
3 | Date: Wed, 4 Apr 2012 10:45:27 +0200 | ||
4 | Subject: [PATCH] perf tools: Fix getrusage() related build failure on glibc | ||
5 | trunk | ||
6 | MIME-Version: 1.0 | ||
7 | Content-Type: text/plain; charset=UTF-8 | ||
8 | Content-Transfer-Encoding: 8bit | ||
9 | Organization: O.S. Systems Software LTDA. | ||
10 | |||
11 | On a system running glibc trunk perf doesn't build: | ||
12 | |||
13 | CC builtin-sched.o | ||
14 | builtin-sched.c: In function ‘get_cpu_usage_nsec_parent’: builtin-sched.c:399:16: error: storage size of ‘ru’ isn’t known builtin-sched.c:403:2: error: implicit declaration of function ‘getrusage’ [-Werror=implicit-function-declaration] | ||
15 | [...] | ||
16 | |||
17 | Fix it by including sys/resource.h. | ||
18 | |||
19 | Upstream-Status: Pending | ||
20 | |||
21 | Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de> | ||
22 | Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> | ||
23 | Link: http://lkml.kernel.org/r/20120404084527.GA294@x4 | ||
24 | Signed-off-by: Ingo Molnar <mingo@kernel.org> | ||
25 | --- | ||
26 | tools/perf/builtin-sched.c | 1 + | ||
27 | 1 file changed, 1 insertion(+) | ||
28 | |||
29 | diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c | ||
30 | index dcfe887..3632c2f 100644 | ||
31 | --- a/tools/perf/builtin-sched.c | ||
32 | +++ b/tools/perf/builtin-sched.c | ||
33 | @@ -14,6 +14,7 @@ | ||
34 | #include "util/debug.h" | ||
35 | |||
36 | #include <sys/prctl.h> | ||
37 | +#include <sys/resource.h> | ||
38 | |||
39 | #include <semaphore.h> | ||
40 | #include <pthread.h> | ||
41 | -- | ||
42 | 1.8.4.rc3 | ||
43 | |||
diff --git a/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0002-ARM-7668-1-fix-memset-related-crashes-caused-by-rece.patch b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0002-ARM-7668-1-fix-memset-related-crashes-caused-by-rece.patch new file mode 100644 index 0000000..4c31e74 --- /dev/null +++ b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0002-ARM-7668-1-fix-memset-related-crashes-caused-by-rece.patch | |||
@@ -0,0 +1,259 @@ | |||
1 | From 2235b85f1c76d98b5f1e160cbd0a61a84c15e125 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ivan Djelic <ivan.djelic@parrot.com> | ||
3 | Date: Wed, 6 Mar 2013 20:09:27 +0100 | ||
4 | Subject: [PATCH] ARM: 7668/1: fix memset-related crashes caused by recent GCC | ||
5 | (4.7.2) optimizations | ||
6 | Organization: O.S. Systems Software LTDA. | ||
7 | |||
8 | Recent GCC versions (e.g. GCC-4.7.2) perform optimizations based on | ||
9 | assumptions about the implementation of memset and similar functions. | ||
10 | The current ARM optimized memset code does not return the value of | ||
11 | its first argument, as is usually expected from standard implementations. | ||
12 | |||
13 | For instance in the following function: | ||
14 | |||
15 | void debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter) | ||
16 | { | ||
17 | memset(waiter, MUTEX_DEBUG_INIT, sizeof(*waiter)); | ||
18 | waiter->magic = waiter; | ||
19 | INIT_LIST_HEAD(&waiter->list); | ||
20 | } | ||
21 | |||
22 | compiled as: | ||
23 | |||
24 | 800554d0 <debug_mutex_lock_common>: | ||
25 | 800554d0: e92d4008 push {r3, lr} | ||
26 | 800554d4: e1a00001 mov r0, r1 | ||
27 | 800554d8: e3a02010 mov r2, #16 ; 0x10 | ||
28 | 800554dc: e3a01011 mov r1, #17 ; 0x11 | ||
29 | 800554e0: eb04426e bl 80165ea0 <memset> | ||
30 | 800554e4: e1a03000 mov r3, r0 | ||
31 | 800554e8: e583000c str r0, [r3, #12] | ||
32 | 800554ec: e5830000 str r0, [r3] | ||
33 | 800554f0: e5830004 str r0, [r3, #4] | ||
34 | 800554f4: e8bd8008 pop {r3, pc} | ||
35 | |||
36 | GCC assumes memset returns the value of pointer 'waiter' in register r0; causing | ||
37 | register/memory corruptions. | ||
38 | |||
39 | This patch fixes the return value of the assembly version of memset. | ||
40 | It adds a 'mov' instruction and merges an additional load+store into | ||
41 | existing load/store instructions. | ||
42 | For ease of review, here is a breakdown of the patch into 4 simple steps: | ||
43 | |||
44 | Step 1 | ||
45 | ====== | ||
46 | Perform the following substitutions: | ||
47 | ip -> r8, then | ||
48 | r0 -> ip, | ||
49 | and insert 'mov ip, r0' as the first statement of the function. | ||
50 | At this point, we have a memset() implementation returning the proper result, | ||
51 | but corrupting r8 on some paths (the ones that were using ip). | ||
52 | |||
53 | Step 2 | ||
54 | ====== | ||
55 | Make sure r8 is saved and restored when (! CALGN(1)+0) == 1: | ||
56 | |||
57 | save r8: | ||
58 | - str lr, [sp, #-4]! | ||
59 | + stmfd sp!, {r8, lr} | ||
60 | |||
61 | and restore r8 on both exit paths: | ||
62 | - ldmeqfd sp!, {pc} @ Now <64 bytes to go. | ||
63 | + ldmeqfd sp!, {r8, pc} @ Now <64 bytes to go. | ||
64 | (...) | ||
65 | tst r2, #16 | ||
66 | stmneia ip!, {r1, r3, r8, lr} | ||
67 | - ldr lr, [sp], #4 | ||
68 | + ldmfd sp!, {r8, lr} | ||
69 | |||
70 | Step 3 | ||
71 | ====== | ||
72 | Make sure r8 is saved and restored when (! CALGN(1)+0) == 0: | ||
73 | |||
74 | save r8: | ||
75 | - stmfd sp!, {r4-r7, lr} | ||
76 | + stmfd sp!, {r4-r8, lr} | ||
77 | |||
78 | and restore r8 on both exit paths: | ||
79 | bgt 3b | ||
80 | - ldmeqfd sp!, {r4-r7, pc} | ||
81 | + ldmeqfd sp!, {r4-r8, pc} | ||
82 | (...) | ||
83 | tst r2, #16 | ||
84 | stmneia ip!, {r4-r7} | ||
85 | - ldmfd sp!, {r4-r7, lr} | ||
86 | + ldmfd sp!, {r4-r8, lr} | ||
87 | |||
88 | Step 4 | ||
89 | ====== | ||
90 | Rewrite register list "r4-r7, r8" as "r4-r8". | ||
91 | |||
92 | Upstream-Status: Pending | ||
93 | |||
94 | Signed-off-by: Ivan Djelic <ivan.djelic@parrot.com> | ||
95 | Reviewed-by: Nicolas Pitre <nico@linaro.org> | ||
96 | Signed-off-by: Dirk Behme <dirk.behme@gmail.com> | ||
97 | Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> | ||
98 | (cherry picked from commit 455bd4c430b0c0a361f38e8658a0d6cb469942b5) | ||
99 | --- | ||
100 | arch/arm/lib/memset.S | 85 ++++++++++++++++++++++++++------------------------- | ||
101 | 1 file changed, 44 insertions(+), 41 deletions(-) | ||
102 | |||
103 | diff --git a/arch/arm/lib/memset.S b/arch/arm/lib/memset.S | ||
104 | index 650d592..d912e73 100644 | ||
105 | --- a/arch/arm/lib/memset.S | ||
106 | +++ b/arch/arm/lib/memset.S | ||
107 | @@ -19,9 +19,9 @@ | ||
108 | 1: subs r2, r2, #4 @ 1 do we have enough | ||
109 | blt 5f @ 1 bytes to align with? | ||
110 | cmp r3, #2 @ 1 | ||
111 | - strltb r1, [r0], #1 @ 1 | ||
112 | - strleb r1, [r0], #1 @ 1 | ||
113 | - strb r1, [r0], #1 @ 1 | ||
114 | + strltb r1, [ip], #1 @ 1 | ||
115 | + strleb r1, [ip], #1 @ 1 | ||
116 | + strb r1, [ip], #1 @ 1 | ||
117 | add r2, r2, r3 @ 1 (r2 = r2 - (4 - r3)) | ||
118 | /* | ||
119 | * The pointer is now aligned and the length is adjusted. Try doing the | ||
120 | @@ -29,10 +29,14 @@ | ||
121 | */ | ||
122 | |||
123 | ENTRY(memset) | ||
124 | - ands r3, r0, #3 @ 1 unaligned? | ||
125 | +/* | ||
126 | + * Preserve the contents of r0 for the return value. | ||
127 | + */ | ||
128 | + mov ip, r0 | ||
129 | + ands r3, ip, #3 @ 1 unaligned? | ||
130 | bne 1b @ 1 | ||
131 | /* | ||
132 | - * we know that the pointer in r0 is aligned to a word boundary. | ||
133 | + * we know that the pointer in ip is aligned to a word boundary. | ||
134 | */ | ||
135 | orr r1, r1, r1, lsl #8 | ||
136 | orr r1, r1, r1, lsl #16 | ||
137 | @@ -43,29 +47,28 @@ ENTRY(memset) | ||
138 | #if ! CALGN(1)+0 | ||
139 | |||
140 | /* | ||
141 | - * We need an extra register for this loop - save the return address and | ||
142 | - * use the LR | ||
143 | + * We need 2 extra registers for this loop - use r8 and the LR | ||
144 | */ | ||
145 | - str lr, [sp, #-4]! | ||
146 | - mov ip, r1 | ||
147 | + stmfd sp!, {r8, lr} | ||
148 | + mov r8, r1 | ||
149 | mov lr, r1 | ||
150 | |||
151 | 2: subs r2, r2, #64 | ||
152 | - stmgeia r0!, {r1, r3, ip, lr} @ 64 bytes at a time. | ||
153 | - stmgeia r0!, {r1, r3, ip, lr} | ||
154 | - stmgeia r0!, {r1, r3, ip, lr} | ||
155 | - stmgeia r0!, {r1, r3, ip, lr} | ||
156 | + stmgeia ip!, {r1, r3, r8, lr} @ 64 bytes at a time. | ||
157 | + stmgeia ip!, {r1, r3, r8, lr} | ||
158 | + stmgeia ip!, {r1, r3, r8, lr} | ||
159 | + stmgeia ip!, {r1, r3, r8, lr} | ||
160 | bgt 2b | ||
161 | - ldmeqfd sp!, {pc} @ Now <64 bytes to go. | ||
162 | + ldmeqfd sp!, {r8, pc} @ Now <64 bytes to go. | ||
163 | /* | ||
164 | * No need to correct the count; we're only testing bits from now on | ||
165 | */ | ||
166 | tst r2, #32 | ||
167 | - stmneia r0!, {r1, r3, ip, lr} | ||
168 | - stmneia r0!, {r1, r3, ip, lr} | ||
169 | + stmneia ip!, {r1, r3, r8, lr} | ||
170 | + stmneia ip!, {r1, r3, r8, lr} | ||
171 | tst r2, #16 | ||
172 | - stmneia r0!, {r1, r3, ip, lr} | ||
173 | - ldr lr, [sp], #4 | ||
174 | + stmneia ip!, {r1, r3, r8, lr} | ||
175 | + ldmfd sp!, {r8, lr} | ||
176 | |||
177 | #else | ||
178 | |||
179 | @@ -74,54 +77,54 @@ ENTRY(memset) | ||
180 | * whole cache lines at once. | ||
181 | */ | ||
182 | |||
183 | - stmfd sp!, {r4-r7, lr} | ||
184 | + stmfd sp!, {r4-r8, lr} | ||
185 | mov r4, r1 | ||
186 | mov r5, r1 | ||
187 | mov r6, r1 | ||
188 | mov r7, r1 | ||
189 | - mov ip, r1 | ||
190 | + mov r8, r1 | ||
191 | mov lr, r1 | ||
192 | |||
193 | cmp r2, #96 | ||
194 | - tstgt r0, #31 | ||
195 | + tstgt ip, #31 | ||
196 | ble 3f | ||
197 | |||
198 | - and ip, r0, #31 | ||
199 | - rsb ip, ip, #32 | ||
200 | - sub r2, r2, ip | ||
201 | - movs ip, ip, lsl #(32 - 4) | ||
202 | - stmcsia r0!, {r4, r5, r6, r7} | ||
203 | - stmmiia r0!, {r4, r5} | ||
204 | - tst ip, #(1 << 30) | ||
205 | - mov ip, r1 | ||
206 | - strne r1, [r0], #4 | ||
207 | + and r8, ip, #31 | ||
208 | + rsb r8, r8, #32 | ||
209 | + sub r2, r2, r8 | ||
210 | + movs r8, r8, lsl #(32 - 4) | ||
211 | + stmcsia ip!, {r4, r5, r6, r7} | ||
212 | + stmmiia ip!, {r4, r5} | ||
213 | + tst r8, #(1 << 30) | ||
214 | + mov r8, r1 | ||
215 | + strne r1, [ip], #4 | ||
216 | |||
217 | 3: subs r2, r2, #64 | ||
218 | - stmgeia r0!, {r1, r3-r7, ip, lr} | ||
219 | - stmgeia r0!, {r1, r3-r7, ip, lr} | ||
220 | + stmgeia ip!, {r1, r3-r8, lr} | ||
221 | + stmgeia ip!, {r1, r3-r8, lr} | ||
222 | bgt 3b | ||
223 | - ldmeqfd sp!, {r4-r7, pc} | ||
224 | + ldmeqfd sp!, {r4-r8, pc} | ||
225 | |||
226 | tst r2, #32 | ||
227 | - stmneia r0!, {r1, r3-r7, ip, lr} | ||
228 | + stmneia ip!, {r1, r3-r8, lr} | ||
229 | tst r2, #16 | ||
230 | - stmneia r0!, {r4-r7} | ||
231 | - ldmfd sp!, {r4-r7, lr} | ||
232 | + stmneia ip!, {r4-r7} | ||
233 | + ldmfd sp!, {r4-r8, lr} | ||
234 | |||
235 | #endif | ||
236 | |||
237 | 4: tst r2, #8 | ||
238 | - stmneia r0!, {r1, r3} | ||
239 | + stmneia ip!, {r1, r3} | ||
240 | tst r2, #4 | ||
241 | - strne r1, [r0], #4 | ||
242 | + strne r1, [ip], #4 | ||
243 | /* | ||
244 | * When we get here, we've got less than 4 bytes to zero. We | ||
245 | * may have an unaligned pointer as well. | ||
246 | */ | ||
247 | 5: tst r2, #2 | ||
248 | - strneb r1, [r0], #1 | ||
249 | - strneb r1, [r0], #1 | ||
250 | + strneb r1, [ip], #1 | ||
251 | + strneb r1, [ip], #1 | ||
252 | tst r2, #1 | ||
253 | - strneb r1, [r0], #1 | ||
254 | + strneb r1, [ip], #1 | ||
255 | mov pc, lr | ||
256 | ENDPROC(memset) | ||
257 | -- | ||
258 | 1.8.4.rc3 | ||
259 | |||
diff --git a/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0003-ARM-7670-1-fix-the-memset-fix.patch b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0003-ARM-7670-1-fix-the-memset-fix.patch new file mode 100644 index 0000000..b8d6f53 --- /dev/null +++ b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0003-ARM-7670-1-fix-the-memset-fix.patch | |||
@@ -0,0 +1,87 @@ | |||
1 | From 2ba23fa6c4128febaaf57fe184420a7111caa237 Mon Sep 17 00:00:00 2001 | ||
2 | From: Nicolas Pitre <nicolas.pitre@linaro.org> | ||
3 | Date: Tue, 12 Mar 2013 13:00:42 +0100 | ||
4 | Subject: [PATCH] ARM: 7670/1: fix the memset fix | ||
5 | Organization: O.S. Systems Software LTDA. | ||
6 | |||
7 | Commit 455bd4c430b0 ("ARM: 7668/1: fix memset-related crashes caused by | ||
8 | recent GCC (4.7.2) optimizations") attempted to fix a compliance issue | ||
9 | with the memset return value. However the memset itself became broken | ||
10 | by that patch for misaligned pointers. | ||
11 | |||
12 | This fixes the above by branching over the entry code from the | ||
13 | misaligned fixup code to avoid reloading the original pointer. | ||
14 | |||
15 | Also, because the function entry alignment is wrong in the Thumb mode | ||
16 | compilation, that fixup code is moved to the end. | ||
17 | |||
18 | While at it, the entry instructions are slightly reworked to help dual | ||
19 | issue pipelines. | ||
20 | |||
21 | Upstream-Status: Pending | ||
22 | |||
23 | Signed-off-by: Nicolas Pitre <nico@linaro.org> | ||
24 | Tested-by: Alexander Holler <holler@ahsoftware.de> | ||
25 | Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> | ||
26 | (cherry picked from commit 418df63adac56841ef6b0f1fcf435bc64d4ed177) | ||
27 | --- | ||
28 | arch/arm/lib/memset.S | 33 +++++++++++++-------------------- | ||
29 | 1 file changed, 13 insertions(+), 20 deletions(-) | ||
30 | |||
31 | diff --git a/arch/arm/lib/memset.S b/arch/arm/lib/memset.S | ||
32 | index d912e73..94b0650 100644 | ||
33 | --- a/arch/arm/lib/memset.S | ||
34 | +++ b/arch/arm/lib/memset.S | ||
35 | @@ -14,31 +14,15 @@ | ||
36 | |||
37 | .text | ||
38 | .align 5 | ||
39 | - .word 0 | ||
40 | - | ||
41 | -1: subs r2, r2, #4 @ 1 do we have enough | ||
42 | - blt 5f @ 1 bytes to align with? | ||
43 | - cmp r3, #2 @ 1 | ||
44 | - strltb r1, [ip], #1 @ 1 | ||
45 | - strleb r1, [ip], #1 @ 1 | ||
46 | - strb r1, [ip], #1 @ 1 | ||
47 | - add r2, r2, r3 @ 1 (r2 = r2 - (4 - r3)) | ||
48 | -/* | ||
49 | - * The pointer is now aligned and the length is adjusted. Try doing the | ||
50 | - * memset again. | ||
51 | - */ | ||
52 | |||
53 | ENTRY(memset) | ||
54 | -/* | ||
55 | - * Preserve the contents of r0 for the return value. | ||
56 | - */ | ||
57 | - mov ip, r0 | ||
58 | - ands r3, ip, #3 @ 1 unaligned? | ||
59 | - bne 1b @ 1 | ||
60 | + ands r3, r0, #3 @ 1 unaligned? | ||
61 | + mov ip, r0 @ preserve r0 as return value | ||
62 | + bne 6f @ 1 | ||
63 | /* | ||
64 | * we know that the pointer in ip is aligned to a word boundary. | ||
65 | */ | ||
66 | - orr r1, r1, r1, lsl #8 | ||
67 | +1: orr r1, r1, r1, lsl #8 | ||
68 | orr r1, r1, r1, lsl #16 | ||
69 | mov r3, r1 | ||
70 | cmp r2, #16 | ||
71 | @@ -127,4 +111,13 @@ ENTRY(memset) | ||
72 | tst r2, #1 | ||
73 | strneb r1, [ip], #1 | ||
74 | mov pc, lr | ||
75 | + | ||
76 | +6: subs r2, r2, #4 @ 1 do we have enough | ||
77 | + blt 5b @ 1 bytes to align with? | ||
78 | + cmp r3, #2 @ 1 | ||
79 | + strltb r1, [ip], #1 @ 1 | ||
80 | + strleb r1, [ip], #1 @ 1 | ||
81 | + strb r1, [ip], #1 @ 1 | ||
82 | + add r2, r2, r3 @ 1 (r2 = r2 - (4 - r3)) | ||
83 | + b 1b | ||
84 | ENDPROC(memset) | ||
85 | -- | ||
86 | 1.8.4.rc3 | ||
87 | |||
diff --git a/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0004-ENGR00271136-Fix-build-break-when-CONFIG_CLK_DEBUG-i.patch b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0004-ENGR00271136-Fix-build-break-when-CONFIG_CLK_DEBUG-i.patch new file mode 100644 index 0000000..7316351 --- /dev/null +++ b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0004-ENGR00271136-Fix-build-break-when-CONFIG_CLK_DEBUG-i.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From d8601292ae25e0af47aa4486055221ab44113f0e Mon Sep 17 00:00:00 2001 | ||
2 | From: Mahesh Mahadevan <Mahesh.Mahadevan@freescale.com> | ||
3 | Date: Mon, 15 Jul 2013 15:34:54 -0500 | ||
4 | Subject: [PATCH] ENGR00271136 Fix build break when CONFIG_CLK_DEBUG is | ||
5 | disabled | ||
6 | Organization: O.S. Systems Software LTDA. | ||
7 | |||
8 | clk structure member name is defined only when CONFIG_CLK_DEBUG is enabled. | ||
9 | Hence need to encapsulate the code with this config. | ||
10 | |||
11 | Patch received from imx community: | ||
12 | https://community.freescale.com/thread/308482 | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | |||
16 | Signed-off-by: xiongweihuang | ||
17 | Signed-off-by: Mahesh Mahadevan <Mahesh.Mahadevan@freescale.com> | ||
18 | --- | ||
19 | arch/arm/plat-mxc/clock.c | 4 ++-- | ||
20 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
21 | |||
22 | diff --git a/arch/arm/plat-mxc/clock.c b/arch/arm/plat-mxc/clock.c | ||
23 | index 93347eb..1aa2664 100755 | ||
24 | --- a/arch/arm/plat-mxc/clock.c | ||
25 | +++ b/arch/arm/plat-mxc/clock.c | ||
26 | @@ -58,12 +58,12 @@ static void __clk_disable(struct clk *clk) | ||
27 | { | ||
28 | if (clk == NULL || IS_ERR(clk)) | ||
29 | return; | ||
30 | - | ||
31 | +#ifdef CONFIG_CLK_DEBUG | ||
32 | if (!clk->usecount) { | ||
33 | WARN(1, "clock enable/disable mismatch! clk %s\n", clk->name); | ||
34 | return; | ||
35 | } | ||
36 | - | ||
37 | +#endif | ||
38 | if (!(--clk->usecount)) { | ||
39 | if (clk->disable) | ||
40 | clk->disable(clk); | ||
41 | -- | ||
42 | 1.8.4.rc3 | ||
43 | |||
diff --git a/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0005-ENGR00271359-Add-Multi-touch-support.patch b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0005-ENGR00271359-Add-Multi-touch-support.patch new file mode 100644 index 0000000..cb20198 --- /dev/null +++ b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0005-ENGR00271359-Add-Multi-touch-support.patch | |||
@@ -0,0 +1,98 @@ | |||
1 | From 538f4bb2f7a51f267395550a5be9f0ab2e426712 Mon Sep 17 00:00:00 2001 | ||
2 | From: Erik Boto <erik.boto@pelagicore.com> | ||
3 | Date: Tue, 16 Jul 2013 12:06:05 -0500 | ||
4 | Subject: [PATCH] ENGR00271359 Add Multi-touch support | ||
5 | Organization: O.S. Systems Software LTDA. | ||
6 | |||
7 | The previous behavior of the driver did not work properly with Qt5 | ||
8 | QtQuick multi touch-point gestures, due to how touch-points are | ||
9 | reported when removing a touch-point. My interpretation of the | ||
10 | available documentation [1] was that the driver should report all | ||
11 | touch-points between SYN_REPORTs, but it is not explicitly stated so. | ||
12 | I've found another mail-thread [2] where the creator of the protocol | ||
13 | states: | ||
14 | |||
15 | "The protocol defines a generic way of sending a variable amount of | ||
16 | contacts. The contact count is obtained by counting the number of | ||
17 | non-empty finger packets between SYN_REPORT events."-Henrik Rydberg | ||
18 | |||
19 | I think this verifies my assumption that all touch-points should be | ||
20 | reported between SYN_REPORTs, otherwise it can not be used to obtain | ||
21 | the count. | ||
22 | |||
23 | [1] https://www.kernel.org/doc/Documentation/input/multi-touch-protocol.txt | ||
24 | [2] http://lists.x.org/archives/xorg-devel/2010-March/006466.html | ||
25 | |||
26 | Upstream-Status: Pending | ||
27 | |||
28 | Signed-off-by: Erik Boto <erik.boto@pelagicore.com> | ||
29 | Signed-off-by: Mahesh Mahadevan <Mahesh.Mahadevan@freescale.com> | ||
30 | (cherry picked from commit 7cba001c5a502680f6dbf902821726779a9c9287) | ||
31 | --- | ||
32 | drivers/input/touchscreen/egalax_ts.c | 36 +++++++++++++++++------------------ | ||
33 | 1 file changed, 18 insertions(+), 18 deletions(-) | ||
34 | |||
35 | diff --git a/drivers/input/touchscreen/egalax_ts.c b/drivers/input/touchscreen/egalax_ts.c | ||
36 | index 0b6cde7..271f820 100644 | ||
37 | --- a/drivers/input/touchscreen/egalax_ts.c | ||
38 | +++ b/drivers/input/touchscreen/egalax_ts.c | ||
39 | @@ -133,7 +133,6 @@ retry: | ||
40 | } | ||
41 | |||
42 | if (down) { | ||
43 | - /* should also report old pointers */ | ||
44 | events[id].valid = valid; | ||
45 | events[id].status = down; | ||
46 | events[id].x = x; | ||
47 | @@ -144,23 +143,6 @@ retry: | ||
48 | input_report_abs(input_dev, ABS_Y, y); | ||
49 | input_event(data->input_dev, EV_KEY, BTN_TOUCH, 1); | ||
50 | input_report_abs(input_dev, ABS_PRESSURE, 1); | ||
51 | -#else | ||
52 | - for (i = 0; i < MAX_SUPPORT_POINTS; i++) { | ||
53 | - if (!events[i].valid) | ||
54 | - continue; | ||
55 | - dev_dbg(&client->dev, "report id:%d valid:%d x:%d y:%d", | ||
56 | - i, valid, x, y); | ||
57 | - | ||
58 | - input_report_abs(input_dev, | ||
59 | - ABS_MT_TRACKING_ID, i); | ||
60 | - input_report_abs(input_dev, | ||
61 | - ABS_MT_TOUCH_MAJOR, 1); | ||
62 | - input_report_abs(input_dev, | ||
63 | - ABS_MT_POSITION_X, events[i].x); | ||
64 | - input_report_abs(input_dev, | ||
65 | - ABS_MT_POSITION_Y, events[i].y); | ||
66 | - input_mt_sync(input_dev); | ||
67 | - } | ||
68 | #endif | ||
69 | } else { | ||
70 | dev_dbg(&client->dev, "release id:%d\n", id); | ||
71 | @@ -176,6 +158,24 @@ retry: | ||
72 | #endif | ||
73 | } | ||
74 | |||
75 | +#ifndef CONFIG_TOUCHSCREEN_EGALAX_SINGLE_TOUCH | ||
76 | + /* report all pointers */ | ||
77 | + for (i = 0; i < MAX_SUPPORT_POINTS; i++) { | ||
78 | + if (!events[i].valid) | ||
79 | + continue; | ||
80 | + dev_dbg(&client->dev, "report id:%d valid:%d x:%d y:%d", | ||
81 | + i, valid, x, y); | ||
82 | + input_report_abs(input_dev, | ||
83 | + ABS_MT_TRACKING_ID, i); | ||
84 | + input_report_abs(input_dev, | ||
85 | + ABS_MT_TOUCH_MAJOR, 1); | ||
86 | + input_report_abs(input_dev, | ||
87 | + ABS_MT_POSITION_X, events[i].x); | ||
88 | + input_report_abs(input_dev, | ||
89 | + ABS_MT_POSITION_Y, events[i].y); | ||
90 | + input_mt_sync(input_dev); | ||
91 | + } | ||
92 | +#endif | ||
93 | input_sync(input_dev); | ||
94 | return IRQ_HANDLED; | ||
95 | } | ||
96 | -- | ||
97 | 1.8.4.rc3 | ||
98 | |||
diff --git a/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0006-Add-support-for-DVI-monitors.patch b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0006-Add-support-for-DVI-monitors.patch new file mode 100644 index 0000000..00a6b5c --- /dev/null +++ b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0006-Add-support-for-DVI-monitors.patch | |||
@@ -0,0 +1,227 @@ | |||
1 | From 3e6441d113f72b412081a2c87f39011e4c253a35 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Winkler <robert.winkler@boundarydevices.com> | ||
3 | Date: Fri, 19 Jul 2013 19:00:41 -0700 | ||
4 | Subject: [PATCH] Add support for DVI monitors | ||
5 | Organization: O.S. Systems Software LTDA. | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Robert Winkler <robert.winkler@boundarydevices.com> | ||
10 | --- | ||
11 | arch/arm/plat-mxc/include/mach/mxc_hdmi.h | 7 +++ | ||
12 | drivers/video/mxc_hdmi.c | 98 +++++++++++++------------------ | ||
13 | 2 files changed, 49 insertions(+), 56 deletions(-) | ||
14 | |||
15 | diff --git a/arch/arm/plat-mxc/include/mach/mxc_hdmi.h b/arch/arm/plat-mxc/include/mach/mxc_hdmi.h | ||
16 | index 94f7638..af59c62 100644 | ||
17 | --- a/arch/arm/plat-mxc/include/mach/mxc_hdmi.h | ||
18 | +++ b/arch/arm/plat-mxc/include/mach/mxc_hdmi.h | ||
19 | @@ -605,6 +605,10 @@ enum { | ||
20 | HDMI_IH_MUTE_PHY_STAT0_TX_PHY_LOCK = 0x2, | ||
21 | HDMI_IH_MUTE_PHY_STAT0_HPD = 0x1, | ||
22 | |||
23 | +/* IH and IH_MUTE convenience macro RX_SENSE | HPD*/ | ||
24 | + HDMI_DVI_IH_STAT = 0x3D, | ||
25 | + | ||
26 | + | ||
27 | /* IH_AHBDMAAUD_STAT0 field values */ | ||
28 | HDMI_IH_AHBDMAAUD_STAT0_ERROR = 0x20, | ||
29 | HDMI_IH_AHBDMAAUD_STAT0_LOST = 0x10, | ||
30 | @@ -903,6 +907,9 @@ enum { | ||
31 | HDMI_PHY_HPD = 0x02, | ||
32 | HDMI_PHY_TX_PHY_LOCK = 0x01, | ||
33 | |||
34 | +/* HDMI STAT convenience RX_SENSE | HPD */ | ||
35 | + HDMI_DVI_STAT = 0xF2, | ||
36 | + | ||
37 | /* PHY_I2CM_SLAVE_ADDR field values */ | ||
38 | HDMI_PHY_I2CM_SLAVE_ADDR_PHY_GEN2 = 0x69, | ||
39 | HDMI_PHY_I2CM_SLAVE_ADDR_HEAC_PHY = 0x49, | ||
40 | diff --git a/drivers/video/mxc_hdmi.c b/drivers/video/mxc_hdmi.c | ||
41 | index c5069aa..544f352 100644 | ||
42 | --- a/drivers/video/mxc_hdmi.c | ||
43 | +++ b/drivers/video/mxc_hdmi.c | ||
44 | @@ -180,7 +180,6 @@ struct mxc_hdmi { | ||
45 | bool dft_mode_set; | ||
46 | char *dft_mode_str; | ||
47 | int default_bpp; | ||
48 | - u8 latest_intr_stat; | ||
49 | bool irq_enabled; | ||
50 | spinlock_t irq_lock; | ||
51 | bool phy_enabled; | ||
52 | @@ -1996,58 +1995,48 @@ static void hotplug_worker(struct work_struct *work) | ||
53 | struct delayed_work *delay_work = to_delayed_work(work); | ||
54 | struct mxc_hdmi *hdmi = | ||
55 | container_of(delay_work, struct mxc_hdmi, hotplug_work); | ||
56 | - u32 phy_int_stat, phy_int_pol, phy_int_mask; | ||
57 | - u8 val; | ||
58 | + u32 hdmi_phy_stat0, hdmi_phy_pol0, hdmi_phy_mask0; | ||
59 | unsigned long flags; | ||
60 | char event_string[32]; | ||
61 | char *envp[] = { event_string, NULL }; | ||
62 | |||
63 | - phy_int_stat = hdmi->latest_intr_stat; | ||
64 | - phy_int_pol = hdmi_readb(HDMI_PHY_POL0); | ||
65 | |||
66 | - dev_dbg(&hdmi->pdev->dev, "phy_int_stat=0x%x, phy_int_pol=0x%x\n", | ||
67 | - phy_int_stat, phy_int_pol); | ||
68 | + hdmi_phy_stat0 = hdmi_readb(HDMI_PHY_STAT0); | ||
69 | + hdmi_phy_pol0 = hdmi_readb(HDMI_PHY_POL0); | ||
70 | + | ||
71 | + dev_dbg(&hdmi->pdev->dev, "hdmi_phy_stat0=0x%x, hdmi_phy_pol0=0x%x\n", | ||
72 | + hdmi_phy_stat0, hdmi_phy_pol0); | ||
73 | + | ||
74 | + /* Make HPD intr active low to capture unplug event or | ||
75 | + * active high to capture plugin event */ | ||
76 | + hdmi_writeb((HDMI_DVI_STAT & ~hdmi_phy_stat0), HDMI_PHY_POL0); | ||
77 | |||
78 | /* check cable status */ | ||
79 | - if (phy_int_stat & HDMI_IH_PHY_STAT0_HPD) { | ||
80 | - /* cable connection changes */ | ||
81 | - if (phy_int_pol & HDMI_PHY_HPD) { | ||
82 | - /* Plugin event */ | ||
83 | - dev_dbg(&hdmi->pdev->dev, "EVENT=plugin\n"); | ||
84 | - mxc_hdmi_cable_connected(hdmi); | ||
85 | - | ||
86 | - /* Make HPD intr active low to capture unplug event */ | ||
87 | - val = hdmi_readb(HDMI_PHY_POL0); | ||
88 | - val &= ~HDMI_PHY_HPD; | ||
89 | - hdmi_writeb(val, HDMI_PHY_POL0); | ||
90 | - | ||
91 | - sprintf(event_string, "EVENT=plugin"); | ||
92 | - kobject_uevent_env(&hdmi->pdev->dev.kobj, KOBJ_CHANGE, envp); | ||
93 | + if (hdmi_phy_stat0 & HDMI_DVI_STAT) { | ||
94 | + /* Plugin event */ | ||
95 | + dev_dbg(&hdmi->pdev->dev, "EVENT=plugin\n"); | ||
96 | + mxc_hdmi_cable_connected(hdmi); | ||
97 | + | ||
98 | + sprintf(event_string, "EVENT=plugin"); | ||
99 | + kobject_uevent_env(&hdmi->pdev->dev.kobj, KOBJ_CHANGE, envp); | ||
100 | #ifdef CONFIG_MXC_HDMI_CEC | ||
101 | - mxc_hdmi_cec_handle(0x80); | ||
102 | + mxc_hdmi_cec_handle(0x80); | ||
103 | #endif | ||
104 | - hdmi_set_cable_state(1); | ||
105 | - | ||
106 | - } else if (!(phy_int_pol & HDMI_PHY_HPD)) { | ||
107 | - /* Plugout event */ | ||
108 | - dev_dbg(&hdmi->pdev->dev, "EVENT=plugout\n"); | ||
109 | - hdmi_set_cable_state(0); | ||
110 | - mxc_hdmi_abort_stream(); | ||
111 | - mxc_hdmi_cable_disconnected(hdmi); | ||
112 | + hdmi_set_cable_state(1); | ||
113 | |||
114 | - /* Make HPD intr active high to capture plugin event */ | ||
115 | - val = hdmi_readb(HDMI_PHY_POL0); | ||
116 | - val |= HDMI_PHY_HPD; | ||
117 | - hdmi_writeb(val, HDMI_PHY_POL0); | ||
118 | + } else { | ||
119 | + /* Plugout event */ | ||
120 | + dev_dbg(&hdmi->pdev->dev, "EVENT=plugout\n"); | ||
121 | + hdmi_set_cable_state(0); | ||
122 | + mxc_hdmi_abort_stream(); | ||
123 | + mxc_hdmi_cable_disconnected(hdmi); | ||
124 | |||
125 | - sprintf(event_string, "EVENT=plugout"); | ||
126 | - kobject_uevent_env(&hdmi->pdev->dev.kobj, KOBJ_CHANGE, envp); | ||
127 | + sprintf(event_string, "EVENT=plugout"); | ||
128 | + kobject_uevent_env(&hdmi->pdev->dev.kobj, KOBJ_CHANGE, envp); | ||
129 | #ifdef CONFIG_MXC_HDMI_CEC | ||
130 | - mxc_hdmi_cec_handle(0x100); | ||
131 | + mxc_hdmi_cec_handle(0x100); | ||
132 | #endif | ||
133 | |||
134 | - } else | ||
135 | - dev_dbg(&hdmi->pdev->dev, "EVENT=none?\n"); | ||
136 | } | ||
137 | |||
138 | /* Lock here to ensure full powerdown sequence | ||
139 | @@ -2055,12 +2044,12 @@ static void hotplug_worker(struct work_struct *work) | ||
140 | spin_lock_irqsave(&hdmi->irq_lock, flags); | ||
141 | |||
142 | /* Re-enable HPD interrupts */ | ||
143 | - phy_int_mask = hdmi_readb(HDMI_PHY_MASK0); | ||
144 | - phy_int_mask &= ~HDMI_PHY_HPD; | ||
145 | - hdmi_writeb(phy_int_mask, HDMI_PHY_MASK0); | ||
146 | + hdmi_phy_mask0 = hdmi_readb(HDMI_PHY_MASK0); | ||
147 | + hdmi_phy_mask0 &= ~HDMI_DVI_STAT; | ||
148 | + hdmi_writeb(hdmi_phy_mask0, HDMI_PHY_MASK0); | ||
149 | |||
150 | /* Unmute interrupts */ | ||
151 | - hdmi_writeb(~HDMI_IH_MUTE_PHY_STAT0_HPD, HDMI_IH_MUTE_PHY_STAT0); | ||
152 | + hdmi_writeb(~HDMI_DVI_IH_STAT, HDMI_IH_MUTE_PHY_STAT0); | ||
153 | |||
154 | if (hdmi_readb(HDMI_IH_FC_STAT2) & HDMI_IH_FC_STAT2_OVERFLOW_MASK) | ||
155 | mxc_hdmi_clear_overflow(); | ||
156 | @@ -2086,7 +2075,7 @@ static void hdcp_hdp_worker(struct work_struct *work) | ||
157 | static irqreturn_t mxc_hdmi_hotplug(int irq, void *data) | ||
158 | { | ||
159 | struct mxc_hdmi *hdmi = data; | ||
160 | - u8 val, intr_stat; | ||
161 | + u8 val; | ||
162 | unsigned long flags; | ||
163 | |||
164 | spin_lock_irqsave(&hdmi->irq_lock, flags); | ||
165 | @@ -2108,25 +2097,22 @@ static irqreturn_t mxc_hdmi_hotplug(int irq, void *data) | ||
166 | * HDMI registers. | ||
167 | */ | ||
168 | /* Capture status - used in hotplug_worker ISR */ | ||
169 | - intr_stat = hdmi_readb(HDMI_IH_PHY_STAT0); | ||
170 | - | ||
171 | - if (intr_stat & HDMI_IH_PHY_STAT0_HPD) { | ||
172 | + if (hdmi_readb(HDMI_IH_PHY_STAT0) & HDMI_DVI_IH_STAT) { | ||
173 | |||
174 | dev_dbg(&hdmi->pdev->dev, "Hotplug interrupt received\n"); | ||
175 | - hdmi->latest_intr_stat = intr_stat; | ||
176 | |||
177 | /* Mute interrupts until handled */ | ||
178 | |||
179 | val = hdmi_readb(HDMI_IH_MUTE_PHY_STAT0); | ||
180 | - val |= HDMI_IH_MUTE_PHY_STAT0_HPD; | ||
181 | + val |= HDMI_DVI_IH_STAT; | ||
182 | hdmi_writeb(val, HDMI_IH_MUTE_PHY_STAT0); | ||
183 | |||
184 | val = hdmi_readb(HDMI_PHY_MASK0); | ||
185 | - val |= HDMI_PHY_HPD; | ||
186 | + val |= HDMI_DVI_STAT; | ||
187 | hdmi_writeb(val, HDMI_PHY_MASK0); | ||
188 | |||
189 | /* Clear Hotplug interrupts */ | ||
190 | - hdmi_writeb(HDMI_IH_PHY_STAT0_HPD, HDMI_IH_PHY_STAT0); | ||
191 | + hdmi_writeb(HDMI_DVI_IH_STAT, HDMI_IH_PHY_STAT0); | ||
192 | |||
193 | schedule_delayed_work(&(hdmi->hotplug_work), msecs_to_jiffies(20)); | ||
194 | } | ||
195 | @@ -2282,13 +2268,13 @@ static void mxc_hdmi_fb_registered(struct mxc_hdmi *hdmi) | ||
196 | HDMI_PHY_I2CM_CTLINT_ADDR); | ||
197 | |||
198 | /* enable cable hot plug irq */ | ||
199 | - hdmi_writeb((u8)~HDMI_PHY_HPD, HDMI_PHY_MASK0); | ||
200 | + hdmi_writeb((u8)~HDMI_DVI_STAT, HDMI_PHY_MASK0); | ||
201 | |||
202 | /* Clear Hotplug interrupts */ | ||
203 | - hdmi_writeb(HDMI_IH_PHY_STAT0_HPD, HDMI_IH_PHY_STAT0); | ||
204 | + hdmi_writeb(HDMI_DVI_IH_STAT, HDMI_IH_PHY_STAT0); | ||
205 | |||
206 | /* Unmute interrupts */ | ||
207 | - hdmi_writeb(~HDMI_IH_MUTE_PHY_STAT0_HPD, HDMI_IH_MUTE_PHY_STAT0); | ||
208 | + hdmi_writeb(~HDMI_DVI_IH_STAT, HDMI_IH_MUTE_PHY_STAT0); | ||
209 | |||
210 | hdmi->fb_reg = true; | ||
211 | |||
212 | @@ -2522,10 +2508,10 @@ static int mxc_hdmi_disp_init(struct mxc_dispdrv_handle *disp, | ||
213 | |||
214 | /* Configure registers related to HDMI interrupt | ||
215 | * generation before registering IRQ. */ | ||
216 | - hdmi_writeb(HDMI_PHY_HPD, HDMI_PHY_POL0); | ||
217 | + hdmi_writeb(HDMI_DVI_STAT, HDMI_PHY_POL0); | ||
218 | |||
219 | /* Clear Hotplug interrupts */ | ||
220 | - hdmi_writeb(HDMI_IH_PHY_STAT0_HPD, HDMI_IH_PHY_STAT0); | ||
221 | + hdmi_writeb(HDMI_DVI_IH_STAT, HDMI_IH_PHY_STAT0); | ||
222 | |||
223 | hdmi->nb.notifier_call = mxc_hdmi_fb_event; | ||
224 | ret = fb_register_client(&hdmi->nb); | ||
225 | -- | ||
226 | 1.8.4.rc3 | ||
227 | |||
diff --git a/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0007-ARM-mach-mx6-board-mx6q_sabresd-Register-SDHC3-first.patch b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0007-ARM-mach-mx6-board-mx6q_sabresd-Register-SDHC3-first.patch new file mode 100644 index 0000000..d02aa40 --- /dev/null +++ b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/0007-ARM-mach-mx6-board-mx6q_sabresd-Register-SDHC3-first.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From cd31abbe08372fa870fac78ae845edd4859f8835 Mon Sep 17 00:00:00 2001 | ||
2 | From: Fabio Estevam <fabio.estevam@freescale.com> | ||
3 | Date: Sat, 28 Sep 2013 18:46:18 -0300 | ||
4 | Subject: [PATCH] ARM: mach-mx6: board-mx6q_sabresd: Register SDHC3 first | ||
5 | Organization: O.S. Systems Software LTDA. | ||
6 | |||
7 | On sabresd boards we boot from SDHC3, so let's register it as mmc0. | ||
8 | |||
9 | Currently eMMC is mmc0 and mmc1 can be SDHC3 or SDHC2 (if present). | ||
10 | |||
11 | Registering SDHC3 is safer as we can always find the rootfs. | ||
12 | |||
13 | Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> | ||
14 | --- | ||
15 | arch/arm/mach-mx6/board-mx6q_sabresd.c | 5 +---- | ||
16 | 1 file changed, 1 insertion(+), 4 deletions(-) | ||
17 | |||
18 | diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c | ||
19 | index 3f9a845..4e6b323 100644 | ||
20 | --- a/arch/arm/mach-mx6/board-mx6q_sabresd.c | ||
21 | +++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c | ||
22 | @@ -1847,12 +1847,9 @@ static void __init mx6_sabresd_board_init(void) | ||
23 | |||
24 | imx6q_add_pm_imx(0, &mx6q_sabresd_pm_data); | ||
25 | |||
26 | - /* Move sd4 to first because sd4 connect to emmc. | ||
27 | - Mfgtools want emmc is mmcblk0 and other sd card is mmcblk1. | ||
28 | - */ | ||
29 | + imx6q_add_sdhci_usdhc_imx(2, &mx6q_sabresd_sd3_data); | ||
30 | imx6q_add_sdhci_usdhc_imx(3, &mx6q_sabresd_sd4_data); | ||
31 | imx6q_add_sdhci_usdhc_imx(1, &mx6q_sabresd_sd2_data); | ||
32 | - imx6q_add_sdhci_usdhc_imx(2, &mx6q_sabresd_sd3_data); | ||
33 | imx_add_viv_gpu(&imx6_gpu_data, &imx6q_gpu_pdata); | ||
34 | imx6q_sabresd_init_usb(); | ||
35 | /* SATA is not supported by MX6DL/Solo */ | ||
36 | -- | ||
37 | 1.8.4.rc3 | ||
38 | |||
diff --git a/meta-architech-extras/recipes/linux/linux-imx-3.0.35/drm-vivante-Add-00-sufix-in-returned-bus-Id.patch b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/drm-vivante-Add-00-sufix-in-returned-bus-Id.patch new file mode 100644 index 0000000..815d02c --- /dev/null +++ b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/drm-vivante-Add-00-sufix-in-returned-bus-Id.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From b37a944f55a5010bd08297a63db0275540922f32 Mon Sep 17 00:00:00 2001 | ||
2 | From: Otavio Salvador <otavio@ossystems.com.br> | ||
3 | Date: Thu, 22 Aug 2013 16:31:29 -0300 | ||
4 | Subject: [PATCH] drm/vivante: Add ":00" sufix in returned bus Id | ||
5 | |||
6 | This makes the 3.0.35 compatible with a Xorg driver build for 3.5.7 or | ||
7 | newer kernels. | ||
8 | |||
9 | Upstream-Status: Inapropriate [embedded specific] | ||
10 | |||
11 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
12 | --- | ||
13 | drivers/gpu/drm/vivante/vivante_drv.c | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/drivers/gpu/drm/vivante/vivante_drv.c b/drivers/gpu/drm/vivante/vivante_drv.c | ||
17 | index 4224608..cea360d 100644 | ||
18 | --- a/drivers/gpu/drm/vivante/vivante_drv.c | ||
19 | +++ b/drivers/gpu/drm/vivante/vivante_drv.c | ||
20 | @@ -55,7 +55,7 @@ | ||
21 | |||
22 | #include "drm_pciids.h" | ||
23 | |||
24 | -static char platformdevicename[] = "Vivante GCCore"; | ||
25 | +static char platformdevicename[] = "Vivante GCCore:00"; | ||
26 | static struct platform_device *pplatformdev; | ||
27 | |||
28 | static struct drm_driver driver = { | ||
29 | -- | ||
30 | 1.8.4.rc1 | ||
31 | |||
diff --git a/meta-architech-extras/recipes/linux/linux-imx-3.0.35/epdc-Rename-mxcfb_epdc_kernel.h-to-mxc_epdc.h.patch b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/epdc-Rename-mxcfb_epdc_kernel.h-to-mxc_epdc.h.patch new file mode 100644 index 0000000..0a20b3f --- /dev/null +++ b/meta-architech-extras/recipes/linux/linux-imx-3.0.35/epdc-Rename-mxcfb_epdc_kernel.h-to-mxc_epdc.h.patch | |||
@@ -0,0 +1,143 @@ | |||
1 | From 149545df26169d257b144ff78934ce9cb5b6818b Mon Sep 17 00:00:00 2001 | ||
2 | From: Otavio Salvador <otavio@ossystems.com.br> | ||
3 | Date: Sat, 19 Oct 2013 10:55:11 -0300 | ||
4 | Subject: [PATCH] epdc: Rename mxcfb_epdc_kernel.h to mxc_epdc.h | ||
5 | Organization: O.S. Systems Software LTDA. | ||
6 | |||
7 | This allow for forward compatibility with imx-test >= 3.10.9-1.0.0. | ||
8 | |||
9 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
10 | --- | ||
11 | drivers/video/mxc/mxc_epdc_fb.c | 2 +- | ||
12 | include/linux/mxcfb_epdc.h | 49 +++++++++++++++++++++++++++++++++++++++ | ||
13 | include/linux/mxcfb_epdc_kernel.h | 49 --------------------------------------- | ||
14 | 3 files changed, 50 insertions(+), 50 deletions(-) | ||
15 | create mode 100644 include/linux/mxcfb_epdc.h | ||
16 | delete mode 100644 include/linux/mxcfb_epdc_kernel.h | ||
17 | |||
18 | diff --git a/drivers/video/mxc/mxc_epdc_fb.c b/drivers/video/mxc/mxc_epdc_fb.c | ||
19 | index 4103498..b3ef8ea 100644 | ||
20 | --- a/drivers/video/mxc/mxc_epdc_fb.c | ||
21 | +++ b/drivers/video/mxc/mxc_epdc_fb.c | ||
22 | @@ -43,7 +43,7 @@ | ||
23 | #include <linux/dmaengine.h> | ||
24 | #include <linux/pxp_dma.h> | ||
25 | #include <linux/mxcfb.h> | ||
26 | -#include <linux/mxcfb_epdc_kernel.h> | ||
27 | +#include <linux/mxcfb_epdc.h> | ||
28 | #include <linux/gpio.h> | ||
29 | #include <linux/regulator/driver.h> | ||
30 | #include <linux/fsl_devices.h> | ||
31 | diff --git a/include/linux/mxcfb_epdc.h b/include/linux/mxcfb_epdc.h | ||
32 | new file mode 100644 | ||
33 | index 0000000..06fea6f | ||
34 | --- /dev/null | ||
35 | +++ b/include/linux/mxcfb_epdc.h | ||
36 | @@ -0,0 +1,49 @@ | ||
37 | +/* | ||
38 | + * Copyright (C) 2010-2012 Freescale Semiconductor, Inc. All Rights Reserved. | ||
39 | + * | ||
40 | + * This program is free software; you can redistribute it and/or modify | ||
41 | + * it under the terms of the GNU General Public License as published by | ||
42 | + * the Free Software Foundation; either version 2 of the License, or | ||
43 | + * (at your option) any later version. | ||
44 | + * | ||
45 | + * This program is distributed in the hope that it will be useful, | ||
46 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
47 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
48 | + * GNU General Public License for more details. | ||
49 | + * | ||
50 | + * You should have received a copy of the GNU General Public License | ||
51 | + * along with this program; if not, write to the Free Software | ||
52 | + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
53 | + * | ||
54 | + */ | ||
55 | +#ifndef _MXCFB_EPDC_KERNEL | ||
56 | +#define _MXCFB_EPDC_KERNEL | ||
57 | + | ||
58 | +void mxc_epdc_fb_set_waveform_modes(struct mxcfb_waveform_modes *modes, | ||
59 | + struct fb_info *info); | ||
60 | +int mxc_epdc_fb_set_temperature(int temperature, struct fb_info *info); | ||
61 | +int mxc_epdc_fb_set_auto_update(u32 auto_mode, struct fb_info *info); | ||
62 | +int mxc_epdc_fb_send_update(struct mxcfb_update_data *upd_data, | ||
63 | + struct fb_info *info); | ||
64 | +int mxc_epdc_fb_wait_update_complete( | ||
65 | + struct mxcfb_update_marker_data *marker_data, | ||
66 | + struct fb_info *info); | ||
67 | +int mxc_epdc_fb_set_pwrdown_delay(u32 pwrdown_delay, | ||
68 | + struct fb_info *info); | ||
69 | +int mxc_epdc_get_pwrdown_delay(struct fb_info *info); | ||
70 | +int mxc_epdc_fb_set_upd_scheme(u32 upd_scheme, struct fb_info *info); | ||
71 | + | ||
72 | +void mxc_spdc_fb_set_waveform_modes(struct mxcfb_waveform_modes *modes, | ||
73 | + struct fb_info *info); | ||
74 | +int mxc_spdc_fb_set_temperature(int temperature, struct fb_info *info); | ||
75 | +int mxc_spdc_fb_set_auto_update(u32 auto_mode, struct fb_info *info); | ||
76 | +int mxc_spdc_fb_send_update(struct mxcfb_update_data *upd_data, | ||
77 | + struct fb_info *info); | ||
78 | +int mxc_spdc_fb_wait_update_complete( | ||
79 | + struct mxcfb_update_marker_data *marker_data, | ||
80 | + struct fb_info *info); | ||
81 | +int mxc_spdc_fb_set_pwrdown_delay(u32 pwrdown_delay, | ||
82 | + struct fb_info *info); | ||
83 | +int mxc_spdc_get_pwrdown_delay(struct fb_info *info); | ||
84 | +int mxc_spdc_fb_set_upd_scheme(u32 upd_scheme, struct fb_info *info); | ||
85 | +#endif | ||
86 | diff --git a/include/linux/mxcfb_epdc_kernel.h b/include/linux/mxcfb_epdc_kernel.h | ||
87 | deleted file mode 100644 | ||
88 | index 06fea6f..0000000 | ||
89 | --- a/include/linux/mxcfb_epdc_kernel.h | ||
90 | +++ /dev/null | ||
91 | @@ -1,49 +0,0 @@ | ||
92 | -/* | ||
93 | - * Copyright (C) 2010-2012 Freescale Semiconductor, Inc. All Rights Reserved. | ||
94 | - * | ||
95 | - * This program is free software; you can redistribute it and/or modify | ||
96 | - * it under the terms of the GNU General Public License as published by | ||
97 | - * the Free Software Foundation; either version 2 of the License, or | ||
98 | - * (at your option) any later version. | ||
99 | - * | ||
100 | - * This program is distributed in the hope that it will be useful, | ||
101 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
102 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
103 | - * GNU General Public License for more details. | ||
104 | - * | ||
105 | - * You should have received a copy of the GNU General Public License | ||
106 | - * along with this program; if not, write to the Free Software | ||
107 | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
108 | - * | ||
109 | - */ | ||
110 | -#ifndef _MXCFB_EPDC_KERNEL | ||
111 | -#define _MXCFB_EPDC_KERNEL | ||
112 | - | ||
113 | -void mxc_epdc_fb_set_waveform_modes(struct mxcfb_waveform_modes *modes, | ||
114 | - struct fb_info *info); | ||
115 | -int mxc_epdc_fb_set_temperature(int temperature, struct fb_info *info); | ||
116 | -int mxc_epdc_fb_set_auto_update(u32 auto_mode, struct fb_info *info); | ||
117 | -int mxc_epdc_fb_send_update(struct mxcfb_update_data *upd_data, | ||
118 | - struct fb_info *info); | ||
119 | -int mxc_epdc_fb_wait_update_complete( | ||
120 | - struct mxcfb_update_marker_data *marker_data, | ||
121 | - struct fb_info *info); | ||
122 | -int mxc_epdc_fb_set_pwrdown_delay(u32 pwrdown_delay, | ||
123 | - struct fb_info *info); | ||
124 | -int mxc_epdc_get_pwrdown_delay(struct fb_info *info); | ||
125 | -int mxc_epdc_fb_set_upd_scheme(u32 upd_scheme, struct fb_info *info); | ||
126 | - | ||
127 | -void mxc_spdc_fb_set_waveform_modes(struct mxcfb_waveform_modes *modes, | ||
128 | - struct fb_info *info); | ||
129 | -int mxc_spdc_fb_set_temperature(int temperature, struct fb_info *info); | ||
130 | -int mxc_spdc_fb_set_auto_update(u32 auto_mode, struct fb_info *info); | ||
131 | -int mxc_spdc_fb_send_update(struct mxcfb_update_data *upd_data, | ||
132 | - struct fb_info *info); | ||
133 | -int mxc_spdc_fb_wait_update_complete( | ||
134 | - struct mxcfb_update_marker_data *marker_data, | ||
135 | - struct fb_info *info); | ||
136 | -int mxc_spdc_fb_set_pwrdown_delay(u32 pwrdown_delay, | ||
137 | - struct fb_info *info); | ||
138 | -int mxc_spdc_get_pwrdown_delay(struct fb_info *info); | ||
139 | -int mxc_spdc_fb_set_upd_scheme(u32 upd_scheme, struct fb_info *info); | ||
140 | -#endif | ||
141 | -- | ||
142 | 1.8.4.rc3 | ||
143 | |||
diff --git a/meta-architech-extras/recipes/linux/linux-imx_3.0.35.bb b/meta-architech-extras/recipes/linux/linux-imx_3.0.35.bb new file mode 100644 index 0000000..948382f --- /dev/null +++ b/meta-architech-extras/recipes/linux/linux-imx_3.0.35.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | # Copyright (C) 2011-2013 Freescale Semiconductor | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | require recipes-kernel/linux/linux-imx.inc | ||
5 | |||
6 | COMPATIBLE_MACHINE = "(mx6)" | ||
7 | |||
8 | # Revision of 4.1.0 branch | ||
9 | SRCREV = "bdde708ebfde4a8c1d3829578d3f6481a343533a" | ||
10 | LOCALVERSION = "-4.1.0+yocto" | ||
11 | |||
12 | # Patches need for Yocto and not applied by Freescale when doing 4.1.0 branch | ||
13 | SRC_URI += "file://drm-vivante-Add-00-sufix-in-returned-bus-Id.patch \ | ||
14 | file://epdc-Rename-mxcfb_epdc_kernel.h-to-mxc_epdc.h.patch \ | ||
15 | file://0001-perf-tools-Fix-getrusage-related-build-failure-on-gl.patch \ | ||
16 | file://0002-ARM-7668-1-fix-memset-related-crashes-caused-by-rece.patch \ | ||
17 | file://0003-ARM-7670-1-fix-the-memset-fix.patch \ | ||
18 | file://0004-ENGR00271136-Fix-build-break-when-CONFIG_CLK_DEBUG-i.patch \ | ||
19 | file://0005-ENGR00271359-Add-Multi-touch-support.patch \ | ||
20 | file://0006-Add-support-for-DVI-monitors.patch \ | ||
21 | file://0007-ARM-mach-mx6-board-mx6q_sabresd-Register-SDHC3-first.patch" | ||
22 | |||
23 | # kernel image files are not needed in the image | ||
24 | RDEPENDS_kernel-base = "" | ||
25 | |||
26 | do_configure_prepend() { | ||
27 | # FunctionFS for adb | ||
28 | echo "CONFIG_USB_FUNCTIONFS=m" >> ${WORKDIR}/defconfig | ||
29 | |||
30 | # Enable USB serial support | ||
31 | echo "CONFIG_USB_SERIAL=m" >> ${WORKDIR}/defconfig | ||
32 | echo "CONFIG_USB_SERIAL_GENERIC=y" >> ${WORKDIR}/defconfig | ||
33 | echo "CONFIG_USB_SERIAL_FTDI_SIO=m" >> ${WORKDIR}/defconfig | ||
34 | echo "CONFIG_USB_SERIAL_PL2303=m" >> ${WORKDIR}/defconfig | ||
35 | } | ||
diff --git a/meta-architech-extras/recipes/u-boot/u-boot-fslc_2013.10.bb b/meta-architech-extras/recipes/u-boot/u-boot-fslc_2013.10.bb new file mode 100644 index 0000000..73d4371 --- /dev/null +++ b/meta-architech-extras/recipes/u-boot/u-boot-fslc_2013.10.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | require recipes-bsp/u-boot/u-boot.inc | ||
2 | |||
3 | LICENSE = "GPLv2+" | ||
4 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" | ||
5 | COMPATIBLE_MACHINE = "(mxs|mx3|mx5|mx6|vf60)" | ||
6 | |||
7 | DEPENDS_mxs += "elftosb-native openssl-native" | ||
8 | |||
9 | PROVIDES += "u-boot" | ||
10 | |||
11 | PV = "v2013.10" | ||
12 | |||
13 | SRCREV = "079e214888279518ce061c71238a74a0c3db2c28" | ||
14 | SRC_URI = "git://github.com/Freescale/u-boot-imx.git" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | # FIXME: Allow linking of 'tools' binaries with native libraries | ||
19 | # used for generating the boot logo and other tools used | ||
20 | # during the build process. | ||
21 | EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \ | ||
22 | HOSTLDFLAGS="-L${STAGING_BASE_LIBDIR_NATIVE} -L${STAGING_LIBDIR_NATIVE}" \ | ||
23 | HOSTSTRIP=true' | ||
24 | |||
25 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
diff --git a/meta-beagleboard-extras/recipes/linux/linux-mainline/ARM-perf-add-support-for-perf-registers-API.diff b/meta-beagleboard-extras/recipes/linux/linux-mainline/ARM-perf-add-support-for-perf-registers-API.diff new file mode 100644 index 0000000..13b251a --- /dev/null +++ b/meta-beagleboard-extras/recipes/linux/linux-mainline/ARM-perf-add-support-for-perf-registers-API.diff | |||
@@ -0,0 +1,128 @@ | |||
1 | From 8221f36672b7a1336c2bf245c394f0b5453784a1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Will Deacon <will.deacon@arm.com> | ||
3 | Date: Thu, 26 Sep 2013 12:36:35 +0100 | ||
4 | Subject: [PATCH] ARM: perf: add support for perf registers API | ||
5 | |||
6 | This patch implements the functions required for the perf registers API, | ||
7 | allowing the perf tool to interface kernel register dumps with libunwind | ||
8 | in order to provide userspace backtracing. | ||
9 | |||
10 | B2Qt: Backported for 3.8 kernel | ||
11 | |||
12 | Cc: Jean Pihet <jean.pihet@linaro.org> | ||
13 | Signed-off-by: Will Deacon <will.deacon@arm.com> | ||
14 | --- | ||
15 | arch/arm/Kconfig | 2 ++ | ||
16 | arch/arm/include/uapi/asm/Kbuild | 1 + | ||
17 | arch/arm/include/uapi/asm/perf_regs.h | 23 +++++++++++++++++++++++ | ||
18 | arch/arm/kernel/Makefile | 1 + | ||
19 | arch/arm/kernel/perf_regs.c | 30 ++++++++++++++++++++++++++++++ | ||
20 | 5 files changed, 57 insertions(+) | ||
21 | create mode 100644 arch/arm/include/uapi/asm/perf_regs.h | ||
22 | create mode 100644 arch/arm/kernel/perf_regs.c | ||
23 | |||
24 | diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig | ||
25 | index 67874b8..6f630be 100644 | ||
26 | --- a/arch/arm/Kconfig | ||
27 | +++ b/arch/arm/Kconfig | ||
28 | @@ -46,6 +46,8 @@ config ARM | ||
29 | select HAVE_MEMBLOCK | ||
30 | select HAVE_OPROFILE if (HAVE_PERF_EVENTS) | ||
31 | select HAVE_PERF_EVENTS | ||
32 | + select HAVE_PERF_REGS | ||
33 | + select HAVE_PERF_USER_STACK_DUMP | ||
34 | select HAVE_REGS_AND_STACK_ACCESS_API | ||
35 | select HAVE_SYSCALL_TRACEPOINTS | ||
36 | select HAVE_UID16 | ||
37 | diff --git a/arch/arm/include/uapi/asm/Kbuild b/arch/arm/include/uapi/asm/Kbuild | ||
38 | index 47bcb2d..570b82f 100644 | ||
39 | --- a/arch/arm/include/uapi/asm/Kbuild | ||
40 | +++ b/arch/arm/include/uapi/asm/Kbuild | ||
41 | @@ -8,6 +8,7 @@ header-y += hwcap.h | ||
42 | header-y += ioctls.h | ||
43 | header-y += kvm_para.h | ||
44 | header-y += mman.h | ||
45 | +header-y += perf_regs.h | ||
46 | header-y += posix_types.h | ||
47 | header-y += ptrace.h | ||
48 | header-y += setup.h | ||
49 | diff --git a/arch/arm/include/uapi/asm/perf_regs.h b/arch/arm/include/uapi/asm/perf_regs.h | ||
50 | new file mode 100644 | ||
51 | index 0000000..ce59448 | ||
52 | --- /dev/null | ||
53 | +++ b/arch/arm/include/uapi/asm/perf_regs.h | ||
54 | @@ -0,0 +1,23 @@ | ||
55 | +#ifndef _ASM_ARM_PERF_REGS_H | ||
56 | +#define _ASM_ARM_PERF_REGS_H | ||
57 | + | ||
58 | +enum perf_event_arm_regs { | ||
59 | + PERF_REG_ARM_R0, | ||
60 | + PERF_REG_ARM_R1, | ||
61 | + PERF_REG_ARM_R2, | ||
62 | + PERF_REG_ARM_R3, | ||
63 | + PERF_REG_ARM_R4, | ||
64 | + PERF_REG_ARM_R5, | ||
65 | + PERF_REG_ARM_R6, | ||
66 | + PERF_REG_ARM_R7, | ||
67 | + PERF_REG_ARM_R8, | ||
68 | + PERF_REG_ARM_R9, | ||
69 | + PERF_REG_ARM_R10, | ||
70 | + PERF_REG_ARM_FP, | ||
71 | + PERF_REG_ARM_IP, | ||
72 | + PERF_REG_ARM_SP, | ||
73 | + PERF_REG_ARM_LR, | ||
74 | + PERF_REG_ARM_PC, | ||
75 | + PERF_REG_ARM_MAX, | ||
76 | +}; | ||
77 | +#endif /* _ASM_ARM_PERF_REGS_H */ | ||
78 | diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile | ||
79 | index 5bbec7b..c6ab18f 100644 | ||
80 | --- a/arch/arm/kernel/Makefile | ||
81 | +++ b/arch/arm/kernel/Makefile | ||
82 | @@ -69,6 +69,7 @@ obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o | ||
83 | obj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o | ||
84 | obj-$(CONFIG_CPU_PJ4) += pj4-cp0.o | ||
85 | obj-$(CONFIG_IWMMXT) += iwmmxt.o | ||
86 | +obj-$(CONFIG_PERF_EVENTS) += perf_regs.o | ||
87 | obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o perf_event_cpu.o | ||
88 | AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt | ||
89 | obj-$(CONFIG_ARM_CPU_TOPOLOGY) += topology.o | ||
90 | diff --git a/arch/arm/kernel/perf_regs.c b/arch/arm/kernel/perf_regs.c | ||
91 | new file mode 100644 | ||
92 | index 0000000..6e4379c | ||
93 | --- /dev/null | ||
94 | +++ b/arch/arm/kernel/perf_regs.c | ||
95 | @@ -0,0 +1,30 @@ | ||
96 | + | ||
97 | +#include <linux/errno.h> | ||
98 | +#include <linux/kernel.h> | ||
99 | +#include <linux/perf_event.h> | ||
100 | +#include <linux/bug.h> | ||
101 | +#include <asm/perf_regs.h> | ||
102 | +#include <asm/ptrace.h> | ||
103 | + | ||
104 | +u64 perf_reg_value(struct pt_regs *regs, int idx) | ||
105 | +{ | ||
106 | + if (WARN_ON_ONCE((u32)idx >= PERF_REG_ARM_MAX)) | ||
107 | + return 0; | ||
108 | + | ||
109 | + return regs->uregs[idx]; | ||
110 | +} | ||
111 | + | ||
112 | +#define REG_RESERVED (~((1ULL << PERF_REG_ARM_MAX) - 1)) | ||
113 | + | ||
114 | +int perf_reg_validate(u64 mask) | ||
115 | +{ | ||
116 | + if (!mask || mask & REG_RESERVED) | ||
117 | + return -EINVAL; | ||
118 | + | ||
119 | + return 0; | ||
120 | +} | ||
121 | + | ||
122 | +u64 perf_reg_abi(struct task_struct *task) | ||
123 | +{ | ||
124 | + return PERF_SAMPLE_REGS_ABI_32; | ||
125 | +} | ||
126 | -- | ||
127 | 1.9.1 | ||
128 | |||
diff --git a/meta-beagleboard-extras/recipes/linux/linux-mainline/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch b/meta-beagleboard-extras/recipes/linux/linux-mainline/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch new file mode 100644 index 0000000..e3e8d21 --- /dev/null +++ b/meta-beagleboard-extras/recipes/linux/linux-mainline/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch | |||
@@ -0,0 +1,163 @@ | |||
1 | From 26f603c457e0af9f5f6a0ddda66e69978c7f43b4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Will Deacon <will.deacon@arm.com> | ||
3 | Date: Thu, 26 Sep 2013 12:36:36 +0100 | ||
4 | Subject: [PATCH] ARM: perf: wire up perf_regs and unwind support for ARM | ||
5 | |||
6 | This patch hooks in the perf_regs and libunwind code for ARM. | ||
7 | |||
8 | B2Qt: Backported for 3.8 kernel | ||
9 | |||
10 | Cc: Jean Pihet <jean.pihet@linaro.org> | ||
11 | Signed-off-by: Will Deacon <will.deacon@arm.com> | ||
12 | --- | ||
13 | tools/perf/Makefile | 4 +++ | ||
14 | tools/perf/arch/arm/Makefile | 3 ++ | ||
15 | tools/perf/arch/arm/include/perf_regs.h | 54 +++++++++++++++++++++++++++++++++ | ||
16 | tools/perf/arch/arm/util/unwind.c | 48 +++++++++++++++++++++++++++++ | ||
17 | 4 files changed, 109 insertions(+) | ||
18 | create mode 100644 tools/perf/arch/arm/include/perf_regs.h | ||
19 | create mode 100644 tools/perf/arch/arm/util/unwind.c | ||
20 | |||
21 | diff --git a/tools/perf/Makefile b/tools/perf/Makefile | ||
22 | index fb1b1c4..316c575 100644 | ||
23 | --- a/tools/perf/Makefile | ||
24 | +++ b/tools/perf/Makefile | ||
25 | @@ -84,6 +84,10 @@ ifeq ($(ARCH),x86_64) | ||
26 | NO_PERF_REGS := 0 | ||
27 | LIBUNWIND_LIBS = -lunwind -lunwind-x86_64 | ||
28 | endif | ||
29 | +ifeq ($(ARCH),arm) | ||
30 | + NO_PERF_REGS := 0 | ||
31 | + LIBUNWIND_LIBS = -lunwind -lunwind-arm | ||
32 | +endif | ||
33 | |||
34 | # Treat warnings as errors unless directed not to | ||
35 | ifneq ($(WERROR),0) | ||
36 | diff --git a/tools/perf/arch/arm/Makefile b/tools/perf/arch/arm/Makefile | ||
37 | index 15130b5..fe9b61e 100644 | ||
38 | --- a/tools/perf/arch/arm/Makefile | ||
39 | +++ b/tools/perf/arch/arm/Makefile | ||
40 | @@ -2,3 +2,6 @@ ifndef NO_DWARF | ||
41 | PERF_HAVE_DWARF_REGS := 1 | ||
42 | LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/dwarf-regs.o | ||
43 | endif | ||
44 | +ifndef NO_LIBUNWIND | ||
45 | +LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/unwind.o | ||
46 | +endif | ||
47 | diff --git a/tools/perf/arch/arm/include/perf_regs.h b/tools/perf/arch/arm/include/perf_regs.h | ||
48 | new file mode 100644 | ||
49 | index 0000000..2a1cfde | ||
50 | --- /dev/null | ||
51 | +++ b/tools/perf/arch/arm/include/perf_regs.h | ||
52 | @@ -0,0 +1,54 @@ | ||
53 | +#ifndef ARCH_PERF_REGS_H | ||
54 | +#define ARCH_PERF_REGS_H | ||
55 | + | ||
56 | +#include <stdlib.h> | ||
57 | +#include "../../util/types.h" | ||
58 | +#include <asm/perf_regs.h> | ||
59 | + | ||
60 | +#define PERF_REGS_MASK ((1ULL << PERF_REG_ARM_MAX) - 1) | ||
61 | +#define PERF_REG_IP PERF_REG_ARM_PC | ||
62 | +#define PERF_REG_SP PERF_REG_ARM_SP | ||
63 | + | ||
64 | +static inline const char *perf_reg_name(int id) | ||
65 | +{ | ||
66 | + switch (id) { | ||
67 | + case PERF_REG_ARM_R0: | ||
68 | + return "r0"; | ||
69 | + case PERF_REG_ARM_R1: | ||
70 | + return "r1"; | ||
71 | + case PERF_REG_ARM_R2: | ||
72 | + return "r2"; | ||
73 | + case PERF_REG_ARM_R3: | ||
74 | + return "r3"; | ||
75 | + case PERF_REG_ARM_R4: | ||
76 | + return "r4"; | ||
77 | + case PERF_REG_ARM_R5: | ||
78 | + return "r5"; | ||
79 | + case PERF_REG_ARM_R6: | ||
80 | + return "r6"; | ||
81 | + case PERF_REG_ARM_R7: | ||
82 | + return "r7"; | ||
83 | + case PERF_REG_ARM_R8: | ||
84 | + return "r8"; | ||
85 | + case PERF_REG_ARM_R9: | ||
86 | + return "r9"; | ||
87 | + case PERF_REG_ARM_R10: | ||
88 | + return "r10"; | ||
89 | + case PERF_REG_ARM_FP: | ||
90 | + return "fp"; | ||
91 | + case PERF_REG_ARM_IP: | ||
92 | + return "ip"; | ||
93 | + case PERF_REG_ARM_SP: | ||
94 | + return "sp"; | ||
95 | + case PERF_REG_ARM_LR: | ||
96 | + return "lr"; | ||
97 | + case PERF_REG_ARM_PC: | ||
98 | + return "pc"; | ||
99 | + default: | ||
100 | + return NULL; | ||
101 | + } | ||
102 | + | ||
103 | + return NULL; | ||
104 | +} | ||
105 | + | ||
106 | +#endif /* ARCH_PERF_REGS_H */ | ||
107 | diff --git a/tools/perf/arch/arm/util/unwind.c b/tools/perf/arch/arm/util/unwind.c | ||
108 | new file mode 100644 | ||
109 | index 0000000..da3dc95 | ||
110 | --- /dev/null | ||
111 | +++ b/tools/perf/arch/arm/util/unwind.c | ||
112 | @@ -0,0 +1,48 @@ | ||
113 | + | ||
114 | +#include <errno.h> | ||
115 | +#include <libunwind.h> | ||
116 | +#include "perf_regs.h" | ||
117 | +#include "../../util/unwind.h" | ||
118 | + | ||
119 | +int unwind__arch_reg_id(int regnum) | ||
120 | +{ | ||
121 | + switch (regnum) { | ||
122 | + case UNW_ARM_R0: | ||
123 | + return PERF_REG_ARM_R0; | ||
124 | + case UNW_ARM_R1: | ||
125 | + return PERF_REG_ARM_R1; | ||
126 | + case UNW_ARM_R2: | ||
127 | + return PERF_REG_ARM_R2; | ||
128 | + case UNW_ARM_R3: | ||
129 | + return PERF_REG_ARM_R3; | ||
130 | + case UNW_ARM_R4: | ||
131 | + return PERF_REG_ARM_R4; | ||
132 | + case UNW_ARM_R5: | ||
133 | + return PERF_REG_ARM_R5; | ||
134 | + case UNW_ARM_R6: | ||
135 | + return PERF_REG_ARM_R6; | ||
136 | + case UNW_ARM_R7: | ||
137 | + return PERF_REG_ARM_R7; | ||
138 | + case UNW_ARM_R8: | ||
139 | + return PERF_REG_ARM_R8; | ||
140 | + case UNW_ARM_R9: | ||
141 | + return PERF_REG_ARM_R9; | ||
142 | + case UNW_ARM_R10: | ||
143 | + return PERF_REG_ARM_R10; | ||
144 | + case UNW_ARM_R11: | ||
145 | + return PERF_REG_ARM_FP; | ||
146 | + case UNW_ARM_R12: | ||
147 | + return PERF_REG_ARM_IP; | ||
148 | + case UNW_ARM_R13: | ||
149 | + return PERF_REG_ARM_SP; | ||
150 | + case UNW_ARM_R14: | ||
151 | + return PERF_REG_ARM_LR; | ||
152 | + case UNW_ARM_R15: | ||
153 | + return PERF_REG_ARM_PC; | ||
154 | + default: | ||
155 | + pr_err("unwind: invalid reg id %d\n", regnum); | ||
156 | + return -EINVAL; | ||
157 | + } | ||
158 | + | ||
159 | + return -EINVAL; | ||
160 | +} | ||
161 | -- | ||
162 | 1.9.1 | ||
163 | |||
diff --git a/meta-beagleboard-extras/recipes/linux/linux-mainline_3.8.bbappend b/meta-beagleboard-extras/recipes/linux/linux-mainline_3.8.bbappend index f91ea8e..54ef15f 100644 --- a/meta-beagleboard-extras/recipes/linux/linux-mainline_3.8.bbappend +++ b/meta-beagleboard-extras/recipes/linux/linux-mainline_3.8.bbappend | |||
@@ -1,8 +1,11 @@ | |||
1 | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
2 | SRC_URI += "\ | 3 | SRC_URI += "\ |
3 | file://0001-AM335x-Adding-SGX-DT-node.patch \ | 4 | file://0001-AM335x-Adding-SGX-DT-node.patch \ |
4 | file://0002-AM33XX-Invoke-hwmod-deassert-for-SGX-graphics-device.patch \ | 5 | file://0002-AM33XX-Invoke-hwmod-deassert-for-SGX-graphics-device.patch \ |
5 | file://0003-video-da8xx-fb-Add-API-to-register-wait-for-vsync-ca.patch \ | 6 | file://0003-video-da8xx-fb-Add-API-to-register-wait-for-vsync-ca.patch \ |
7 | file://ARM-perf-add-support-for-perf-registers-API.diff \ | ||
8 | file://ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch \ | ||
6 | " | 9 | " |
7 | 10 | ||
8 | INSANE_SKIP_${PN} = "installed-vs-shipped" | 11 | INSANE_SKIP_${PN} = "installed-vs-shipped" |
diff --git a/meta-fsl-extras/recipes/linux/linux-boundary_3.10.17.bbappend b/meta-fsl-extras/recipes/linux/linux-boundary_3.10.17.bbappend index 19c2c13..1d7f942 100644 --- a/meta-fsl-extras/recipes/linux/linux-boundary_3.10.17.bbappend +++ b/meta-fsl-extras/recipes/linux/linux-boundary_3.10.17.bbappend | |||
@@ -20,19 +20,29 @@ | |||
20 | ## | 20 | ## |
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | FILESEXTRAPATHS_prepend := "${THISDIR}/../../../recipes/linux/linux:" | ||
24 | SRC_URI += "\ | ||
25 | file://ARM-perf-add-support-for-perf-registers-API.diff \ | ||
26 | file://ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch \ | ||
27 | " | ||
28 | |||
23 | # kernel image files are not needed in the image | 29 | # kernel image files are not needed in the image |
24 | RDEPENDS_kernel-base = "" | 30 | RDEPENDS_kernel-base = "" |
25 | 31 | ||
26 | do_configure_prepend() { | 32 | do_configure_prepend() { |
27 | # fix imx-vpu break on video decoding | 33 | # fix imx-vpu break on video decoding |
28 | echo "CONFIG_VMSPLIT_2G=y" >> ${WORKDIR}/defconfig | 34 | echo "CONFIG_VMSPLIT_2G=y" >> ${WORKDIR}/defconfig |
35 | |||
36 | # include H4 UART for Broadcom BT on Nitrogen6_Lite | ||
37 | echo "CONFIG_BT_HCIUART_H4=y" >> ${WORKDIR}/defconfig | ||
29 | 38 | ||
30 | # include H4 UART for Broadcom BT on Nitrogen6_Lite | 39 | # include Broadcom WiFi for Nitrogen6_Lite |
31 | echo "CONFIG_BT_HCIUART_H4=y" >> ${WORKDIR}/defconfig | 40 | echo "CONFIG_BRCMFMAC=m" >> ${WORKDIR}/defconfig |
32 | 41 | ||
33 | # include Broadcom WiFi for Nitrogen6_Lite | 42 | # include LEDS_GPIO for Nitrogen6_Lite |
34 | echo "CONFIG_BRCMFMAC=m" >> ${WORKDIR}/defconfig | 43 | echo "CONFIG_LEDS_GPIO=y" >> ${WORKDIR}/defconfig |
35 | 44 | ||
36 | # include LEDS_GPIO for Nitrogen6_Lite | 45 | # enable uvcvideo module |
37 | echo "CONFIG_LEDS_GPIO=y" >> ${WORKDIR}/defconfig | 46 | echo "CONFIG_MEDIA_USB_SUPPORT=y" >> ${WORKDIR}/defconfig |
47 | echo "CONFIG_USB_VIDEO_CLASS=m" >> ${WORKDIR}/defconfig | ||
38 | } | 48 | } |
diff --git a/meta-fsl-extras/recipes/linux/linux-imx_3.10.%.bbappend b/meta-fsl-extras/recipes/linux/linux-imx_3.10.%.bbappend new file mode 100644 index 0000000..6861aff --- /dev/null +++ b/meta-fsl-extras/recipes/linux/linux-imx_3.10.%.bbappend | |||
@@ -0,0 +1,41 @@ | |||
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 | |||
23 | FILESEXTRAPATHS_prepend := "${THISDIR}/../../../recipes/linux/linux:" | ||
24 | SRC_URI += "\ | ||
25 | file://ARM-perf-add-support-for-perf-registers-API.diff \ | ||
26 | file://ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch \ | ||
27 | " | ||
28 | |||
29 | # kernel image files are not needed in the image | ||
30 | RDEPENDS_kernel-base = "" | ||
31 | |||
32 | do_configure_prepend() { | ||
33 | # FunctionFS for adb | ||
34 | echo "CONFIG_USB_FUNCTIONFS=m" >> ${WORKDIR}/defconfig | ||
35 | |||
36 | # Enable USB serial support | ||
37 | echo "CONFIG_USB_SERIAL=m" >> ${WORKDIR}/defconfig | ||
38 | echo "CONFIG_USB_SERIAL_GENERIC=y" >> ${WORKDIR}/defconfig | ||
39 | echo "CONFIG_USB_SERIAL_FTDI_SIO=m" >> ${WORKDIR}/defconfig | ||
40 | echo "CONFIG_USB_SERIAL_PL2303=m" >> ${WORKDIR}/defconfig | ||
41 | } | ||
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-fslc/0001-Updated-kernel-arguments-for-sabre-sd.patch b/meta-fsl-extras/recipes/u-boot/u-boot-fslc/0001-Updated-kernel-arguments-for-sabre-sd.patch index 59a4505..d6e1e21 100644 --- a/meta-fsl-extras/recipes/u-boot/u-boot-fslc/0001-Updated-kernel-arguments-for-sabre-sd.patch +++ b/meta-fsl-extras/recipes/u-boot/u-boot-fslc/0001-Updated-kernel-arguments-for-sabre-sd.patch | |||
@@ -1,84 +1,19 @@ | |||
1 | From 2288d6475ba3ab9a7fb3cd4aa0aa3a7c60dbfac6 Mon Sep 17 00:00:00 2001 | 1 | From ecd64c7926b7aa25b028278666abad582e7cdea8 Mon Sep 17 00:00:00 2001 |
2 | From: Samuli Piippo <samuli.piippo@digia.com> | 2 | From: Samuli Piippo <samuli.piippo@digia.com> |
3 | Date: Fri, 9 May 2014 10:23:50 +0300 | 3 | Date: Fri, 9 May 2014 10:23:50 +0300 |
4 | Subject: [PATCH] Updated kernel arguments for sabre sd | 4 | Subject: [PATCH] Updated kernel arguments for sabre sd |
5 | 5 | ||
6 | - Enable I2C | ||
7 | - detect if hdmi is used and change video arguments accordingly | 6 | - detect if hdmi is used and change video arguments accordingly |
8 | - disable blanking and cursor blinking | 7 | - disable blanking and cursor blinking |
9 | |||
10 | --- | 8 | --- |
11 | board/freescale/mx6sabresd/mx6sabresd.c | 23 +++++++++++++++++++++++ | 9 | include/configs/mx6sabre_common.h | 21 +++++++++++++++++++++ |
12 | include/configs/mx6sabre_common.h | 21 +++++++++++++++++++++ | 10 | 1 file changed, 21 insertions(+) |
13 | 2 files changed, 44 insertions(+) | ||
14 | 11 | ||
15 | diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c | ||
16 | index 12d8c56..303b774 100644 | ||
17 | --- a/board/freescale/mx6sabresd/mx6sabresd.c | ||
18 | +++ b/board/freescale/mx6sabresd/mx6sabresd.c | ||
19 | @@ -12,6 +12,7 @@ | ||
20 | #include <asm/arch/mx6-pins.h> | ||
21 | #include <asm/errno.h> | ||
22 | #include <asm/gpio.h> | ||
23 | +#include <asm/imx-common/mxc_i2c.h> | ||
24 | #include <asm/imx-common/iomux-v3.h> | ||
25 | #include <asm/imx-common/boot_mode.h> | ||
26 | #include <mmc.h> | ||
27 | @@ -24,6 +25,7 @@ | ||
28 | #include <ipu_pixfmt.h> | ||
29 | #include <asm/io.h> | ||
30 | #include <asm/arch/sys_proto.h> | ||
31 | +#include <i2c.h> | ||
32 | DECLARE_GLOBAL_DATA_PTR; | ||
33 | |||
34 | #define UART_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ | ||
35 | @@ -40,6 +42,12 @@ DECLARE_GLOBAL_DATA_PTR; | ||
36 | #define SPI_PAD_CTRL (PAD_CTL_HYS | PAD_CTL_SPEED_MED | \ | ||
37 | PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST) | ||
38 | |||
39 | +#define I2C_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ | ||
40 | + PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | PAD_CTL_HYS | \ | ||
41 | + PAD_CTL_ODE | PAD_CTL_SRE_FAST) | ||
42 | + | ||
43 | +#define I2C_PAD MUX_PAD_CTRL(I2C_PAD_CTRL) | ||
44 | + | ||
45 | int dram_init(void) | ||
46 | { | ||
47 | gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE); | ||
48 | @@ -130,6 +138,19 @@ iomux_v3_cfg_t const ecspi1_pads[] = { | ||
49 | MX6_PAD_KEY_ROW1__GPIO4_IO09 | MUX_PAD_CTRL(NO_PAD_CTRL), | ||
50 | }; | ||
51 | |||
52 | +static struct i2c_pads_info i2c_pad_info1 = { | ||
53 | + .scl = { | ||
54 | + .i2c_mode = MX6_PAD_KEY_COL3__I2C2_SCL | I2C_PAD, | ||
55 | + .gpio_mode = MX6_PAD_KEY_COL3__GPIO4_IO12 | I2C_PAD, | ||
56 | + .gp = IMX_GPIO_NR(4, 12) | ||
57 | + }, | ||
58 | + .sda = { | ||
59 | + .i2c_mode = MX6_PAD_KEY_ROW3__I2C2_SDA | I2C_PAD, | ||
60 | + .gpio_mode = MX6_PAD_KEY_ROW3__GPIO4_IO13 | I2C_PAD, | ||
61 | + .gp = IMX_GPIO_NR(4, 13) | ||
62 | + } | ||
63 | +}; | ||
64 | + | ||
65 | static void setup_spi(void) | ||
66 | { | ||
67 | imx_iomux_v3_setup_multiple_pads(ecspi1_pads, ARRAY_SIZE(ecspi1_pads)); | ||
68 | @@ -477,6 +498,8 @@ int board_init(void) | ||
69 | setup_spi(); | ||
70 | #endif | ||
71 | |||
72 | + setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1); | ||
73 | + | ||
74 | return 0; | ||
75 | } | ||
76 | |||
77 | diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h | 12 | diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h |
78 | index 5ee7fa5..b83bf74 100644 | 13 | index c81e9e9..9296b9b 100644 |
79 | --- a/include/configs/mx6sabre_common.h | 14 | --- a/include/configs/mx6sabre_common.h |
80 | +++ b/include/configs/mx6sabre_common.h | 15 | +++ b/include/configs/mx6sabre_common.h |
81 | @@ -85,6 +85,13 @@ | 16 | @@ -87,6 +87,13 @@ |
82 | /* Command definition */ | 17 | /* Command definition */ |
83 | #include <config_cmd_default.h> | 18 | #include <config_cmd_default.h> |
84 | 19 | ||
@@ -92,7 +27,7 @@ index 5ee7fa5..b83bf74 100644 | |||
92 | #define CONFIG_CMD_BMODE | 27 | #define CONFIG_CMD_BMODE |
93 | #define CONFIG_CMD_BOOTZ | 28 | #define CONFIG_CMD_BOOTZ |
94 | #define CONFIG_CMD_SETEXPR | 29 | #define CONFIG_CMD_SETEXPR |
95 | @@ -117,6 +124,15 @@ | 30 | @@ -119,6 +126,15 @@ |
96 | #define EMMC_ENV "" | 31 | #define EMMC_ENV "" |
97 | #endif | 32 | #endif |
98 | 33 | ||
@@ -107,8 +42,8 @@ index 5ee7fa5..b83bf74 100644 | |||
107 | + | 42 | + |
108 | #define CONFIG_EXTRA_ENV_SETTINGS \ | 43 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
109 | "script=boot.scr\0" \ | 44 | "script=boot.scr\0" \ |
110 | "uimage=uImage\0" \ | 45 | "image=zImage\0" \ |
111 | @@ -144,7 +160,11 @@ | 46 | @@ -146,7 +162,11 @@ |
112 | "fi; " \ | 47 | "fi; " \ |
113 | "fi\0" \ | 48 | "fi\0" \ |
114 | EMMC_ENV \ | 49 | EMMC_ENV \ |
@@ -120,8 +55,8 @@ index 5ee7fa5..b83bf74 100644 | |||
120 | "root=${mmcroot}\0" \ | 55 | "root=${mmcroot}\0" \ |
121 | "loadbootscript=" \ | 56 | "loadbootscript=" \ |
122 | "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ | 57 | "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ |
123 | @@ -153,6 +173,7 @@ | 58 | @@ -155,6 +175,7 @@ |
124 | "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \ | 59 | "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \ |
125 | "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \ | 60 | "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \ |
126 | "mmcboot=echo Booting from mmc ...; " \ | 61 | "mmcboot=echo Booting from mmc ...; " \ |
127 | + "run videoargs; " \ | 62 | + "run videoargs; " \ |
@@ -129,5 +64,5 @@ index 5ee7fa5..b83bf74 100644 | |||
129 | "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ | 64 | "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ |
130 | "if run loadfdt; then " \ | 65 | "if run loadfdt; then " \ |
131 | -- | 66 | -- |
132 | 1.8.3.2 | 67 | 1.9.1 |
133 | 68 | ||
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0001-nitrogen6x-disable-console-cursor-blinking.patch b/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0001-nitrogen6x-update-bootargs.patch index d97921c..f42b213 100644 --- a/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0001-nitrogen6x-disable-console-cursor-blinking.patch +++ b/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0001-nitrogen6x-update-bootargs.patch | |||
@@ -1,8 +1,10 @@ | |||
1 | From b21614109fb3cca15c4b0d296b3ab6cc1b778e3a Mon Sep 17 00:00:00 2001 | 1 | From b21614109fb3cca15c4b0d296b3ab6cc1b778e3a Mon Sep 17 00:00:00 2001 |
2 | From: Samuli Piippo <samuli.piippo@digia.com> | 2 | From: Yoann Lopes <yoann.lopes@theqtcompany.com> |
3 | Date: Fri, 10 Jan 2014 12:37:20 +0200 | 3 | Date: Wed, 10 Jun 2015 16:36:10 +0100 |
4 | Subject: [PATCH] nitrogen6x: disable console cursor blinking | 4 | Subject: [PATCH] nitrogen6x: update bootargs. |
5 | 5 | ||
6 | - disable console cursor blinking | ||
7 | - set CMA reserved size to 384MB | ||
6 | --- | 8 | --- |
7 | board/boundary/nitrogen6x/6x_bootscript-yocto.txt | 2 +- | 9 | board/boundary/nitrogen6x/6x_bootscript-yocto.txt | 2 +- |
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
@@ -16,7 +18,7 @@ index d933fa0..2d7c575 100644 | |||
16 | 18 | ||
17 | setenv bootargs $bootargs $fbmem | 19 | setenv bootargs $bootargs $fbmem |
18 | -setenv bootargs "$bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 rootwait" | 20 | -setenv bootargs "$bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 rootwait" |
19 | +setenv bootargs "$bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 vt.global_cursor_default=0 rootwait" | 21 | +setenv bootargs "$bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 vt.global_cursor_default=0 cma=384M rootwait" |
20 | 22 | ||
21 | if itest.s x$bootpart == x ; then | 23 | if itest.s x$bootpart == x ; then |
22 | bootpart=1 | 24 | bootpart=1 |
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary_git.bbappend b/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary_git.bbappend index 1a0fe52..abbc222 100644 --- a/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary_git.bbappend +++ b/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary_git.bbappend | |||
@@ -22,6 +22,6 @@ | |||
22 | 22 | ||
23 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" | 23 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" |
24 | SRC_URI += " \ | 24 | SRC_URI += " \ |
25 | file://0001-nitrogen6x-disable-console-cursor-blinking.patch \ | 25 | file://0001-nitrogen6x-update-bootargs.patch \ |
26 | file://0002-nitrogen6x-update.patch \ | 26 | file://0002-nitrogen6x-update.patch \ |
27 | " | 27 | " |
diff --git a/meta-raspberrypi-extras/conf/layer.conf b/meta-raspberrypi-extras/conf/layer.conf new file mode 100644 index 0000000..0ac91aa --- /dev/null +++ b/meta-raspberrypi-extras/conf/layer.conf | |||
@@ -0,0 +1,33 @@ | |||
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 | |||
23 | # We have a conf and classes directory, append to BBPATH | ||
24 | BBPATH .= ":${LAYERDIR}" | ||
25 | |||
26 | # We have a recipes directory, add to BBFILES | ||
27 | BBFILES += "${LAYERDIR}/recipes*/*/*.bb \ | ||
28 | ${LAYERDIR}/recipes*/*/*.bbappend \ | ||
29 | " | ||
30 | |||
31 | BBFILE_COLLECTIONS += "b2qt_rpi" | ||
32 | BBFILE_PATTERN_b2qt_rpi := "^${LAYERDIR}/" | ||
33 | BBFILE_PRIORITY_b2qt_rpi = "20" | ||
diff --git a/meta-raspberrypi-extras/recipes/linux/linux-raspberrypi/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch b/meta-raspberrypi-extras/recipes/linux/linux-raspberrypi/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch new file mode 100644 index 0000000..4f2a45a --- /dev/null +++ b/meta-raspberrypi-extras/recipes/linux/linux-raspberrypi/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch | |||
@@ -0,0 +1,171 @@ | |||
1 | From 7495f3742dda97612a77d92fa62f85cb7591ab14 Mon Sep 17 00:00:00 2001 | ||
2 | From: Will Deacon <will.deacon@arm.com> | ||
3 | Date: Thu, 26 Sep 2013 12:36:36 +0100 | ||
4 | Subject: [PATCH] ARM: perf: wire up perf_regs and unwind support for ARM | ||
5 | |||
6 | This patch hooks in the perf_regs and libunwind code for ARM. | ||
7 | |||
8 | Cc: Jean Pihet <jean.pihet@linaro.org> | ||
9 | Signed-off-by: Will Deacon <will.deacon@arm.com> | ||
10 | --- | ||
11 | tools/perf/arch/arm/Makefile | 3 ++ | ||
12 | tools/perf/arch/arm/include/perf_regs.h | 54 +++++++++++++++++++++++++++++++++ | ||
13 | tools/perf/arch/arm/util/unwind.c | 48 +++++++++++++++++++++++++++++ | ||
14 | tools/perf/config/Makefile | 7 +++-- | ||
15 | 4 files changed, 110 insertions(+), 2 deletions(-) | ||
16 | create mode 100644 tools/perf/arch/arm/include/perf_regs.h | ||
17 | create mode 100644 tools/perf/arch/arm/util/unwind.c | ||
18 | |||
19 | diff --git a/tools/perf/arch/arm/Makefile b/tools/perf/arch/arm/Makefile | ||
20 | index 15130b5..fe9b61e 100644 | ||
21 | --- a/tools/perf/arch/arm/Makefile | ||
22 | +++ b/tools/perf/arch/arm/Makefile | ||
23 | @@ -2,3 +2,6 @@ ifndef NO_DWARF | ||
24 | PERF_HAVE_DWARF_REGS := 1 | ||
25 | LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/dwarf-regs.o | ||
26 | endif | ||
27 | +ifndef NO_LIBUNWIND | ||
28 | +LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/unwind.o | ||
29 | +endif | ||
30 | diff --git a/tools/perf/arch/arm/include/perf_regs.h b/tools/perf/arch/arm/include/perf_regs.h | ||
31 | new file mode 100644 | ||
32 | index 0000000..2a1cfde | ||
33 | --- /dev/null | ||
34 | +++ b/tools/perf/arch/arm/include/perf_regs.h | ||
35 | @@ -0,0 +1,54 @@ | ||
36 | +#ifndef ARCH_PERF_REGS_H | ||
37 | +#define ARCH_PERF_REGS_H | ||
38 | + | ||
39 | +#include <stdlib.h> | ||
40 | +#include "../../util/types.h" | ||
41 | +#include <asm/perf_regs.h> | ||
42 | + | ||
43 | +#define PERF_REGS_MASK ((1ULL << PERF_REG_ARM_MAX) - 1) | ||
44 | +#define PERF_REG_IP PERF_REG_ARM_PC | ||
45 | +#define PERF_REG_SP PERF_REG_ARM_SP | ||
46 | + | ||
47 | +static inline const char *perf_reg_name(int id) | ||
48 | +{ | ||
49 | + switch (id) { | ||
50 | + case PERF_REG_ARM_R0: | ||
51 | + return "r0"; | ||
52 | + case PERF_REG_ARM_R1: | ||
53 | + return "r1"; | ||
54 | + case PERF_REG_ARM_R2: | ||
55 | + return "r2"; | ||
56 | + case PERF_REG_ARM_R3: | ||
57 | + return "r3"; | ||
58 | + case PERF_REG_ARM_R4: | ||
59 | + return "r4"; | ||
60 | + case PERF_REG_ARM_R5: | ||
61 | + return "r5"; | ||
62 | + case PERF_REG_ARM_R6: | ||
63 | + return "r6"; | ||
64 | + case PERF_REG_ARM_R7: | ||
65 | + return "r7"; | ||
66 | + case PERF_REG_ARM_R8: | ||
67 | + return "r8"; | ||
68 | + case PERF_REG_ARM_R9: | ||
69 | + return "r9"; | ||
70 | + case PERF_REG_ARM_R10: | ||
71 | + return "r10"; | ||
72 | + case PERF_REG_ARM_FP: | ||
73 | + return "fp"; | ||
74 | + case PERF_REG_ARM_IP: | ||
75 | + return "ip"; | ||
76 | + case PERF_REG_ARM_SP: | ||
77 | + return "sp"; | ||
78 | + case PERF_REG_ARM_LR: | ||
79 | + return "lr"; | ||
80 | + case PERF_REG_ARM_PC: | ||
81 | + return "pc"; | ||
82 | + default: | ||
83 | + return NULL; | ||
84 | + } | ||
85 | + | ||
86 | + return NULL; | ||
87 | +} | ||
88 | + | ||
89 | +#endif /* ARCH_PERF_REGS_H */ | ||
90 | diff --git a/tools/perf/arch/arm/util/unwind.c b/tools/perf/arch/arm/util/unwind.c | ||
91 | new file mode 100644 | ||
92 | index 0000000..da3dc95 | ||
93 | --- /dev/null | ||
94 | +++ b/tools/perf/arch/arm/util/unwind.c | ||
95 | @@ -0,0 +1,48 @@ | ||
96 | + | ||
97 | +#include <errno.h> | ||
98 | +#include <libunwind.h> | ||
99 | +#include "perf_regs.h" | ||
100 | +#include "../../util/unwind.h" | ||
101 | + | ||
102 | +int unwind__arch_reg_id(int regnum) | ||
103 | +{ | ||
104 | + switch (regnum) { | ||
105 | + case UNW_ARM_R0: | ||
106 | + return PERF_REG_ARM_R0; | ||
107 | + case UNW_ARM_R1: | ||
108 | + return PERF_REG_ARM_R1; | ||
109 | + case UNW_ARM_R2: | ||
110 | + return PERF_REG_ARM_R2; | ||
111 | + case UNW_ARM_R3: | ||
112 | + return PERF_REG_ARM_R3; | ||
113 | + case UNW_ARM_R4: | ||
114 | + return PERF_REG_ARM_R4; | ||
115 | + case UNW_ARM_R5: | ||
116 | + return PERF_REG_ARM_R5; | ||
117 | + case UNW_ARM_R6: | ||
118 | + return PERF_REG_ARM_R6; | ||
119 | + case UNW_ARM_R7: | ||
120 | + return PERF_REG_ARM_R7; | ||
121 | + case UNW_ARM_R8: | ||
122 | + return PERF_REG_ARM_R8; | ||
123 | + case UNW_ARM_R9: | ||
124 | + return PERF_REG_ARM_R9; | ||
125 | + case UNW_ARM_R10: | ||
126 | + return PERF_REG_ARM_R10; | ||
127 | + case UNW_ARM_R11: | ||
128 | + return PERF_REG_ARM_FP; | ||
129 | + case UNW_ARM_R12: | ||
130 | + return PERF_REG_ARM_IP; | ||
131 | + case UNW_ARM_R13: | ||
132 | + return PERF_REG_ARM_SP; | ||
133 | + case UNW_ARM_R14: | ||
134 | + return PERF_REG_ARM_LR; | ||
135 | + case UNW_ARM_R15: | ||
136 | + return PERF_REG_ARM_PC; | ||
137 | + default: | ||
138 | + pr_err("unwind: invalid reg id %d\n", regnum); | ||
139 | + return -EINVAL; | ||
140 | + } | ||
141 | + | ||
142 | + return -EINVAL; | ||
143 | +} | ||
144 | diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile | ||
145 | index 5f6f9b3..4796ce5 100644 | ||
146 | --- a/tools/perf/config/Makefile | ||
147 | +++ b/tools/perf/config/Makefile | ||
148 | @@ -29,6 +29,10 @@ ifeq ($(ARCH),x86_64) | ||
149 | NO_PERF_REGS := 0 | ||
150 | LIBUNWIND_LIBS = -lunwind -lunwind-x86_64 | ||
151 | endif | ||
152 | +ifeq ($(ARCH),arm) | ||
153 | + NO_PERF_REGS := 0 | ||
154 | + LIBUNWIND_LIBS = -lunwind -lunwind-arm | ||
155 | +endif | ||
156 | |||
157 | ifeq ($(NO_PERF_REGS),0) | ||
158 | CFLAGS += -DHAVE_PERF_REGS | ||
159 | @@ -208,8 +212,7 @@ ifeq ($(call try-cc,$(SOURCE_ELF_MMAP),$(FLAGS_LIBELF),-DLIBELF_MMAP),y) | ||
160 | endif # try-cc | ||
161 | endif # NO_LIBELF | ||
162 | |||
163 | -# There's only x86 (both 32 and 64) support for CFI unwind so far | ||
164 | -ifneq ($(ARCH),x86) | ||
165 | +ifeq ($(LIBUNWIND_LIBS),) | ||
166 | NO_LIBUNWIND := 1 | ||
167 | endif | ||
168 | |||
169 | -- | ||
170 | 1.9.1 | ||
171 | |||
diff --git a/meta-raspberrypi-extras/recipes/linux/linux-raspberrypi_3.12.%.bbappend b/meta-raspberrypi-extras/recipes/linux/linux-raspberrypi_3.12.%.bbappend new file mode 100644 index 0000000..94b2ab1 --- /dev/null +++ b/meta-raspberrypi-extras/recipes/linux/linux-raspberrypi_3.12.%.bbappend | |||
@@ -0,0 +1,27 @@ | |||
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 | |||
23 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:${THISDIR}/../../../recipes/linux/linux:" | ||
24 | SRC_URI += "\ | ||
25 | file://ARM-perf-add-support-for-perf-registers-API.diff \ | ||
26 | file://ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch \ | ||
27 | " | ||
diff --git a/meta-ti-extras/recipes/libgles/libgles-omap3_4.09.00.01.bbappend b/meta-ti-extras/recipes/libgles/libgles-omap3_4.09.00.01.bbappend index 3cad977..452f8a2 100644 --- a/meta-ti-extras/recipes/libgles/libgles-omap3_4.09.00.01.bbappend +++ b/meta-ti-extras/recipes/libgles/libgles-omap3_4.09.00.01.bbappend | |||
@@ -25,7 +25,7 @@ BINLOCATION_omap3 = "${S}/gfx_rel_es5.x" | |||
25 | LIBGLESWINDOWSYSTEM = "libpvrPVR2D_FLIPWSEGL.so.1" | 25 | LIBGLESWINDOWSYSTEM = "libpvrPVR2D_FLIPWSEGL.so.1" |
26 | 26 | ||
27 | do_install_append() { | 27 | do_install_append() { |
28 | echo "ParamBufferSize=33554432" >> ${D}${sysconfdir}/powervr.ini | 28 | echo "ParamBufferSize=33554432" >> ${D}${sysconfdir}/powervr.ini |
29 | } | 29 | } |
30 | 30 | ||
31 | # Inhibit warnings about files being stripped. | 31 | # Inhibit warnings about files being stripped. |
diff --git a/meta-ti-extras/recipes/libgles/libgles-omap3_4.10.00.01.bb b/meta-ti-extras/recipes/libgles/libgles-omap3_4.10.00.01.bb index 1c9824c..1b1bf22 100644 --- a/meta-ti-extras/recipes/libgles/libgles-omap3_4.10.00.01.bb +++ b/meta-ti-extras/recipes/libgles/libgles-omap3_4.10.00.01.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require recipes-graphics/libgles/libgles-omap3-no-x.inc | 1 | require recipes-graphics/libgles/libgles-omap3-no-x.inc |
2 | 2 | ||
3 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:${COREBASE}/../meta-ti/recipes-graphics/libgles/${PN}" | 3 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:${COREBASE}/../meta-ti/recipes-graphics/libgles/${PN}:" |
4 | 4 | ||
5 | LICENSE = "TI-TSPA" | 5 | LICENSE = "TI-TSPA" |
6 | 6 | ||
@@ -46,3 +46,10 @@ SRC_URI[sha256sum] := "${@base_contains('TUNE_FEATURES', 'callconvention-hard', | |||
46 | S = "${WORKDIR}/Graphics_SDK_${SGXPV}" | 46 | S = "${WORKDIR}/Graphics_SDK_${SGXPV}" |
47 | 47 | ||
48 | LIBGLESWINDOWSYSTEM = "libpvrPVR2D_FRONTWSEGL.so.1" | 48 | LIBGLESWINDOWSYSTEM = "libpvrPVR2D_FRONTWSEGL.so.1" |
49 | |||
50 | do_configure_append() { | ||
51 | # PLAT_CC might not have needed arguments, so use CC instead. | ||
52 | for mak in $(find ${S} -name "*.mak" -o -name Makefile) ; do | ||
53 | sed -i -e s:\$\(PLAT_CC\):\$\(CC\):g $mak | ||
54 | done | ||
55 | } | ||
diff --git a/meta-ti-extras/recipes/linux/linux-mainline_3.2.bbappend b/meta-ti-extras/recipes/linux/linux-mainline_3.2.bbappend deleted file mode 100644 index 502edf1..0000000 --- a/meta-ti-extras/recipes/linux/linux-mainline_3.2.bbappend +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
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 | |||
23 | do_configure_prepend() { | ||
24 | # Builtin network driver, so networking is initialized correctly during boot | ||
25 | echo "CONFIG_USB_NET_SMSC95XX=y" >> ${WORKDIR}/defconfig | ||
26 | |||
27 | # FunctionFS for adb | ||
28 | echo "CONFIG_USB_FUNCTIONFS_ETH=n" >> ${WORKDIR}/defconfig | ||
29 | echo "CONFIG_USB_FUNCTIONFS_RNDIS=n" >> ${WORKDIR}/defconfig | ||
30 | echo "CONFIG_USB_FUNCTIONFS_GENERIC=y" >> ${WORKDIR}/defconfig | ||
31 | |||
32 | # Enable USB serial support | ||
33 | echo "CONFIG_USB_SERIAL=m" >> ${WORKDIR}/defconfig | ||
34 | echo "CONFIG_USB_SERIAL_GENERIC=y" >> ${WORKDIR}/defconfig | ||
35 | echo "CONFIG_USB_SERIAL_FTDI_SIO=m" >> ${WORKDIR}/defconfig | ||
36 | echo "CONFIG_USB_SERIAL_PL2303=m" >> ${WORKDIR}/defconfig | ||
37 | |||
38 | # Remove beagleboard logo | ||
39 | if [ -e ${WORKDIR}/${LOGO_SIZE}/logo_linux_clut224.ppm ]; then | ||
40 | rm ${WORKDIR}/${LOGO_SIZE}/logo_linux_clut224.ppm | ||
41 | fi | ||
42 | } | ||
diff --git a/meta-toradex-extras/recipes/linux/linux-toradex-fsl_git.bbappend b/meta-toradex-extras/recipes/linux/linux-toradex-fsl_git.bbappend index f054071..d8d2812 100644 --- a/meta-toradex-extras/recipes/linux/linux-toradex-fsl_git.bbappend +++ b/meta-toradex-extras/recipes/linux/linux-toradex-fsl_git.bbappend | |||
@@ -20,10 +20,16 @@ | |||
20 | ## | 20 | ## |
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | FILESEXTRAPATHS_prepend := "${THISDIR}/../../../recipes/linux/linux:" | ||
24 | SRC_URI += "\ | ||
25 | file://ARM-perf-add-support-for-perf-registers-API.diff \ | ||
26 | file://ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch \ | ||
27 | " | ||
28 | |||
23 | # kernel image files are not needed in the image | 29 | # kernel image files are not needed in the image |
24 | RDEPENDS_kernel-base = "" | 30 | RDEPENDS_kernel-base = "" |
25 | 31 | ||
26 | config_script () { | 32 | config_script () { |
27 | # FunctionFS for adb | 33 | # FunctionFS for adb |
28 | echo "CONFIG_USB_FUNCTIONFS=m" >> ${S}/.config | 34 | echo "CONFIG_USB_FUNCTIONFS=m" >> ${S}/.config |
29 | } | 35 | } |
diff --git a/meta-toradex-extras/recipes/linux/linux-toradex-vf/0001-Allow-builds-with-GCC-4.8.patch b/meta-toradex-extras/recipes/linux/linux-toradex-vf/0001-Allow-builds-with-GCC-4.8.patch new file mode 100644 index 0000000..43edec3 --- /dev/null +++ b/meta-toradex-extras/recipes/linux/linux-toradex-vf/0001-Allow-builds-with-GCC-4.8.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 30c67656c09f49608bbadb75e365d1d3da36cc70 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andy Nichols <andy.nichols@theqtcompany.com> | ||
3 | Date: Wed, 18 Feb 2015 14:28:14 +0100 | ||
4 | Subject: [PATCH] Allow builds with GCC 4.8 | ||
5 | |||
6 | --- | ||
7 | arch/arm/kernel/asm-offsets.c | 4 ---- | ||
8 | 1 file changed, 4 deletions(-) | ||
9 | |||
10 | diff --git a/arch/arm/kernel/asm-offsets.c b/arch/arm/kernel/asm-offsets.c | ||
11 | index 2d2d608..6f8e79c 100644 | ||
12 | --- a/arch/arm/kernel/asm-offsets.c | ||
13 | +++ b/arch/arm/kernel/asm-offsets.c | ||
14 | @@ -49,10 +49,6 @@ | ||
15 | #error Your compiler is too buggy; it is known to miscompile kernels. | ||
16 | #error Known good compilers: 3.3, 4.x | ||
17 | #endif | ||
18 | -#if GCC_VERSION >= 40800 && GCC_VERSION < 40803 | ||
19 | -#error Your compiler is too buggy; it is known to miscompile kernels | ||
20 | -#error and result in filesystem corruption and oopses. | ||
21 | -#endif | ||
22 | #endif | ||
23 | |||
24 | int main(void) | ||
25 | -- | ||
26 | 1.9.1 | ||
27 | |||
diff --git a/meta-toradex-extras/recipes/linux/linux-toradex-vf/0001-Enable-Fusion-7-and-10-multi-touch-controller.patch b/meta-toradex-extras/recipes/linux/linux-toradex-vf/0001-Enable-Fusion-7-and-10-multi-touch-controller.patch new file mode 100644 index 0000000..d92ac62 --- /dev/null +++ b/meta-toradex-extras/recipes/linux/linux-toradex-vf/0001-Enable-Fusion-7-and-10-multi-touch-controller.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From d57edef022af184015a8ccd87fa9021024513d55 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andy Nichols <andy.nichols@theqtcompany.com> | ||
3 | Date: Fri, 6 Mar 2015 10:14:13 +0100 | ||
4 | Subject: [PATCH] Enable Fusion 7 and 10 multi-touch controller | ||
5 | |||
6 | --- | ||
7 | arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | 2 +- | ||
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
9 | |||
10 | diff --git a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | ||
11 | index 1f43dbe..9194580 100644 | ||
12 | --- a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | ||
13 | +++ b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | ||
14 | @@ -214,7 +214,7 @@ | ||
15 | gpios = <&gpio0 30 GPIO_ACTIVE_HIGH /* SO-DIMM 28, Pen down interrupt */ | ||
16 | &gpio0 23 GPIO_ACTIVE_LOW /* SO-DIMM 30, Reset interrupt */ | ||
17 | >; | ||
18 | - status = "disabled"; | ||
19 | + status = "okay"; | ||
20 | }; | ||
21 | |||
22 | /* M41T0M6 real time clock on carrier board */ | ||
23 | -- | ||
24 | 2.3.1 | ||
25 | |||
diff --git a/meta-toradex-extras/recipes/linux/linux-toradex-vf_4.%.bbappend b/meta-toradex-extras/recipes/linux/linux-toradex-vf_4.%.bbappend new file mode 100644 index 0000000..76bf87d --- /dev/null +++ b/meta-toradex-extras/recipes/linux/linux-toradex-vf_4.%.bbappend | |||
@@ -0,0 +1,33 @@ | |||
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 | |||
23 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" | ||
24 | |||
25 | SRC_URI += " \ | ||
26 | file://0001-Enable-Fusion-7-and-10-multi-touch-controller.patch \ | ||
27 | " | ||
28 | |||
29 | do_configure_prepend () { | ||
30 | # FunctionFS for adb | ||
31 | echo "CONFIG_USB_FUNCTIONFS=m" >> ${WORKDIR}/defconfig | ||
32 | echo "TOUCHSCREEN_FUSION_F0710A=y" >> ${WORKDIR}/defconfig | ||
33 | } | ||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex.bb b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex.bb index b83e6a0..92ea3bd 100644 --- a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex.bb +++ b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex.bb | |||
@@ -25,16 +25,21 @@ DEPENDS = "u-boot-mkimage-native" | |||
25 | 25 | ||
26 | PV = "v2.3" | 26 | PV = "v2.3" |
27 | 27 | ||
28 | SRC_URI = "file://flash_mmc.scr" | 28 | SRC_URI = " \ |
29 | file://flash_mmc.scr \ | ||
30 | file://flash_blk.scr \ | ||
31 | " | ||
29 | 32 | ||
30 | inherit deploy | 33 | inherit deploy |
31 | 34 | ||
32 | UPDATESCRIPT = "${WORKDIR}/flash_mmc.scr" | ||
33 | |||
34 | do_mkimage () { | 35 | do_mkimage () { |
35 | uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ | 36 | uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ |
36 | -n "update script" -d ${UPDATESCRIPT} \ | 37 | -n "update script" -d ${WORKDIR}/flash_mmc.scr \ |
37 | flash_mmc.img | 38 | flash_mmc.img |
39 | |||
40 | uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ | ||
41 | -n "update script" -d ${WORKDIR}/flash_blk.scr \ | ||
42 | flash_blk.img | ||
38 | } | 43 | } |
39 | 44 | ||
40 | addtask mkimage after do_compile before do_install | 45 | addtask mkimage after do_compile before do_install |
@@ -42,10 +47,13 @@ addtask mkimage after do_compile before do_install | |||
42 | do_deploy () { | 47 | do_deploy () { |
43 | install -d ${DEPLOYDIR} | 48 | install -d ${DEPLOYDIR} |
44 | install ${S}/flash_mmc.img ${DEPLOYDIR}/flash_mmc-${MACHINE}-${PV}-${PR}.img | 49 | install ${S}/flash_mmc.img ${DEPLOYDIR}/flash_mmc-${MACHINE}-${PV}-${PR}.img |
50 | install ${S}/flash_blk.img ${DEPLOYDIR}/flash_blk-${MACHINE}-${PV}-${PR}.img | ||
45 | 51 | ||
46 | cd ${DEPLOYDIR} | 52 | cd ${DEPLOYDIR} |
47 | rm -f flash_mmc-${MACHINE}.img | 53 | rm -f flash_mmc-${MACHINE}.img |
48 | ln -sf flash_mmc-${MACHINE}-${PV}-${PR}.img flash_mmc-${MACHINE}.img | 54 | ln -sf flash_mmc-${MACHINE}-${PV}-${PR}.img flash_mmc-${MACHINE}.img |
55 | rm -f flash_blk-${MACHINE}.img | ||
56 | ln -sf flash_blk-${MACHINE}-${PV}-${PR}.img flash_blk-${MACHINE}.img | ||
49 | } | 57 | } |
50 | 58 | ||
51 | addtask deploy after do_install before do_build | 59 | addtask deploy after do_install before do_build |
@@ -55,4 +63,4 @@ do_install[noexec] = "1" | |||
55 | do_populate_sysroot[noexec] = "1" | 63 | do_populate_sysroot[noexec] = "1" |
56 | 64 | ||
57 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 65 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
58 | COMPATIBLE_MACHINE = "(apalis-imx6)" | 66 | COMPATIBLE_MACHINE = "(apalis-imx6|colibri-vf)" |
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/flash_mmc.scr b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/flash_mmc.scr deleted file mode 100644 index 5b7dc80..0000000 --- a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/flash_mmc.scr +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | setenv update_uboot 'fatload mmc ${drive}:1 ${loadaddr} u-boot.imx && setexpr blkcnt $filesize + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200 && mmc dev 0 && mmc write ${loadaddr} 2 ${blkcnt}' | ||
2 | echo 'enter "run update_uboot" to update the uboot' | ||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_blk.scr b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_blk.scr new file mode 100644 index 0000000..ee87e85 --- /dev/null +++ b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_blk.scr | |||
@@ -0,0 +1,6 @@ | |||
1 | test -n ${interface} || setenv interface mmc | ||
2 | test -n ${drive} || setenv drive 1 | ||
3 | |||
4 | setenv set_blkcnt 'setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200' | ||
5 | setenv update_uboot 'fatload ${interface} ${drive}:1 ${loadaddr} u-boot.imx && run set_blkcnt && mmc dev 0 0 && mmc write ${loadaddr} 2 ${blkcnt}' | ||
6 | echo 'enter "run update_uboot" to update the uboot' | ||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_mmc.scr b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_mmc.scr new file mode 100644 index 0000000..207c7db --- /dev/null +++ b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_mmc.scr | |||
@@ -0,0 +1,6 @@ | |||
1 | #flash_mmc has been renamed to flash_blk, ensure compatibilty when updating from older versions | ||
2 | test -n ${interface} || setenv interface mmc | ||
3 | test -n ${drive} || setenv drive 1 | ||
4 | |||
5 | fatload ${interface} ${drive}:1 ${loadaddr} flash_blk.img | ||
6 | source ${loadaddr} | ||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr new file mode 100644 index 0000000..5e31380 --- /dev/null +++ b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr | |||
@@ -0,0 +1,2 @@ | |||
1 | setenv update_uboot 'fatload ${interface} 0:1 ${loadaddr} u-boot-nand.imx && nand erase.part u-boot && nand erase.part u-boot-env && nand write ${loadaddr} u-boot' | ||
2 | echo 'enter "run update_uboot" to update the uboot' | ||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_mmc.scr b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_mmc.scr new file mode 100644 index 0000000..e0770a0 --- /dev/null +++ b/meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_mmc.scr | |||
@@ -0,0 +1,3 @@ | |||
1 | setenv interface mmc | ||
2 | fatload ${interface} 0:1 ${loadaddr} flash_blk.img | ||
3 | source ${loadaddr} | ||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-Update-default-args-for-apalis-imx6.patch b/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-Update-default-args-for-apalis-imx6.patch index c7f0f9b..174f3b0 100644 --- a/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-Update-default-args-for-apalis-imx6.patch +++ b/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-Update-default-args-for-apalis-imx6.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 7872f8e770a202f41fbcf0372b27eb3669c433a1 Mon Sep 17 00:00:00 2001 | 1 | From 1d5baa56ff177d7858727d1c4428096781e3817c Mon Sep 17 00:00:00 2001 |
2 | From: Samuli Piippo <samuli.piippo@digia.com> | 2 | From: Samuli Piippo <samuli.piippo@digia.com> |
3 | Date: Mon, 27 Oct 2014 14:53:25 +0200 | 3 | Date: Mon, 27 Oct 2014 14:53:25 +0200 |
4 | Subject: [PATCH] Update default args for apalis imx6 | 4 | Subject: [PATCH] Update default args for apalis imx6 |
@@ -6,32 +6,36 @@ Subject: [PATCH] Update default args for apalis imx6 | |||
6 | Boot from sd card by default, disable kernel logs from tty1, and | 6 | Boot from sd card by default, disable kernel logs from tty1, and |
7 | disable cursor blinking. | 7 | disable cursor blinking. |
8 | --- | 8 | --- |
9 | include/configs/apalis-imx6.h | 15 ++++++++------- | 9 | include/configs/apalis_imx6.h | 15 ++++++++------- |
10 | 1 file changed, 8 insertions(+), 7 deletions(-) | 10 | 1 file changed, 8 insertions(+), 7 deletions(-) |
11 | 11 | ||
12 | diff --git a/include/configs/apalis-imx6.h b/include/configs/apalis-imx6.h | 12 | diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h |
13 | index 3fb17e2..728c5dd 100644 | 13 | index 162be2e..f659384 100644 |
14 | --- a/include/configs/apalis-imx6.h | 14 | --- a/include/configs/apalis_imx6.h |
15 | +++ b/include/configs/apalis-imx6.h | 15 | +++ b/include/configs/apalis_imx6.h |
16 | @@ -205,18 +205,19 @@ | 16 | @@ -246,14 +246,14 @@ |
17 | "&& setenv dtbparam \" - ${fdt_addr_r}\" && true\0" | 17 | "&& setenv dtbparam \" - ${fdt_addr_r}\" && true\0" |
18 | 18 | ||
19 | #define SD_BOOTCMD \ | 19 | #define SD_BOOTCMD \ |
20 | - "sdargs=ip=off root=/dev/mmcblk1p2 rw,noatime rootfstype=ext3 " \ | 20 | - "sdargs=ip=off root=/dev/mmcblk1p2 rw,noatime rootfstype=ext3 " \ |
21 | - "rootwait\0" \ | 21 | - "rootwait\0" \ |
22 | + "drive=2\0" \ | 22 | + "drive=2\0" \ |
23 | "sdboot=" "run setup; " \ | 23 | "sdboot=run setup; " \ |
24 | - "setenv bootargs ${defargs} ${sdargs} ${setupargs} " \ | 24 | - "setenv bootargs ${defargs} ${sdargs} ${setupargs} " \ |
25 | + "setenv bootargs ${defargs} ip=off root=/dev/mmcblk${drive}p2 " \ | 25 | + "setenv bootargs ${defargs} ip=off root=/dev/mmcblk${drive}p2 " \ |
26 | + "rw,noatime rootfstype=ext3 rootwait ${setupargs} " \ | 26 | + "rw,noatime rootfstype=ext3 rootwait ${setupargs} " \ |
27 | "${vidargs}; echo Booting from SD card in 8bit slot...; " \ | 27 | "${vidargs}; echo Booting from SD card in 8bit slot...; " \ |
28 | - "run sddtbload; fatload mmc 1:1 ${kernel_addr_r} " \ | 28 | - "run sddtbload; load mmc 1:1 ${kernel_addr_r} " \ |
29 | + "run sddtbload; fatload mmc ${drive}:1 ${kernel_addr_r} " \ | 29 | + "run sddtbload; load mmc ${drive}:1 ${kernel_addr_r} " \ |
30 | "${boot_file} && bootm ${kernel_addr_r} ${dtbparam}\0" \ | 30 | "${boot_file} && bootm ${kernel_addr_r} ${dtbparam}\0" \ |
31 | - "sddtbload=setenv dtbparam; fatload mmc 1:1 ${fdt_addr_r} " \ | 31 | - "sddtbload=setenv dtbparam; load mmc 1:1 ${fdt_addr_r} " \ |
32 | + "sddtbload=setenv dtbparam; fatload mmc ${drive}:1 ${fdt_addr_r} " \ | 32 | + "sddtbload=setenv dtbparam; load mmc ${drive}:1 ${fdt_addr_r} " \ |
33 | "${fdt_file} && setenv dtbparam \" - ${fdt_addr_r}\" && true\0" | 33 | "${fdt_file} && setenv dtbparam \" - ${fdt_addr_r}\" && true\0" |
34 | 34 | ||
35 | #define USB_BOOTCMD \ | ||
36 | @@ -273,7 +273,8 @@ | ||
37 | #define FDT_FILE "imx6q-apalis-eval_v1_0.dtb" | ||
38 | #endif | ||
35 | #define CONFIG_EXTRA_ENV_SETTINGS \ | 39 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
36 | - "bootcmd=run emmcboot ; echo ; echo emmcboot failed ; " \ | 40 | - "bootcmd=run emmcboot ; echo ; echo emmcboot failed ; " \ |
37 | + "bootcmd=run sdboot ; echo ; echo sdboot failed ; " \ | 41 | + "bootcmd=run sdboot ; echo ; echo sdboot failed ; " \ |
@@ -39,15 +43,15 @@ index 3fb17e2..728c5dd 100644 | |||
39 | "run nfsboot ; echo ; echo nfsboot failed ; " \ | 43 | "run nfsboot ; echo ; echo nfsboot failed ; " \ |
40 | "usb start ;" \ | 44 | "usb start ;" \ |
41 | "setenv stdout serial,vga ; setenv stdin serial,usbkbd\0" \ | 45 | "setenv stdout serial,vga ; setenv stdin serial,usbkbd\0" \ |
42 | @@ -229,7 +230,7 @@ | 46 | @@ -292,7 +293,7 @@ |
43 | NFS_BOOTCMD \ | 47 | "|| setenv drive 2; load ${interface} ${drive}:1 " \ |
44 | SD_BOOTCMD \ | 48 | "${kernel_addr_r} flash_blk.img\0" \ |
45 | "setup=setenv setupargs fec_mac=${ethaddr} " \ | 49 | "setup=setenv setupargs fec_mac=${ethaddr} " \ |
46 | - "consoleblank=0 no_console_suspend=1 console=tty1 " \ | 50 | - "consoleblank=0 no_console_suspend=1 console=tty1 " \ |
47 | + "consoleblank=0 no_console_suspend=1 vt.global_cursor_default=0 " \ | 51 | + "consoleblank=0 no_console_suspend=1 vt.global_cursor_default=0 " \ |
48 | "console=${console},${baudrate}n8\0 " \ | 52 | "console=${console},${baudrate}n8\0 " \ |
49 | "setupdate=setenv drive 1; fatload mmc ${drive}:1 ${kernel_addr_r} " \ | 53 | "setupdate=run setsdupdate || run setusbupdate || run setethupdate;" \ |
50 | "flash_mmc.img || setenv drive 2; fatload mmc ${drive}:1 " \ | 54 | " source ${kernel_addr_r}\0" \ |
51 | -- | 55 | -- |
52 | 1.8.3.2 | 56 | 1.9.1 |
53 | 57 | ||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-vf-enable-sdboot-by-default.patch b/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-vf-enable-sdboot-by-default.patch new file mode 100644 index 0000000..bae71d5 --- /dev/null +++ b/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-vf-enable-sdboot-by-default.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 878f506e43f40c2667e9e5ae82741d32fc653cac Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@theqtcompany.com> | ||
3 | Date: Thu, 28 May 2015 09:06:54 +0300 | ||
4 | Subject: [PATCH] colibri vf: enable sdboot by default | ||
5 | |||
6 | Run sdboot first and remove console message from tty1 | ||
7 | --- | ||
8 | include/configs/colibri_vf.h | 4 ++-- | ||
9 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
10 | |||
11 | diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h | ||
12 | index 06caabd..fb9fe41 100644 | ||
13 | --- a/include/configs/colibri_vf.h | ||
14 | +++ b/include/configs/colibri_vf.h | ||
15 | @@ -174,7 +174,7 @@ | ||
16 | "ubifsload ${fdt_addr_r} /boot/${soc}-colibri-${fdt_board}.dtb && " \ | ||
17 | "bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \ | ||
18 | |||
19 | -#define CONFIG_BOOTCOMMAND "run ubiboot; run sdboot; run nfsboot" | ||
20 | +#define CONFIG_BOOTCOMMAND "run sdboot; run ubiboot; run nfsboot" | ||
21 | |||
22 | #define DFU_ALT_NAND_INFO "vf-bcb part 0,1;u-boot part 0,2;ubi part 0,4" | ||
23 | |||
24 | @@ -187,7 +187,7 @@ | ||
25 | "defargs=\0" \ | ||
26 | "console=ttyLP0\0" \ | ||
27 | "setup=setenv setupargs " \ | ||
28 | - "console=tty1 console=${console}" \ | ||
29 | + "console=${console}" \ | ||
30 | ",${baudrate}n8 ${memargs} consoleblank=0\0" \ | ||
31 | "setsdupdate=mmc rescan && setenv interface mmc && " \ | ||
32 | "fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \ | ||
33 | -- | ||
34 | 1.9.1 | ||
35 | |||
diff --git a/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl_git.bbappend b/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl_git.bbappend index d1675de..1c2e561 100644 --- a/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl_git.bbappend +++ b/meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl_git.bbappend | |||
@@ -24,3 +24,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | |||
24 | SRC_URI_append_apalis-imx6 = " \ | 24 | SRC_URI_append_apalis-imx6 = " \ |
25 | file://0001-Update-default-args-for-apalis-imx6.patch \ | 25 | file://0001-Update-default-args-for-apalis-imx6.patch \ |
26 | " | 26 | " |
27 | SRC_URI_append_colibri-vf = " \ | ||
28 | file://0001-colibri-vf-enable-sdboot-by-default.patch \ | ||
29 | " | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-appcontroller.bb b/recipes-qt/b2qt-addons/b2qt-appcontroller.bb new file mode 100644 index 0000000..6766978 --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-appcontroller.bb | |||
@@ -0,0 +1,51 @@ | |||
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 | |||
23 | DESCRIPTION = "Boot to Qt Appcontroller" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://main.cpp;md5=1fcdf6b49fbbf2bc9c831893cca1b279;beginline=1;endline=17" | ||
26 | |||
27 | inherit qmake5 sdk-sources | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://codereview.qt-project.org/tqtc-boot2qt/appcontroller;branch=${BRANCH};protocol=ssh;sdk-uri=5.5/Boot2Qt/sources/b2qt-appcontroller/ \ | ||
31 | file://appcontroller.conf \ | ||
32 | " | ||
33 | |||
34 | SRCREV = "45d549fe274cd8f16578b2ff9a34af40fd9b98a9" | ||
35 | BRANCH = "dev" | ||
36 | |||
37 | S = "${WORKDIR}/git" | ||
38 | |||
39 | DEPENDS = "qtbase" | ||
40 | |||
41 | do_configure_append() { | ||
42 | sed -i -e '/^platform=/d' ${WORKDIR}/appcontroller.conf | ||
43 | echo platform=${MACHINE} >> ${WORKDIR}/appcontroller.conf | ||
44 | } | ||
45 | |||
46 | do_install_append() { | ||
47 | install -m 0755 -d ${D}${sysconfdir} | ||
48 | install -m 0755 ${WORKDIR}/appcontroller.conf ${D}${sysconfdir}/ | ||
49 | } | ||
50 | |||
51 | FILES_${PN} += "${sysconfdir}/appcontroller.conf" | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-appcontroller/appcontroller.conf b/recipes-qt/b2qt-addons/b2qt-appcontroller/appcontroller.conf new file mode 100644 index 0000000..cefd3a9 --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-appcontroller/appcontroller.conf | |||
@@ -0,0 +1,5 @@ | |||
1 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
2 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
3 | env=QT_QPA_EGLFS_FORCE888=0 | ||
4 | env=QT_QUICK_CONTROLS_STYLE=Flat | ||
5 | base=linux | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-appcontroller/colibri-vf/appcontroller.conf b/recipes-qt/b2qt-addons/b2qt-appcontroller/colibri-vf/appcontroller.conf new file mode 100644 index 0000000..ff4d0da --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-appcontroller/colibri-vf/appcontroller.conf | |||
@@ -0,0 +1,7 @@ | |||
1 | env=QMLSCENE_DEVICE=softwarecontext | ||
2 | env=QT_QPA_PLATFORM=linuxfb | ||
3 | env=QSG_RENDER_LOOP=basic | ||
4 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
5 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
6 | env=QT_QUICK_CONTROLS_STYLE=Flat | ||
7 | base=linux | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-appcontroller/emulator/appcontroller.conf b/recipes-qt/b2qt-addons/b2qt-appcontroller/emulator/appcontroller.conf new file mode 100644 index 0000000..e3b35f0 --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-appcontroller/emulator/appcontroller.conf | |||
@@ -0,0 +1,7 @@ | |||
1 | env=QT_QPA_GENERIC_PLUGINS=simulator | ||
2 | env=QT_QPA_EGLFS_HIDECURSOR=1 | ||
3 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
4 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
5 | env=QTGLESSTREAM_DISPLAY=192.168.56.1 | ||
6 | env=QT_QUICK_CONTROLS_STYLE=Flat | ||
7 | base=linux | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-appcontroller/mx6/appcontroller.conf b/recipes-qt/b2qt-addons/b2qt-appcontroller/mx6/appcontroller.conf new file mode 100644 index 0000000..8960985 --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-appcontroller/mx6/appcontroller.conf | |||
@@ -0,0 +1,7 @@ | |||
1 | env=FB_MULTI_BUFFER=2 | ||
2 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
3 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
4 | env=QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0 | ||
5 | env=QT_GSTREAMER_CAMERABIN_VIDEOSRC=mxc_v4l2=mfw_v4lsrc,v4l2src | ||
6 | env=QT_QUICK_CONTROLS_STYLE=Flat | ||
7 | base=linux | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-appcontroller/rpi/appcontroller.conf b/recipes-qt/b2qt-addons/b2qt-appcontroller/rpi/appcontroller.conf new file mode 100644 index 0000000..bc143da --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-appcontroller/rpi/appcontroller.conf | |||
@@ -0,0 +1,5 @@ | |||
1 | env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins | ||
2 | env=QT_IM_MODULE=qtvirtualkeyboard | ||
3 | env=QT_QPA_EGLFS_FORCE888=1 | ||
4 | env=QT_QUICK_CONTROLS_STYLE=Flat | ||
5 | base=linux | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-demos.bb b/recipes-qt/b2qt-addons/b2qt-demos.bb new file mode 100644 index 0000000..9ceab8c --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-demos.bb | |||
@@ -0,0 +1,112 @@ | |||
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 | |||
23 | DESCRIPTION = "Boot to Qt Demos" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://sensors/Accelbubble.qml;md5=1bf19846314f7b0fa81dc4db92338713;beginline=1;endline=40" | ||
26 | |||
27 | inherit qmake5 sdk-sources | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://codereview.qt-project.org/tqtc-boot2qt/demos;branch=${BRANCH};protocol=ssh;name=demos;sdk-uri=5.5/Boot2Qt/sources/b2qt-demos \ | ||
31 | git://code.qt.io/qt-labs/qt5-everywhere-demo.git;protocol=git;name=everywhere;destsuffix=qt5-everywhere-demo \ | ||
32 | git://code.qt.io/qt/qtcanvas3d.git;branch=${QT_BRANCH};protocol=git;name=qtcanvas3d;destsuffix=qtcanvas3d \ | ||
33 | git://code.qt.io/qt/qtquickcontrols.git;branch=${QT_BRANCH};protocol=git;name=qtquickcontrols;destsuffix=qtquickcontrols \ | ||
34 | " | ||
35 | |||
36 | BRANCH = "dev" | ||
37 | QT_BRANCH = "5.5" | ||
38 | SRCREV_demos = "de50ff5dbf2f789786e25540ba0b0efc8c68e0f9" | ||
39 | SRCREV_everywhere = "6178748a6ea34df40a8e3c9ce67137e33383bb0e" | ||
40 | SRCREV_qtcanvas3d = "debe68a85b571b70e2fe0824e5ed40484a72c216" | ||
41 | SRCREV_qtquickcontrols = "b4dc4a98d5deffbbb30f7011f6c0d3d10f430b98" | ||
42 | |||
43 | |||
44 | S = "${WORKDIR}/git/basicsuite" | ||
45 | |||
46 | DEPENDS = "qtbase qtdeclarative qtxmlpatterns qtquickcontrols qtgraphicaleffects qtsensors qtmultimedia qtcanvas3d \ | ||
47 | ${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}" | ||
48 | |||
49 | do_install_append() { | ||
50 | # we only need plugins from the demos | ||
51 | rm -rf ${D}/data/user/camera | ||
52 | rm -rf ${D}/data/user/sensorexplorer | ||
53 | |||
54 | cp -r ${S}/* ${D}/data/user/qt/ | ||
55 | if [ -d ${S}/../images ]; then | ||
56 | cp -r ${S}/../images ${D}/data/ | ||
57 | fi | ||
58 | if [ -d ${S}/../videos ]; then | ||
59 | cp -r ${S}/../videos ${D}/data/ | ||
60 | fi | ||
61 | |||
62 | cp -r ${WORKDIR}/qt5-everywhere-demo/QtDemo/qml ${D}/data/user/qt/qt5-everywhere/ | ||
63 | |||
64 | # we can't have several top-level windows in b2qt, replace Window -> Rectangle | ||
65 | sed -i '/import QtQuick.Window/c\' ${D}/data/user/qt/qt5-everywhere/qml/QtDemo/main.qml | ||
66 | sed -i 's/Window /Rectangle /1' ${D}/data/user/qt/qt5-everywhere/qml/QtDemo/main.qml | ||
67 | |||
68 | cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/planets/*.qml ${D}/data/user/qt/canvas3d-planets | ||
69 | cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/planets/*.js ${D}/data/user/qt/canvas3d-planets | ||
70 | cp -r ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/planets/images ${D}/data/user/qt/canvas3d-planets | ||
71 | cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/threejs/controls/ControlEventSource.qml ${D}/data/user/qt/canvas3d-planets | ||
72 | cp ${WORKDIR}/qtcanvas3d/examples/canvas3d/canvas3d/3rdparty/*.js ${D}/data/user/qt/canvas3d-planets | ||
73 | |||
74 | # get rid of qrc:/ prefixes and the custom slider | ||
75 | sed -i 's/qrc:\(\/\)\?//g' ${D}/data/user/qt/canvas3d-planets/*.qml | ||
76 | sed -i 's/qrc:\(\/\)\?//g' ${D}/data/user/qt/canvas3d-planets/*.js | ||
77 | sed -i 's/StyledSlider/Slider/g' ${D}/data/user/qt/canvas3d-planets/planets.qml | ||
78 | sed -i '39 i import QtQuick.Controls 1.2' ${D}/data/user/qt/canvas3d-planets/planets.qml | ||
79 | |||
80 | # Qt Quick Extras | ||
81 | cp -r ${WORKDIR}/qtquickcontrols/examples/quick/extras/dashboard/qml ${D}/data/user/qt/enterprise-dashboard/ | ||
82 | cp -r ${WORKDIR}/qtquickcontrols/examples/quick/extras/dashboard/images ${D}/data/user/qt/enterprise-dashboard/ | ||
83 | |||
84 | cp -r ${WORKDIR}/qtquickcontrols/examples/quick/extras/gallery/qml ${D}/data/user/qt/enterprise-gallery/ | ||
85 | cp -r ${WORKDIR}/qtquickcontrols/examples/quick/extras/gallery/images ${D}/data/user/qt/enterprise-gallery/ | ||
86 | cp -r ${WORKDIR}/qtquickcontrols/examples/quick/extras/gallery/fonts ${D}/data/user/qt/enterprise-gallery/ | ||
87 | |||
88 | cp -r ${WORKDIR}/qtquickcontrols/examples/quick/extras/flat/images ${D}/data/user/qt/enterprise-flat-controls/ | ||
89 | cp ${WORKDIR}/qtquickcontrols/examples/quick/extras/flat/*.qml ${D}/data/user/qt/enterprise-flat-controls/ | ||
90 | |||
91 | sed -i '/import QtQuick.Window/c\' ${D}/data/user/qt/enterprise-dashboard/qml/dashboard.qml ${D}/data/user/qt/enterprise-gallery/qml/gallery.qml | ||
92 | sed -i 's/Window /Rectangle /1' ${D}/data/user/qt/enterprise-dashboard/qml/dashboard.qml ${D}/data/user/qt/enterprise-gallery/qml/gallery.qml | ||
93 | sed -i 's/ApplicationWindow /Rectangle /1' ${D}/data/user/qt/enterprise-flat-controls/main.qml | ||
94 | sed -i '/title: "Qt Quick Extras Demo"/c\' ${D}/data/user/qt/enterprise-dashboard/qml/dashboard.qml ${D}/data/user/qt/enterprise-gallery/qml/gallery.qml | ||
95 | sed -i '/title: "Flat Example"/c\' ${D}/data/user/qt/enterprise-flat-controls/main.qml | ||
96 | sed -i 's/"Light Flat UI Demo"/"Qt Quick Controls"/1' ${D}/data/user/qt/enterprise-flat-controls/main.qml | ||
97 | sed -i '/{ name: "Exit", action: null }/c\' ${D}/data/user/qt/enterprise-flat-controls/main.qml | ||
98 | |||
99 | sed -i -e 's/qrc:/../g' ${D}/data/user/qt/enterprise-dashboard/qml/* ${D}/data/user/qt/enterprise-gallery/qml/* | ||
100 | sed -i 's/qrc:\///g' ${D}/data/user/qt/enterprise-flat-controls/Content.qml | ||
101 | } | ||
102 | |||
103 | FILES_${PN} += " \ | ||
104 | /data/images/ \ | ||
105 | /data/videos/ \ | ||
106 | /data/user \ | ||
107 | " | ||
108 | |||
109 | FILES_${PN}-dbg += " \ | ||
110 | /data/user/*/.debug/ \ | ||
111 | /data/user/qt/*/*/.debug/ \ | ||
112 | " | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-emulator-proxy.bb b/recipes-qt/b2qt-addons/b2qt-emulator-proxy.bb new file mode 100644 index 0000000..e082735 --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-emulator-proxy.bb | |||
@@ -0,0 +1,49 @@ | |||
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 | |||
23 | DESCRIPTION = "Proxy daemon for QtSimulator" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://proxy.h;md5=ba04e32af7257890758a149b0c14d11a;beginline=1;endline=17" | ||
26 | |||
27 | inherit qt5-module | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://codereview.qt-project.org/tqtc-boot2qt/emulator;branch=${BRANCH};protocol=ssh \ | ||
31 | file://emulatorproxyd.sh \ | ||
32 | " | ||
33 | |||
34 | SRCREV = "1d001910d45349ae2a44fa01516baaa7ff4c9eda" | ||
35 | BRANCH = "master" | ||
36 | |||
37 | S = "${WORKDIR}/git/src/helperlibs/proxy" | ||
38 | |||
39 | DEPENDS = "qtbase qtsimulator" | ||
40 | |||
41 | do_install_append() { | ||
42 | install -m 0755 -d ${D}${sysconfdir}/init.d | ||
43 | install -m 0755 ${WORKDIR}/emulatorproxyd.sh ${D}${sysconfdir}/init.d/ | ||
44 | } | ||
45 | |||
46 | INITSCRIPT_NAME = "emulatorproxyd.sh" | ||
47 | INITSCRIPT_PARAMS = "defaults 97 10" | ||
48 | |||
49 | inherit update-rc.d | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-emulator-proxy/emulatorproxyd.sh b/recipes-qt/b2qt-addons/b2qt-emulator-proxy/emulatorproxyd.sh new file mode 100755 index 0000000..48177fa --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-emulator-proxy/emulatorproxyd.sh | |||
@@ -0,0 +1,42 @@ | |||
1 | #!/bin/sh | ||
2 | ############################################################################# | ||
3 | ## | ||
4 | ## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). | ||
5 | ## | ||
6 | ## This file is part of the Qt Enterprise Embedded Scripts of the Qt | ||
7 | ## framework. | ||
8 | ## | ||
9 | ## $QT_BEGIN_LICENSE$ | ||
10 | ## Commercial License Usage Only | ||
11 | ## Licensees holding valid commercial Qt license agreements with Digia | ||
12 | ## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, | ||
13 | ## may use this file in accordance with the terms contained in said license | ||
14 | ## agreement. | ||
15 | ## | ||
16 | ## For further information use the contact form at | ||
17 | ## http://www.qt.io/contact-us. | ||
18 | ## | ||
19 | ## | ||
20 | ## $QT_END_LICENSE$ | ||
21 | ## | ||
22 | ############################################################################# | ||
23 | |||
24 | DAEMON=/usr/bin/emulatorproxyd | ||
25 | |||
26 | case "$1" in | ||
27 | start) | ||
28 | start-stop-daemon --start --quiet --exec $DAEMON & | ||
29 | ;; | ||
30 | stop) | ||
31 | start-stop-daemon --stop --quiet --exec $DAEMON | ||
32 | ;; | ||
33 | restart) | ||
34 | start-stop-daemon --stop --quiet --exec $DAEMON | ||
35 | sleep 1 | ||
36 | start-stop-daemon --start --quiet --exec $DAEMON & | ||
37 | ;; | ||
38 | *) | ||
39 | echo "Usage: $0 {start|stop|restart}" | ||
40 | exit 1 | ||
41 | esac | ||
42 | exit 0 | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd.bb b/recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd.bb new file mode 100644 index 0000000..d59ba2c --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd.bb | |||
@@ -0,0 +1,49 @@ | |||
1 | ############################################################################# | ||
2 | ## | ||
3 | ## Copyright (C) 2015 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 | |||
23 | DESCRIPTION = "SD-Card mount daemon for Emulator" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://sdcardmountd.h;md5=ba04e32af7257890758a149b0c14d11a;beginline=1;endline=17" | ||
26 | |||
27 | inherit qt5-module | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://codereview.qt-project.org/tqtc-boot2qt/emulator;branch=${BRANCH};protocol=ssh \ | ||
31 | file://sdcardmountd.sh \ | ||
32 | " | ||
33 | |||
34 | SRCREV = "1d001910d45349ae2a44fa01516baaa7ff4c9eda" | ||
35 | BRANCH = "master" | ||
36 | |||
37 | S = "${WORKDIR}/git/src/helperlibs/sdcarddaemon" | ||
38 | |||
39 | DEPENDS = "qtbase qtsimulator" | ||
40 | |||
41 | do_install_append() { | ||
42 | install -m 0755 -d ${D}${sysconfdir}/init.d | ||
43 | install -m 0755 ${WORKDIR}/sdcardmountd.sh ${D}${sysconfdir}/init.d/ | ||
44 | } | ||
45 | |||
46 | INITSCRIPT_NAME = "sdcardmountd.sh" | ||
47 | INITSCRIPT_PARAMS = "defaults 97 10" | ||
48 | |||
49 | inherit update-rc.d | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd/sdcardmountd.sh b/recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd/sdcardmountd.sh new file mode 100755 index 0000000..565d9b5 --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd/sdcardmountd.sh | |||
@@ -0,0 +1,42 @@ | |||
1 | #!/bin/sh | ||
2 | ############################################################################# | ||
3 | ## | ||
4 | ## Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies). | ||
5 | ## | ||
6 | ## This file is part of the Qt Enterprise Embedded Scripts of the Qt | ||
7 | ## framework. | ||
8 | ## | ||
9 | ## $QT_BEGIN_LICENSE$ | ||
10 | ## Commercial License Usage Only | ||
11 | ## Licensees holding valid commercial Qt license agreements with Digia | ||
12 | ## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, | ||
13 | ## may use this file in accordance with the terms contained in said license | ||
14 | ## agreement. | ||
15 | ## | ||
16 | ## For further information use the contact form at | ||
17 | ## http://www.qt.io/contact-us. | ||
18 | ## | ||
19 | ## | ||
20 | ## $QT_END_LICENSE$ | ||
21 | ## | ||
22 | ############################################################################# | ||
23 | |||
24 | DAEMON=/usr/bin/sdcardmountd | ||
25 | |||
26 | case "$1" in | ||
27 | start) | ||
28 | start-stop-daemon --start --quiet --exec $DAEMON & | ||
29 | ;; | ||
30 | stop) | ||
31 | start-stop-daemon --stop --quiet --exec $DAEMON | ||
32 | ;; | ||
33 | restart) | ||
34 | start-stop-daemon --stop --quiet --exec $DAEMON | ||
35 | sleep 1 | ||
36 | start-stop-daemon --start --quiet --exec $DAEMON & | ||
37 | ;; | ||
38 | *) | ||
39 | echo "Usage: $0 {start|stop|restart}" | ||
40 | exit 1 | ||
41 | esac | ||
42 | exit 0 | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-emulator-vinput.bb b/recipes-qt/b2qt-addons/b2qt-emulator-vinput.bb new file mode 100644 index 0000000..dd5637f --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-emulator-vinput.bb | |||
@@ -0,0 +1,40 @@ | |||
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 | |||
23 | DESCRIPTION = "Virtual input plugin for QtSimulator" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://qvinput.h;md5=ba04e32af7257890758a149b0c14d11a;beginline=1;endline=17" | ||
26 | |||
27 | inherit qt5-module | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://codereview.qt-project.org/tqtc-boot2qt/emulator;branch=${BRANCH};protocol=ssh \ | ||
31 | " | ||
32 | |||
33 | SRCREV = "1d001910d45349ae2a44fa01516baaa7ff4c9eda" | ||
34 | BRANCH = "master" | ||
35 | |||
36 | EXTRA_QMAKEVARS_PRE += "CONFIG+=force_independent" | ||
37 | |||
38 | S = "${WORKDIR}/git/src/helperlibs/vinput" | ||
39 | |||
40 | DEPENDS = "qtbase qtsimulator" | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-launcher.bb b/recipes-qt/b2qt-addons/b2qt-launcher.bb new file mode 100644 index 0000000..7781031 --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-launcher.bb | |||
@@ -0,0 +1,52 @@ | |||
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 | |||
23 | DESCRIPTION = "Boot to Qt Demo Launcher" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://src/main.cpp;md5=1fcdf6b49fbbf2bc9c831893cca1b279;beginline=1;endline=17" | ||
26 | |||
27 | inherit qmake5 sdk-sources | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://codereview.qt-project.org/tqtc-boot2qt/launcher;branch=${BRANCH};protocol=ssh;sdk-uri=5.5/Boot2Qt/sources/b2qt-launcher \ | ||
31 | file://b2qt-startup.sh \ | ||
32 | " | ||
33 | |||
34 | SRCREV = "e824e206f28eb20bcb6f1d9064990f5e927261f4" | ||
35 | BRANCH = "dev" | ||
36 | |||
37 | S = "${WORKDIR}/git" | ||
38 | |||
39 | DEPENDS = "qtbase qtdeclarative \ | ||
40 | ${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}" | ||
41 | |||
42 | do_install_append() { | ||
43 | install -m 0755 -d ${D}${sysconfdir}/init.d | ||
44 | install -m 0755 ${WORKDIR}/b2qt-startup.sh ${D}${sysconfdir}/init.d/ | ||
45 | } | ||
46 | |||
47 | FILES_${PN} += "${sysdir}/init.d/b2qt-startup.h" | ||
48 | |||
49 | INITSCRIPT_NAME = "b2qt-startup.sh" | ||
50 | INITSCRIPT_PARAMS = "defaults 30" | ||
51 | |||
52 | inherit update-rc.d | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh b/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh new file mode 100755 index 0000000..3acbd65 --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh | |||
@@ -0,0 +1,42 @@ | |||
1 | #!/bin/sh | ||
2 | ############################################################################# | ||
3 | ## | ||
4 | ## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). | ||
5 | ## | ||
6 | ## This file is part of the Qt Enterprise Embedded Scripts of the Qt | ||
7 | ## framework. | ||
8 | ## | ||
9 | ## $QT_BEGIN_LICENSE$ | ||
10 | ## Commercial License Usage Only | ||
11 | ## Licensees holding valid commercial Qt license agreements with Digia | ||
12 | ## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, | ||
13 | ## may use this file in accordance with the terms contained in said license | ||
14 | ## agreement. | ||
15 | ## | ||
16 | ## For further information use the contact form at | ||
17 | ## http://www.qt.io/contact-us. | ||
18 | ## | ||
19 | ## | ||
20 | ## $QT_END_LICENSE$ | ||
21 | ## | ||
22 | ############################################################################# | ||
23 | |||
24 | case "$1" in | ||
25 | start) | ||
26 | if [ -x /data/user/b2qt ]; then | ||
27 | APP="/data/user/b2qt" | ||
28 | elif [ -x /usr/bin/b2qt ]; then | ||
29 | APP="/usr/bin/b2qt" | ||
30 | else | ||
31 | APP="/usr/bin/qtlauncher --applications-root /data/user/qt" | ||
32 | fi | ||
33 | /usr/bin/appcontroller ${APP} & | ||
34 | ;; | ||
35 | stop) | ||
36 | /usr/bin/appcontroller --stop | ||
37 | ;; | ||
38 | *) | ||
39 | echo "Usage: $0 {start|stop}" | ||
40 | exit 1 | ||
41 | esac | ||
42 | exit 0 | ||
diff --git a/recipes-qt/b2qt-addons/b2qt-utils.bb b/recipes-qt/b2qt-addons/b2qt-utils.bb new file mode 100644 index 0000000..e438587 --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-utils.bb | |||
@@ -0,0 +1,48 @@ | |||
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 | |||
23 | DESCRIPTION = "Boot to Qt Utils module" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://src/qconnectivity/main.cpp;md5=0b2892e6aca7d0750bbd7fe6b6b1c033;beginline=1;endline=17" | ||
26 | |||
27 | inherit qt5-module sdk-sources | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://codereview.qt-project.org/tqtc-boot2qt/utils;branch=${BRANCH};protocol=ssh;sdk-uri=5.5/Boot2Qt/sources/b2qt-utils \ | ||
31 | " | ||
32 | |||
33 | SRCREV = "602034c3a71c53d050e67101e070185cbcf7ccee" | ||
34 | BRANCH = "dev" | ||
35 | |||
36 | S = "${WORKDIR}/git" | ||
37 | |||
38 | DEPENDS = "qtbase qtdeclarative wpa-supplicant" | ||
39 | |||
40 | FILES_${PN}-examples-dbg = " \ | ||
41 | /data/user/qt/.debug/* \ | ||
42 | /data/user/qt/wifi-cpp/.debug/* \ | ||
43 | " | ||
44 | |||
45 | FILES_${PN}-examples = " \ | ||
46 | /data/user/qt/wifi-cpp/wifi-cpp \ | ||
47 | /data/user/qt/wifi-qml \ | ||
48 | " | ||
diff --git a/recipes-qt/images/b2qt-embedded-qt5-image.bb b/recipes-qt/images/b2qt-embedded-qt5-image.bb new file mode 100644 index 0000000..924ba61 --- /dev/null +++ b/recipes-qt/images/b2qt-embedded-qt5-image.bb | |||
@@ -0,0 +1,49 @@ | |||
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 | |||
23 | DESCRIPTION = "B2Qt embedded Qt5 image" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://${QT_LICENCE};md5=7bc9c54e450006250a60e96604c186c9" | ||
26 | PR = "r0" | ||
27 | |||
28 | IMAGE_FEATURES += "\ | ||
29 | package-management \ | ||
30 | ssh-server-dropbear \ | ||
31 | tools-debug \ | ||
32 | debug-tweaks \ | ||
33 | hwcodecs \ | ||
34 | " | ||
35 | |||
36 | inherit core-image | ||
37 | inherit bootfs-image | ||
38 | |||
39 | MACHINE_EXTRA_INSTALL_QT ?= "" | ||
40 | |||
41 | IMAGE_INSTALL += "\ | ||
42 | ${MACHINE_EXTRA_INSTALL_QT} \ | ||
43 | packagegroup-b2qt-embedded-base \ | ||
44 | packagegroup-b2qt-embedded-tools \ | ||
45 | ${@base_contains("DISTRO_FEATURES", "gstreamer010", "packagegroup-b2qt-embedded-gstreamer010", "", d)} \ | ||
46 | ${@base_contains("DISTRO_FEATURES", "gstreamer", "packagegroup-b2qt-embedded-gstreamer", "", d)} \ | ||
47 | packagegroup-b2qt-embedded-qt5 \ | ||
48 | packagegroup-b2qt-embedded-qt5-addons \ | ||
49 | " | ||
diff --git a/recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk.bb b/recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk.bb new file mode 100644 index 0000000..98ff5cc --- /dev/null +++ b/recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk.bb | |||
@@ -0,0 +1,68 @@ | |||
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 | |||
23 | DESCRIPTION = "B2Qt embedded Qt5 SDK toolchain" | ||
24 | PR = "r0" | ||
25 | LICENSE = "QtEnterprise" | ||
26 | LIC_FILES_CHKSUM = "file://${QT_LICENCE};md5=7bc9c54e450006250a60e96604c186c9" | ||
27 | |||
28 | inherit populate_sdk populate_sdk_qt5 qmake5_paths | ||
29 | |||
30 | TOOLCHAIN_HOST_TASK += "nativesdk-packagegroup-b2qt-embedded-qt5-toolchain-host" | ||
31 | TOOLCHAIN_TARGET_TASK += "packagegroup-b2qt-embedded-qt5-toolchain-target" | ||
32 | |||
33 | SRC_URI = " \ | ||
34 | file://qmake.conf \ | ||
35 | file://qplatformdefs.h \ | ||
36 | " | ||
37 | |||
38 | SDK_MKSPEC_DIR = "${SDK_OUTPUT}${SDKTARGETSYSROOT}${libdir}/${QT_DIR_NAME}/mkspecs" | ||
39 | SDK_MKSPEC = "devices/linux-oe-generic-g++" | ||
40 | SDK_DEVICE_PRI = "${SDK_MKSPEC_DIR}/qdevice.pri" | ||
41 | SDK_DYNAMIC_FLAGS = "-O. -pipe -g" | ||
42 | |||
43 | create_sdk_files_append () { | ||
44 | # Install the toolchain user's generic device mkspec | ||
45 | install -d ${SDK_MKSPEC_DIR}/${SDK_MKSPEC} | ||
46 | install -m 0644 ${WORKDIR}/qmake.conf ${SDK_MKSPEC_DIR}/${SDK_MKSPEC} | ||
47 | install -m 0644 ${WORKDIR}/qplatformdefs.h ${SDK_MKSPEC_DIR}/${SDK_MKSPEC} | ||
48 | |||
49 | # Fill in the qdevice.pri file which will be used by the device mksspec | ||
50 | static_cflags="${TARGET_CFLAGS}" | ||
51 | static_cxxflags="${TARGET_CXXFLAGS}" | ||
52 | for i in ${SDK_DYNAMIC_FLAGS}; do | ||
53 | static_cflags=$(echo $static_cflags | sed -e "s/$i //") | ||
54 | static_cxxflags=$(echo $static_cxxflags | sed -e "s/$i //") | ||
55 | done | ||
56 | echo "MACHINE = ${MACHINE}" > ${SDK_DEVICE_PRI} | ||
57 | echo "CROSS_COMPILE = ${SDKPATHNATIVE}${bindir_nativesdk}/${TARGET_SYS}/${TARGET_PREFIX}" >> ${SDK_DEVICE_PRI} | ||
58 | echo "QMAKE_CFLAGS *= ${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT} ${static_cflags}" >> ${SDK_DEVICE_PRI} | ||
59 | echo "QMAKE_CXXFLAGS *= ${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT} ${static_cxxflags}" >> ${SDK_DEVICE_PRI} | ||
60 | echo "QMAKE_LFLAGS *= ${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT} ${TARGET_LDFLAGS}" >> ${SDK_DEVICE_PRI} | ||
61 | |||
62 | # Setup qt.conf to point at the device mkspec by default | ||
63 | qtconf=${SDK_OUTPUT}/${SDKPATHNATIVE}${OE_QMAKE_PATH_HOST_BINS}/qt.conf | ||
64 | echo 'HostSpec = linux-g++' >> $qtconf | ||
65 | echo 'TargetSpec = devices/linux-oe-generic-g++' >> $qtconf | ||
66 | } | ||
67 | |||
68 | SDK_POST_INSTALL_COMMAND += "$SUDO_EXEC sed -i -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" $native_sysroot/mkspecs/qdevice.pri ;" | ||
diff --git a/recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk/qmake.conf b/recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk/qmake.conf new file mode 100644 index 0000000..dadea00 --- /dev/null +++ b/recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk/qmake.conf | |||
@@ -0,0 +1,14 @@ | |||
1 | # | ||
2 | # qmake configuration for using yocto-built b2qt toolchain | ||
3 | # | ||
4 | |||
5 | include(../common/linux_device_pre.conf) | ||
6 | |||
7 | QMAKE_PLATFORM += boot2qt | ||
8 | |||
9 | # Load device-specific qmake.conf part, if any | ||
10 | exists(../../oe-device-extra.pri):include(../../oe-device-extra.pri) | ||
11 | |||
12 | include(../common/linux_device_post.conf) | ||
13 | |||
14 | load(qt_config) | ||
diff --git a/recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk/qplatformdefs.h b/recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk/qplatformdefs.h new file mode 100644 index 0000000..e10ebcf --- /dev/null +++ b/recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk/qplatformdefs.h | |||
@@ -0,0 +1,2 @@ | |||
1 | |||
2 | #include "../../linux-g++/qplatformdefs.h" | ||
diff --git a/recipes-qt/packagegroups/nativesdk-packagegroup-b2qt-embedded-qt5-toolchain-host.bb b/recipes-qt/packagegroups/nativesdk-packagegroup-b2qt-embedded-qt5-toolchain-host.bb new file mode 100644 index 0000000..b1456ed --- /dev/null +++ b/recipes-qt/packagegroups/nativesdk-packagegroup-b2qt-embedded-qt5-toolchain-host.bb | |||
@@ -0,0 +1,36 @@ | |||
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 | |||
23 | DESCRIPTION = "Host packages for B2Qt embedded Qt5 SDK" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | PR = "r0" | ||
26 | |||
27 | inherit nativesdk packagegroup qtquickcompiler | ||
28 | |||
29 | RDEPENDS_${PN} += "\ | ||
30 | nativesdk-packagegroup-b2qt-embedded-toolchain-host \ | ||
31 | nativesdk-qttools \ | ||
32 | nativesdk-qtbase-tools \ | ||
33 | nativesdk-qtbase-tools-staticdev \ | ||
34 | nativesdk-qtdeclarative-tools \ | ||
35 | nativesdk-qtdeclarative-staticdev \ | ||
36 | " | ||
diff --git a/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-addons-toolchain-target.bb b/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-addons-toolchain-target.bb new file mode 100644 index 0000000..f009340 --- /dev/null +++ b/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-addons-toolchain-target.bb | |||
@@ -0,0 +1,37 @@ | |||
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 | |||
23 | DESCRIPTION = "Qt5 addons toolchain packages" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | |||
26 | inherit packagegroup | ||
27 | |||
28 | PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" | ||
29 | |||
30 | RDEPENDS_${PN} += " \ | ||
31 | qtdatavisualization-dev \ | ||
32 | qtenterprisecontrols-dev \ | ||
33 | qtcharts-dev \ | ||
34 | qtvirtualkeyboard-dev \ | ||
35 | qtquickcompiler-dev \ | ||
36 | b2qt-utils-dev \ | ||
37 | " | ||
diff --git a/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-addons.bb b/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-addons.bb new file mode 100644 index 0000000..76c4430 --- /dev/null +++ b/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-addons.bb | |||
@@ -0,0 +1,38 @@ | |||
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 | |||
23 | DESCRIPTION = "Qt5 addons packages" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | |||
26 | inherit packagegroup | ||
27 | |||
28 | PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" | ||
29 | |||
30 | RDEPENDS_${PN} += " \ | ||
31 | qtdatavisualization \ | ||
32 | qtcharts \ | ||
33 | qtvirtualkeyboard \ | ||
34 | b2qt-appcontroller \ | ||
35 | b2qt-utils \ | ||
36 | b2qt-launcher \ | ||
37 | b2qt-demos \ | ||
38 | " | ||
diff --git a/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-toolchain-target.bb b/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-toolchain-target.bb new file mode 100644 index 0000000..0fb16ef --- /dev/null +++ b/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-toolchain-target.bb | |||
@@ -0,0 +1,59 @@ | |||
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 | |||
23 | DESCRIPTION = "Target packages for B2Qt embedded Qt5 SDK" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | PR = "r0" | ||
26 | |||
27 | inherit packagegroup | ||
28 | |||
29 | PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" | ||
30 | |||
31 | MACHINE_EXTRA_INSTALL_QT_SDK ?= "" | ||
32 | |||
33 | RDEPENDS_${PN} += " \ | ||
34 | ${MACHINE_EXTRA_INSTALL_QT_SDK} \ | ||
35 | packagegroup-b2qt-embedded-toolchain-target \ | ||
36 | qt3d-dev \ | ||
37 | qtbase-dev \ | ||
38 | qtbase-staticdev \ | ||
39 | qtcanvas3d \ | ||
40 | qtconnectivity-dev \ | ||
41 | qtdeclarative-dev \ | ||
42 | qtdeclarative-staticdev \ | ||
43 | qtgraphicaleffects-dev \ | ||
44 | qtimageformats-dev \ | ||
45 | qtlocation-dev \ | ||
46 | qtmultimedia-dev \ | ||
47 | qtsensors-dev \ | ||
48 | qtserialport-dev \ | ||
49 | qtsvg-dev \ | ||
50 | qtsystems-dev \ | ||
51 | qttools-dev \ | ||
52 | qttools-staticdev \ | ||
53 | ${@base_contains('DISTRO_FEATURES', 'wayland', 'qtwayland-dev', '', d)} \ | ||
54 | ${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebengine-dev', '', d)} \ | ||
55 | qtwebsockets-dev \ | ||
56 | qtwebchannel-dev \ | ||
57 | qtxmlpatterns-dev \ | ||
58 | qtquickcontrols-dev \ | ||
59 | " | ||
diff --git a/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5.bb b/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5.bb new file mode 100644 index 0000000..93785a0 --- /dev/null +++ b/recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5.bb | |||
@@ -0,0 +1,50 @@ | |||
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 | |||
23 | DESCRIPTION = "Qt5 modules" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | |||
26 | inherit packagegroup | ||
27 | |||
28 | PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" | ||
29 | |||
30 | RDEPENDS_${PN} += " \ | ||
31 | qt3d \ | ||
32 | qtbase \ | ||
33 | qtbase-fonts \ | ||
34 | qtcanvas3d \ | ||
35 | qtconnectivity \ | ||
36 | qtdeclarative \ | ||
37 | qtdeclarative-tools \ | ||
38 | qtgraphicaleffects \ | ||
39 | qtimageformats \ | ||
40 | qtlocation \ | ||
41 | qtmultimedia \ | ||
42 | qtsensors \ | ||
43 | qtserialport \ | ||
44 | qtsvg \ | ||
45 | ${@base_contains('DISTRO_FEATURES', 'wayland', 'qtwayland', '', d)} \ | ||
46 | ${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)} \ | ||
47 | qtwebsockets \ | ||
48 | qtxmlpatterns \ | ||
49 | qtquickcontrols \ | ||
50 | " | ||
diff --git a/recipes-qt/qt5-addons/qtcharts_2.0.bb b/recipes-qt/qt5-addons/qtcharts_2.0.bb new file mode 100644 index 0000000..216268a --- /dev/null +++ b/recipes-qt/qt5-addons/qtcharts_2.0.bb | |||
@@ -0,0 +1,48 @@ | |||
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 | |||
23 | DESCRIPTION = "Qt Charts" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://src/charts/qchart.cpp;md5=6e3e95df24951a6ec145dc5614d29cac;beginline=1;endline=17" | ||
26 | |||
27 | inherit qt5-module qtquickcompiler sdk-sources | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://codereview.qt-project.org/qt/tqtc-qtcharts;branch=${BRANCH};protocol=ssh;sdk-uri=EnterpriseAddOns/Charts/2.0/Src \ | ||
31 | " | ||
32 | |||
33 | # v2.0.1 | ||
34 | SRCREV = "c6eddd6a7ac5a67f77f52eae3a074c85fbf525a9" | ||
35 | BRANCH = "master" | ||
36 | |||
37 | S = "${WORKDIR}/git" | ||
38 | |||
39 | DEPENDS = "qtbase qtdeclarative qtmultimedia" | ||
40 | |||
41 | PACKAGES =+ "${PN}-designer" | ||
42 | DEBIAN_NOAUTONAME_${PN}-designer = "1" | ||
43 | |||
44 | FILES_${PN}-designer = " \ | ||
45 | ${OE_QMAKE_PATH_QML}/QtCharts/designer \ | ||
46 | " | ||
47 | |||
48 | RRECOMMENDS_${PN}-dev += "${PN}-designer" | ||
diff --git a/recipes-qt/qt5-addons/qtdatavisualization_1.2.bb b/recipes-qt/qt5-addons/qtdatavisualization_1.2.bb new file mode 100644 index 0000000..1a06675 --- /dev/null +++ b/recipes-qt/qt5-addons/qtdatavisualization_1.2.bb | |||
@@ -0,0 +1,43 @@ | |||
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 | |||
23 | DESCRIPTION = "Qt Data Visualization" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://src/datavisualization/global/datavisualizationglobal_p.h;md5=5c8619ca9925b150dec6288f86c56471;beginline=1;endline=17" | ||
26 | |||
27 | inherit qt5-module sdk-sources | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://codereview.qt-project.org/qt/tqtc-qtdatavis3d;branch=${BRANCH};protocol=ssh;sdk-uri=EnterpriseAddOns/QtDataVisualization/1.2/Src \ | ||
31 | " | ||
32 | |||
33 | # v1.2.1 | ||
34 | SRCREV = "5ba7f70d0d94de720d49b37b2d257b51b9afd026" | ||
35 | BRANCH = "master" | ||
36 | |||
37 | S = "${WORKDIR}/git" | ||
38 | |||
39 | DEPENDS += "qtbase qtdeclarative qtmultimedia" | ||
40 | |||
41 | FILES_${PN}-qmlplugins += " \ | ||
42 | ${OE_QMAKE_PATH_QML}/QtDataVisualization/designer/* \ | ||
43 | " | ||
diff --git a/recipes-qt/qt5-addons/qtglesstream.bb b/recipes-qt/qt5-addons/qtglesstream.bb new file mode 100644 index 0000000..06cec02 --- /dev/null +++ b/recipes-qt/qt5-addons/qtglesstream.bb | |||
@@ -0,0 +1,58 @@ | |||
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 | |||
23 | DESCRIPTION = "QtGlesStream" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://qtglesstream.pro;md5=e95d9351d26ed899188e02d44133cae0" | ||
26 | |||
27 | inherit qt5-module | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://qt-gerrit.ci.local/QtRD-15810/qtglesstream.git;branch=${BRANCH};protocol=ssh \ | ||
31 | " | ||
32 | |||
33 | PV = "1.0.0" | ||
34 | SRCREV = "137d476b0e39eaaa6f35296b6bd962175e6ea5d6" | ||
35 | BRANCH = "dev" | ||
36 | |||
37 | S = "${WORKDIR}/git" | ||
38 | |||
39 | DEPENDS = "qtbase" | ||
40 | RREPLACES_${PN} = "qtglesstream-dummy-client" | ||
41 | RREPLACES_${PN}-dev = "qtglesstream-dummy-client-dev" | ||
42 | |||
43 | do_install_append() { | ||
44 | install -m 0755 -d ${D}${includedir}/EGL | ||
45 | install -m 0755 ${S}/headers/EGL/* ${D}${includedir}/EGL | ||
46 | |||
47 | install -m 0755 -d ${D}${includedir}/GLES2 | ||
48 | install -m 0755 ${S}/headers/GLES2/* ${D}${includedir}/GLES2 | ||
49 | |||
50 | install -m 0755 -d ${D}${includedir}/GLES3 | ||
51 | install -m 0755 ${S}/headers/GLES3/* ${D}${includedir}/GLES3 | ||
52 | |||
53 | install -m 0755 -d ${D}${includedir}/KHR | ||
54 | install -m 0755 ${S}/headers/KHR/* ${D}${includedir}/KHR | ||
55 | } | ||
56 | |||
57 | # no not overwrite files from qtglesstream-dummy-client | ||
58 | do_populate_sysroot[noexec] = "1" | ||
diff --git a/recipes-qt/qt5-addons/qtquick2drenderer.bb b/recipes-qt/qt5-addons/qtquick2drenderer.bb new file mode 100644 index 0000000..24aff5c --- /dev/null +++ b/recipes-qt/qt5-addons/qtquick2drenderer.bb | |||
@@ -0,0 +1,39 @@ | |||
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 | |||
23 | DESCRIPTION = "Qt Quick 2D Rendender" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://src/plugins/scenegraph/softwarecontext/softwarelayer.cpp;md5=d90663d6d3096fe0989549d52fec6554;beginline=1;endline=17" | ||
26 | |||
27 | inherit qt5-module sdk-sources | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://qt-gerrit.ci.local/QtRD-15810/scenegraph-raster.git;branch=${BRANCH};protocol=ssh;sdk-uri=EnterpriseAddOns/QtQuick2DRenderer/1.1/Src \ | ||
31 | " | ||
32 | |||
33 | # v1.1 | ||
34 | SRCREV = "97c310f3a18a5aaebf8c102ceaba1f6a093faf6b" | ||
35 | BRANCH = "master" | ||
36 | |||
37 | S = "${WORKDIR}/git" | ||
38 | |||
39 | DEPENDS = "qtbase qtdeclarative" | ||
diff --git a/recipes-qt/qt5-addons/qtquickcompiler_3.0.bb b/recipes-qt/qt5-addons/qtquickcompiler_3.0.bb new file mode 100644 index 0000000..6f9fa30 --- /dev/null +++ b/recipes-qt/qt5-addons/qtquickcompiler_3.0.bb | |||
@@ -0,0 +1,44 @@ | |||
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 | |||
23 | DESCRIPTION = "Qt Quick Compiler" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://compiler/qtquickcompiler.h;md5=553f8ee8d120874969caca3193ae686c;beginline=1;endline=6" | ||
26 | |||
27 | inherit qt5-module | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://qt-gerrit.ci.local/QtRD-15810/qmlcompiler.git;branch=${BRANCH};protocol=ssh;name=compiler;destsuffix=git \ | ||
31 | git://qt-gerrit.ci.local/QtRD-15810/qtsdk-enterprise.git;branch=${BRANCH};protocol=ssh;name=sdk;destsuffix=git/compiler/license-checker \ | ||
32 | " | ||
33 | |||
34 | SRCREV_compiler = "cc3b348065e84242d772d53b5f9dcad88b0da33e" | ||
35 | BRANCH_compiler = "3.0" | ||
36 | |||
37 | SRCREV_sdk = "60cb1a7763b670108b17c7e1345394e424153bea" | ||
38 | BRANCH_sdk = "master" | ||
39 | |||
40 | S = "${WORKDIR}/git" | ||
41 | |||
42 | DEPENDS = "qtbase qtdeclarative" | ||
43 | |||
44 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta-fsl-extras/recipes/linux/linux-imx_3.%.bbappend b/recipes-qt/qt5-addons/qtsimulator_1.0.bb index d01efb2..095b9bc 100644 --- a/meta-fsl-extras/recipes/linux/linux-imx_3.%.bbappend +++ b/recipes-qt/qt5-addons/qtsimulator_1.0.bb | |||
@@ -20,16 +20,20 @@ | |||
20 | ## | 20 | ## |
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | # kernel image files are not needed in the image | 23 | DESCRIPTION = "QtSimulator" |
24 | RDEPENDS_kernel-base = "" | 24 | LICENSE = "QtEnterprise" |
25 | LIC_FILES_CHKSUM = "file://src/simulator/version.h;md5=ba04e32af7257890758a149b0c14d11a;beginline=1;endline=17" | ||
25 | 26 | ||
26 | do_configure_prepend() { | 27 | inherit qt5-module |
27 | # FunctionFS for adb | ||
28 | echo "CONFIG_USB_FUNCTIONFS=m" >> ${WORKDIR}/defconfig | ||
29 | 28 | ||
30 | # Enable USB serial support | 29 | SRC_URI = " \ |
31 | echo "CONFIG_USB_SERIAL=m" >> ${WORKDIR}/defconfig | 30 | git://codereview.qt-project.org/tqtc-boot2qt/qtsimulator;branch=${BRANCH};protocol=ssh \ |
32 | echo "CONFIG_USB_SERIAL_GENERIC=y" >> ${WORKDIR}/defconfig | 31 | " |
33 | echo "CONFIG_USB_SERIAL_FTDI_SIO=m" >> ${WORKDIR}/defconfig | 32 | |
34 | echo "CONFIG_USB_SERIAL_PL2303=m" >> ${WORKDIR}/defconfig | 33 | # v1.0.8 |
35 | } | 34 | SRCREV = "faf8ea5cee8a4105b97c3f2ba4a4c828f03a70ab" |
35 | BRANCH = "master" | ||
36 | |||
37 | S = "${WORKDIR}/git" | ||
38 | |||
39 | DEPENDS = "qtbase" | ||
diff --git a/recipes-qt/qt5-addons/qtvirtualkeyboard_1.3.bb b/recipes-qt/qt5-addons/qtvirtualkeyboard_1.3.bb new file mode 100644 index 0000000..036a938 --- /dev/null +++ b/recipes-qt/qt5-addons/qtvirtualkeyboard_1.3.bb | |||
@@ -0,0 +1,45 @@ | |||
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 | |||
23 | DESCRIPTION = "Qt Virtual Keyboard" | ||
24 | LICENSE = "QtEnterprise" | ||
25 | LIC_FILES_CHKSUM = "file://src/virtualkeyboard/plugin.cpp;md5=9e7c3707428a49f2fd857aa1538823b6;beginline=1;endline=17" | ||
26 | |||
27 | inherit qt5-module qtquickcompiler sdk-sources | ||
28 | |||
29 | SRC_URI = " \ | ||
30 | git://codereview.qt-project.org/qt/tqtc-qtvirtualkeyboard;branch=${BRANCH};protocol=ssh;sdk-uri=EnterpriseAddOns/QtVirtualKeyboard/1.3/Src \ | ||
31 | " | ||
32 | |||
33 | # v1.3.0 | ||
34 | SRCREV = "ad517b66fc4aadb2807951f182552a1b161d9c95" | ||
35 | BRANCH = "master" | ||
36 | |||
37 | S = "${WORKDIR}/git" | ||
38 | |||
39 | DEPENDS = "qtbase qtdeclarative hunspell" | ||
40 | |||
41 | EXTRA_QMAKEVARS_PRE += "CONFIG+=disable-desktop" | ||
42 | |||
43 | FILES_${PN}-qmlplugins-dbg = " \ | ||
44 | ${OE_QMAKE_PATH_QML}/QtQuick/Enterprise/VirtualKeyboard/Styles/.debug/* \ | ||
45 | " | ||
diff --git a/recipes-qt/qt5/nativesdk-qtbase_%.bbappend b/recipes-qt/qt5/nativesdk-qtbase_%.bbappend new file mode 100644 index 0000000..e6651e5 --- /dev/null +++ b/recipes-qt/qt5/nativesdk-qtbase_%.bbappend | |||
@@ -0,0 +1,24 @@ | |||
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 | |||
23 | # Needed by qtxmlpatterns | ||
24 | EXTRA_QTLIB = "Network Sql" | ||
diff --git a/recipes-qt/qt5/qtbase/emulator/oe-device-extra.pri b/recipes-qt/qt5/qtbase/emulator/oe-device-extra.pri new file mode 100644 index 0000000..3c0971c --- /dev/null +++ b/recipes-qt/qt5/qtbase/emulator/oe-device-extra.pri | |||
@@ -0,0 +1,2 @@ | |||
1 | QMAKE_LIBS_EGL = -lQtGlesStreamClient | ||
2 | QMAKE_LIBS_OPENGL_ES2 = -lQtGlesStreamClient | ||
diff --git a/recipes-qt/qt5/qtbase/mx6/oe-device-extra.pri b/recipes-qt/qt5/qtbase/mx6/oe-device-extra.pri new file mode 100644 index 0000000..f365169 --- /dev/null +++ b/recipes-qt/qt5/qtbase/mx6/oe-device-extra.pri | |||
@@ -0,0 +1,8 @@ | |||
1 | IMX6_CFLAGS = -DLINUX=1 -DEGL_API_FB=1 | ||
2 | QMAKE_LIBS_EGL += -lEGL | ||
3 | QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL | ||
4 | QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL | ||
5 | QMAKE_CFLAGS += $$IMX6_CFLAGS | ||
6 | QMAKE_CXXFLAGS += $$IMX6_CFLAGS | ||
7 | |||
8 | EGLFS_DEVICE_INTEGRATION = eglfs_viv | ||
diff --git a/recipes-qt/qt5/qtbase/oe-device-extra.pri b/recipes-qt/qt5/qtbase/oe-device-extra.pri new file mode 100644 index 0000000..6c4bdd9 --- /dev/null +++ b/recipes-qt/qt5/qtbase/oe-device-extra.pri | |||
@@ -0,0 +1 @@ | |||
# This file contains device-specific qmake.conf settings | |||
diff --git a/recipes-qt/qt5/qtbase/rpi/oe-device-extra.pri b/recipes-qt/qt5/qtbase/rpi/oe-device-extra.pri new file mode 100644 index 0000000..84488cb --- /dev/null +++ b/recipes-qt/qt5/qtbase/rpi/oe-device-extra.pri | |||
@@ -0,0 +1,9 @@ | |||
1 | QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/include/interface/vcos/pthreads \ | ||
2 | $$[QT_SYSROOT]/usr/include/interface/vmcs_host/linux | ||
3 | QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL} | ||
4 | |||
5 | QMAKE_LIBS_EGL = -lEGL -lGLESv2 | ||
6 | QMAKE_CFLAGS += $$RPI_CFLAGS | ||
7 | QMAKE_CXXFLAGS += $$RPI_CFLAGS | ||
8 | |||
9 | EGLFS_DEVICE_INTEGRATION = eglfs_brcm | ||
diff --git a/recipes-qt/qt5/qtbase/ti33x/oe-device-extra.pri b/recipes-qt/qt5/qtbase/ti33x/oe-device-extra.pri new file mode 100644 index 0000000..6a5edd9 --- /dev/null +++ b/recipes-qt/qt5/qtbase/ti33x/oe-device-extra.pri | |||
@@ -0,0 +1,3 @@ | |||
1 | QMAKE_LIBS_EGL = -lEGL -lIMGegl -lsrv_um | ||
2 | QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 $${QMAKE_LIBS_EGL} | ||
3 | QMAKE_LIBS_OPENVG = -lOpenVG $${QMAKE_LIBS_EGL} | ||
diff --git a/meta-ti-extras/recipes/linux/linux-am335x-psp_3.2.bbappend b/recipes-qt/qt5/qtbase_%.bbappend index 0b4beff..658e068 100644 --- a/meta-ti-extras/recipes/linux/linux-am335x-psp_3.2.bbappend +++ b/recipes-qt/qt5/qtbase_%.bbappend | |||
@@ -20,21 +20,35 @@ | |||
20 | ## | 20 | ## |
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | do_configure_append() { | 23 | PACKAGECONFIG_GL = "gles2" |
24 | # FunctionFS for adb | 24 | PACKAGECONFIG += " \ |
25 | echo "CONFIG_USB_LIBCOMPOSITE=y" >> ${S}/.config | 25 | accessibility \ |
26 | echo "CONFIG_USB_FUNCTIONFS=m" >> ${S}/.config | 26 | alsa \ |
27 | echo "CONFIG_USB_FUNCTIONFS_ETH=n" >> ${S}/.config | 27 | cups \ |
28 | echo "CONFIG_USB_FUNCTIONFS_RNDIS=n" >> ${S}/.config | 28 | fontconfig \ |
29 | echo "CONFIG_USB_FUNCTIONFS_GENERIC=y" >> ${S}/.config | 29 | glib \ |
30 | iconv \ | ||
31 | icu \ | ||
32 | linuxfb \ | ||
33 | sql-sqlite \ | ||
34 | tslib \ | ||
35 | " | ||
30 | 36 | ||
31 | echo "CONFIG_DEVTMPFS=y" >> ${S}/.config | 37 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" |
32 | 38 | ||
33 | # Enable USB serial support | 39 | SRC_URI += " \ |
34 | echo "CONFIG_USB_SERIAL=m" >> ${S}/.config | 40 | file://oe-device-extra.pri \ |
35 | echo "CONFIG_USB_SERIAL_GENERIC=y" >> ${S}/.config | 41 | " |
36 | echo "CONFIG_USB_SERIAL_FTDI_SIO=m" >> ${S}/.config | ||
37 | echo "CONFIG_USB_SERIAL_PL2303=m" >> ${S}/.config | ||
38 | 42 | ||
39 | yes '' | oe_runmake oldconfig | 43 | do_configure_prepend() { |
44 | install -m 0644 ${WORKDIR}/oe-device-extra.pri ${S}/mkspecs | ||
45 | sed -i 's!load(qt_config)!!' ${S}/mkspecs/linux-oe-g++/qmake.conf | ||
46 | cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF | ||
47 | QMAKE_PLATFORM += boot2qt | ||
48 | QT_QPA_DEFAULT_PLATFORM = eglfs | ||
49 | |||
50 | exists(../oe-device-extra.pri):include(../oe-device-extra.pri) | ||
51 | |||
52 | load(qt_config) | ||
53 | EOF | ||
40 | } | 54 | } |
diff --git a/recipes-qt/qt5/qtconnectivity_%.bbappend b/recipes-qt/qt5/qtconnectivity_%.bbappend new file mode 100644 index 0000000..570d54e --- /dev/null +++ b/recipes-qt/qt5/qtconnectivity_%.bbappend | |||
@@ -0,0 +1,23 @@ | |||
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 | |||
23 | PACKAGECONFIG += "bluez4" | ||
diff --git a/recipes-qt/qt5/qtlocation_%.bbappend b/recipes-qt/qt5/qtlocation_%.bbappend new file mode 100644 index 0000000..facd006 --- /dev/null +++ b/recipes-qt/qt5/qtlocation_%.bbappend | |||
@@ -0,0 +1,26 @@ | |||
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 | |||
23 | PACKAGECONFIG += "gypsy" | ||
24 | |||
25 | EXTRA_QMAKEVARS_PRE_emulator += "CONFIG+=simulator" | ||
26 | DEPENDS_emulator += "qtsimulator" | ||
diff --git a/recipes-qt/qt5/qtmultimedia_%.bbappend b/recipes-qt/qt5/qtmultimedia_%.bbappend new file mode 100644 index 0000000..0c2560a --- /dev/null +++ b/recipes-qt/qt5/qtmultimedia_%.bbappend | |||
@@ -0,0 +1,23 @@ | |||
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 | |||
23 | PACKAGECONFIG += "${@base_contains("DISTRO_FEATURES", "gstreamer010", "gstreamer010", "gstreamer", d)}" | ||
diff --git a/recipes-qt/qt5/qtsensors_%.bbappend b/recipes-qt/qt5/qtsensors_%.bbappend new file mode 100644 index 0000000..a388c6f --- /dev/null +++ b/recipes-qt/qt5/qtsensors_%.bbappend | |||
@@ -0,0 +1,24 @@ | |||
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 | |||
23 | EXTRA_QMAKEVARS_PRE_emulator += "SENSORS_PLUGINS=simulator" | ||
24 | DEPENDS_emulator += "qtsimulator" | ||
diff --git a/recipes-qt/qt5/qtsystems_%.bbappend b/recipes-qt/qt5/qtsystems_%.bbappend new file mode 100644 index 0000000..af270e5 --- /dev/null +++ b/recipes-qt/qt5/qtsystems_%.bbappend | |||
@@ -0,0 +1,24 @@ | |||
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 | |||
23 | EXTRA_QMAKEVARS_PRE_emulator += "CONFIG+=simulator" | ||
24 | DEPENDS_emulator += "qtsimulator" | ||
diff --git a/recipes/adbd/adbd.bb b/recipes/adbd/adbd.bb index 74d6a8a..c372755 100644 --- a/recipes/adbd/adbd.bb +++ b/recipes/adbd/adbd.bb | |||
@@ -24,45 +24,45 @@ DESCRIPTION = "Android Debug Bridge Daemon" | |||
24 | HOMEPAGE = "http://developer.android.com/tools/help/adb.html" | 24 | HOMEPAGE = "http://developer.android.com/tools/help/adb.html" |
25 | SECTION = "devel" | 25 | SECTION = "devel" |
26 | LICENSE = "Apache-2.0" | 26 | LICENSE = "Apache-2.0" |
27 | LIC_FILES_CHKSUM = "file://NOTICE;md5=2ddb23e63b1f9c3c46aaa4195f819a6d" | 27 | LIC_FILES_CHKSUM = "file://adb/NOTICE;md5=2ddb23e63b1f9c3c46aaa4195f819a6d" |
28 | 28 | ||
29 | PV = "android-4.2.2_r1.2" | 29 | PV = "android-5.0.1_r1" |
30 | PR = "r0" | 30 | PR = "r0" |
31 | SRCREV = "${PV}" | 31 | SRCREV = "${PV}" |
32 | 32 | ||
33 | RRECOMMENDS_${PN} += "kernel-module-g-ffs" | 33 | RRECOMMENDS_${PN} += "kernel-module-g-ffs" |
34 | DEPENDS = "openssl" | 34 | DEPENDS = "openssl libcap" |
35 | 35 | ||
36 | SRC_URI = "git://android.googlesource.com/platform/system/core;protocol=https \ | 36 | SRC_URI = "git://android.googlesource.com/platform/system/core;protocol=https;branch=lollipop-release;name=core \ |
37 | file://adbd.patch;striplevel=2 \ | 37 | file://adbd.patch \ |
38 | file://Makefile.adbd \ | 38 | file://Makefile.adbd \ |
39 | file://adb-init \ | 39 | file://adb-init \ |
40 | file://defaults \ | 40 | file://defaults \ |
41 | " | 41 | " |
42 | 42 | ||
43 | S = "${WORKDIR}/git/adb" | 43 | S = "${WORKDIR}/git" |
44 | 44 | ||
45 | FILES_${PN} += "${bindir}/adbd" | 45 | FILES_${PN} += "${bindir}/adbd" |
46 | 46 | ||
47 | do_configure() { | 47 | do_configure() { |
48 | if [ -n "${ADB_PRODUCTID}" ]; then | 48 | if [ -n "${ADB_PRODUCTID}" ]; then |
49 | sed -i -e 's/PRODUCT=.*/PRODUCT=${ADB_PRODUCTID}/' ${WORKDIR}/defaults | 49 | sed -i -e 's/PRODUCT=.*/PRODUCT=${ADB_PRODUCTID}/' ${WORKDIR}/defaults |
50 | fi | 50 | fi |
51 | } | 51 | } |
52 | 52 | ||
53 | do_compile() { | 53 | do_compile() { |
54 | make -f ${WORKDIR}/Makefile.adbd | 54 | make -f ${WORKDIR}/Makefile.adbd -C adb |
55 | } | 55 | } |
56 | 56 | ||
57 | do_install() { | 57 | do_install() { |
58 | install -m 0755 -d ${D}${bindir}/ | 58 | install -m 0755 -d ${D}${bindir}/ |
59 | install -m 0755 ${WORKDIR}/git/adb/adbd ${D}${bindir}/ | 59 | install -m 0755 ${WORKDIR}/git/adb/adbd ${D}${bindir}/ |
60 | 60 | ||
61 | install -m 0755 -d ${D}${sysconfdir}/init.d | 61 | install -m 0755 -d ${D}${sysconfdir}/init.d |
62 | install -m 0755 ${WORKDIR}/adb-init ${D}${sysconfdir}/init.d/ | 62 | install -m 0755 ${WORKDIR}/adb-init ${D}${sysconfdir}/init.d/ |
63 | 63 | ||
64 | install -m 0755 -d ${D}${sysconfdir}/default | 64 | install -m 0755 -d ${D}${sysconfdir}/default |
65 | install -m 0755 ${WORKDIR}/defaults ${D}${sysconfdir}/default/adbd | 65 | install -m 0755 ${WORKDIR}/defaults ${D}${sysconfdir}/default/adbd |
66 | } | 66 | } |
67 | 67 | ||
68 | INITSCRIPT_NAME = "adb-init" | 68 | INITSCRIPT_NAME = "adb-init" |
diff --git a/recipes/adbd/files/Makefile.adbd b/recipes/adbd/files/Makefile.adbd index a24b670..bcbfd7a 100644 --- a/recipes/adbd/files/Makefile.adbd +++ b/recipes/adbd/files/Makefile.adbd | |||
@@ -1,6 +1,5 @@ | |||
1 | LOCAL_SRC_FILES := \ | 1 | LOCAL_SRC_FILES := \ |
2 | adb.c \ | 2 | adb.c \ |
3 | backup_service.c \ | ||
4 | fdevent.c \ | 3 | fdevent.c \ |
5 | transport.c \ | 4 | transport.c \ |
6 | transport_local.c \ | 5 | transport_local.c \ |
@@ -12,9 +11,7 @@ LOCAL_SRC_FILES := \ | |||
12 | jdwp_service.c \ | 11 | jdwp_service.c \ |
13 | framebuffer_service.c \ | 12 | framebuffer_service.c \ |
14 | remount_service.c \ | 13 | remount_service.c \ |
15 | usb_linux_client.c \ | 14 | usb_linux_client.c |
16 | log_service.c \ | ||
17 | utils.c | ||
18 | 15 | ||
19 | LOCAL_OBJ_FILES=$(LOCAL_SRC_FILES:%.c=%.o) | 16 | LOCAL_OBJ_FILES=$(LOCAL_SRC_FILES:%.c=%.o) |
20 | 17 | ||
@@ -23,8 +20,7 @@ LIBCUTILS_SRC_FILES := \ | |||
23 | ../libcutils/socket_local_client.c \ | 20 | ../libcutils/socket_local_client.c \ |
24 | ../libcutils/socket_local_server.c \ | 21 | ../libcutils/socket_local_server.c \ |
25 | ../libcutils/socket_loopback_client.c \ | 22 | ../libcutils/socket_loopback_client.c \ |
26 | ../libcutils/socket_loopback_server.c \ | 23 | ../libcutils/socket_loopback_server.c |
27 | ../libcutils/list.c | ||
28 | 24 | ||
29 | LIBCUTILS_OBJ_FILES=$(LIBCUTILS_SRC_FILES:%.c=%.o) | 25 | LIBCUTILS_OBJ_FILES=$(LIBCUTILS_SRC_FILES:%.c=%.o) |
30 | 26 | ||
@@ -35,4 +31,4 @@ adbd: $(LOCAL_OBJ_FILES) $(LIBCUTILS_OBJ_FILES) | |||
35 | $(CC) -O2 -g -DADB_HOST=1 -Wall -Wno-unused-parameter -D_XOPEN_SOURCE -D_GNU_SOURCE -c $^ -o $@ -I../include/ -DHAVE_TERMIO_H -DHAVE_FORKEXEC | 31 | $(CC) -O2 -g -DADB_HOST=1 -Wall -Wno-unused-parameter -D_XOPEN_SOURCE -D_GNU_SOURCE -c $^ -o $@ -I../include/ -DHAVE_TERMIO_H -DHAVE_FORKEXEC |
36 | 32 | ||
37 | %.o: %.c | 33 | %.o: %.c |
38 | $(CC) -O2 -g -DALLOW_ADBD_ROOT -DADB_QEMU=0 -DADB_HOST=0 -Wall -Wno-unused-parameter -D_XOPEN_SOURCE -D_GNU_SOURCE -c $^ -o $@ -I../include/ -DHAVE_TERMIO_H -DHAVE_FORKEXEC | 34 | $(CC) -O2 -g -DADB_QEMU=0 -DADB_HOST=0 -Wall -Wno-unused-parameter -D_XOPEN_SOURCE -D_GNU_SOURCE -c $^ -o $@ -isystem . -I../include/ -DHAVE_TERMIO_H -DHAVE_FORKEXEC |
diff --git a/recipes/adbd/files/adb-init b/recipes/adbd/files/adb-init index 92500d7..d8920b8 100755 --- a/recipes/adbd/files/adb-init +++ b/recipes/adbd/files/adb-init | |||
@@ -4,6 +4,10 @@ DAEMON=/usr/bin/adbd | |||
4 | 4 | ||
5 | . /etc/default/adbd | 5 | . /etc/default/adbd |
6 | 6 | ||
7 | if [ -e /var/run/dbus/session_bus_address ]; then | ||
8 | . /var/run/dbus/session_bus_address | ||
9 | fi | ||
10 | |||
7 | case "$1" in | 11 | case "$1" in |
8 | start) | 12 | start) |
9 | if [ "$USE_ETHERNET" = "no" ]; then | 13 | if [ "$USE_ETHERNET" = "no" ]; then |
diff --git a/recipes/adbd/files/adbd.patch b/recipes/adbd/files/adbd.patch index 110b021..479a049 100644 --- a/recipes/adbd/files/adbd.patch +++ b/recipes/adbd/files/adbd.patch | |||
@@ -1,8 +1,21 @@ | |||
1 | diff --git a/adb/adb.c b/adb/adb.c | 1 | diff --git a/adb/adb.c b/adb/adb.c |
2 | index 07bfbe5..c8f37ff 100644 | 2 | index 10a1e0d..99fca49 100644 |
3 | --- a/adb/adb.c | 3 | --- a/adb/adb.c |
4 | +++ b/adb/adb.c | 4 | +++ b/adb/adb.c |
5 | @@ -141,7 +141,7 @@ void adb_trace_init(void) | 5 | @@ -35,12 +35,10 @@ |
6 | |||
7 | #if !ADB_HOST | ||
8 | #include <cutils/properties.h> | ||
9 | -#include <private/android_filesystem_config.h> | ||
10 | #include <sys/capability.h> | ||
11 | #include <sys/mount.h> | ||
12 | #include <sys/prctl.h> | ||
13 | #include <getopt.h> | ||
14 | -#include <selinux/selinux.h> | ||
15 | #else | ||
16 | #include "usb_vendors.h" | ||
17 | #endif | ||
18 | @@ -147,7 +145,7 @@ void adb_trace_init(void) | ||
6 | } | 19 | } |
7 | } | 20 | } |
8 | 21 | ||
@@ -11,7 +24,7 @@ index 07bfbe5..c8f37ff 100644 | |||
11 | /* | 24 | /* |
12 | * Implements ADB tracing inside the emulator. | 25 | * Implements ADB tracing inside the emulator. |
13 | */ | 26 | */ |
14 | @@ -282,6 +282,22 @@ static void send_close(unsigned local, unsigned remote, atransport *t) | 27 | @@ -288,6 +286,22 @@ static void send_close(unsigned local, unsigned remote, atransport *t) |
15 | send_packet(p, t); | 28 | send_packet(p, t); |
16 | } | 29 | } |
17 | 30 | ||
@@ -34,104 +47,176 @@ index 07bfbe5..c8f37ff 100644 | |||
34 | static size_t fill_connect_data(char *buf, size_t bufsize) | 47 | static size_t fill_connect_data(char *buf, size_t bufsize) |
35 | { | 48 | { |
36 | #if ADB_HOST | 49 | #if ADB_HOST |
37 | @@ -1056,31 +1072,7 @@ static int should_drop_privileges() { | 50 | @@ -1344,50 +1358,11 @@ int adb_main(int is_daemon, int server_port) |
38 | #ifndef ALLOW_ADBD_ROOT | 51 | " unchanged.\n"); |
39 | return 1; | 52 | } |
40 | #else /* ALLOW_ADBD_ROOT */ | 53 | |
41 | - int secure = 0; | 54 | - /* add extra groups: |
42 | - char value[PROPERTY_VALUE_MAX]; | 55 | - ** AID_ADB to access the USB driver |
43 | - | 56 | - ** AID_LOG to read system logs (adb logcat) |
44 | - /* run adbd in secure mode if ro.secure is set and | 57 | - ** AID_INPUT to diagnose input issues (getevent) |
45 | - ** we are not in the emulator | 58 | - ** AID_INET to diagnose network issues (netcfg, ping) |
59 | - ** AID_GRAPHICS to access the frame buffer | ||
60 | - ** AID_NET_BT and AID_NET_BT_ADMIN to diagnose bluetooth (hcidump) | ||
61 | - ** AID_SDCARD_R to allow reading from the SD card | ||
62 | - ** AID_SDCARD_RW to allow writing to the SD card | ||
63 | - ** AID_NET_BW_STATS to read out qtaguid statistics | ||
46 | - */ | 64 | - */ |
47 | - property_get("ro.kernel.qemu", value, ""); | 65 | - gid_t groups[] = { AID_ADB, AID_LOG, AID_INPUT, AID_INET, AID_GRAPHICS, |
48 | - if (strcmp(value, "1") != 0) { | 66 | - AID_NET_BT, AID_NET_BT_ADMIN, AID_SDCARD_R, AID_SDCARD_RW, |
49 | - property_get("ro.secure", value, "1"); | 67 | - AID_NET_BW_STATS }; |
50 | - if (strcmp(value, "1") == 0) { | 68 | - if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) { |
51 | - // don't run as root if ro.secure is set... | 69 | - exit(1); |
52 | - secure = 1; | 70 | - } |
53 | - | 71 | - |
54 | - // ... except we allow running as root in userdebug builds if the | 72 | - /* don't listen on a port (default 5037) if running in secure mode */ |
55 | - // service.adb.root property has been set by the "adb root" command | 73 | - /* don't run as root if we are running in secure mode */ |
56 | - property_get("ro.debuggable", value, ""); | 74 | - if (should_drop_privileges()) { |
57 | - if (strcmp(value, "1") == 0) { | 75 | - drop_capabilities_bounding_set_if_needed(); |
58 | - property_get("service.adb.root", value, ""); | 76 | |
59 | - if (strcmp(value, "1") == 0) { | 77 | - /* then switch user and group to "shell" */ |
60 | - secure = 0; | 78 | - if (setgid(AID_SHELL) != 0) { |
61 | - } | 79 | - exit(1); |
80 | - } | ||
81 | - if (setuid(AID_SHELL) != 0) { | ||
82 | - exit(1); | ||
83 | - } | ||
84 | - | ||
85 | - D("Local port disabled\n"); | ||
86 | - } else { | ||
87 | - char local_name[30]; | ||
88 | - if ((root_seclabel != NULL) && (is_selinux_enabled() > 0)) { | ||
89 | - // b/12587913: fix setcon to allow const pointers | ||
90 | - if (setcon((char *)root_seclabel) < 0) { | ||
91 | - exit(1); | ||
62 | - } | 92 | - } |
63 | - } | 93 | - } |
64 | - } | 94 | - build_local_name(local_name, sizeof(local_name), server_port); |
65 | - return secure; | 95 | - if(install_listener(local_name, "*smartsocket*", NULL, 0)) { |
66 | + return 0; | 96 | - exit(1); |
67 | #endif /* ALLOW_ADBD_ROOT */ | 97 | - } |
68 | } | 98 | + char local_name[30]; |
69 | #endif /* !ADB_HOST */ | 99 | + build_local_name(local_name, sizeof(local_name), server_port); |
70 | @@ -1543,7 +1535,9 @@ int main(int argc, char **argv) | 100 | + if(install_listener(local_name, "*smartsocket*", NULL, 0)) { |
101 | + exit(1); | ||
102 | } | ||
103 | |||
104 | int usb = 0; | ||
105 | @@ -1408,10 +1383,9 @@ int adb_main(int is_daemon, int server_port) | ||
106 | printf("using port=%d\n", port); | ||
107 | // listen on TCP port specified by service.adb.tcp.port property | ||
108 | local_init(port); | ||
109 | - } else if (!usb) { | ||
110 | - // listen on default port | ||
111 | - local_init(DEFAULT_ADB_LOCAL_TRANSPORT_PORT); | ||
112 | } | ||
113 | + // listen on default port | ||
114 | + local_init(DEFAULT_ADB_LOCAL_TRANSPORT_PORT); | ||
115 | |||
116 | D("adb_main(): pre init_jdwp()\n"); | ||
117 | init_jdwp(); | ||
118 | @@ -1695,7 +1669,6 @@ int main(int argc, char **argv) | ||
71 | #else | 119 | #else |
72 | /* If adbd runs inside the emulator this will enable adb tracing via | 120 | /* If adbd runs inside the emulator this will enable adb tracing via |
73 | * adb-debug qemud service in the emulator. */ | 121 | * adb-debug qemud service in the emulator. */ |
74 | +#if ADB_QEMU | 122 | - adb_qemu_trace_init(); |
75 | adb_qemu_trace_init(); | 123 | while(1) { |
76 | +#endif | 124 | int c; |
77 | if((argc > 1) && (!strcmp(argv[1],"recovery"))) { | 125 | int option_index = 0; |
78 | adb_device_banner = "recovery"; | 126 | diff --git a/adb/adb_trace.h b/adb/adb_trace.h |
79 | recovery_mode = 1; | 127 | index 8a5d9f8..01c4c06 100644 |
80 | diff --git a/adb/adb.h b/adb/adb.h | 128 | --- a/adb/adb_trace.h |
81 | index 9da8af8..ae3dd31 100644 | 129 | +++ b/adb/adb_trace.h |
82 | --- a/adb/adb.h | 130 | @@ -22,7 +22,7 @@ |
83 | +++ b/adb/adb.h | 131 | #endif |
84 | @@ -363,7 +363,7 @@ typedef enum { | ||
85 | |||
86 | #if ADB_TRACE | ||
87 | 132 | ||
88 | -#if !ADB_HOST | 133 | /* define ADB_TRACE to 1 to enable tracing support, or 0 to disable it */ |
89 | +#if !ADB_HOST && ADB_QEMU | 134 | -#define ADB_TRACE 1 |
90 | /* | 135 | +#define ADB_TRACE 0 |
91 | * When running inside the emulator, guest's adbd can connect to 'adb-debug' | 136 | |
92 | * qemud service that can display adb trace messages (on condition that emulator | 137 | /* IMPORTANT: if you change the following list, don't |
138 | * forget to update the corresponding 'tags' table in | ||
139 | diff --git a/adb/file_sync_service.c b/adb/file_sync_service.c | ||
140 | index 7933858..3cbd0cd 100644 | ||
141 | --- a/adb/file_sync_service.c | ||
142 | +++ b/adb/file_sync_service.c | ||
143 | @@ -26,7 +26,6 @@ | ||
144 | |||
145 | #include <errno.h> | ||
146 | #include <private/android_filesystem_config.h> | ||
147 | -#include <selinux/android.h> | ||
148 | #include "sysdeps.h" | ||
149 | |||
150 | #define TRACE_TAG TRACE_SYNC | ||
151 | @@ -73,7 +72,6 @@ static int mkdirs(char *name) | ||
152 | *x = '/'; | ||
153 | return ret; | ||
154 | } | ||
155 | - selinux_android_restorecon(name, 0); | ||
156 | } | ||
157 | *x++ = '/'; | ||
158 | } | ||
159 | @@ -251,7 +249,6 @@ static int handle_send_file(int s, char *path, uid_t uid, | ||
160 | if(fd >= 0) { | ||
161 | struct utimbuf u; | ||
162 | adb_close(fd); | ||
163 | - selinux_android_restorecon(path, 0); | ||
164 | u.actime = timestamp; | ||
165 | u.modtime = timestamp; | ||
166 | utime(path, &u); | ||
93 | diff --git a/adb/remount_service.c b/adb/remount_service.c | 167 | diff --git a/adb/remount_service.c b/adb/remount_service.c |
94 | index 4cb41e7..6cfc2c6 100644 | 168 | index 72d15a1..df64799 100644 |
95 | --- a/adb/remount_service.c | 169 | --- a/adb/remount_service.c |
96 | +++ b/adb/remount_service.c | 170 | +++ b/adb/remount_service.c |
97 | @@ -77,12 +77,12 @@ static int remount_system() | 171 | @@ -28,7 +28,7 @@ |
98 | return 0; | 172 | #include "adb.h" |
99 | } | ||
100 | 173 | ||
101 | - dev = find_mount("/system"); | ||
102 | + dev = find_mount("/"); | ||
103 | 174 | ||
104 | if (!dev) | 175 | -static int system_ro = 1; |
105 | return -1; | 176 | +static int system_ro = 0; |
177 | static int vendor_ro = 1; | ||
106 | 178 | ||
107 | - system_ro = mount(dev, "/system", "none", MS_REMOUNT, NULL); | 179 | /* Returns the device used to mount a directory in /proc/mounts */ |
108 | + system_ro = mount(dev, "/", "none", MS_REMOUNT, NULL); | 180 | @@ -84,7 +84,7 @@ static int remount(const char* dir, int* dir_ro) |
181 | int fd; | ||
182 | int OFF = 0; | ||
109 | 183 | ||
110 | free(dev); | 184 | - if (dir_ro == 0) { |
185 | + if (*dir_ro == 0) { | ||
186 | return 0; | ||
187 | } | ||
188 | |||
189 | @@ -132,7 +132,6 @@ void remount_service(int fd, void *cookie) | ||
190 | else { | ||
191 | write_string(fd, "remount failed\n"); | ||
192 | } | ||
193 | - | ||
194 | adb_close(fd); | ||
195 | } | ||
111 | 196 | ||
112 | diff --git a/adb/services.c b/adb/services.c | 197 | diff --git a/adb/services.c b/adb/services.c |
113 | index 495a083..eb895ae 100644 | 198 | index e61371a..8d4e2b5 100644 |
114 | --- a/adb/services.c | 199 | --- a/adb/services.c |
115 | +++ b/adb/services.c | 200 | +++ b/adb/services.c |
116 | @@ -33,7 +33,7 @@ | 201 | @@ -34,7 +34,7 @@ |
117 | # include <sys/ioctl.h> | 202 | # include <sys/ioctl.h> |
118 | # endif | 203 | # endif |
119 | #else | 204 | #else |
120 | -# include <cutils/android_reboot.h> | 205 | -# include <cutils/android_reboot.h> |
121 | +# include <linux/reboot.h> | 206 | +# include <sys/reboot.h> |
207 | # include <cutils/properties.h> | ||
122 | #endif | 208 | #endif |
123 | 209 | ||
124 | typedef struct stinfo stinfo; | 210 | @@ -127,7 +127,7 @@ void reboot_service(int fd, void *arg) |
125 | @@ -182,7 +182,7 @@ void reboot_service(int fd, void *arg) | 211 | goto cleanup; |
126 | waitpid(pid, &ret, 0); | ||
127 | } | 212 | } |
128 | 213 | ||
129 | - ret = android_reboot(ANDROID_RB_RESTART2, 0, (char *) arg); | 214 | - ret = property_set(ANDROID_RB_PROPERTY, property_val); |
130 | + ret = reboot(LINUX_REBOOT_CMD_RESTART2, 0, (char *) arg); | 215 | + ret = reboot(RB_AUTOBOOT); |
131 | if (ret < 0) { | 216 | if (ret < 0) { |
132 | snprintf(buf, sizeof(buf), "reboot failed: %s\n", strerror(errno)); | 217 | snprintf(buf, sizeof(buf), "reboot failed: %d\n", ret); |
133 | writex(fd, buf, strlen(buf)); | 218 | writex(fd, buf, strlen(buf)); |
134 | @@ -334,7 +334,7 @@ static int create_subprocess(const char *cmd, const char *arg0, const char *arg1 | 219 | @@ -302,7 +302,7 @@ static int create_subproc_raw(const char *cmd, const char *arg0, const char *arg |
135 | #if ADB_HOST | 220 | #if ADB_HOST |
136 | #define SHELL_COMMAND "/bin/sh" | 221 | #define SHELL_COMMAND "/bin/sh" |
137 | #else | 222 | #else |
@@ -141,10 +226,10 @@ index 495a083..eb895ae 100644 | |||
141 | 226 | ||
142 | #if !ADB_HOST | 227 | #if !ADB_HOST |
143 | diff --git a/adb/transport_local.c b/adb/transport_local.c | 228 | diff --git a/adb/transport_local.c b/adb/transport_local.c |
144 | index 96a24ba..51c85fc 100644 | 229 | index 948cc15..d6d0a3a 100644 |
145 | --- a/adb/transport_local.c | 230 | --- a/adb/transport_local.c |
146 | +++ b/adb/transport_local.c | 231 | +++ b/adb/transport_local.c |
147 | @@ -186,7 +186,7 @@ static void *server_socket_thread(void * arg) | 232 | @@ -189,7 +189,7 @@ static void *server_socket_thread(void * arg) |
148 | } | 233 | } |
149 | 234 | ||
150 | /* This is relevant only for ADB daemon running inside the emulator. */ | 235 | /* This is relevant only for ADB daemon running inside the emulator. */ |
@@ -153,7 +238,7 @@ index 96a24ba..51c85fc 100644 | |||
153 | /* | 238 | /* |
154 | * Redefine open and write for qemu_pipe.h that contains inlined references | 239 | * Redefine open and write for qemu_pipe.h that contains inlined references |
155 | * to those routines. We will redifine them back after qemu_pipe.h inclusion. | 240 | * to those routines. We will redifine them back after qemu_pipe.h inclusion. |
156 | @@ -304,7 +304,7 @@ void local_init(int port) | 241 | @@ -307,7 +307,7 @@ void local_init(int port) |
157 | if(HOST) { | 242 | if(HOST) { |
158 | func = client_socket_thread; | 243 | func = client_socket_thread; |
159 | } else { | 244 | } else { |
@@ -162,16 +247,19 @@ index 96a24ba..51c85fc 100644 | |||
162 | func = server_socket_thread; | 247 | func = server_socket_thread; |
163 | #else | 248 | #else |
164 | /* For the adbd daemon in the system image we need to distinguish | 249 | /* For the adbd daemon in the system image we need to distinguish |
165 | diff --git a/adb/transport_usb.c b/adb/transport_usb.c | 250 | diff --git a/include/cutils/properties.h b/include/cutils/properties.h |
166 | index ee6b637..c5e1408 100644 | 251 | index 798db8b..c86f312 100644 |
167 | --- a/adb/transport_usb.c | 252 | --- a/include/cutils/properties.h |
168 | +++ b/adb/transport_usb.c | 253 | +++ b/include/cutils/properties.h |
169 | @@ -18,7 +18,7 @@ | 254 | @@ -19,8 +19,9 @@ |
170 | #include <stdlib.h> | 255 | |
171 | #include <string.h> | 256 | #include <sys/cdefs.h> |
172 | 257 | #include <stddef.h> | |
173 | -#include <sysdeps.h> | 258 | -#include <sys/system_properties.h> |
174 | +#include "sysdeps.h" | 259 | -#include <stdint.h> |
175 | 260 | + | |
176 | #define TRACE_TAG TRACE_TRANSPORT | 261 | +#define PROP_NAME_MAX 32 |
177 | #include "adb.h" | 262 | +#define PROP_VALUE_MAX 92 |
263 | |||
264 | #ifdef __cplusplus | ||
265 | extern "C" { | ||
diff --git a/recipes/base-files/base-files_3.0.14.bbappend b/recipes/base-files/base-files_3.0.14.bbappend index 25a8b1e..20f38d7 100644 --- a/recipes/base-files/base-files_3.0.14.bbappend +++ b/recipes/base-files/base-files_3.0.14.bbappend | |||
@@ -26,9 +26,9 @@ SRC_URI += "\ | |||
26 | " | 26 | " |
27 | 27 | ||
28 | do_install_append() { | 28 | do_install_append() { |
29 | ln -s /home/root ${D}/root | 29 | ln -s /home/root ${D}/root |
30 | echo ${MACHINE_HOSTNAME} > ${D}${sysconfdir}/hostname | 30 | echo ${MACHINE_HOSTNAME} > ${D}${sysconfdir}/hostname |
31 | 31 | ||
32 | install -m 0755 -d ${D}${sysconfdir}/modprobe.d | 32 | install -m 0755 -d ${D}${sysconfdir}/modprobe.d |
33 | install -m 0644 ${WORKDIR}/blacklist.conf ${D}${sysconfdir}/modprobe.d | 33 | install -m 0644 ${WORKDIR}/blacklist.conf ${D}${sysconfdir}/modprobe.d |
34 | } | 34 | } |
diff --git a/recipes/busybox/busybox_1.%.bbappend b/recipes/busybox/busybox_1.%.bbappend index e6a7205..7a519c6 100644 --- a/recipes/busybox/busybox_1.%.bbappend +++ b/recipes/busybox/busybox_1.%.bbappend | |||
@@ -39,8 +39,8 @@ INITSCRIPT_NAME_${PN}-ifplugd = "busybox-ifplugd.sh" | |||
39 | RRECOMMENDS_${PN} += "${PN}-ifplugd" | 39 | RRECOMMENDS_${PN} += "${PN}-ifplugd" |
40 | 40 | ||
41 | do_install_append () { | 41 | do_install_append () { |
42 | install -m 0755 ${WORKDIR}/busybox-ifplugd.sh ${D}${sysconfdir}/init.d/ | 42 | install -m 0755 ${WORKDIR}/busybox-ifplugd.sh ${D}${sysconfdir}/init.d/ |
43 | 43 | ||
44 | install -d ${D}${sysconfdir}/ifplugd | 44 | install -d ${D}${sysconfdir}/ifplugd |
45 | install -m 0755 ${WORKDIR}/ifplugd.action ${D}${sysconfdir}/ifplugd/ | 45 | install -m 0755 ${WORKDIR}/ifplugd.action ${D}${sysconfdir}/ifplugd/ |
46 | } | 46 | } |
diff --git a/recipes/dbus/dbus/dbus-session-address b/recipes/dbus/dbus/dbus-session-address new file mode 100644 index 0000000..3f85306 --- /dev/null +++ b/recipes/dbus/dbus/dbus-session-address | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -e /var/run/dbus/session_bus_address ]; then | ||
4 | . /var/run/dbus/session_bus_address | ||
5 | fi | ||
diff --git a/recipes/dbus/dbus/dbus-session.init b/recipes/dbus/dbus/dbus-session.init new file mode 100644 index 0000000..11a6757 --- /dev/null +++ b/recipes/dbus/dbus/dbus-session.init | |||
@@ -0,0 +1,103 @@ | |||
1 | #! /bin/sh | ||
2 | ### BEGIN INIT INFO | ||
3 | # Provides: dbus | ||
4 | # Required-Start: $remote_fs $syslog | ||
5 | # Required-Stop: $remote_fs $syslog | ||
6 | # Default-Start: 2 3 4 5 | ||
7 | # Default-Stop: 1 | ||
8 | # Short-Description: D-Bus session message bus | ||
9 | # Description: D-Bus is a simple interprocess messaging system, used | ||
10 | # for sending messages between applications. | ||
11 | ### END INIT INFO | ||
12 | # | ||
13 | # -*- coding: utf-8 -*- | ||
14 | # Debian init.d script for D-BUS | ||
15 | # Copyright © 2003 Colin Walters <walters@debian.org> | ||
16 | |||
17 | # set -e | ||
18 | |||
19 | # Source function library. | ||
20 | . /etc/init.d/functions | ||
21 | |||
22 | DAEMON=@bindir@/dbus-launch | ||
23 | NAME=dbus-session | ||
24 | ADDRESSFILE=/var/run/dbus/session_bus_address | ||
25 | UUIDDIR=/var/lib/dbus | ||
26 | DESC="session message bus" | ||
27 | |||
28 | test -x $DAEMON || exit 0 | ||
29 | |||
30 | # Source defaults file; edit that file to configure this script. | ||
31 | ENABLED=1 | ||
32 | PARAMS="" | ||
33 | if [ -e /etc/default/dbus ]; then | ||
34 | . /etc/default/dbus | ||
35 | fi | ||
36 | |||
37 | if [ -e $ADDRESSFILE ]; then | ||
38 | . $ADDRESSFILE | ||
39 | fi | ||
40 | |||
41 | test "$ENABLED" != "0" || exit 0 | ||
42 | |||
43 | start_it_up() | ||
44 | { | ||
45 | echo -n "Starting $DESC: " | ||
46 | $DAEMON --auto-syntax > $ADDRESSFILE | ||
47 | echo "$NAME." | ||
48 | } | ||
49 | |||
50 | shut_it_down() | ||
51 | { | ||
52 | echo -n "Stopping $DESC: " | ||
53 | kill $DBUS_SESSION_BUS_PID | ||
54 | echo "$NAME." | ||
55 | } | ||
56 | |||
57 | reload_it() | ||
58 | { | ||
59 | echo -n "Reloading $DESC config: " | ||
60 | dbus-send --print-reply --session --type=method_call \ | ||
61 | --dest=org.freedesktop.DBus \ | ||
62 | / org.freedesktop.DBus.ReloadConfig > /dev/null | ||
63 | # hopefully this is enough time for dbus to reload it's config file. | ||
64 | echo "done." | ||
65 | } | ||
66 | |||
67 | status_it() | ||
68 | { | ||
69 | if kill -0 $DBUS_SESSION_BUS_PID 2>/dev/null; then | ||
70 | echo "$NAME (pid $DBUS_SESSION_BUS_PID) is running..." | ||
71 | return 0 | ||
72 | else | ||
73 | echo "$NAME is stopped" | ||
74 | fi | ||
75 | return 3 | ||
76 | } | ||
77 | |||
78 | case "$1" in | ||
79 | start) | ||
80 | start_it_up | ||
81 | ;; | ||
82 | stop) | ||
83 | shut_it_down | ||
84 | ;; | ||
85 | status) | ||
86 | status_it | ||
87 | exit $? | ||
88 | ;; | ||
89 | reload|force-reload) | ||
90 | reload_it | ||
91 | ;; | ||
92 | restart) | ||
93 | shut_it_down | ||
94 | sleep 1 | ||
95 | start_it_up | ||
96 | ;; | ||
97 | *) | ||
98 | echo "Usage: /etc/init.d/$NAME {start|stop|status|restart|reload|force-reload}" >&2 | ||
99 | exit 1 | ||
100 | ;; | ||
101 | esac | ||
102 | |||
103 | exit 0 | ||
diff --git a/recipes/dbus/dbus_%.bbappend b/recipes/dbus/dbus_%.bbappend new file mode 100644 index 0000000..4eab3aa --- /dev/null +++ b/recipes/dbus/dbus_%.bbappend | |||
@@ -0,0 +1,47 @@ | |||
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 | |||
23 | FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" | ||
24 | SRC_URI += " \ | ||
25 | file://dbus-session.init \ | ||
26 | file://dbus-session-address \ | ||
27 | " | ||
28 | |||
29 | INITSCRIPT_PACKAGES = "${PN} ${PN}-session-init" | ||
30 | INITSCRIPT_NAME_${PN}-session-init = "dbus-session" | ||
31 | INITSCRIPT_PARAMS_${PN}-session-init = "start 20 5 3 2 . stop 10 0 1 6 ." | ||
32 | |||
33 | PACKAGES =+ "${PN}-session-init" | ||
34 | FILES_${PN}-session-init = " \ | ||
35 | ${sysconfdir}/init.d/dbus-session \ | ||
36 | ${sysconfdir}/profile.d/dbus-session-address \ | ||
37 | " | ||
38 | |||
39 | do_install_append_class-target() { | ||
40 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | ||
41 | install -d ${D}${sysconfdir}/init.d | ||
42 | sed 's:@bindir@:${bindir}:' < ${WORKDIR}/dbus-session.init >${WORKDIR}/dbus-session.init.sh | ||
43 | install -m 0755 ${WORKDIR}/dbus-session.init.sh ${D}${sysconfdir}/init.d/dbus-session | ||
44 | fi | ||
45 | install -d ${D}${sysconfdir}/profile.d | ||
46 | install -m 0755 ${WORKDIR}/dbus-session-address ${D}${sysconfdir}/profile.d/ | ||
47 | } | ||
diff --git a/recipes/fonts/otf-noto.bb b/recipes/fonts/otf-noto.bb new file mode 100644 index 0000000..c207535 --- /dev/null +++ b/recipes/fonts/otf-noto.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "Noto Sans CJK" | ||
2 | SECTION = "fonts" | ||
3 | HOMEPAGE = "http://www.google.com/get/noto" | ||
4 | LICENSE = "Apache-2.0" | ||
5 | # see https://code.google.com/p/noto/issues/detail?id=331 | ||
6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" | ||
7 | |||
8 | INHIBIT_DEFAULT_DEPS = "1" | ||
9 | |||
10 | inherit allarch fontcache | ||
11 | |||
12 | PV = "1.004" | ||
13 | SRC_URI = "http://www.google.com/get/noto/pkgs/NotoSansCJKSC-hinted.zip" | ||
14 | |||
15 | SRC_URI[md5sum] = "dc40e8af0b0178451ccc301f1d41e726" | ||
16 | SRC_URI[sha256sum] = "25143bb803ebb20fd17ffd1299012ee2f3a929182ff0700ab656c181872413a4" | ||
17 | |||
18 | do_install() { | ||
19 | install -m 0644 -d ${D}${datadir}/fonts/otf/noto | ||
20 | install -m 0644 ${WORKDIR}/*.otf ${D}${datadir}/fonts/otf/noto | ||
21 | } | ||
22 | |||
23 | PACKAGES = "${PN}" | ||
24 | FILES_${PN} += "${datadir}/fonts/otf/noto" | ||
diff --git a/recipes/gperf/gperf_%.bbappend b/recipes/gperf/gperf_%.bbappend new file mode 100644 index 0000000..2dc86e4 --- /dev/null +++ b/recipes/gperf/gperf_%.bbappend | |||
@@ -0,0 +1,23 @@ | |||
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 | |||
23 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/recipes/gstreamer/gstreamer1.0-plugins-bad_%.bbappend b/recipes/gstreamer/gstreamer1.0-plugins-bad_%.bbappend new file mode 100644 index 0000000..1c5cc7c --- /dev/null +++ b/recipes/gstreamer/gstreamer1.0-plugins-bad_%.bbappend | |||
@@ -0,0 +1 @@ | |||
PACKAGECONFIG_append = " faad" | |||
diff --git a/recipes/gstreamer/gstreamer1.0-plugins-ugly_%.bbappend b/recipes/gstreamer/gstreamer1.0-plugins-ugly_%.bbappend new file mode 100644 index 0000000..eee313b --- /dev/null +++ b/recipes/gstreamer/gstreamer1.0-plugins-ugly_%.bbappend | |||
@@ -0,0 +1 @@ | |||
PACKAGECONFIG_append = " x264" | |||
diff --git a/recipes/hunspell/hunspell_1.3.2.bb b/recipes/hunspell/hunspell_1.3.2.bb index 29f5710..6adb48c 100644 --- a/recipes/hunspell/hunspell_1.3.2.bb +++ b/recipes/hunspell/hunspell_1.3.2.bb | |||
@@ -25,7 +25,7 @@ LICENSE = "LGPLv2" | |||
25 | LIC_FILES_CHKSUM = "file://${WORKDIR}/hunspell-${PV}/COPYING;md5=ed3a37b3ba6d6be3e08ab45987cf1b88" | 25 | LIC_FILES_CHKSUM = "file://${WORKDIR}/hunspell-${PV}/COPYING;md5=ed3a37b3ba6d6be3e08ab45987cf1b88" |
26 | 26 | ||
27 | SRC_URI = "http://downloads.sourceforge.net/hunspell/hunspell-${PV}.tar.gz;name=hunspell \ | 27 | SRC_URI = "http://downloads.sourceforge.net/hunspell/hunspell-${PV}.tar.gz;name=hunspell \ |
28 | git://gitorious.org/libreoffice/dictionaries.git;protocol=https;branch=libreoffice-4-3-2;name=dictionaries \ | 28 | git://github.com/libreoffice/dictionaries.git;branch=libreoffice-4-3-2;name=dictionaries \ |
29 | " | 29 | " |
30 | 30 | ||
31 | SRC_URI[hunspell.md5sum] = "3121aaf3e13e5d88dfff13fb4a5f1ab8" | 31 | SRC_URI[hunspell.md5sum] = "3121aaf3e13e5d88dfff13fb4a5f1ab8" |
@@ -42,11 +42,11 @@ RRECOMMENDS_${PN} += "${PN}-dicts" | |||
42 | FILES_${PN}-dicts = "${datadir}/hunspell" | 42 | FILES_${PN}-dicts = "${datadir}/hunspell" |
43 | 43 | ||
44 | do_install_append() { | 44 | do_install_append() { |
45 | install -m 0755 -d ${D}${datadir}/hunspell | 45 | install -m 0755 -d ${D}${datadir}/hunspell |
46 | 46 | ||
47 | install -m 0755 ${WORKDIR}/git/ar/ar.dic ${D}${datadir}/hunspell/ar_EG.dic | 47 | install -m 0755 ${WORKDIR}/git/ar/ar.dic ${D}${datadir}/hunspell/ar_EG.dic |
48 | install -m 0755 ${WORKDIR}/git/ar/ar.aff ${D}${datadir}/hunspell/ar_EG.aff | 48 | install -m 0755 ${WORKDIR}/git/ar/ar.aff ${D}${datadir}/hunspell/ar_EG.aff |
49 | 49 | ||
50 | install -m 0755 ${WORKDIR}/git/en/en_GB.dic ${D}${datadir}/hunspell | 50 | install -m 0755 ${WORKDIR}/git/en/en_GB.dic ${D}${datadir}/hunspell |
51 | install -m 0755 ${WORKDIR}/git/en/en_GB.aff ${D}${datadir}/hunspell | 51 | install -m 0755 ${WORKDIR}/git/en/en_GB.aff ${D}${datadir}/hunspell |
52 | } | 52 | } |
diff --git a/recipes/images/b2qt-embedded-image.bb b/recipes/images/b2qt-embedded-image.bb index 9b452c6..d8e55ef 100644 --- a/recipes/images/b2qt-embedded-image.bb +++ b/recipes/images/b2qt-embedded-image.bb | |||
@@ -38,5 +38,6 @@ inherit bootfs-image | |||
38 | IMAGE_INSTALL += "\ | 38 | IMAGE_INSTALL += "\ |
39 | packagegroup-b2qt-embedded-base \ | 39 | packagegroup-b2qt-embedded-base \ |
40 | packagegroup-b2qt-embedded-tools \ | 40 | packagegroup-b2qt-embedded-tools \ |
41 | packagegroup-b2qt-embedded-gstreamer \ | 41 | ${@base_contains("DISTRO_FEATURES", "gstreamer010", "packagegroup-b2qt-embedded-gstreamer010", "", d)} \ |
42 | ${@base_contains("DISTRO_FEATURES", "gstreamer", "packagegroup-b2qt-embedded-gstreamer", "", d)} \ | ||
42 | " | 43 | " |
diff --git a/recipes/init-ifupdown/init-ifupdown_1.0.bbappend b/recipes/init-ifupdown/init-ifupdown_1.0.bbappend index b7da585..38ea659 100644 --- a/recipes/init-ifupdown/init-ifupdown_1.0.bbappend +++ b/recipes/init-ifupdown/init-ifupdown_1.0.bbappend | |||
@@ -25,6 +25,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | |||
25 | SRC_URI_append_beagleboard = " file://fixed_mac_address" | 25 | SRC_URI_append_beagleboard = " file://fixed_mac_address" |
26 | 26 | ||
27 | do_install_append_beagleboard() { | 27 | do_install_append_beagleboard() { |
28 | install -d ${D}${sysconfdir}/init.d | 28 | install -d ${D}${sysconfdir}/init.d |
29 | install -m 0755 ${WORKDIR}/fixed_mac_address ${D}${sysconfdir}/network/if-pre-up.d/ | 29 | install -m 0755 ${WORKDIR}/fixed_mac_address ${D}${sysconfdir}/network/if-pre-up.d/ |
30 | } | 30 | } |
diff --git a/recipes/initscripts/initscripts_1.0.bbappend b/recipes/initscripts/initscripts_1.0.bbappend index 09efe29..f8cdf55 100644 --- a/recipes/initscripts/initscripts_1.0.bbappend +++ b/recipes/initscripts/initscripts_1.0.bbappend | |||
@@ -21,5 +21,5 @@ | |||
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | do_configure_append() { | 23 | do_configure_append() { |
24 | sed -i -e "/echo/d" ${WORKDIR}/banner.sh | 24 | sed -i -e "/echo/d" ${WORKDIR}/banner.sh |
25 | } | 25 | } |
diff --git a/recipes/linux/linux/ARM-perf-add-support-for-perf-registers-API.diff b/recipes/linux/linux/ARM-perf-add-support-for-perf-registers-API.diff new file mode 100644 index 0000000..e6f44fd --- /dev/null +++ b/recipes/linux/linux/ARM-perf-add-support-for-perf-registers-API.diff | |||
@@ -0,0 +1,126 @@ | |||
1 | From 49863894db3ed7bd41541b1c17733273966cea71 Mon Sep 17 00:00:00 2001 | ||
2 | From: Will Deacon <will.deacon@arm.com> | ||
3 | Date: Thu, 26 Sep 2013 12:36:35 +0100 | ||
4 | Subject: [PATCH] ARM: perf: add support for perf registers API | ||
5 | |||
6 | This patch implements the functions required for the perf registers API, | ||
7 | allowing the perf tool to interface kernel register dumps with libunwind | ||
8 | in order to provide userspace backtracing. | ||
9 | |||
10 | Cc: Jean Pihet <jean.pihet@linaro.org> | ||
11 | Signed-off-by: Will Deacon <will.deacon@arm.com> | ||
12 | --- | ||
13 | arch/arm/Kconfig | 2 ++ | ||
14 | arch/arm/include/uapi/asm/Kbuild | 1 + | ||
15 | arch/arm/include/uapi/asm/perf_regs.h | 23 +++++++++++++++++++++++ | ||
16 | arch/arm/kernel/Makefile | 1 + | ||
17 | arch/arm/kernel/perf_regs.c | 30 ++++++++++++++++++++++++++++++ | ||
18 | 5 files changed, 57 insertions(+) | ||
19 | create mode 100644 arch/arm/include/uapi/asm/perf_regs.h | ||
20 | create mode 100644 arch/arm/kernel/perf_regs.c | ||
21 | |||
22 | diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig | ||
23 | index 1ad6fb6..899d0c6 100644 | ||
24 | --- a/arch/arm/Kconfig | ||
25 | +++ b/arch/arm/Kconfig | ||
26 | @@ -51,6 +51,8 @@ config ARM | ||
27 | select HAVE_MOD_ARCH_SPECIFIC if ARM_UNWIND | ||
28 | select HAVE_OPROFILE if (HAVE_PERF_EVENTS) | ||
29 | select HAVE_PERF_EVENTS | ||
30 | + select HAVE_PERF_REGS | ||
31 | + select HAVE_PERF_USER_STACK_DUMP | ||
32 | select HAVE_REGS_AND_STACK_ACCESS_API | ||
33 | select HAVE_SYSCALL_TRACEPOINTS | ||
34 | select HAVE_UID16 | ||
35 | diff --git a/arch/arm/include/uapi/asm/Kbuild b/arch/arm/include/uapi/asm/Kbuild | ||
36 | index 18d76fd..70a1c9d 100644 | ||
37 | --- a/arch/arm/include/uapi/asm/Kbuild | ||
38 | +++ b/arch/arm/include/uapi/asm/Kbuild | ||
39 | @@ -7,6 +7,7 @@ header-y += hwcap.h | ||
40 | header-y += ioctls.h | ||
41 | header-y += kvm_para.h | ||
42 | header-y += mman.h | ||
43 | +header-y += perf_regs.h | ||
44 | header-y += posix_types.h | ||
45 | header-y += ptrace.h | ||
46 | header-y += setup.h | ||
47 | diff --git a/arch/arm/include/uapi/asm/perf_regs.h b/arch/arm/include/uapi/asm/perf_regs.h | ||
48 | new file mode 100644 | ||
49 | index 0000000..ce59448 | ||
50 | --- /dev/null | ||
51 | +++ b/arch/arm/include/uapi/asm/perf_regs.h | ||
52 | @@ -0,0 +1,23 @@ | ||
53 | +#ifndef _ASM_ARM_PERF_REGS_H | ||
54 | +#define _ASM_ARM_PERF_REGS_H | ||
55 | + | ||
56 | +enum perf_event_arm_regs { | ||
57 | + PERF_REG_ARM_R0, | ||
58 | + PERF_REG_ARM_R1, | ||
59 | + PERF_REG_ARM_R2, | ||
60 | + PERF_REG_ARM_R3, | ||
61 | + PERF_REG_ARM_R4, | ||
62 | + PERF_REG_ARM_R5, | ||
63 | + PERF_REG_ARM_R6, | ||
64 | + PERF_REG_ARM_R7, | ||
65 | + PERF_REG_ARM_R8, | ||
66 | + PERF_REG_ARM_R9, | ||
67 | + PERF_REG_ARM_R10, | ||
68 | + PERF_REG_ARM_FP, | ||
69 | + PERF_REG_ARM_IP, | ||
70 | + PERF_REG_ARM_SP, | ||
71 | + PERF_REG_ARM_LR, | ||
72 | + PERF_REG_ARM_PC, | ||
73 | + PERF_REG_ARM_MAX, | ||
74 | +}; | ||
75 | +#endif /* _ASM_ARM_PERF_REGS_H */ | ||
76 | diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile | ||
77 | index 5140df5f..9b818ca 100644 | ||
78 | --- a/arch/arm/kernel/Makefile | ||
79 | +++ b/arch/arm/kernel/Makefile | ||
80 | @@ -78,6 +78,7 @@ obj-$(CONFIG_CPU_XSC3) += xscale-cp0.o | ||
81 | obj-$(CONFIG_CPU_MOHAWK) += xscale-cp0.o | ||
82 | obj-$(CONFIG_CPU_PJ4) += pj4-cp0.o | ||
83 | obj-$(CONFIG_IWMMXT) += iwmmxt.o | ||
84 | +obj-$(CONFIG_PERF_EVENTS) += perf_regs.o | ||
85 | obj-$(CONFIG_HW_PERF_EVENTS) += perf_event.o perf_event_cpu.o | ||
86 | AFLAGS_iwmmxt.o := -Wa,-mcpu=iwmmxt | ||
87 | obj-$(CONFIG_ARM_CPU_TOPOLOGY) += topology.o | ||
88 | diff --git a/arch/arm/kernel/perf_regs.c b/arch/arm/kernel/perf_regs.c | ||
89 | new file mode 100644 | ||
90 | index 0000000..6e4379c | ||
91 | --- /dev/null | ||
92 | +++ b/arch/arm/kernel/perf_regs.c | ||
93 | @@ -0,0 +1,30 @@ | ||
94 | + | ||
95 | +#include <linux/errno.h> | ||
96 | +#include <linux/kernel.h> | ||
97 | +#include <linux/perf_event.h> | ||
98 | +#include <linux/bug.h> | ||
99 | +#include <asm/perf_regs.h> | ||
100 | +#include <asm/ptrace.h> | ||
101 | + | ||
102 | +u64 perf_reg_value(struct pt_regs *regs, int idx) | ||
103 | +{ | ||
104 | + if (WARN_ON_ONCE((u32)idx >= PERF_REG_ARM_MAX)) | ||
105 | + return 0; | ||
106 | + | ||
107 | + return regs->uregs[idx]; | ||
108 | +} | ||
109 | + | ||
110 | +#define REG_RESERVED (~((1ULL << PERF_REG_ARM_MAX) - 1)) | ||
111 | + | ||
112 | +int perf_reg_validate(u64 mask) | ||
113 | +{ | ||
114 | + if (!mask || mask & REG_RESERVED) | ||
115 | + return -EINVAL; | ||
116 | + | ||
117 | + return 0; | ||
118 | +} | ||
119 | + | ||
120 | +u64 perf_reg_abi(struct task_struct *task) | ||
121 | +{ | ||
122 | + return PERF_SAMPLE_REGS_ABI_32; | ||
123 | +} | ||
124 | -- | ||
125 | 1.9.1 | ||
126 | |||
diff --git a/recipes/linux/linux/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch b/recipes/linux/linux/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch new file mode 100644 index 0000000..1e497c6 --- /dev/null +++ b/recipes/linux/linux/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch | |||
@@ -0,0 +1,172 @@ | |||
1 | From 8abd7519c1fd2b6ae35eddbb41f93f44d3886000 Mon Sep 17 00:00:00 2001 | ||
2 | From: Will Deacon <will.deacon@arm.com> | ||
3 | Date: Thu, 26 Sep 2013 12:36:36 +0100 | ||
4 | Subject: [PATCH] ARM: perf: wire up perf_regs and unwind support for ARM | ||
5 | |||
6 | This patch hooks in the perf_regs and libunwind code for ARM. | ||
7 | |||
8 | B2Qt: Backported for 3.10 kernel | ||
9 | |||
10 | Cc: Jean Pihet <jean.pihet@linaro.org> | ||
11 | Signed-off-by: Will Deacon <will.deacon@arm.com> | ||
12 | --- | ||
13 | tools/perf/Makefile | 6 +++- | ||
14 | tools/perf/arch/arm/Makefile | 3 ++ | ||
15 | tools/perf/arch/arm/include/perf_regs.h | 54 +++++++++++++++++++++++++++++++++ | ||
16 | tools/perf/arch/arm/util/unwind.c | 48 +++++++++++++++++++++++++++++ | ||
17 | 4 files changed, 110 insertions(+), 1 deletion(-) | ||
18 | create mode 100644 tools/perf/arch/arm/include/perf_regs.h | ||
19 | create mode 100644 tools/perf/arch/arm/util/unwind.c | ||
20 | |||
21 | diff --git a/tools/perf/Makefile b/tools/perf/Makefile | ||
22 | index b0f164b..f8fdad5 100644 | ||
23 | --- a/tools/perf/Makefile | ||
24 | +++ b/tools/perf/Makefile | ||
25 | @@ -87,6 +87,10 @@ ifeq ($(ARCH),x86_64) | ||
26 | NO_PERF_REGS := 0 | ||
27 | LIBUNWIND_LIBS = -lunwind -lunwind-x86_64 | ||
28 | endif | ||
29 | +ifeq ($(ARCH),arm) | ||
30 | + NO_PERF_REGS := 0 | ||
31 | + LIBUNWIND_LIBS = -lunwind -lunwind-arm | ||
32 | +endif | ||
33 | |||
34 | # Treat warnings as errors unless directed not to | ||
35 | ifneq ($(WERROR),0) | ||
36 | @@ -607,7 +611,7 @@ endif # SOURCE_LIBELF | ||
37 | endif # NO_LIBELF | ||
38 | |||
39 | # There's only x86 (both 32 and 64) support for CFI unwind so far | ||
40 | -ifneq ($(ARCH),x86) | ||
41 | +ifeq ($(LIBUNWIND_LIBS),) | ||
42 | NO_LIBUNWIND := 1 | ||
43 | endif | ||
44 | |||
45 | diff --git a/tools/perf/arch/arm/Makefile b/tools/perf/arch/arm/Makefile | ||
46 | index 15130b5..fe9b61e 100644 | ||
47 | --- a/tools/perf/arch/arm/Makefile | ||
48 | +++ b/tools/perf/arch/arm/Makefile | ||
49 | @@ -2,3 +2,6 @@ ifndef NO_DWARF | ||
50 | PERF_HAVE_DWARF_REGS := 1 | ||
51 | LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/dwarf-regs.o | ||
52 | endif | ||
53 | +ifndef NO_LIBUNWIND | ||
54 | +LIB_OBJS += $(OUTPUT)arch/$(ARCH)/util/unwind.o | ||
55 | +endif | ||
56 | diff --git a/tools/perf/arch/arm/include/perf_regs.h b/tools/perf/arch/arm/include/perf_regs.h | ||
57 | new file mode 100644 | ||
58 | index 0000000..2a1cfde | ||
59 | --- /dev/null | ||
60 | +++ b/tools/perf/arch/arm/include/perf_regs.h | ||
61 | @@ -0,0 +1,54 @@ | ||
62 | +#ifndef ARCH_PERF_REGS_H | ||
63 | +#define ARCH_PERF_REGS_H | ||
64 | + | ||
65 | +#include <stdlib.h> | ||
66 | +#include "../../util/types.h" | ||
67 | +#include <asm/perf_regs.h> | ||
68 | + | ||
69 | +#define PERF_REGS_MASK ((1ULL << PERF_REG_ARM_MAX) - 1) | ||
70 | +#define PERF_REG_IP PERF_REG_ARM_PC | ||
71 | +#define PERF_REG_SP PERF_REG_ARM_SP | ||
72 | + | ||
73 | +static inline const char *perf_reg_name(int id) | ||
74 | +{ | ||
75 | + switch (id) { | ||
76 | + case PERF_REG_ARM_R0: | ||
77 | + return "r0"; | ||
78 | + case PERF_REG_ARM_R1: | ||
79 | + return "r1"; | ||
80 | + case PERF_REG_ARM_R2: | ||
81 | + return "r2"; | ||
82 | + case PERF_REG_ARM_R3: | ||
83 | + return "r3"; | ||
84 | + case PERF_REG_ARM_R4: | ||
85 | + return "r4"; | ||
86 | + case PERF_REG_ARM_R5: | ||
87 | + return "r5"; | ||
88 | + case PERF_REG_ARM_R6: | ||
89 | + return "r6"; | ||
90 | + case PERF_REG_ARM_R7: | ||
91 | + return "r7"; | ||
92 | + case PERF_REG_ARM_R8: | ||
93 | + return "r8"; | ||
94 | + case PERF_REG_ARM_R9: | ||
95 | + return "r9"; | ||
96 | + case PERF_REG_ARM_R10: | ||
97 | + return "r10"; | ||
98 | + case PERF_REG_ARM_FP: | ||
99 | + return "fp"; | ||
100 | + case PERF_REG_ARM_IP: | ||
101 | + return "ip"; | ||
102 | + case PERF_REG_ARM_SP: | ||
103 | + return "sp"; | ||
104 | + case PERF_REG_ARM_LR: | ||
105 | + return "lr"; | ||
106 | + case PERF_REG_ARM_PC: | ||
107 | + return "pc"; | ||
108 | + default: | ||
109 | + return NULL; | ||
110 | + } | ||
111 | + | ||
112 | + return NULL; | ||
113 | +} | ||
114 | + | ||
115 | +#endif /* ARCH_PERF_REGS_H */ | ||
116 | diff --git a/tools/perf/arch/arm/util/unwind.c b/tools/perf/arch/arm/util/unwind.c | ||
117 | new file mode 100644 | ||
118 | index 0000000..da3dc95 | ||
119 | --- /dev/null | ||
120 | +++ b/tools/perf/arch/arm/util/unwind.c | ||
121 | @@ -0,0 +1,48 @@ | ||
122 | + | ||
123 | +#include <errno.h> | ||
124 | +#include <libunwind.h> | ||
125 | +#include "perf_regs.h" | ||
126 | +#include "../../util/unwind.h" | ||
127 | + | ||
128 | +int unwind__arch_reg_id(int regnum) | ||
129 | +{ | ||
130 | + switch (regnum) { | ||
131 | + case UNW_ARM_R0: | ||
132 | + return PERF_REG_ARM_R0; | ||
133 | + case UNW_ARM_R1: | ||
134 | + return PERF_REG_ARM_R1; | ||
135 | + case UNW_ARM_R2: | ||
136 | + return PERF_REG_ARM_R2; | ||
137 | + case UNW_ARM_R3: | ||
138 | + return PERF_REG_ARM_R3; | ||
139 | + case UNW_ARM_R4: | ||
140 | + return PERF_REG_ARM_R4; | ||
141 | + case UNW_ARM_R5: | ||
142 | + return PERF_REG_ARM_R5; | ||
143 | + case UNW_ARM_R6: | ||
144 | + return PERF_REG_ARM_R6; | ||
145 | + case UNW_ARM_R7: | ||
146 | + return PERF_REG_ARM_R7; | ||
147 | + case UNW_ARM_R8: | ||
148 | + return PERF_REG_ARM_R8; | ||
149 | + case UNW_ARM_R9: | ||
150 | + return PERF_REG_ARM_R9; | ||
151 | + case UNW_ARM_R10: | ||
152 | + return PERF_REG_ARM_R10; | ||
153 | + case UNW_ARM_R11: | ||
154 | + return PERF_REG_ARM_FP; | ||
155 | + case UNW_ARM_R12: | ||
156 | + return PERF_REG_ARM_IP; | ||
157 | + case UNW_ARM_R13: | ||
158 | + return PERF_REG_ARM_SP; | ||
159 | + case UNW_ARM_R14: | ||
160 | + return PERF_REG_ARM_LR; | ||
161 | + case UNW_ARM_R15: | ||
162 | + return PERF_REG_ARM_PC; | ||
163 | + default: | ||
164 | + pr_err("unwind: invalid reg id %d\n", regnum); | ||
165 | + return -EINVAL; | ||
166 | + } | ||
167 | + | ||
168 | + return -EINVAL; | ||
169 | +} | ||
170 | -- | ||
171 | 1.9.1 | ||
172 | |||
diff --git a/recipes/meta/meta-toolchain-b2qt-embedded-sdk.bb b/recipes/meta/meta-toolchain-b2qt-embedded-sdk.bb index 05acf09..3f13aef 100644 --- a/recipes/meta/meta-toolchain-b2qt-embedded-sdk.bb +++ b/recipes/meta/meta-toolchain-b2qt-embedded-sdk.bb | |||
@@ -24,26 +24,9 @@ DESCRIPTION = "B2Qt on embedded Linux SDK toolchain" | |||
24 | PR = "r0" | 24 | PR = "r0" |
25 | LICENSE = "CLOSED" | 25 | LICENSE = "CLOSED" |
26 | 26 | ||
27 | inherit populate_sdk | ||
28 | |||
27 | TOOLCHAIN_HOST_TASK = "nativesdk-packagegroup-b2qt-embedded-toolchain-host packagegroup-cross-canadian-${MACHINE}" | 29 | TOOLCHAIN_HOST_TASK = "nativesdk-packagegroup-b2qt-embedded-toolchain-host packagegroup-cross-canadian-${MACHINE}" |
28 | TOOLCHAIN_TARGET_TASK = "nativesdk-packagegroup-b2qt-embedded-toolchain-target" | 30 | TOOLCHAIN_TARGET_TASK += "packagegroup-b2qt-embedded-toolchain-target" |
29 | 31 | ||
30 | require recipes-core/meta/meta-toolchain.bb | ||
31 | 32 | ||
32 | toolchain_create_sdk_env_script_append() { | ||
33 | sed -i -e '/export CC/d' $script | ||
34 | sed -i -e '/export CXX/d' $script | ||
35 | sed -i -e '/export CFLAGS/d' $script | ||
36 | sed -i -e '/export CXXFLAGS/d' $script | ||
37 | sed -i -e '/export LDFLAGS/d' $script | ||
38 | sed -i -e '/export CPPFLAGS/d' $script | ||
39 | sed -i -e '/export CFLAGS/d' $script | ||
40 | sed -i -e '/export CPP/d' $script | ||
41 | sed -i -e '/export AS/d' $script | ||
42 | sed -i -e '/export LD/d' $script | ||
43 | sed -i -e '/export STRIP/d' $script | ||
44 | sed -i -e '/export RANLIB/d' $script | ||
45 | sed -i -e '/export OBJCOPY/d' $script | ||
46 | sed -i -e '/export OBJDUMP/d' $script | ||
47 | sed -i -e '/export AR/d' $script | ||
48 | sed -i -e '/export NM/d' $script | ||
49 | } | ||
diff --git a/recipes/opengldummy/files/headers/EGL/eglplatform.h b/recipes/opengldummy/files/headers/EGL/eglplatform.h index bcbda98..572c7d5 100644 --- a/recipes/opengldummy/files/headers/EGL/eglplatform.h +++ b/recipes/opengldummy/files/headers/EGL/eglplatform.h | |||
@@ -105,9 +105,9 @@ typedef void* EGLNativeDisplayType; | |||
105 | #if 1 | 105 | #if 1 |
106 | 106 | ||
107 | /* QtGlesStream */ | 107 | /* QtGlesStream */ |
108 | typedef unsigned int EGLNativeDisplayType; | 108 | typedef intptr_t EGLNativeDisplayType; |
109 | typedef unsigned int EGLNativeWindowType; | 109 | typedef intptr_t EGLNativeWindowType; |
110 | typedef unsigned int EGLNativePixmapType; | 110 | typedef intptr_t EGLNativePixmapType; |
111 | 111 | ||
112 | #else | 112 | #else |
113 | 113 | ||
diff --git a/recipes/opengldummy/opengldummy.bb b/recipes/opengldummy/opengldummy.bb index b33e060..bfd8870 100644 --- a/recipes/opengldummy/opengldummy.bb +++ b/recipes/opengldummy/opengldummy.bb | |||
@@ -29,12 +29,14 @@ PV = "1.0.0" | |||
29 | require opengldummy.inc | 29 | require opengldummy.inc |
30 | 30 | ||
31 | do_compile() { | 31 | do_compile() { |
32 | ${CC} -DQGS_BUILD_CLIENT_DLL -fPIC -shared -I${WORKDIR}/headers -o libEGL.so ${WORKDIR}/egl.cpp | 32 | ${CC} -DQGS_BUILD_CLIENT_DLL -fPIC -shared -Wl,-soname,libEGL.so.1 -I${WORKDIR}/headers -o libEGL.so.1 ${WORKDIR}/egl.cpp |
33 | ${CC} -DQGS_BUILD_CLIENT_DLL -fPIC -shared -I${WORKDIR}/headers -o libGLESv2.so ${WORKDIR}/gles2.cpp | 33 | ${CC} -DQGS_BUILD_CLIENT_DLL -fPIC -shared -Wl,-soname,libGLESv2.so.2 -I${WORKDIR}/headers -o libGLESv2.so.2 ${WORKDIR}/gles2.cpp |
34 | } | 34 | } |
35 | 35 | ||
36 | do_install_append() { | 36 | do_install_append() { |
37 | install -m 0755 -d ${D}${libdir} | 37 | install -m 0755 -d ${D}${libdir} |
38 | install -m 0755 ${S}/libEGL.so ${D}${libdir} | 38 | install -m 0755 ${S}/libEGL.so.1 ${D}${libdir} |
39 | install -m 0755 ${S}/libGLESv2.so ${D}${libdir} | 39 | ln -s libEGL.so.1 ${D}${libdir}/libEGL.so |
40 | install -m 0755 ${S}/libGLESv2.so.2 ${D}${libdir} | ||
41 | ln -s libGLESv2.so.2 ${D}${libdir}/libGLESv2.so | ||
40 | } | 42 | } |
diff --git a/recipes/opengldummy/opengldummy.inc b/recipes/opengldummy/opengldummy.inc index 23af5df..7719f0c 100644 --- a/recipes/opengldummy/opengldummy.inc +++ b/recipes/opengldummy/opengldummy.inc | |||
@@ -27,19 +27,16 @@ SRC_URI = "file://headers \ | |||
27 | file://gles2.cpp \ | 27 | file://gles2.cpp \ |
28 | " | 28 | " |
29 | 29 | ||
30 | FILES_${PN} = "${libdir}" | ||
31 | FILES_${PN}-dev = "${includedir}/" | ||
32 | |||
33 | do_install() { | 30 | do_install() { |
34 | install -m 0755 -d ${D}${includedir}/EGL | 31 | install -m 0755 -d ${D}${includedir}/EGL |
35 | install -m 0755 ${WORKDIR}/headers/EGL/* ${D}${includedir}/EGL | 32 | install -m 0755 ${WORKDIR}/headers/EGL/* ${D}${includedir}/EGL |
36 | 33 | ||
37 | install -m 0755 -d ${D}${includedir}/GLES2 | 34 | install -m 0755 -d ${D}${includedir}/GLES2 |
38 | install -m 0755 ${WORKDIR}/headers/GLES2/* ${D}${includedir}/GLES2 | 35 | install -m 0755 ${WORKDIR}/headers/GLES2/* ${D}${includedir}/GLES2 |
39 | 36 | ||
40 | install -m 0755 -d ${D}${includedir}/GLES3 | 37 | install -m 0755 -d ${D}${includedir}/GLES3 |
41 | install -m 0755 ${WORKDIR}/headers/GLES3/* ${D}${includedir}/GLES3 | 38 | install -m 0755 ${WORKDIR}/headers/GLES3/* ${D}${includedir}/GLES3 |
42 | 39 | ||
43 | install -m 0755 -d ${D}${includedir}/KHR | 40 | install -m 0755 -d ${D}${includedir}/KHR |
44 | install -m 0755 ${WORKDIR}/headers/KHR/* ${D}${includedir}/KHR | 41 | install -m 0755 ${WORKDIR}/headers/KHR/* ${D}${includedir}/KHR |
45 | } | 42 | } |
diff --git a/recipes/opengldummy/qtglesstream-dummy-client.bb b/recipes/opengldummy/qtglesstream-dummy-client.bb index 4c8c86a..2b21d51 100644 --- a/recipes/opengldummy/qtglesstream-dummy-client.bb +++ b/recipes/opengldummy/qtglesstream-dummy-client.bb | |||
@@ -25,14 +25,20 @@ SECTION = "devel" | |||
25 | LICENSE = "CLOSED" | 25 | LICENSE = "CLOSED" |
26 | 26 | ||
27 | PV = "1.0.0" | 27 | PV = "1.0.0" |
28 | SOLIBMAJOR = "1" | ||
29 | SOLIBMINOR = "0" | ||
28 | 30 | ||
29 | require opengldummy.inc | 31 | require opengldummy.inc |
30 | 32 | ||
31 | do_compile() { | 33 | do_compile() { |
32 | ${CC} -DQGS_BUILD_CLIENT_DLL -fPIC -shared -I${WORKDIR}/headers -o libQtGlesStreamClient.so ${WORKDIR}/egl.cpp ${WORKDIR}/gles2.cpp | 34 | ${CC} -DQGS_BUILD_CLIENT_DLL -fPIC -shared -Wl,-soname,libQtGlesStreamClient.so.${SOLIBMAJOR} \ |
35 | -I${WORKDIR}/headers -o libQtGlesStreamClient.so.${PV} ${WORKDIR}/egl.cpp ${WORKDIR}/gles2.cpp | ||
33 | } | 36 | } |
34 | 37 | ||
35 | do_install_append() { | 38 | do_install_append() { |
36 | install -m 0755 -d ${D}${libdir} | 39 | install -m 0755 -d ${D}${libdir} |
37 | install -m 0755 ${S}/libQtGlesStreamClient.so ${D}${libdir} | 40 | install -m 0755 ${S}/libQtGlesStreamClient.so.${PV} ${D}${libdir} |
41 | ln -s libQtGlesStreamClient.so.${PV} ${D}${libdir}/libQtGlesStreamClient.so.${SOLIBMAJOR}.${SOLIBMINOR} | ||
42 | ln -s libQtGlesStreamClient.so.${PV} ${D}${libdir}/libQtGlesStreamClient.so.${SOLIBMAJOR} | ||
43 | ln -s libQtGlesStreamClient.so.${PV} ${D}${libdir}/libQtGlesStreamClient.so | ||
38 | } | 44 | } |
diff --git a/recipes/openssl/openssl_1.%.bbappend b/recipes/openssl/openssl_1.%.bbappend index 792ad2f..461cb45 100644 --- a/recipes/openssl/openssl_1.%.bbappend +++ b/recipes/openssl/openssl_1.%.bbappend | |||
@@ -23,6 +23,6 @@ | |||
23 | PACKAGECONFIG += "perl" | 23 | PACKAGECONFIG += "perl" |
24 | 24 | ||
25 | do_install_append () { | 25 | do_install_append () { |
26 | rmdir ${D}${libdir}/ssl/certs | 26 | rmdir ${D}${libdir}/ssl/certs |
27 | ln -s ${sysconfdir}/ssl/certs ${D}${libdir}/ssl/ | 27 | ln -s ${sysconfdir}/ssl/certs ${D}${libdir}/ssl/ |
28 | } | 28 | } |
diff --git a/recipes/packagegroup/nativesdk-packagegroup-b2qt-embedded-toolchain-host.bb b/recipes/packagegroup/nativesdk-packagegroup-b2qt-embedded-toolchain-host.bb index a4ea74d..f64c0ac 100644 --- a/recipes/packagegroup/nativesdk-packagegroup-b2qt-embedded-toolchain-host.bb +++ b/recipes/packagegroup/nativesdk-packagegroup-b2qt-embedded-toolchain-host.bb | |||
@@ -22,14 +22,14 @@ | |||
22 | 22 | ||
23 | DESCRIPTION = "Host packages for B2Qt on embedded Linux SDK" | 23 | DESCRIPTION = "Host packages for B2Qt on embedded Linux SDK" |
24 | PR = "r0" | 24 | PR = "r0" |
25 | ALLOW_EMPTY_${PN} = "1" | ||
26 | LICENSE = "CLOSED" | 25 | LICENSE = "CLOSED" |
27 | 26 | ||
28 | require recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb | 27 | inherit nativesdk packagegroup |
29 | 28 | ||
30 | RDEPENDS_${PN} = "\ | 29 | RDEPENDS_${PN} = "\ |
31 | python-nativesdk \ | 30 | nativesdk-python-modules \ |
32 | python-modules-nativesdk \ | 31 | nativesdk-python-misc \ |
33 | python-misc-nativesdk \ | 32 | nativesdk-gperf \ |
33 | ${@base_contains("DISTRO_FEATURES", "wayland", "nativesdk-wayland", "", d)} \ | ||
34 | ${MACHINE_EXTRA_INSTALL_SDK_HOST} \ | 34 | ${MACHINE_EXTRA_INSTALL_SDK_HOST} \ |
35 | " | 35 | " |
diff --git a/recipes/packagegroup/packagegroup-b2qt-embedded-base.bb b/recipes/packagegroup/packagegroup-b2qt-embedded-base.bb index dd1ab44..3dfc1a5 100644 --- a/recipes/packagegroup/packagegroup-b2qt-embedded-base.bb +++ b/recipes/packagegroup/packagegroup-b2qt-embedded-base.bb | |||
@@ -34,7 +34,6 @@ RDEPENDS_${PN} = "\ | |||
34 | openssl \ | 34 | openssl \ |
35 | openssl-misc \ | 35 | openssl-misc \ |
36 | libpng \ | 36 | libpng \ |
37 | jpeg \ | ||
38 | tiff \ | 37 | tiff \ |
39 | libxslt \ | 38 | libxslt \ |
40 | icu \ | 39 | icu \ |
@@ -51,5 +50,14 @@ RDEPENDS_${PN} = "\ | |||
51 | ttf-opensans \ | 50 | ttf-opensans \ |
52 | ttf-dejavu-common \ | 51 | ttf-dejavu-common \ |
53 | ttf-dejavu-sans \ | 52 | ttf-dejavu-sans \ |
53 | dbus-session-init \ | ||
54 | otf-noto \ | ||
55 | libmysqlclient \ | ||
56 | libpq \ | ||
57 | tzdata \ | ||
58 | tzdata-americas \ | ||
59 | tzdata-asia \ | ||
60 | tzdata-europe \ | ||
61 | ${@base_contains("DISTRO_FEATURES", "wayland", "wayland weston weston-examples", "", d)} \ | ||
54 | ${MACHINE_EXTRA_INSTALL} \ | 62 | ${MACHINE_EXTRA_INSTALL} \ |
55 | " | 63 | " |
diff --git a/recipes/packagegroup/packagegroup-b2qt-embedded-gstreamer.bb b/recipes/packagegroup/packagegroup-b2qt-embedded-gstreamer.bb index dd8b176..b76304e 100644 --- a/recipes/packagegroup/packagegroup-b2qt-embedded-gstreamer.bb +++ b/recipes/packagegroup/packagegroup-b2qt-embedded-gstreamer.bb | |||
@@ -27,27 +27,12 @@ PR = "r0" | |||
27 | inherit packagegroup | 27 | inherit packagegroup |
28 | 28 | ||
29 | RDEPENDS_${PN} = "\ | 29 | RDEPENDS_${PN} = "\ |
30 | gst-meta-video \ | 30 | gstreamer1.0-meta-base \ |
31 | gst-meta-audio \ | 31 | gstreamer1.0-meta-video \ |
32 | gst-plugins-good \ | 32 | gstreamer1.0-meta-audio \ |
33 | gst-plugins-base-app \ | 33 | gstreamer1.0-plugins-base-meta \ |
34 | gst-plugins-base-audiorate \ | 34 | gstreamer1.0-plugins-good-meta \ |
35 | gst-plugins-base-videorate \ | 35 | gstreamer1.0-plugins-ugly-meta \ |
36 | gst-plugins-base-encodebin \ | 36 | gstreamer1.0-plugins-bad-meta \ |
37 | gst-plugins-good-videofilter \ | 37 | gstreamer1.0-libav \ |
38 | gst-plugins-good-id3demux \ | ||
39 | gst-plugins-good-auparse \ | ||
40 | gst-plugins-good-isomp4 \ | ||
41 | gst-plugins-good-icydemux \ | ||
42 | gst-plugins-good-video4linux2 \ | ||
43 | gst-plugins-good-multifile \ | ||
44 | gst-plugins-good-videocrop \ | ||
45 | gst-plugins-ugly-rmdemux \ | ||
46 | gst-plugins-ugly-asf \ | ||
47 | gst-plugins-ugly-a52dec \ | ||
48 | gst-plugins-bad-mpegdemux \ | ||
49 | gst-plugins-bad-faad \ | ||
50 | gst-plugins-bad-camerabin2 \ | ||
51 | gst-plugins-bad-jpegformat \ | ||
52 | gst-ffmpeg \ | ||
53 | " | 38 | " |
diff --git a/recipes/packagegroup/packagegroup-b2qt-embedded-gstreamer010.bb b/recipes/packagegroup/packagegroup-b2qt-embedded-gstreamer010.bb new file mode 100644 index 0000000..5567303 --- /dev/null +++ b/recipes/packagegroup/packagegroup-b2qt-embedded-gstreamer010.bb | |||
@@ -0,0 +1,59 @@ | |||
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 | |||
23 | DESCRIPTION = "Additional gstreamer packagegroup for B2Qt embedded Linux image" | ||
24 | LICENSE = "CLOSED" | ||
25 | PR = "r0" | ||
26 | |||
27 | inherit packagegroup | ||
28 | |||
29 | RDEPENDS_${PN} = "\ | ||
30 | gst-meta-video \ | ||
31 | gst-meta-audio \ | ||
32 | gst-plugins-good \ | ||
33 | gst-plugins-base-app \ | ||
34 | gst-plugins-base-audiorate \ | ||
35 | gst-plugins-base-videorate \ | ||
36 | gst-plugins-base-encodebin \ | ||
37 | gst-plugins-good-videofilter \ | ||
38 | gst-plugins-good-id3demux \ | ||
39 | gst-plugins-good-auparse \ | ||
40 | gst-plugins-good-isomp4 \ | ||
41 | gst-plugins-good-icydemux \ | ||
42 | gst-plugins-good-video4linux2 \ | ||
43 | gst-plugins-good-multifile \ | ||
44 | gst-plugins-good-videocrop \ | ||
45 | gst-plugins-good-jpeg \ | ||
46 | gst-plugins-ugly-rmdemux \ | ||
47 | gst-plugins-ugly-asf \ | ||
48 | gst-plugins-ugly-a52dec \ | ||
49 | gst-plugins-bad-mpegdemux \ | ||
50 | gst-plugins-bad-faad \ | ||
51 | gst-plugins-bad-camerabin2 \ | ||
52 | gst-plugins-bad-jpegformat \ | ||
53 | gst-plugins-ugly-mad \ | ||
54 | gst-plugins-ugly-mpegaudioparse \ | ||
55 | gst-plugins-ugly-mpeg2dec \ | ||
56 | gst-plugins-ugly-mpegstream \ | ||
57 | gst-plugins-bad-mpegvideoparse \ | ||
58 | gst-ffmpeg \ | ||
59 | " | ||
diff --git a/recipes/packagegroup/nativesdk-packagegroup-b2qt-embedded-toolchain-target.bb b/recipes/packagegroup/packagegroup-b2qt-embedded-toolchain-target.bb index f4b70bf..b0b35d0 100644 --- a/recipes/packagegroup/nativesdk-packagegroup-b2qt-embedded-toolchain-target.bb +++ b/recipes/packagegroup/packagegroup-b2qt-embedded-toolchain-target.bb | |||
@@ -22,12 +22,9 @@ | |||
22 | 22 | ||
23 | DESCRIPTION = "Target packages for B2Qt on embedded Linux SDK" | 23 | DESCRIPTION = "Target packages for B2Qt on embedded Linux SDK" |
24 | PR = "r0" | 24 | PR = "r0" |
25 | ALLOW_EMPTY_${PN} = "1" | ||
26 | LICENSE = "CLOSED" | 25 | LICENSE = "CLOSED" |
27 | 26 | ||
28 | PACKAGES = "${PN}" | 27 | inherit packagegroup |
29 | |||
30 | MACHINE_EXTRA_INSTALL_SDK ?= "" | ||
31 | 28 | ||
32 | RDEPENDS_${PN} += "\ | 29 | RDEPENDS_${PN} += "\ |
33 | packagegroup-core-standalone-sdk-target \ | 30 | packagegroup-core-standalone-sdk-target \ |
@@ -40,8 +37,8 @@ RDEPENDS_${PN} += "\ | |||
40 | dbus-dev \ | 37 | dbus-dev \ |
41 | freetype-dev \ | 38 | freetype-dev \ |
42 | fontconfig-dev \ | 39 | fontconfig-dev \ |
43 | gstreamer-dev \ | 40 | ${@base_contains("DISTRO_FEATURES", "gstreamer010", "gstreamer-dev gst-plugins-base-dev", "", d)} \ |
44 | gst-plugins-base-dev \ | 41 | ${@base_contains("DISTRO_FEATURES", "gstreamer", "gstreamer1.0-dev gstreamer1.0-plugins-base-dev", "", d)} \ |
45 | icu-dev \ | 42 | icu-dev \ |
46 | libxslt-dev \ | 43 | libxslt-dev \ |
47 | udev-dev \ | 44 | udev-dev \ |
@@ -49,6 +46,9 @@ RDEPENDS_${PN} += "\ | |||
49 | hunspell-dev \ | 46 | hunspell-dev \ |
50 | libcap-dev \ | 47 | libcap-dev \ |
51 | wpa-supplicant-dev \ | 48 | wpa-supplicant-dev \ |
49 | libmysqlclient-dev \ | ||
50 | libpq-dev \ | ||
51 | ${@base_contains("DISTRO_FEATURES", "wayland", "libwayland-egl-mx6-dev libxkbcommon-dev libgbm-dev libdrm-dev", "", d)} \ | ||
52 | ${@base_contains("DISTRO_FEATURES", "bluetooth", "bluez4-dev", "", d)} \ | 52 | ${@base_contains("DISTRO_FEATURES", "bluetooth", "bluez4-dev", "", d)} \ |
53 | ${MACHINE_EXTRA_INSTALL_SDK} \ | 53 | ${MACHINE_EXTRA_INSTALL_SDK} \ |
54 | " | 54 | " |
diff --git a/recipes/packagegroup/packagegroup-b2qt-embedded-tools.bb b/recipes/packagegroup/packagegroup-b2qt-embedded-tools.bb index bce34ab..351a752 100644 --- a/recipes/packagegroup/packagegroup-b2qt-embedded-tools.bb +++ b/recipes/packagegroup/packagegroup-b2qt-embedded-tools.bb | |||
@@ -31,4 +31,7 @@ RDEPENDS_${PN} = "\ | |||
31 | binutils \ | 31 | binutils \ |
32 | binutils-symlinks \ | 32 | binutils-symlinks \ |
33 | i2c-tools \ | 33 | i2c-tools \ |
34 | perf \ | ||
35 | htop \ | ||
36 | ntp \ | ||
34 | " | 37 | " |
diff --git a/recipes/perf/perf.bbappend b/recipes/perf/perf.bbappend new file mode 100644 index 0000000..1eec18d --- /dev/null +++ b/recipes/perf/perf.bbappend | |||
@@ -0,0 +1,2 @@ | |||
1 | PERF_FEATURES_ENABLE = "perf-libunwind" | ||
2 | EXTRA_OEMAKE_remove = "NO_DWARF=1" | ||
diff --git a/recipes/virtualbox/mount-vboxsf_4.2.14.bb b/recipes/virtualbox/mount-vboxsf_4.3.30.bb index 63d61f6..171ba7e 100644 --- a/recipes/virtualbox/mount-vboxsf_4.2.14.bb +++ b/recipes/virtualbox/mount-vboxsf_4.3.30.bb | |||
@@ -28,21 +28,21 @@ SRC_URI = "http://download.virtualbox.org/virtualbox/${PV}/VirtualBox-${PV}.tar. | |||
28 | file://mount-vboxsf.sh \ | 28 | file://mount-vboxsf.sh \ |
29 | " | 29 | " |
30 | 30 | ||
31 | SRC_URI[md5sum] = "be834de415adaf2f696f7a499f88b4e6" | 31 | SRC_URI[md5sum] = "cc053340f88922a11ad9d4fab56557bd" |
32 | SRC_URI[sha256sum] = "f8f6dc19612f3c84a5c857b8e5c452b8db2cf3c8c52a678b6a00e5dd5831130d" | 32 | SRC_URI[sha256sum] = "ea9569ec16cd6202ee61bcadb2506d31ac12fd343adb91565773a05eaaea9a36" |
33 | 33 | ||
34 | S = "${WORKDIR}/VirtualBox-${PV}/src/VBox/Additions/linux/sharedfolders" | 34 | S = "${WORKDIR}/VirtualBox-${PV}/src/VBox/Additions/linux/sharedfolders" |
35 | 35 | ||
36 | do_compile() { | 36 | do_compile() { |
37 | ${CC} mount.vboxsf.c vbsfmount.c -o mount.vboxsf | 37 | ${CC} mount.vboxsf.c vbsfmount.c -o mount.vboxsf |
38 | } | 38 | } |
39 | 39 | ||
40 | do_install() { | 40 | do_install() { |
41 | install -m 0755 -d ${D}${bindir}/ | 41 | install -m 0755 -d ${D}${bindir}/ |
42 | install -m 0755 mount.vboxsf ${D}${bindir}/ | 42 | install -m 0755 mount.vboxsf ${D}${bindir}/ |
43 | 43 | ||
44 | install -m 0755 -d ${D}${sysconfdir}/init.d | 44 | install -m 0755 -d ${D}${sysconfdir}/init.d |
45 | install -m 0755 ${WORKDIR}/mount-vboxsf.sh ${D}${sysconfdir}/init.d/ | 45 | install -m 0755 ${WORKDIR}/mount-vboxsf.sh ${D}${sysconfdir}/init.d/ |
46 | } | 46 | } |
47 | 47 | ||
48 | INITSCRIPT_NAME = "mount-vboxsf.sh" | 48 | INITSCRIPT_NAME = "mount-vboxsf.sh" |
diff --git a/recipes/virtualbox/virtualbox-guest-additions_4.2.14.bb b/recipes/virtualbox/virtualbox-guest-additions_4.3.30.bb index ace4eea..43af064 100644 --- a/recipes/virtualbox/virtualbox-guest-additions_4.2.14.bb +++ b/recipes/virtualbox/virtualbox-guest-additions_4.3.30.bb | |||
@@ -31,8 +31,8 @@ PR = "${MACHINE_KERNEL_PR}" | |||
31 | 31 | ||
32 | SRC_URI = "http://download.virtualbox.org/virtualbox/${PV}/VirtualBox-${PV}.tar.bz2" | 32 | SRC_URI = "http://download.virtualbox.org/virtualbox/${PV}/VirtualBox-${PV}.tar.bz2" |
33 | 33 | ||
34 | SRC_URI[md5sum] = "be834de415adaf2f696f7a499f88b4e6" | 34 | SRC_URI[md5sum] = "cc053340f88922a11ad9d4fab56557bd" |
35 | SRC_URI[sha256sum] = "f8f6dc19612f3c84a5c857b8e5c452b8db2cf3c8c52a678b6a00e5dd5831130d" | 35 | SRC_URI[sha256sum] = "ea9569ec16cd6202ee61bcadb2506d31ac12fd343adb91565773a05eaaea9a36" |
36 | 36 | ||
37 | S = "${WORKDIR}/vbox" | 37 | S = "${WORKDIR}/vbox" |
38 | 38 | ||
@@ -41,17 +41,15 @@ export KBUILD_VERBOSE="1" | |||
41 | export BUILD_TARGET_ARCH="${ARCH}" | 41 | export BUILD_TARGET_ARCH="${ARCH}" |
42 | 42 | ||
43 | do_compile_prepend() { | 43 | do_compile_prepend() { |
44 | ${WORKDIR}/VirtualBox-${PV}/src/VBox/Additions/linux/export_modules ${WORKDIR}/vbox.tar.gz | 44 | ${WORKDIR}/VirtualBox-${PV}/src/VBox/Additions/linux/export_modules ${WORKDIR}/vbox.tar.gz |
45 | tar xf ${WORKDIR}/vbox.tar.gz -C ${WORKDIR}/vbox | 45 | tar xf ${WORKDIR}/vbox.tar.gz -C ${WORKDIR}/vbox |
46 | } | 46 | } |
47 | 47 | ||
48 | do_install() { | 48 | do_install() { |
49 | install -m 0755 -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/vbox | 49 | install -m 0755 -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/vbox |
50 | install -m 0644 *.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/vbox | 50 | install -m 0644 vboxsf.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/vbox |
51 | install -m 0644 vboxguest.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/vbox | ||
52 | install -m 0644 vboxvideo.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/vbox | ||
51 | } | 53 | } |
52 | 54 | ||
53 | PKG_${PN} = "kernel-module-vbox" | 55 | PKG_${PN} = "kernel-module-vbox" |
54 | |||
55 | module_autoload_vboxsf = "vboxsf" | ||
56 | module_autoload_vboxvideo = "vboxvideo" | ||
57 | module_autoload_vboxguest = "vboxguest" | ||
diff --git a/recipes/wayland/wayland/0001-Use-native-wayland-scanner-when-building-nativesdk-w.patch b/recipes/wayland/wayland/0001-Use-native-wayland-scanner-when-building-nativesdk-w.patch index 2a691a1..9e5fe4d 100644 --- a/recipes/wayland/wayland/0001-Use-native-wayland-scanner-when-building-nativesdk-w.patch +++ b/recipes/wayland/wayland/0001-Use-native-wayland-scanner-when-building-nativesdk-w.patch | |||
@@ -1,27 +1,25 @@ | |||
1 | From a9ab89496d32ab42d9f697c43cf8bb04feaeabfa Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@digia.com> | ||
3 | Date: Fri, 26 Sep 2014 10:39:51 +0300 | ||
4 | Subject: [PATCH] Use native wayland-scanner when building nativesdk-wayland | ||
5 | |||
6 | The wayland-scanner built for the nativesdk cannot be run during the build, | 1 | The wayland-scanner built for the nativesdk cannot be run during the build, |
7 | so instead use the wayland-scanner from native build. | 2 | so instead use the wayland-scanner from native build. |
8 | --- | ||
9 | src/Makefile.am | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | 3 | ||
12 | diff --git a/src/Makefile.am b/src/Makefile.am | 4 | Upstream-Status: Pending |
13 | index b938d17..84fcdf6 100644 | 5 | |
14 | --- a/src/Makefile.am | 6 | Signed-off-by: Samuli Piippo <samuli.piippo@theqtcompany.com> |
15 | +++ b/src/Makefile.am | 7 | --- |
16 | @@ -41,7 +41,7 @@ AM_CFLAGS = $(GCC_CFLAGS) -pthread | 8 | Makefile.am | 4 +--- |
17 | protocoldir = $(top_srcdir)/protocol | 9 | 1 file changed, 1 insertion(+), 3 deletions(-) |
10 | diff --git a/Makefile.am b/Makefile.am | ||
11 | index c15d8b8..45f7133 100644 | ||
12 | --- a/Makefile.am | ||
13 | +++ b/Makefile.am | ||
14 | @@ -62,7 +62,7 @@ nodist_libwayland_client_la_SOURCES = \ | ||
15 | pkgconfig_DATA += src/wayland-client.pc src/wayland-server.pc | ||
18 | 16 | ||
19 | if ENABLE_SCANNER | 17 | if ENABLE_SCANNER |
20 | -wayland_scanner = $(top_builddir)/src/wayland-scanner | 18 | -wayland_scanner = $(top_builddir)/wayland-scanner |
21 | +wayland_scanner = wayland-scanner | 19 | +wayland_scanner = wayland-scanner |
22 | else | 20 | bin_PROGRAMS = wayland-scanner |
23 | wayland_scanner = wayland-scanner | 21 | wayland_scanner_SOURCES = src/scanner.c |
24 | endif | 22 | wayland_scanner_LDADD = $(EXPAT_LIBS) libwayland-util.la |
25 | -- | 23 | -- |
26 | 1.8.3.2 | 24 | 1.9.1 |
27 | 25 | ||
diff --git a/recipes/wayland/wayland_1.%.bbappend b/recipes/wayland/wayland_1.%.bbappend index 8df7524..f61301d 100644 --- a/recipes/wayland/wayland_1.%.bbappend +++ b/recipes/wayland/wayland_1.%.bbappend | |||
@@ -21,7 +21,7 @@ | |||
21 | ############################################################################# | 21 | ############################################################################# |
22 | 22 | ||
23 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 23 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
24 | SRC_URI_append_class-nativesdk = " file://just-scanner.patch \ | 24 | SRC_URI_append_class-nativesdk = " \ |
25 | file://disable-macro-checks-not-used-for-scanner.patch \ | 25 | file://disable-macro-checks-not-used-for-scanner.patch \ |
26 | file://0001-Use-native-wayland-scanner-when-building-nativesdk-w.patch \ | 26 | file://0001-Use-native-wayland-scanner-when-building-nativesdk-w.patch \ |
27 | " | 27 | " |
diff --git a/recipes/wpa-supplicant/wpa-supplicant_2.%.bbappend b/recipes/wpa-supplicant/wpa-supplicant_2.%.bbappend index 9a200b2..708a616 100644 --- a/recipes/wpa-supplicant/wpa-supplicant_2.%.bbappend +++ b/recipes/wpa-supplicant/wpa-supplicant_2.%.bbappend | |||
@@ -1,17 +1,17 @@ | |||
1 | do_install_append () { | 1 | do_install_append () { |
2 | install -d ${D}${includedir}/wpa-supplicant | 2 | install -d ${D}${includedir}/wpa-supplicant |
3 | 3 | ||
4 | install -m 0644 ${S}/src/common/wpa_ctrl.c ${D}${includedir}/wpa-supplicant/ | 4 | install -m 0644 ${S}/src/common/wpa_ctrl.c ${D}${includedir}/wpa-supplicant/ |
5 | install -m 0644 ${S}/src/common/wpa_ctrl.h ${D}${includedir}/wpa-supplicant/ | 5 | install -m 0644 ${S}/src/common/wpa_ctrl.h ${D}${includedir}/wpa-supplicant/ |
6 | 6 | ||
7 | install -m 0644 ${S}/src/utils/build_config.h ${D}${includedir}/wpa-supplicant/ | 7 | install -m 0644 ${S}/src/utils/build_config.h ${D}${includedir}/wpa-supplicant/ |
8 | install -m 0644 ${S}/src/utils/common.h ${D}${includedir}/wpa-supplicant/ | 8 | install -m 0644 ${S}/src/utils/common.h ${D}${includedir}/wpa-supplicant/ |
9 | install -m 0644 ${S}/src/utils/includes.h ${D}${includedir}/wpa-supplicant/ | 9 | install -m 0644 ${S}/src/utils/includes.h ${D}${includedir}/wpa-supplicant/ |
10 | install -m 0644 ${S}/src/utils/os.h ${D}${includedir}/wpa-supplicant/ | 10 | install -m 0644 ${S}/src/utils/os.h ${D}${includedir}/wpa-supplicant/ |
11 | install -m 0644 ${S}/src/utils/os_unix.c ${D}${includedir}/wpa-supplicant/ | 11 | install -m 0644 ${S}/src/utils/os_unix.c ${D}${includedir}/wpa-supplicant/ |
12 | install -m 0644 ${S}/src/utils/trace.h ${D}${includedir}/wpa-supplicant/ | 12 | install -m 0644 ${S}/src/utils/trace.h ${D}${includedir}/wpa-supplicant/ |
13 | install -m 0644 ${S}/src/utils/wpa_debug.h ${D}${includedir}/wpa-supplicant/ | 13 | install -m 0644 ${S}/src/utils/wpa_debug.h ${D}${includedir}/wpa-supplicant/ |
14 | install -m 0644 ${S}/src/utils/wpabuf.h ${D}${includedir}/wpa-supplicant/ | 14 | install -m 0644 ${S}/src/utils/wpabuf.h ${D}${includedir}/wpa-supplicant/ |
15 | } | 15 | } |
16 | 16 | ||
17 | FILES_${PN}-dev += "${includedir}/wpa-supplicant/*" | 17 | FILES_${PN}-dev += "${includedir}/wpa-supplicant/*" |
diff --git a/scripts/build-all.sh b/scripts/build-all.sh index 63cfc9b..6bb939e 100755 --- a/scripts/build-all.sh +++ b/scripts/build-all.sh | |||
@@ -21,6 +21,15 @@ | |||
21 | ## | 21 | ## |
22 | ############################################################################# | 22 | ############################################################################# |
23 | 23 | ||
24 | while test -n "$1"; do | ||
25 | case "$1" in | ||
26 | "--upload") | ||
27 | UPLOAD=1 | ||
28 | ;; | ||
29 | esac | ||
30 | shift | ||
31 | done | ||
32 | |||
24 | echo "-------------------------------------" >> build.log | 33 | echo "-------------------------------------" >> build.log |
25 | for DIR in $(ls -d build-*); do | 34 | for DIR in $(ls -d build-*); do |
26 | ( | 35 | ( |
@@ -29,7 +38,14 @@ for DIR in $(ls -d build-*); do | |||
29 | 38 | ||
30 | echo "${MACHINE}:" >> ../build.log | 39 | echo "${MACHINE}:" >> ../build.log |
31 | echo " start: $(date)" >> ../build.log | 40 | echo " start: $(date)" >> ../build.log |
32 | bitbake b2qt-embedded-image meta-toolchain-b2qt-embedded-sdk || echo " build failed" >> ../build.log | 41 | bitbake b2qt-embedded-image meta-toolchain-b2qt-embedded-sdk |
42 | if [ $? = 0 ]; then | ||
43 | if [ -n "${UPLOAD}" ]; then | ||
44 | ../sources/meta-b2qt/scripts/upload.sh | ||
45 | fi | ||
46 | else | ||
47 | echo " build failed" >> ../build.log | ||
48 | fi | ||
33 | echo " end: $(date)" >> ../build.log | 49 | echo " end: $(date)" >> ../build.log |
34 | ) | 50 | ) |
35 | done | 51 | done |
diff --git a/scripts/configure-qtcreator.sh b/scripts/configure-qtcreator.sh new file mode 100755 index 0000000..4ffe64f --- /dev/null +++ b/scripts/configure-qtcreator.sh | |||
@@ -0,0 +1,118 @@ | |||
1 | #!/bin/bash | ||
2 | ############################################################################# | ||
3 | ## | ||
4 | ## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). | ||
5 | ## | ||
6 | ## This file is part of the Qt Enterprise Embedded Scripts of the Qt | ||
7 | ## framework. | ||
8 | ## | ||
9 | ## $QT_BEGIN_LICENSE$ | ||
10 | ## Commercial License Usage Only | ||
11 | ## Licensees holding valid commercial Qt license agreements with Digia | ||
12 | ## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, | ||
13 | ## may use this file in accordance with the terms contained in said license | ||
14 | ## agreement. | ||
15 | ## | ||
16 | ## For further information use the contact form at | ||
17 | ## http://www.qt.io/contact-us. | ||
18 | ## | ||
19 | ## | ||
20 | ## $QT_END_LICENSE$ | ||
21 | ## | ||
22 | ############################################################################# | ||
23 | |||
24 | set -e | ||
25 | |||
26 | MKSPEC="devices/linux-oe-generic-g++" | ||
27 | ABI="arm-linux-generic-elf-32bit" | ||
28 | ### TBD: detect ABI | ||
29 | |||
30 | printUsage () | ||
31 | { | ||
32 | echo "Usage: $0 <toolchain-environment-setup-file> [--remove]" | ||
33 | } | ||
34 | |||
35 | while test -n "$1"; do | ||
36 | case "$1" in | ||
37 | "--help" | "-h") | ||
38 | printUsage | ||
39 | exit 0 | ||
40 | shift | ||
41 | ;; | ||
42 | "--remove") | ||
43 | REMOVEONLY=1 | ||
44 | shift | ||
45 | ;; | ||
46 | *) | ||
47 | CONFIG=$1 | ||
48 | shift | ||
49 | ;; | ||
50 | esac | ||
51 | done | ||
52 | |||
53 | if [ ! -f "$CONFIG" ]; then | ||
54 | printUsage | ||
55 | exit 1 | ||
56 | fi | ||
57 | |||
58 | if [ -z "${SDKTOOL}" ]; then | ||
59 | SDKTOOL="${HOME}/Qt/Tools/QtCreator/bin/sdktool" | ||
60 | fi | ||
61 | if [ ! -x ${SDKTOOL} ]; then | ||
62 | echo "Cannot find 'sdktool'" | ||
63 | exit 1 | ||
64 | fi | ||
65 | |||
66 | source $CONFIG | ||
67 | |||
68 | if [ ! -d "${OECORE_NATIVE_SYSROOT}/mkspecs/${MKSPEC}" ]; then | ||
69 | echo Error: $CONFIG is invalid. | ||
70 | exit 1 | ||
71 | fi | ||
72 | |||
73 | MACHINE=$(grep '^MACHINE' ${OECORE_NATIVE_SYSROOT}/mkspecs/qdevice.pri | cut -d'=' -f2 | tr -d ' ') | ||
74 | |||
75 | RELEASE=$(qmake -query QT_VERSION) | ||
76 | |||
77 | BASEID="byos.${RELEASE}.${MACHINE}" | ||
78 | |||
79 | BASENAME="Custom Qt Embedded" | ||
80 | TOOLCHAINNAME="GCC (${BASENAME} ${RELEASE} ${MACHINE})" | ||
81 | QTNAME="${BASENAME} ${RELEASE} ${MACHINE}" | ||
82 | KITNAME="${BASENAME} ${RELEASE} ${MACHINE} Kit" | ||
83 | |||
84 | ${SDKTOOL} rmKit --id ${BASEID}.kit 2>/dev/null || true | ||
85 | ${SDKTOOL} rmQt --id ${BASEID}.qt || true | ||
86 | ${SDKTOOL} rmTC --id ProjectExplorer.ToolChain.Gcc:${BASEID}.tc || true | ||
87 | |||
88 | if [ -n "${REMOVEONLY}" ]; then | ||
89 | echo "Kit removed: ${KITNAME}" | ||
90 | exit 0 | ||
91 | fi | ||
92 | |||
93 | ${SDKTOOL} addTC \ | ||
94 | --id "ProjectExplorer.ToolChain.Gcc:${BASEID}.tc" \ | ||
95 | --name "${TOOLCHAINNAME}" \ | ||
96 | --path "$(type -p ${OE_QMAKE_CXX})" \ | ||
97 | --abi "${ABI}" | ||
98 | |||
99 | ${SDKTOOL} addQt \ | ||
100 | --id "${BASEID}.qt" \ | ||
101 | --name "${QTNAME}" \ | ||
102 | --type "Boot2Qt.QtVersionType" \ | ||
103 | --qmake "$(type -p qmake)" | ||
104 | |||
105 | ${SDKTOOL} addKit \ | ||
106 | --id "${BASEID}.kit" \ | ||
107 | --name "${KITNAME}" \ | ||
108 | --qt "${BASEID}.qt" \ | ||
109 | --debuggerengine "1" \ | ||
110 | --debugger "$(type -p ${GDB})" \ | ||
111 | --sysroot "${SDKTARGETSYSROOT}" \ | ||
112 | --devicetype "Boot2Qt.HwDevice" \ | ||
113 | --toolchain "ProjectExplorer.ToolChain.Gcc:${BASEID}.tc" \ | ||
114 | --icon ":/boot2qt/images/B2Qt_QtC_icon.png" \ | ||
115 | --mkspec "${MKSPEC}" | ||
116 | |||
117 | echo "Configured Qt Creator with new kit:" | ||
118 | echo " ${KITNAME}" | ||
diff --git a/scripts/manifest.xml b/scripts/manifest.xml index 0eb2fb9..ca71c1c 100644 --- a/scripts/manifest.xml +++ b/scripts/manifest.xml | |||
@@ -1,43 +1,44 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <manifest> | 2 | <manifest> |
3 | 3 | ||
4 | <default sync-j="4" revision="daisy"/> | 4 | <default sync-j="4" revision="dizzy"/> |
5 | 5 | ||
6 | <remote fetch="git://git.yoctoproject.org" name="yocto"/> | 6 | <remote fetch="git://git.yoctoproject.org" name="yocto"/> |
7 | <remote fetch="git://git.openembedded.org" name="oe"/> | 7 | <remote fetch="git://git.openembedded.org" name="oe"/> |
8 | <remote fetch="git://github.com/Freescale" name="freescale"/> | 8 | <remote fetch="git://github.com/Freescale" name="freescale"/> |
9 | <remote fetch="git://github.com/beagleboard" name="beagleboard"/> | 9 | <remote fetch="git://github.com/beagleboard" name="beagleboard"/> |
10 | <remote fetch="git://git.toradex.com" name="toradex"/> | 10 | <remote fetch="git://git.toradex.com" name="toradex"/> |
11 | <remote fetch="git://github.com/architech-boards" name="architech"/> | ||
11 | 12 | ||
12 | <project name="poky" | 13 | <project name="poky" |
13 | remote="yocto" | 14 | remote="yocto" |
14 | revision="18d859a8c982a76dda5bfe27a32d1a0905947d2e" | 15 | revision="9c4ff467f66428488b1cd9798066a8cb5d6b4c3b" |
15 | path="sources/poky"/> | 16 | path="sources/poky"/> |
16 | <project name="meta-openembedded" | 17 | <project name="meta-openembedded" |
17 | remote="oe" | 18 | remote="oe" |
18 | revision="8065dd8456913457a0114ddb2b4bd4842847b2a3" | 19 | revision="5b6f39ce325d490fc382d5d59c5b8b9d5fa38b38" |
19 | path="sources/meta-openembedded"/> | 20 | path="sources/meta-openembedded"/> |
20 | 21 | ||
21 | <project name="meta-fsl-arm" | 22 | <project name="meta-fsl-arm" |
22 | remote="yocto" | 23 | remote="yocto" |
23 | revision="4e694e727aa8babfd0ba06c5e98bab3753b39a8b" | 24 | revision="db1571f40c375a398a8cdbb42de4c4f272ab0cd1" |
24 | path="sources/meta-fsl-arm" | 25 | path="sources/meta-fsl-arm" |
25 | groups="notdefault,fsl,toradex"/> | 26 | groups="notdefault,fsl,toradex,architech"/> |
26 | <project name="meta-ti" | 27 | <project name="meta-ti" |
27 | remote="yocto" | 28 | remote="yocto" |
28 | revision="c06f25913317160e03d172df73919edf9bdf8554" | 29 | revision="6d1c337af7d43953f6d0802ffd0bf1d9d3cfb146" |
29 | path="sources/meta-ti" | 30 | path="sources/meta-ti" |
30 | groups="notdefault,ti,bbb"/> | 31 | groups="notdefault,ti,bbb"/> |
31 | <project name="meta-raspberrypi" | 32 | <project name="meta-raspberrypi" |
32 | remote="yocto" | 33 | remote="yocto" |
33 | revision="946b69299737cc2f1378c864f1b9075280db1b53" | 34 | revision="b896a7da70dd7a16ba7ffd664f7747cb37e1d142" |
34 | path="sources/meta-raspberrypi" | 35 | path="sources/meta-raspberrypi" |
35 | groups="notdefault,rpi"/> | 36 | groups="notdefault,rpi"/> |
36 | <project name="meta-fsl-arm-extra" | 37 | <project name="meta-fsl-arm-extra" |
37 | remote="freescale" | 38 | remote="freescale" |
38 | revision="e1085deb3d915d2a95a65cceadc77c6de0dadfb6" | 39 | revision="794e46e0b0a3e7e270a2f3c217d8fe5751a6b2c6" |
39 | path="sources/meta-fsl-arm-extra" | 40 | path="sources/meta-fsl-arm-extra" |
40 | groups="notdefault,fsl,toradex"/> | 41 | groups="notdefault,fsl,toradex,architech"/> |
41 | <project name="meta-beagleboard" | 42 | <project name="meta-beagleboard" |
42 | remote="beagleboard" | 43 | remote="beagleboard" |
43 | revision="b5c709b2b6bd3bf236df923fa8f245a00fbb1b60" | 44 | revision="b5c709b2b6bd3bf236df923fa8f245a00fbb1b60" |
@@ -45,9 +46,14 @@ | |||
45 | groups="notdefault,bbb"/> | 46 | groups="notdefault,bbb"/> |
46 | <project name="meta-toradex" | 47 | <project name="meta-toradex" |
47 | remote="toradex" | 48 | remote="toradex" |
48 | revision="d2a0c91d9fe0836113700daf28390588d2ddc9a8" | 49 | revision="a76e317a2ae638ed62ccf88636aa79d0ae368d78" |
49 | path="sources/meta-toradex" | 50 | path="sources/meta-toradex" |
50 | groups="notdefault,toradex"/> | 51 | groups="notdefault,toradex"/> |
52 | <project name="meta-tibidabo" | ||
53 | remote="architech" | ||
54 | revision="06c6b09e0776507e1230aa98b5ca10d9d3968286" | ||
55 | path="sources/meta-tibidabo" | ||
56 | groups="notdefault,architech"/> | ||
51 | 57 | ||
52 | </manifest> | 58 | </manifest> |
53 | 59 | ||
diff --git a/scripts/manifest_daisy.xml b/scripts/manifest_dizzy.xml index 2668398..4b2e4ff 100644 --- a/scripts/manifest_daisy.xml +++ b/scripts/manifest_dizzy.xml | |||
@@ -1,43 +1,44 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <manifest> | 2 | <manifest> |
3 | 3 | ||
4 | <default sync-j="4" revision="daisy"/> | 4 | <default sync-j="4" revision="dizzy"/> |
5 | 5 | ||
6 | <remote fetch="git://git.yoctoproject.org" name="yocto"/> | 6 | <remote fetch="git://git.yoctoproject.org" name="yocto"/> |
7 | <remote fetch="git://git.openembedded.org" name="oe"/> | 7 | <remote fetch="git://git.openembedded.org" name="oe"/> |
8 | <remote fetch="git://github.com/Freescale" name="freescale"/> | 8 | <remote fetch="git://github.com/Freescale" name="freescale"/> |
9 | <remote fetch="git://github.com/beagleboard" name="beagleboard"/> | 9 | <remote fetch="git://github.com/beagleboard" name="beagleboard"/> |
10 | <remote fetch="git://git.toradex.com" name="toradex"/> | 10 | <remote fetch="git://git.toradex.com" name="toradex"/> |
11 | <remote fetch="git://github.com/architech-boards" name="architech"/> | ||
11 | 12 | ||
12 | <project name="poky" | 13 | <project name="poky" |
13 | remote="yocto" | 14 | remote="yocto" |
14 | revision="daisy" | 15 | revision="dizzy" |
15 | path="sources/poky"/> | 16 | path="sources/poky"/> |
16 | <project name="meta-openembedded" | 17 | <project name="meta-openembedded" |
17 | remote="oe" | 18 | remote="oe" |
18 | revision="daisy" | 19 | revision="dizzy" |
19 | path="sources/meta-openembedded"/> | 20 | path="sources/meta-openembedded"/> |
20 | 21 | ||
21 | <project name="meta-fsl-arm" | 22 | <project name="meta-fsl-arm" |
22 | remote="yocto" | 23 | remote="yocto" |
23 | revision="daisy" | 24 | revision="dizzy" |
24 | path="sources/meta-fsl-arm" | 25 | path="sources/meta-fsl-arm" |
25 | groups="notdefault,fsl,toradex"/> | 26 | groups="notdefault,fsl,toradex,architech"/> |
26 | <project name="meta-ti" | 27 | <project name="meta-ti" |
27 | remote="yocto" | 28 | remote="yocto" |
28 | revision="daisy" | 29 | revision="master" |
29 | path="sources/meta-ti" | 30 | path="sources/meta-ti" |
30 | groups="notdefault,ti,bbb"/> | 31 | groups="notdefault,ti,bbb"/> |
31 | <project name="meta-raspberrypi" | 32 | <project name="meta-raspberrypi" |
32 | remote="yocto" | 33 | remote="yocto" |
33 | revision="daisy" | 34 | revision="fido" |
34 | path="sources/meta-raspberrypi" | 35 | path="sources/meta-raspberrypi" |
35 | groups="notdefault,rpi"/> | 36 | groups="notdefault,rpi"/> |
36 | <project name="meta-fsl-arm-extra" | 37 | <project name="meta-fsl-arm-extra" |
37 | remote="freescale" | 38 | remote="freescale" |
38 | revision="daisy" | 39 | revision="dizzy" |
39 | path="sources/meta-fsl-arm-extra" | 40 | path="sources/meta-fsl-arm-extra" |
40 | groups="notdefault,fsl,toradex"/> | 41 | groups="notdefault,fsl,toradex,architech"/> |
41 | <project name="meta-beagleboard" | 42 | <project name="meta-beagleboard" |
42 | remote="beagleboard" | 43 | remote="beagleboard" |
43 | revision="master" | 44 | revision="master" |
@@ -45,9 +46,14 @@ | |||
45 | groups="notdefault,bbb"/> | 46 | groups="notdefault,bbb"/> |
46 | <project name="meta-toradex" | 47 | <project name="meta-toradex" |
47 | remote="toradex" | 48 | remote="toradex" |
48 | revision="V2.3" | 49 | revision="V2.4" |
49 | path="sources/meta-toradex" | 50 | path="sources/meta-toradex" |
50 | groups="notdefault,toradex"/> | 51 | groups="notdefault,toradex"/> |
52 | <project name="meta-tibidabo" | ||
53 | remote="architech" | ||
54 | revision="dora" | ||
55 | path="sources/meta-tibidabo" | ||
56 | groups="notdefault,architech"/> | ||
51 | 57 | ||
52 | </manifest> | 58 | </manifest> |
53 | 59 | ||
diff --git a/scripts/manifest_qt5.xml b/scripts/manifest_qt5.xml new file mode 100644 index 0000000..1a50a10 --- /dev/null +++ b/scripts/manifest_qt5.xml | |||
@@ -0,0 +1,13 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <manifest> | ||
3 | |||
4 | <include name="manifest.xml"/> | ||
5 | |||
6 | <remote fetch="git://playground.ci.local" name="playground"/> | ||
7 | |||
8 | <project name="meta-qt5" | ||
9 | remote="playground" | ||
10 | revision="5.5" | ||
11 | path="sources/meta-qt5"/> | ||
12 | |||
13 | </manifest> | ||
diff --git a/scripts/manifest_tibidabo.xml b/scripts/manifest_tibidabo.xml deleted file mode 100644 index 97c18dd..0000000 --- a/scripts/manifest_tibidabo.xml +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <manifest> | ||
3 | |||
4 | <default sync-j="4" revision="dora"/> | ||
5 | |||
6 | <remote fetch="git://git.yoctoproject.org" name="yocto"/> | ||
7 | <remote fetch="git://git.openembedded.org" name="oe"/> | ||
8 | <remote fetch="git://github.com/Freescale" name="freescale"/> | ||
9 | <remote fetch="https://github.com/architech-boards/" name="architech"/> | ||
10 | |||
11 | <project name="poky" | ||
12 | remote="yocto" | ||
13 | revision="84c2763fa0bf08a83caa2c5ee532b5bef2ff918b" | ||
14 | path="sources/poky"/> | ||
15 | <project name="meta-openembedded" | ||
16 | remote="oe" | ||
17 | revision="40e0f371f3eb1628655c484feac0cebf810737b4" | ||
18 | path="sources/meta-openembedded"/> | ||
19 | |||
20 | <project name="meta-fsl-arm" | ||
21 | remote="yocto" | ||
22 | revision="fb1681666fac9c096314cd01242be4613b7ff140" | ||
23 | path="sources/meta-fsl-arm" | ||
24 | groups="notdefault,architech"/> | ||
25 | <project name="meta-tibidabo" | ||
26 | remote="architech" | ||
27 | revision="06c6b09e0776507e1230aa98b5ca10d9d3968286" | ||
28 | path="sources/meta-tibidabo" | ||
29 | groups="notdefault,architech"/> | ||
30 | |||
31 | </manifest> | ||
diff --git a/scripts/setup-environment.sh b/scripts/setup-environment.sh index 4fd881c..ce593c6 100755 --- a/scripts/setup-environment.sh +++ b/scripts/setup-environment.sh | |||
@@ -28,7 +28,7 @@ while test -n "$1"; do | |||
28 | return 0 | 28 | return 0 |
29 | ;; | 29 | ;; |
30 | *) | 30 | *) |
31 | BUILDDIR=$1 | 31 | BUILDDIRECTORY=$1 |
32 | ;; | 32 | ;; |
33 | esac | 33 | esac |
34 | shift | 34 | shift |
@@ -45,11 +45,11 @@ if [ -z "$MACHINE" ]; then | |||
45 | return 1 | 45 | return 1 |
46 | fi | 46 | fi |
47 | 47 | ||
48 | BUILDDIR=${BUILDDIR:-build-${MACHINE}} | 48 | BUILDDIRECTORY=${BUILDDIRECTORY:-build-${MACHINE}} |
49 | 49 | ||
50 | if [ ! -f ${PWD}/${BUILDDIR}/conf/bblayers.conf ]; then | 50 | if [ ! -f ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf ]; then |
51 | case ${MACHINE} in | 51 | case ${MACHINE} in |
52 | apalis-imx6|colibri-vf) | 52 | apalis-imx6|colibri-imx6|colibri-vf) |
53 | LAYERSCONF="bblayers.conf.toradex.sample" | 53 | LAYERSCONF="bblayers.conf.toradex.sample" |
54 | ;; | 54 | ;; |
55 | imx53qsb|imx6qsabresd|imx6dlsabresd|nitrogen6x) | 55 | imx53qsb|imx6qsabresd|imx6dlsabresd|nitrogen6x) |
@@ -64,7 +64,7 @@ if [ ! -f ${PWD}/${BUILDDIR}/conf/bblayers.conf ]; then | |||
64 | beaglebone) | 64 | beaglebone) |
65 | LAYERSCONF="bblayers.conf.bbb.sample" | 65 | LAYERSCONF="bblayers.conf.bbb.sample" |
66 | ;; | 66 | ;; |
67 | raspberrypi) | 67 | raspberrypi|raspberrypi2) |
68 | LAYERSCONF="bblayers.conf.rpi.sample" | 68 | LAYERSCONF="bblayers.conf.rpi.sample" |
69 | ;; | 69 | ;; |
70 | emulator) | 70 | emulator) |
@@ -76,20 +76,25 @@ if [ ! -f ${PWD}/${BUILDDIR}/conf/bblayers.conf ]; then | |||
76 | ;; | 76 | ;; |
77 | esac | 77 | esac |
78 | 78 | ||
79 | mkdir -p ${PWD}/${BUILDDIR}/conf | 79 | mkdir -p ${PWD}/${BUILDDIRECTORY}/conf |
80 | cp ${PWD}/sources/meta-b2qt/conf/${LAYERSCONF} ${PWD}/${BUILDDIR}/conf/bblayers.conf | 80 | cp ${PWD}/sources/meta-b2qt/conf/${LAYERSCONF} ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf |
81 | |||
82 | if [ ! -d ${PWD}/sources/meta-qt5 ]; then | ||
83 | sed -i -e '/meta-qt5/d' ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf | ||
84 | fi | ||
81 | 85 | ||
82 | if [ ! -d ${PWD}/sources/meta-b2qt/.git ]; then | 86 | if [ ! -d ${PWD}/sources/meta-b2qt/.git ]; then |
83 | QT_SDK_PATH=$(readlink -f ${PWD}/sources/meta-b2qt/../../) | 87 | QT_SDK_PATH=$(readlink -f ${PWD}/sources/meta-b2qt/../../../../) |
84 | fi | 88 | fi |
85 | fi | 89 | fi |
86 | 90 | ||
87 | export TEMPLATECONF="${PWD}/sources/meta-b2qt/conf" | 91 | export TEMPLATECONF="${PWD}/sources/meta-b2qt/conf" |
88 | . sources/poky/oe-init-build-env ${BUILDDIR} | 92 | . sources/poky/oe-init-build-env ${BUILDDIRECTORY} |
89 | 93 | ||
90 | # use sources from Qt SDK if that is available | 94 | # use sources from Qt SDK if that is available |
91 | sed -i -e "/QT_SDK_PATH/s:\"\":\"${QT_SDK_PATH}\":" conf/local.conf | 95 | sed -i -e "/QT_SDK_PATH/s:\"\":\"${QT_SDK_PATH}\":" conf/local.conf |
92 | 96 | ||
97 | unset BUILDDIRECTORY | ||
93 | unset QT_SDK_PATH | 98 | unset QT_SDK_PATH |
94 | unset TEMPLATECONF | 99 | unset TEMPLATECONF |
95 | unset LAYERSCONF | 100 | unset LAYERSCONF |
diff --git a/scripts/upload.sh b/scripts/upload.sh index 406f1d1..f3124ee 100755 --- a/scripts/upload.sh +++ b/scripts/upload.sh | |||
@@ -24,18 +24,14 @@ | |||
24 | set -x | 24 | set -x |
25 | set -e | 25 | set -e |
26 | 26 | ||
27 | RELEASE=4.x | 27 | RELEASE=5.5 |
28 | UPLOADPATH=QT@ci-files02-hki.ci.local:/srv/jenkins_data/enterprise/b2qt/yocto-${RELEASE}/latest | 28 | UPLOADPATH=QT@ci-files02-hki.ci.local:/srv/jenkins_data/enterprise/b2qt/yocto/${RELEASE}/ |
29 | 29 | ||
30 | if [ ${MACHINE} = "nitrogen6x" ]; then | 30 | if [ ${MACHINE} = "emulator" ]; then |
31 | scp tmp/deploy/images/nitrogen6x/b2qt-embedded-image-boot-nitrogen6x.tar.gz ${UPLOADPATH}/b2qt-embedded-image-boot-iMX6.tar.gz | ||
32 | scp tmp/deploy/images/nitrogen6x/b2qt-embedded-image-nitrogen6x.tar.gz ${UPLOADPATH}/b2qt-embedded-image-iMX6.tar.gz | ||
33 | scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-arm-toolchain-iMX6.sh | ||
34 | elif [ ${MACHINE} = "emulator" ]; then | ||
35 | cp tmp/deploy/images/emulator/b2qt-embedded-image-emulator.hdd . | 31 | cp tmp/deploy/images/emulator/b2qt-embedded-image-emulator.hdd . |
36 | gzip b2qt-embedded-image-emulator.hdd -f | 32 | gzip b2qt-embedded-image-emulator.hdd -f |
37 | scp b2qt-embedded-image-emulator.hdd.gz ${UPLOADPATH}/ | 33 | scp b2qt-embedded-image-emulator.hdd.gz ${UPLOADPATH}/ |
38 | scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-i586-toolchain-${MACHINE}.sh | 34 | scp tmp/deploy/sdk/b2qt-glibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-glibc-x86_64-i586-toolchain-${MACHINE}.sh |
39 | elif [ ${MACHINE} = "imx6qsabresd" ]; then | 35 | elif [ ${MACHINE} = "imx6qsabresd" ]; then |
40 | cp tmp/deploy/images/imx6qsabresd/b2qt-embedded-image-boot-imx6qsabresd.tar.gz . | 36 | cp tmp/deploy/images/imx6qsabresd/b2qt-embedded-image-boot-imx6qsabresd.tar.gz . |
41 | cp tmp/deploy/images/imx6dlsabresd/u-boot.imx u-boot-imx6dlsabresd.imx | 37 | cp tmp/deploy/images/imx6dlsabresd/u-boot.imx u-boot-imx6dlsabresd.imx |
@@ -45,8 +41,8 @@ elif [ ${MACHINE} = "imx6qsabresd" ]; then | |||
45 | gzip b2qt-embedded-image-boot-imx6qsabresd.tar | 41 | gzip b2qt-embedded-image-boot-imx6qsabresd.tar |
46 | scp b2qt-embedded-image-boot-${MACHINE}.tar.gz ${UPLOADPATH}/ | 42 | scp b2qt-embedded-image-boot-${MACHINE}.tar.gz ${UPLOADPATH}/ |
47 | scp tmp/deploy/images/${MACHINE}/b2qt-embedded-image-${MACHINE}.tar.gz ${UPLOADPATH}/ | 43 | scp tmp/deploy/images/${MACHINE}/b2qt-embedded-image-${MACHINE}.tar.gz ${UPLOADPATH}/ |
48 | scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-arm-toolchain-${MACHINE}.sh | 44 | scp tmp/deploy/sdk/b2qt-glibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-glibc-x86_64-arm-toolchain-${MACHINE}.sh |
49 | else | 45 | else |
50 | scp tmp/deploy/images/${MACHINE}/b2qt-embedded-image-*${MACHINE}.tar.gz ${UPLOADPATH}/ | 46 | scp tmp/deploy/images/${MACHINE}/b2qt-embedded-image-*${MACHINE}.tar.gz ${UPLOADPATH}/ |
51 | scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-arm-toolchain-${MACHINE}.sh | 47 | scp tmp/deploy/sdk/b2qt-glibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-glibc-x86_64-arm-toolchain-${MACHINE}.sh |
52 | fi | 48 | fi |