summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@theqtcompany.com>2015-08-14 13:24:24 +0300
committerSamuli Piippo <samuli.piippo@theqtcompany.com>2015-08-14 13:24:24 +0300
commit71df5c0dfbbe43b6538487ddf7cee735a620a139 (patch)
treefeb41717b4ee0c638c3c0958e58c488f86e10299
parent62626c1517f08f8d34aa8e9b49508b464abf21c4 (diff)
parent0fe5a62bd4c557e245128d4671b1f5af7dd6b4b1 (diff)
downloadmeta-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
-rwxr-xr-xb2qt-init-build-env28
-rw-r--r--classes/bootfs-image.bbclass26
-rw-r--r--classes/image-hdd.bbclass6
-rw-r--r--classes/qtquickcompiler.bbclass34
-rw-r--r--classes/sdk-sources.bbclass (renamed from classes/local-sources.bbclass)15
-rw-r--r--conf/bblayers.conf.bbb.sample4
-rw-r--r--conf/bblayers.conf.emulator.sample4
-rw-r--r--conf/bblayers.conf.fsl.sample4
-rw-r--r--conf/bblayers.conf.rpi.sample5
-rw-r--r--conf/bblayers.conf.sample2
-rw-r--r--conf/bblayers.conf.ti.sample4
-rw-r--r--conf/bblayers.conf.tibidabo.sample4
-rw-r--r--conf/bblayers.conf.toradex.sample4
-rw-r--r--conf/distro/b2qt.conf11
-rw-r--r--conf/distro/include/am335x-evm.conf7
-rw-r--r--conf/distro/include/apalis-imx6.conf10
-rw-r--r--conf/distro/include/beagleboard.conf3
-rw-r--r--conf/distro/include/beaglebone.conf5
-rw-r--r--conf/distro/include/colibri-imx6.conf51
-rw-r--r--conf/distro/include/colibri-vf.conf13
-rw-r--r--conf/distro/include/emulator.conf17
-rw-r--r--conf/distro/include/imx53qsb.conf6
-rw-r--r--conf/distro/include/imx6.inc2
-rw-r--r--conf/distro/include/imx6qsabresd.conf23
-rw-r--r--conf/distro/include/nitrogen6x.conf22
-rw-r--r--conf/distro/include/raspberrypi.conf6
-rw-r--r--conf/distro/include/raspberrypi2.conf45
-rw-r--r--conf/distro/include/tibidabo.conf11
-rw-r--r--conf/distro/include/toradex.inc3
-rw-r--r--conf/layer.conf8
-rw-r--r--conf/local.conf.sample8
-rw-r--r--licenses/QtEnterprise706
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc246
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/0001-change-header-path-to-HAL.patch30
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl.pc12
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/egl_x11.pc12
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/fix-conflicting-TLS-definition.patch31
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/gc_hal_eglplatform-remove-xlib-undefs.patch34
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/gc_wayland_protocol.pc10
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm.pc12
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv1_cm_x11.pc12
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2.pc12
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/glesv2_x11.pc12
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/vg.pc12
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/vg_x11.pc12
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/wayland-egl.pc10
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q/wayland-viv.pc10
-rw-r--r--meta-architech-extras/recipes/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_3.10.9-1.0.0-hfp.bb9
-rw-r--r--meta-architech-extras/recipes/imx-lib/imx-lib_3.10.9-1.0.0.bb10
-rw-r--r--meta-architech-extras/recipes/linux/linux-imx-3.0.35/0001-perf-tools-Fix-getrusage-related-build-failure-on-gl.patch43
-rw-r--r--meta-architech-extras/recipes/linux/linux-imx-3.0.35/0002-ARM-7668-1-fix-memset-related-crashes-caused-by-rece.patch259
-rw-r--r--meta-architech-extras/recipes/linux/linux-imx-3.0.35/0003-ARM-7670-1-fix-the-memset-fix.patch87
-rw-r--r--meta-architech-extras/recipes/linux/linux-imx-3.0.35/0004-ENGR00271136-Fix-build-break-when-CONFIG_CLK_DEBUG-i.patch43
-rw-r--r--meta-architech-extras/recipes/linux/linux-imx-3.0.35/0005-ENGR00271359-Add-Multi-touch-support.patch98
-rw-r--r--meta-architech-extras/recipes/linux/linux-imx-3.0.35/0006-Add-support-for-DVI-monitors.patch227
-rw-r--r--meta-architech-extras/recipes/linux/linux-imx-3.0.35/0007-ARM-mach-mx6-board-mx6q_sabresd-Register-SDHC3-first.patch38
-rw-r--r--meta-architech-extras/recipes/linux/linux-imx-3.0.35/drm-vivante-Add-00-sufix-in-returned-bus-Id.patch31
-rw-r--r--meta-architech-extras/recipes/linux/linux-imx-3.0.35/epdc-Rename-mxcfb_epdc_kernel.h-to-mxc_epdc.h.patch143
-rw-r--r--meta-architech-extras/recipes/linux/linux-imx_3.0.35.bb35
-rw-r--r--meta-architech-extras/recipes/u-boot/u-boot-fslc_2013.10.bb25
-rw-r--r--meta-beagleboard-extras/recipes/linux/linux-mainline/ARM-perf-add-support-for-perf-registers-API.diff128
-rw-r--r--meta-beagleboard-extras/recipes/linux/linux-mainline/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch163
-rw-r--r--meta-beagleboard-extras/recipes/linux/linux-mainline_3.8.bbappend3
-rw-r--r--meta-fsl-extras/recipes/linux/linux-boundary_3.10.17.bbappend26
-rw-r--r--meta-fsl-extras/recipes/linux/linux-imx_3.10.%.bbappend41
-rw-r--r--meta-fsl-extras/recipes/u-boot/u-boot-fslc/0001-Updated-kernel-arguments-for-sabre-sd.patch87
-rw-r--r--meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0001-nitrogen6x-update-bootargs.patch (renamed from meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0001-nitrogen6x-disable-console-cursor-blinking.patch)10
-rw-r--r--meta-fsl-extras/recipes/u-boot/u-boot-script-boundary_git.bbappend2
-rw-r--r--meta-raspberrypi-extras/conf/layer.conf33
-rw-r--r--meta-raspberrypi-extras/recipes/linux/linux-raspberrypi/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch171
-rw-r--r--meta-raspberrypi-extras/recipes/linux/linux-raspberrypi_3.12.%.bbappend27
-rw-r--r--meta-ti-extras/recipes/libgles/libgles-omap3_4.09.00.01.bbappend2
-rw-r--r--meta-ti-extras/recipes/libgles/libgles-omap3_4.10.00.01.bb9
-rw-r--r--meta-ti-extras/recipes/linux/linux-mainline_3.2.bbappend42
-rw-r--r--meta-toradex-extras/recipes/linux/linux-toradex-fsl_git.bbappend10
-rw-r--r--meta-toradex-extras/recipes/linux/linux-toradex-vf/0001-Allow-builds-with-GCC-4.8.patch27
-rw-r--r--meta-toradex-extras/recipes/linux/linux-toradex-vf/0001-Enable-Fusion-7-and-10-multi-touch-controller.patch25
-rw-r--r--meta-toradex-extras/recipes/linux/linux-toradex-vf_4.%.bbappend33
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-script-toradex.bb18
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/flash_mmc.scr2
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_blk.scr6
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/mx6/flash_mmc.scr6
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_blk.scr2
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-script-toradex/vf/flash_mmc.scr3
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-Update-default-args-for-apalis-imx6.patch40
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl/0001-colibri-vf-enable-sdboot-by-default.patch35
-rw-r--r--meta-toradex-extras/recipes/u-boot/u-boot-toradex-fsl_git.bbappend3
-rw-r--r--recipes-qt/b2qt-addons/b2qt-appcontroller.bb51
-rw-r--r--recipes-qt/b2qt-addons/b2qt-appcontroller/appcontroller.conf5
-rw-r--r--recipes-qt/b2qt-addons/b2qt-appcontroller/colibri-vf/appcontroller.conf7
-rw-r--r--recipes-qt/b2qt-addons/b2qt-appcontroller/emulator/appcontroller.conf7
-rw-r--r--recipes-qt/b2qt-addons/b2qt-appcontroller/mx6/appcontroller.conf7
-rw-r--r--recipes-qt/b2qt-addons/b2qt-appcontroller/rpi/appcontroller.conf5
-rw-r--r--recipes-qt/b2qt-addons/b2qt-demos.bb112
-rw-r--r--recipes-qt/b2qt-addons/b2qt-emulator-proxy.bb49
-rwxr-xr-xrecipes-qt/b2qt-addons/b2qt-emulator-proxy/emulatorproxyd.sh42
-rw-r--r--recipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd.bb49
-rwxr-xr-xrecipes-qt/b2qt-addons/b2qt-emulator-sdcardmountd/sdcardmountd.sh42
-rw-r--r--recipes-qt/b2qt-addons/b2qt-emulator-vinput.bb40
-rw-r--r--recipes-qt/b2qt-addons/b2qt-launcher.bb52
-rwxr-xr-xrecipes-qt/b2qt-addons/b2qt-launcher/b2qt-startup.sh42
-rw-r--r--recipes-qt/b2qt-addons/b2qt-utils.bb48
-rw-r--r--recipes-qt/images/b2qt-embedded-qt5-image.bb49
-rw-r--r--recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk.bb68
-rw-r--r--recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk/qmake.conf14
-rw-r--r--recipes-qt/meta/meta-toolchain-b2qt-embedded-qt5-sdk/qplatformdefs.h2
-rw-r--r--recipes-qt/packagegroups/nativesdk-packagegroup-b2qt-embedded-qt5-toolchain-host.bb36
-rw-r--r--recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-addons-toolchain-target.bb37
-rw-r--r--recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-addons.bb38
-rw-r--r--recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5-toolchain-target.bb59
-rw-r--r--recipes-qt/packagegroups/packagegroup-b2qt-embedded-qt5.bb50
-rw-r--r--recipes-qt/qt5-addons/qtcharts_2.0.bb48
-rw-r--r--recipes-qt/qt5-addons/qtdatavisualization_1.2.bb43
-rw-r--r--recipes-qt/qt5-addons/qtglesstream.bb58
-rw-r--r--recipes-qt/qt5-addons/qtquick2drenderer.bb39
-rw-r--r--recipes-qt/qt5-addons/qtquickcompiler_3.0.bb44
-rw-r--r--recipes-qt/qt5-addons/qtsimulator_1.0.bb (renamed from meta-fsl-extras/recipes/linux/linux-imx_3.%.bbappend)26
-rw-r--r--recipes-qt/qt5-addons/qtvirtualkeyboard_1.3.bb45
-rw-r--r--recipes-qt/qt5/nativesdk-qtbase_%.bbappend24
-rw-r--r--recipes-qt/qt5/qtbase/emulator/oe-device-extra.pri2
-rw-r--r--recipes-qt/qt5/qtbase/mx6/oe-device-extra.pri8
-rw-r--r--recipes-qt/qt5/qtbase/oe-device-extra.pri1
-rw-r--r--recipes-qt/qt5/qtbase/rpi/oe-device-extra.pri9
-rw-r--r--recipes-qt/qt5/qtbase/ti33x/oe-device-extra.pri3
-rw-r--r--recipes-qt/qt5/qtbase_%.bbappend (renamed from meta-ti-extras/recipes/linux/linux-am335x-psp_3.2.bbappend)42
-rw-r--r--recipes-qt/qt5/qtconnectivity_%.bbappend23
-rw-r--r--recipes-qt/qt5/qtlocation_%.bbappend26
-rw-r--r--recipes-qt/qt5/qtmultimedia_%.bbappend23
-rw-r--r--recipes-qt/qt5/qtsensors_%.bbappend24
-rw-r--r--recipes-qt/qt5/qtsystems_%.bbappend24
-rw-r--r--recipes/adbd/adbd.bb32
-rw-r--r--recipes/adbd/files/Makefile.adbd10
-rwxr-xr-xrecipes/adbd/files/adb-init4
-rw-r--r--recipes/adbd/files/adbd.patch264
-rw-r--r--recipes/base-files/base-files_3.0.14.bbappend8
-rw-r--r--recipes/busybox/busybox_1.%.bbappend6
-rw-r--r--recipes/dbus/dbus/dbus-session-address5
-rw-r--r--recipes/dbus/dbus/dbus-session.init103
-rw-r--r--recipes/dbus/dbus_%.bbappend47
-rw-r--r--recipes/fonts/otf-noto.bb24
-rw-r--r--recipes/gperf/gperf_%.bbappend23
-rw-r--r--recipes/gstreamer/gstreamer1.0-plugins-bad_%.bbappend1
-rw-r--r--recipes/gstreamer/gstreamer1.0-plugins-ugly_%.bbappend1
-rw-r--r--recipes/hunspell/hunspell_1.3.2.bb12
-rw-r--r--recipes/images/b2qt-embedded-image.bb3
-rw-r--r--recipes/init-ifupdown/init-ifupdown_1.0.bbappend4
-rw-r--r--recipes/initscripts/initscripts_1.0.bbappend2
-rw-r--r--recipes/linux/linux/ARM-perf-add-support-for-perf-registers-API.diff126
-rw-r--r--recipes/linux/linux/ARM-perf-wire-up-perf_regs-and-unwind-support-for-AR.patch172
-rw-r--r--recipes/meta/meta-toolchain-b2qt-embedded-sdk.bb23
-rw-r--r--recipes/opengldummy/files/headers/EGL/eglplatform.h6
-rw-r--r--recipes/opengldummy/opengldummy.bb12
-rw-r--r--recipes/opengldummy/opengldummy.inc19
-rw-r--r--recipes/opengldummy/qtglesstream-dummy-client.bb12
-rw-r--r--recipes/openssl/openssl_1.%.bbappend4
-rw-r--r--recipes/packagegroup/nativesdk-packagegroup-b2qt-embedded-toolchain-host.bb10
-rw-r--r--recipes/packagegroup/packagegroup-b2qt-embedded-base.bb10
-rw-r--r--recipes/packagegroup/packagegroup-b2qt-embedded-gstreamer.bb31
-rw-r--r--recipes/packagegroup/packagegroup-b2qt-embedded-gstreamer010.bb59
-rw-r--r--recipes/packagegroup/packagegroup-b2qt-embedded-toolchain-target.bb (renamed from recipes/packagegroup/nativesdk-packagegroup-b2qt-embedded-toolchain-target.bb)12
-rw-r--r--recipes/packagegroup/packagegroup-b2qt-embedded-tools.bb3
-rw-r--r--recipes/perf/perf.bbappend2
-rw-r--r--recipes/virtualbox/mount-vboxsf_4.3.30.bb (renamed from recipes/virtualbox/mount-vboxsf_4.2.14.bb)14
-rw-r--r--recipes/virtualbox/virtualbox-guest-additions_4.3.30.bb (renamed from recipes/virtualbox/virtualbox-guest-additions_4.2.14.bb)18
-rw-r--r--recipes/wayland/wayland/0001-Use-native-wayland-scanner-when-building-nativesdk-w.patch36
-rw-r--r--recipes/wayland/wayland_1.%.bbappend2
-rw-r--r--recipes/wpa-supplicant/wpa-supplicant_2.%.bbappend22
-rwxr-xr-xscripts/build-all.sh18
-rwxr-xr-xscripts/configure-qtcreator.sh118
-rw-r--r--scripts/manifest.xml26
-rw-r--r--scripts/manifest_dizzy.xml (renamed from scripts/manifest_daisy.xml)26
-rw-r--r--scripts/manifest_qt5.xml13
-rw-r--r--scripts/manifest_tibidabo.xml31
-rwxr-xr-xscripts/setup-environment.sh23
-rwxr-xr-xscripts/upload.sh16
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
83get_groups() { 83get_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
130patch_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
144init() { 133init() {
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}"
26BOOTFS_DEPENDS ?= "" 26BOOTFS_DEPENDS ?= ""
27 27
28fakeroot do_bootfs () { 28fakeroot 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
49addtask bootfs before do_rootfs 49addtask 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"
34inherit image_types boot-directdisk 34inherit image_types boot-directdisk
35 35
36create_hdd_image () { 36create_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
42python do_hddimg() { 42python 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
23python __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 "
37BBLAYERS_NON_REMOVABLE ?= " \ 41BBLAYERS_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 "
38BBLAYERS_NON_REMOVABLE ?= " \ 43BBLAYERS_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
25DISTRO = "b2qt" 25DISTRO = "b2qt"
26DISTRO_NAME = "Boot to Qt for Embedded Linux" 26DISTRO_NAME = "Boot to Qt for Embedded Linux"
27DISTRO_VERSION = "1.6" 27DISTRO_VERSION = "1.7"
28SDK_VERSION := "${DISTRO_VERSION}" 28SDK_VERSION := "${DISTRO_VERSION}"
29 29
30MAINTAINER = "B2Qt <B2Qt@digia.com>" 30MAINTAINER = "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
38SYSVINIT_ENABLED_GETTYS = "" 39SYSVINIT_ENABLED_GETTYS = ""
39 40
40DISTRO_FEATURES_DEFAULT = "alsa argp bluetooth ext2 largefile usbgadget usbhost wifi xattr nfs" 41DISTRO_FEATURES_DEFAULT = "alsa argp bluetooth ext2 largefile usbgadget usbhost wifi xattr nfs webengine"
41POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl multiarch" 42POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl multiarch"
42DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio" 43DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio"
43 44
45# use GStreamer 0.10, optionally change to "gstreamer" to use GStreamer 1.0
46DISTRO_FEATURES += "gstreamer010"
47
44PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo" 48PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo"
45PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo-native" 49PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo-native"
46 50
47COMMERCIAL_AUDIO_PLUGINS ?= "gst-plugins-ugly-mad gst-plugins-ugly-mpegaudioparse"
48COMMERCIAL_VIDEO_PLUGINS ?= "gst-plugins-ugly-mpeg2dec gst-plugins-ugly-mpegstream gst-plugins-bad-mpegvideoparse"
49
50MACHINE_EXTRA_INSTALL ?= "" 51MACHINE_EXTRA_INSTALL ?= ""
51MACHINE_EXTRA_INSTALL_SDK ?= "" 52MACHINE_EXTRA_INSTALL_SDK ?= ""
52MACHINE_EXTRA_INSTALL_SDK_HOST ?= "" 53MACHINE_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 "
27BOOTFS_DEPENDS = "u-boot:do_deploy" 27BOOTFS_DEPENDS = "u-boot:do_deploy"
28 28
29DISTRO_FEATURES_remove = "webengine"
30
31PREFERRED_PROVIDER_virtual/egl = "libgles-omap3"
32PREFERRED_PROVIDER_virtual/libgles2 = "libgles-omap3"
33
29PREFERRED_VERSION_libgles-omap3 = "5.01.01.01" 34PREFERRED_VERSION_libgles-omap3 = "5.01.01.01"
30PREFERRED_VERSION_omap3-sgx-modules = "5.01.01.01" 35PREFERRED_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
39MACHINE_EXTRA_INSTALL_SDK = "\ 43MACHINE_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
23include conf/distro/include/toradex.inc 23include conf/distro/include/toradex.inc
24include conf/distro/include/imx6.inc
25
26KERNEL_IMAGETYPE = "uImage"
24 27
25BOOTFS_CONTENT = "\ 28BOOTFS_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 "
31BOOTFS_DEPENDS = "u-boot:do_deploy" 36BOOTFS_DEPENDS = "u-boot:do_deploy u-boot-script-toradex:do_deploy virtual/kernel:do_deploy"
32 37
33MACHINE_EXTRA_INSTALL = "\ 38MACHINE_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
40MACHINE_EXTRA_INSTALL_SDK = " \ 46MACHINE_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 "
27BOOTFS_DEPENDS = "u-boot:do_deploy" 27BOOTFS_DEPENDS = "u-boot:do_deploy"
28 28
29PREFERRED_PROVIDER_virtual/egl = "libgles-omap3"
30PREFERRED_PROVIDER_virtual/libgles2 = "libgles-omap3"
31
29PREFERRED_VERSION_libgles-omap3 = "4.09.00.01" 32PREFERRED_VERSION_libgles-omap3 = "4.09.00.01"
30PREFERRED_VERSION_omap3-sgx-modules = "4.09.00.01" 33PREFERRED_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
25EXTRA_IMAGEDEPENDS += "u-boot-uenv-script" 25EXTRA_IMAGEDEPENDS += "u-boot-uenv-script"
26 26
27DISTRO_FEATURES_remove = "webengine"
28
27PREFERRED_VERSION_libgles-omap3 = "4.10.00.01" 29PREFERRED_VERSION_libgles-omap3 = "4.10.00.01"
28PREFERRED_VERSION_omap3-sgx-modules = "4.10.00.01" 30PREFERRED_VERSION_omap3-sgx-modules = "4.10.00.01"
29 31
32PREFERRED_PROVIDER_virtual/egl = "libgles-omap3"
33PREFERRED_PROVIDER_virtual/libgles2 = "libgles-omap3"
34
30PREFERRED_PROVIDER_u-boot = "u-boot" 35PREFERRED_PROVIDER_u-boot = "u-boot"
31EXTRA_IMAGEDEPENDS_remove = "u-boot-denx" 36EXTRA_IMAGEDEPENDS_remove = "u-boot-denx"
32UBOOT_MACHINE = "am335x_boneblack_config" 37UBOOT_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
23include conf/distro/include/toradex.inc
24include conf/distro/include/imx6.inc
25
26KERNEL_IMAGETYPE = "uImage"
27
28BOOTFS_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 "
34BOOTFS_DEPENDS = "u-boot:do_deploy virtual/kernel:do_deploy"
35
36MACHINE_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
45MACHINE_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 @@
23include conf/distro/include/toradex.inc 23include conf/distro/include/toradex.inc
24 24
25BOOTFS_CONTENT = "\ 25BOOTFS_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 "
29BOOTFS_DEPENDS = "u-boot:do_deploy" 30BOOTFS_DEPENDS = "u-boot:do_deploy u-boot-script-toradex:do_deploy virtual/kernel:do_deploy"
30 31
31SERIAL_CONSOLES = "115200;ttymxc0 \ 32PREFERRED_PROVIDER_virtual/egl = "opengldummy"
32 115200;ttymxc1" 33PREFERRED_PROVIDER_virtual/libgles2 = "opengldummy"
34
35DISTRO_FEATURES_remove = "webengine"
33 36
34MACHINE_EXTRA_INSTALL = "\ 37MACHINE_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
32kernel_autoload_snd-intel8x0 = "snd-intel8x0" 32PREFERRED_PROVIDER_virtual/egl = "qtglesstream-dummy-client"
33PREFERRED_PROVIDER_virtual/libgles2 = "qtglesstream-dummy-client"
34
35KERNEL_MODULE_AUTOLOAD += "snd-intel8x0 vboxguest"
36
37DISTRO_FEATURES_remove = "webengine"
33 38
34MACHINE_EXTRA_INSTALL = "\ 39MACHINE_EXTRA_INSTALL = "\
35 mount-vboxsf \ 40 mount-vboxsf \
36 " 41 "
37
38MACHINE_EXTRA_INSTALL_SDK = "\ 42MACHINE_EXTRA_INSTALL_SDK = "\
39 qtglesstream-dummy-client-dev \ 43 qtglesstream-dummy-client-dev \
40 " 44 "
45MACHINE_EXTRA_INSTALL_QT = "\
46 qtglesstream \
47 b2qt-emulator-proxy \
48 b2qt-emulator-vinput \
49 b2qt-emulator-sdcardmountd \
50 "
51MACHINE_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
23include conf/distro/include/imx6.inc
24
23BOOTFS_CONTENT = "\ 25BOOTFS_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 "
27BOOTFS_DEPENDS = "u-boot:do_deploy" 29BOOTFS_DEPENDS = "u-boot:do_deploy virtual/kernel:do_deploy"
30
31DISTRO_FEATURES_remove = "webengine"
28 32
29MACHINE_EXTRA_INSTALL = "\ 33MACHINE_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 @@
1BBMASK ?= " "
2BBMASK .= "|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
23include conf/distro/include/imx6.inc
24
23BOOTFS_CONTENT = "\ 25BOOTFS_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 "
33BOOTFS_DEPENDS = "u-boot:do_deploy virtual/kernel:do_deploy" 35BOOTFS_DEPENDS = "u-boot:do_deploy virtual/kernel:do_deploy"
34 36
35PREFERRED_VERSION_gpu-viv-bin-mx6q = "3.10.17-1.0.1-hfp"
36PREFERRED_VERSION_imx-lib = "3.10.17-1.0.0"
37
38DISTRO_FEATURES_DEFAULT += "wayland" 37DISTRO_FEATURES_DEFAULT += "wayland"
39 38
40MACHINE_EXTRA_INSTALL = "\ 39MACHINE_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
50MACHINE_EXTRA_INSTALL_SDK = " \ 50MACHINE_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
60MACHINE_EXTRA_INSTALL_SDK_HOST = "\
61 wayland-nativesdk \
62 " 57 "
63 58
64module_autoload_mxc_v4l2_capture = "mxc_v4l2_capture" 59KERNEL_MODULE_AUTOLOAD += "mxc_v4l2_capture"
65 60
66# add support for both imx6qsabresd and imx6dlsabresd 61# add support for both imx6qsabresd and imx6dlsabresd
67KERNEL_DEVICETREE = "imx6q-sabresd.dtb imx6q-sabresd-ldo.dtb imx6q-sabresd-hdcp.dtb \ 62KERNEL_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
23include conf/distro/include/imx6.inc
24
23BOOTFS_CONTENT = "\ 25BOOTFS_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
44EXTRA_IMAGEDEPENDS += "u-boot-script-boundary" 47EXTRA_IMAGEDEPENDS += "u-boot-script-boundary"
45 48
46PREFERRED_VERSION_gpu-viv-bin-mx6q = "3.10.17-1.0.1-hfp"
47PREFERRED_VERSION_imx-lib = "3.10.17-1.0.0"
48
49KERNEL_DEVICETREE += "imx6dl-nit6xlite.dtb" 49KERNEL_DEVICETREE += "imx6dl-nit6xlite.dtb"
50 50
51DISTRO_FEATURES_DEFAULT += "wayland" 51DISTRO_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
64MACHINE_EXTRA_INSTALL_SDK = " \ 65MACHINE_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
74MACHINE_EXTRA_INSTALL_SDK_HOST = "\
75 wayland-nativesdk \
76 " 72 "
77 73
78B2QT_PLATFORM = "iMX6-eLinux" 74B2QT_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
29PREFERRED_PROVIDER_virtual/libgles1 = "userland" 29PREFERRED_PROVIDER_virtual/libgles1 = "userland"
30 30
31DISTRO_FEATURES_remove = "webengine"
32
31MACHINE_EXTRA_INSTALL = "\ 33MACHINE_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
39module_autoload_snd-bcm2835 = "snd-bcm2835" 41KERNEL_MODULE_AUTOLOAD += "snd-bcm2835 bcm2835-v4l2"
40module_autoload_bcm2835-v4l2 = "bcm2835-v4l2" 42KERNEL_MODULE_PROBECONF += "bcm2835-v4l2"
41module_conf_bcm2835-v4l2 = "options bcm2835-v4l2 gst_v4l2src_is_broken=1" 43module_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
23BOOTFS_CONTENT = "\
24 bcm2835-bootfiles/*: \
25 ${KERNEL_IMAGETYPE}:kernel.img \
26 "
27BOOTFS_DEPENDS = "bcm2835-bootfiles:do_deploy virtual/kernel:do_deploy"
28
29MACHINE_EXTRA_INSTALL = "\
30 userland \
31 omxplayer \
32 "
33
34MACHINE_EXTRA_INSTALL_SDK = " \
35 userland \
36 "
37
38KERNEL_MODULE_AUTOLOAD += "snd-bcm2835 bcm2835-v4l2"
39KERNEL_MODULE_PROBECONF += "bcm2835-v4l2"
40module_conf_bcm2835-v4l2 = "options bcm2835-v4l2 gst_v4l2src_is_broken=1"
41
42# additional memory for GPU
43GPU_MEM = "256"
44# video camera support
45VIDEO_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
23include conf/distro/include/imx6.inc
24
25KERNEL_IMAGETYPE = "uImage"
26
23BOOTFS_CONTENT = "\ 27BOOTFS_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
36MACHINE_EXTRA_INSTALL_SDK = " \ 41MACHINE_EXTRA_INSTALL_SDK = " \
@@ -41,6 +46,4 @@ MACHINE_EXTRA_INSTALL_SDK = " \
41 libgles2-mx6-dev \ 46 libgles2-mx6-dev \
42 " 47 "
43 48
44module_autoload_mxc_v4l2_capture = "mxc_v4l2_capture" 49KERNEL_MODULE_AUTOLOAD += "mxc_v4l2_capture"
45
46BBMASK += "|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 @@
1BBMASK += "|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" 1BBMASK ?= " "
2BBMASK .= "|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 @@
24BBPATH .= ":${LAYERDIR}" 24BBPATH .= ":${LAYERDIR}"
25 25
26# We have a recipes directory, add to BBFILES 26# We have a recipes directory, add to BBFILES
27BBFILES += "${LAYERDIR}/recipes*/*/*.bb \ 27BBFILES += "${LAYERDIR}/recipes/*/*.bb \
28 ${LAYERDIR}/recipes*/*/*.bbappend \ 28 ${LAYERDIR}/recipes/*/*.bbappend \
29 " 29 "
30BBFILES += "${@bb.utils.contains("BBFILE_COLLECTIONS", "qt5-layer", "${LAYERDIR}/recipes-qt/*/*.bb ${LAYERDIR}/recipes-qt/*/*.bbappend" , "", d)}"
30 31
31BBFILE_COLLECTIONS += "b2qt" 32BBFILE_COLLECTIONS += "b2qt"
32BBFILE_PATTERN_b2qt := "^${LAYERDIR}/" 33BBFILE_PATTERN_b2qt := "^${LAYERDIR}/"
33BBFILE_PRIORITY_b2qt = "20" 34BBFILE_PRIORITY_b2qt = "20"
35
36LICENSE_PATH += "${LAYERDIR}/licenses"
37QT_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#
42BB_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()}" 43BB_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#
50PARALLEL_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()}" 49PARALLEL_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 @@
1Qt FOR DEVICE CREATION LICENSE AGREEMENT
2Agreement version 1.5
3
4This Qt for Device Creation License Agreement ("Agreement") is a legal agreement
5between The Qt Company Ltd ("The Qt Company") with its registered office at
6Valimotie 21, 00380 Helsinki, Finland, and you (either an individual or a legal
7entity) ("Licensee") for the Licensed Software (as defined below).
8
91. DEFINITIONS "Affiliate" of a Party shall mean an entity (i) which is directly
10or indirectly controlling such Party; (ii) which is under the same direct or
11indirect ownership or control as such Party; or (iii) which is directly or
12indirectly owned or controlled by such Party. For these purposes, an entity
13shall be treated as being controlled by another if that other entity has fifty
14percent (50 %) or more of the votes in such entity, is able to direct its
15affairs and/or to control the composition of its board of directors or
16equivalent body. "Applications" shall mean Licensee's software products created
17using the Licensed Software which may include portions of the Licensed Software.
18"Customers" shall mean the third parties to whom Licensee directly or indirectly
19distributes copies of the Licensed Software. "Deployment Platforms" shall mean
20those operating systems in which the Licensed Software can be distributed on
21according 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
23scope of their employment or Licensee's consultant(s) or contractor(s) acting
24within the scope of their services for Licensee and on behalf of Licensee.
25"Development Platforms" shall mean those operating systems in which the Licensed
26Software can be used only for designing, developing and testing Applications,
27but not distributed in any form or used for any other purpose. "Devices" shall
28mean devices or products that 1) are manufactured, sold or distributed by
29Licensee that include the Licensed Software, and 2) fulfill the definition of a
30Joint Hardware and Software Distribution. "Initial Term" shall mean the period
31of time one (1) year from the later of (a) the Effective Date; or (b) the date
32the Licensed Software was initially delivered to Licensee by The Qt Company. If
33no specific Effective Date is set forth in the Agreement, the Effective Date
34shall be deemed to be the date the Licensed Software was initially delivered to
35Licensee. "Intellectual Property Rights" shall mean patents (including utility
36models), design patents, and designs (whether or not capable of registration),
37chip topography rights and other like protection, copyright, trademark and any
38other form of statutory protection of any kind and applications for any of the
39foregoing as well as any trade secrets. "Joint Hardware and Software
40Distribution" shall mean either: (i) distribution of a hardware device where, in
41its final end user configuration, the main user interface or substantial
42functionality of the device is provided by Application(s) created by Licensee or
43others, using Licensed Software or Licensed Software based software product, and
44depends on the Licensed Software or an open source version of Qt or any Qt based
45software product; or (ii) distribution of the Licensed Software with a device
46designed to facilitate the installation of the Licensed Software onto the same
47device where the main user interface or substantial functionality of such device
48is provided by Application(s) created by Licensee or others, using the Licensed
49Software, and depends on the Licensed Software. "License Certificate" shall mean
50the document accompanying the Licensed Software which specifies the modules
51which are licensed under the Agreement, Development Platforms, Deployment
52Platforms and Designated Users. "License Fee" shall mean the fee charged to
53Licensee for (i) each copy of the Licensed Software purchased, as well as (ii)
54reproduction and distribution of Licensed Software under the terms of this
55Agreement. "License Packs" shall mean set of prepaid Distribution Licenses, as
56defined in Section 5.2 b). "Licensed Software" shall mean the computer software,
57"online" or electronic documentation, associated media and printed materials,
58including the source code, example programs and the documentation delivered by
59The Qt Company to Licensee in conjunction with this Agreement. Licensed Software
60does not include Third Party Software (as defined in Section 7). "Modified
61Software" shall mean modifications made to the Licensed Software by Licensee.
62"Nokia" shall mean Nokia Corporation, a corporation incorporated under the laws
63of Finland, having its registered office at PO box 226, 00045 Nokia Group,
64Finland (visiting address Karakaari 7, 02610 Espoo, Finland) and registered with
65the Finnish Trade Register under business ID 0112038-9 and acting on behalf of
66its respective Affiliates. "Online Services" shall mean any services or access
67to systems provided by The Qt Company to the Licensee over Internet in
68conjunction with the Licensed Software or for the purpose of use by the Licensee
69of the Licensed Software or Support. Using some of the Online Services may be
70subject to additional fees. "Party or Parties" shall mean Licensee and/or The Qt
71Company. "Redistributables" shall mean the portions of the Licensed Software set
72forth in Appendix 1, Section 1 that may be distributed with or as part of
73Applications in object code form. "Renewal Term" shall mean a time period of
74twelve months calculated from the end of the Initial Term, or from end of the
75previous Renewal Term. "Support" shall mean standard developer support that is
76provided by The Qt Company to assist eligible Designated Users in using the
77Licensed Software in accordance with its established standard support
78procedures. "Updates" shall mean a release or version of the Licensed Software
79containing enhancements, new features, bug fixes, error corrections and other
80changes that are generally made available to users of the Licensed Software that
81have contracted for maintenance and support.
82
832. OWNERSHIP The Licensed Software is protected by copyright laws and
84international copyright treaties, as well as other intellectual property laws
85and treaties. The Licensed Software is licensed, not sold. To the extent
86Licensee submits bug fixes or error corrections, including information related
87thereto, Licensee hereby grants The Qt Company a sublicensable, irrevocable,
88perpetual, worldwide, non-exclusive, royalty-free and fully paid-up copyright
89and trade secret license to reproduce, adapt, translate, modify, and prepare
90derivative works of, publicly display, publicly perform, sublicense, make
91available and distribute error corrections and bug fixes, including derivative
92works thereof. All The Qt Company's and/or its licensors' trademarks, service
93marks, trade names, logos or other words or symbols are and shall remain the
94exclusive property of The Qt Company or its licensors respectively.
95
963. MODULES Some of the files in the Licensed Software have been grouped into
97modules. These files contain specific notices defining the module of which they
98are a part. The modules licensed to Licensee are specified in the License
99Certificate accompanying the Licensed Software. The terms of the License
100Certificate are considered part of the Agreement. In the event of inconsistency
101or conflict between the language of this Agreement and the License Certificate,
102the provisions of this Agreement shall govern. 4. VALIDITY OF THE AGREEMENT By
103installing, copying, or otherwise using the Licensed Software, Licensee agrees
104to be bound by the terms of this Agreement. If Licensee does not agree to the
105terms of this Agreement, Licensee should not install, copy, or otherwise use the
106Licensed Software. In addition, by installing, copying, or otherwise using any
107Updates or other components of the Licensed Software that Licensee receives
108separately as part of the Licensed Software, Licensee agrees to be bound by any
109additional license terms that accompany such Updates, if any. If Licensee does
110not agree to the additional license terms that accompany such Updates, Licensee
111should not install, copy, or otherwise use such Updates. Upon Licensee's
112acceptance of the terms and conditions of this Agreement, The Qt Company grants
113Licensee the right to use the Licensed Software in the manner provided below.
114
1155. LICENSES 5.1 Using, Modifying and Copying The Qt Company grants to Licensee a
116non-exclusive, non-transferable, perpetual license to use, modify and copy the
117Licensed Software for Designated Users specified in the License Certificate for
118the sole purposes of: (i) designing, developing, and testing Application(s);
119(ii) modifying the Licensed Software as limited by section 8 below; and (iii)
120compiling the Licensed Software and/or Modified Software source code into object
121code. Licensee may install copies of the Licensed Software on an unlimited
122number of computers provided that only the Designated Users use the Licensed
123Software. Licensee may at any time designate another Designated User to replace
124a then-current Designated User by notifying The Qt Company, provided that a) the
125then-current Designated User has not been designated as a replacement during the
126last six (6) months; and b) there is no more than the specified number of
127Designated Users at any given time.
128
1295.2 Right for Redistribution a) License for creating Applications For the
130purpose of creating Applications The Qt Company grants Licensee a non-exclusive,
131royalty-free right to reproduce and distribute the object code form of
132Redistributables (listed in Appendix 1, Section 1) for execution on the
133specified Deployment Platforms, excluding the Joint Hardware and Software
134Distribution. Copies of Redistributables may only be distributed with and for
135the sole purpose of executing Applications permitted under this Agreement that
136Licensee has created using the Licensed Software. Under no circumstances may any
137copies of Redistributables be distributed separately. This Agreement does not
138give Licensee any rights to distribute any of the parts of the Licensed Software
139listed in Appendix 1, Section 2, neither as a whole nor as parts or snippets of
140code. Licensee may not distribute, transfer, assign or otherwise dispose of
141Applications and/or Redistributables, in binary/compiled form, or in any other
142form, if such action is part of a Joint Software and Hardware Distribution,
143except as provided in Section 5.2b) below. b) License for creating Devices For
144the purpose of creating Devices The Qt Company grants to Licensee a
145non-exclusive, non-transferable license to (a) install copies of the compiled
146Licensed Software (in object code form only) in Devices and/or bundle or
147integrate copies of the Licensed Software (in object code form only) into or
148with Devices and other services; (b) distribute Licensed Software (in object
149code form only) to one or more tiers of distributors as incorporated or
150integrated in Devices; and (c) sublicense the Licensed Software (in object code
151form only), as incorporated or integrated in Devices, to end users under
152Licensee's standard terms and conditions, which must meet the requirements set
153out in Appendix 2 (collectively, the "Distribution License"). This Distribution
154License does not entitle Licensee to receive, or grant Licensee any rights with
155respect to any source code. Should any third party that has received a product,
156software and/or a sublicense from Licensee in accordance with the provisions
157above, wish to use the product and sublicensed software in a manner not
158warranted in Appendix 2, such third party must request a licensing agreement for
159this purpose directly from The Qt Company. Licensee may also reproduce and
160distribute the Licensed Software (in object code form only) under the
161Distribution License independent of the Device, (i.e. the Licensed Software may
162be reproduced and distributed by Licensee to others as a stand-alone or
163independent product or for use independent of the Device). The Distribution
164License provided under this Section 5.2b) is conditional, subject to Licensee´s
165full compliance of Section 14 of this Agreement. All reproduction and
166distribution of the Licensed Software or any portion thereof requires the
167payment of License Fees from Licensee to The Qt Company. The licenses granted in
168this Section by The Qt Company to Licensee are subject to Licensee's compliance
169with Section 5.3 of this Agreement. c) For the avoidance of doubt, should the
170Licensee wish to distribute Licensed Software as a part of software development
171kit (SDK) for the purpose of developing Applications by Licensee´s customers
172for Licensee´s products, such distribution is subject to a separate Qt SDK
173distribution license agreement to be concluded with The Qt Company. 5.3 Further
174Requirements It is expressly acknowledged and understood by Licensee, that
175Licensee is strictly prohibited from using or licensing Licensed Software for
176creation of mobile phones or tablet computers targeted for consumer end users.
177The aforementioned shall not prohibit Licensee from using Licensed Software for
178the purpose of creating Applications for any devices, including mobile phones
179and tablet computers. Notwithstanding anything contrary to this Agreement, it is
180expressly acknowledged and understood by Licensee, that Nokia shall hereby be
181named as a third party beneficiary under this Agreement with respect to this
182Section 5.3. Therefore, Nokia shall have the same rights as The Qt Company under
183this Agreement with respect to this Section 5.3, and shall be entitled to
184exercise such rights independent from The Qt Company. The licenses granted in
185this Section 5 by The Qt Company to Licensee are subject to Licensee's
186compliance with Section 8 of this Agreement.
187
1886. VERIFICATION The Qt Company or a certified auditor on The Qt Company's
189behalf, may, upon its reasonable request and at its expense, audit Licensee with
190respect to the use of the Licensed Software. Such audit may be conducted by
191mail, electronic means or through an in-person visit to Licensee's place of
192business. Any such in-person audit shall be conducted during regular business
193hours at Licensee's facilities and shall not unreasonably interfere with
194Licensee's business activities. The Qt Company will not remove, copy, or
195redistribute any electronic material during the course of an audit. If an audit
196reveals that Licensee is using the Licensed Software in a way that is in
197material violation of the terms of the Agreement, then Licensee shall pay The Qt
198Company's reasonable costs of conducting the audit. In the case of a material
199violation, Licensee agrees to pay The Qt Company any amounts owing that are
200attributable to the unauthorized use. Alternatively, The Qt Company reserves the
201right, at The Qt Company's sole option, to terminate the licenses for the
202Licensed Software.
203
2047. THIRD PARTY SOFTWARE The Licensed Software may provide links to third party
205libraries or code (collectively "Third Party Software") to implement various
206functions. Third Party Software does not comprise part of the Licensed Software.
207In some cases, access to Third Party Software may be included along with the
208Licensed Software delivery as a convenience for development and testing only.
209Such source code and libraries may be listed in the ".../src/3rdparty" source
210tree delivered with the Licensed Software or documented in the Licensed Software
211where the Third Party Software is used, as may be amended from time to time, do
212not comprise the Licensed Software. Licensee acknowledges (i) that some part of
213Third Party Software may require additional licensing of copyright and patents
214from the owners of such, and (ii) that distribution of any of the Licensed
215Software referencing any portion of a Third Party Software may require
216appropriate licensing from such third parties.
217
2188. CONDITIONS FOR CREATING APPLICATIONS The licenses granted in this Agreement
219for Licensee to create, modify and distribute Applications is subject to all of
220the following conditions: (i) all copies of the Applications Licensee creates
221must bear a valid copyright notice either Licensee's own or the copyright notice
222that appears on the Licensed Software; (ii) Licensee may not remove or alter any
223copyright, trademark or other proprietary rights notice contained in any portion
224of the Licensed Software including but not limited to the About Boxes; (iii)
225Licensee will indemnify and hold The Qt Company, its Affiliates, contractors,
226and its suppliers, harmless from and against any claims or liabilities arising
227out of the use, reproduction or distribution of Applications; (iv) Applications
228must be developed using a licensed, registered copy of the Licensed Software;
229(v) Applications must add primary and substantial functionality to the Licensed
230Software; (vi) Applications may not pass on functionality which in any way makes
231it possible for others to create software with the Licensed Software; however
232Licensee may use the Licensed Software's scripting and QML ("Qt Quick")
233functionality solely in order to enable scripting, themes and styles that
234augment the functionality and appearance of the Application(s) without adding
235primary and substantial functionality to the Application(s); (vii) Licensee may
236create Modified Software that breaks the source or binary compatibility with the
237Licensed Software. This includes, but is not limited to, changing the
238application programming interfaces ("API") by adding, changing or deleting any
239variable, method, or class signature in the Licensed Software, the inter-process
240QCop specification, and/or any inter-process protocols, services or standards in
241the Licensed Software libraries. To the extent that Licensee breaks source or
242binary compatibility with the Licensed Software, Licensee acknowledges that The
243Qt Company's ability to provide Support may be prevented or limited and
244Licensee's ability to make use of Updates may be restricted; (viii) Applications
245may not compete with the Licensed Software; (ix) Licensee may not use The Qt
246Company's or any of its suppliers' names, logos, or trademarks to market
247Applications, except to state that Licensee's Application(s) was developed using
248the Licensed Software; and (x) each Designated User creating the Application(s)
249needs to have a separate license for the Licensed Software. NOTE: If Licensee,
250or another third party, has, at any time, developed all (or any portions of) the
251Application(s) using an open source version of Qt licensed under the terms of
252the GNU Lesser General Public License, version 2.1 or later ("LGPL") or the GNU
253General Public License version 2.0 or later ("GPL"), Licensee may not combine
254such development work with the Licensed Software without an express written
255permission from The Qt Company, and must license such Application(s) (or any
256portions 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
258to above are located at http://www.gnu.org/licenses/old-licenses/lgpl- 2.1.html,
259https://www.gnu.org/licenses/lgpl.html,
260http://www.fsf.org/licensing/licenses/info/GPLv2.html, and
261http://www.gnu.org/copyleft/gpl.html. 9. PRE-RELEASE CODE The Licensed Software
262may contain pre-release code and functionality marked or otherwise stated as
263"Technology Preview", "Alpha", "Beta" or similar. Such pre-release code may be
264present in order to provide experimental support for new platforms or
265preliminary version of new functionality. The pre-release code is not at the
266level of performance and compatibility of a final, generally available, product
267offering. The pre- release parts of the Licensed Software may not operate
268correctly and may be substantially modified prior to the first commercial
269product release, if any. The Qt Company is under no obligation to make
270pre-release code commercially available, or provide any Support or Updates
271relating thereto. The pre-release code must not be used for commercial purposes
272or in a live operating environment where it may be relied upon to perform in the
273same manner as a commercially released product or with data that has not been
274sufficiently backed up.
275
27610. LIMITED WARRANTY AND WARRANTY DISCLAIMER The Qt Company hereby represents
277and warrants with respect to the Licensed Software that it has the power and
278authority to grant the rights and licenses granted to Licensee under this
279Agreement. Except as set forth above, the Licensed Software is licensed to
280Licensee "as is". TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE QT
281COMPANY ON BEHALF OF ITSELF AND ITS LICENSORS, SUPPLIERS AND AFFILIATES,
282DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
283IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE
284AND NON-INFRINGEMENT WITH REGARD TO THE LICENSED SOFTWARE. THE QT COMPANY DOES
285NOT WARRANT THAT THE LICENSED SOFTWARE WILL SATISFY LICENSEE'S REQUIREMENTS OR
286THAT IT IS WITHOUT DEFECT OR ERROR OR THAT THE OPERATION THEREOF WILL BE
287UNINTERRUPTED. ALL USE OF AND RELIANCE ON THE LICENSED SOFTWARE IS AT THE SOLE
288RISK OF AND RESPONSIBILITY OF LICENSEE. 11. LIMITATION OF LIABILITY AND OTHER
289COVENANTS 11.1 Risk Allocation If, The Qt Company's warranty disclaimer
290notwithstanding, The Qt Company is held to be liable to Licensee whether in
291contract, tort, or any other legal theory, based on the Licensed Software, The
292Qt Company's entire liability to Licensee and Licensee's exclusive remedy shall
293be, at The Qt Company's option, either (a) return of the price Licensee paid for
294the Licensed Software, or (b) repair or replacement of the Licensed Software,
295provided Licensee returns all copies of the Licensed Software to The Qt Company
296as originally delivered to Licensee. EXCEPT FOR INJURY TO PERSONS OR IN CASES OF
297INTENTIONAL MISCONDUCT AND IN CASE OF THE LICENSEE WITH RESPECT TO AMOUNTS
298PAYABLE UNDER SECTION 14 OR LICENSEE'S MATERIAL BREACH OF THIS AGREEMENT AND TO
299THE EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL EITHER PARTY BE LIABLE
300TO THE OTHER PARTY IN CONTRACT, TORT OR OTHERWISE, WHATEVER THE CAUSE THEREOF,
301FOR ANY LOSS OF PROFIT, LOSS OF DATA, LOSS OF BUSINESS OR GOODWILL OR ANY
302INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE COST, DAMAGES OR
303EXPENSE OF ANY KIND, HOWSOEVER ARISING UNDER OR IN CONNECTION WITH THIS
304AGREEMENT. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, LIABILITY FOR SUCH
305DAMAGE SHALL BE EXCLUDED, EVEN IF THE EXCLUSIVE REMEDIES PROVIDED FOR IN THIS
306AGREEMENT FAIL OF THEIR ESSENTIAL PURPOSE. EXCEPT FOR INJURY TO PERSONS OR IN
307CASES OF INTENTIONAL MISCONDUCT AND IN CASE OF THE LICENSEE WITH RESPECT TO
308AMOUNTS PAYABLE UNDER SECTION 14 OR LICENSEE'S MATERIAL BREACH OF THIS AGREEMENT
309AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL EITHER PARTY'S
310TOTAL AGGREGATE LIABILITY UNDER THIS AGREEMENT EXCEED THE AGGREGATE LICENSE FEES
311RECEIVED FROM LICENSEE FOR THE LICENSED SOFTWARE DURING THE PERIOD OF TWELVE
312(12) MONTHS IMMEDIATELY PRECEDING THE EVENT RESULTING IN SUCH LIABILITY. THE
313PROVISIONS OF THIS SECTION 11 ALLOCATE THE RISKS UNDER THIS AGREEMENT BETWEEN
314THE QT COMPANY AND LICENSEE AND THE PARTIES HAVE RELIED UPON THE LIMITATIONS SET
315FORTH HEREIN IN DETERMINING WHETHER TO ENTER INTO THIS AGREEMENT 11.2 No Third
316Party Representations, Warranties or Transfers Licensee shall make no
317representations or warranties concerning the Licensed Software on behalf of The
318Qt Company, nor shall Licensee sell, transfer, publish, disclose, display or
319otherwise make available the Licensed Software, or copies thereof, to any third
320party except as specifically set forth herein or in another written agreement
321with The Qt Company. Any representation or warranty Licensee makes or purports
322to make on The Qt Company's behalf shall be void as to The Qt Company. 11.3
323Licensee´s Indemnification Licensee shall indemnify and hold harmless The Qt
324Company and its officers, directors, employees, representative, licensors, and
325suppliers from and against any claim, injury, judgment, settlement, loss or
326expense, including attorneys' fees, arising as a consequence of: (a) Licensee's
327breach of its warranties or any other provisions of this Agreement, including,
328but not limited to, (i) the failure of Licensee to comply with the provisions of
329this Section 11, (ii) any misrepresentations of Licensee in connection with The
330Qt Company or the Licensed Software, and (iii) any other wrongful conduct of
331Licensee, its employees, representatives, agents, or (b) the Device. 12.
332SUPPORT, UPDATES AND ONLINE SERVICES Licensee will be eligible to receive
333Support and Updates and to use the Online Services during the Initial Term, in
334accordance with The Qt Company's then current policies and procedures, if any.
335Such policies and procedures may be changed from time to time. Following the
336Initial Term, The Qt Company shall no longer make the Licensed Software,
337Support, Updates or Online Services available to Licensee unless Licensee
338purchases additional Support, Updates and Online Services according to this
339Section 12 below. Licensee shall be responsible for providing service and
340support to Licensee's Customers with respect to the Licensed Software. Licensee,
341as appropriate, shall inform Licensee's Customers that all requests for support
342or service are to be made to Licensee, and not to The Qt Company. Updates shall
343be considered to be Licensed Software and governed by this Agreement as such,
344unless The Qt Company designates that a different agreement shall govern.
345Licensee shall be responsible for distributing patches and fixes to Customers if
346and as The Qt Company reasonable requests. Licensee may purchase additional
347Support, Updates and Online Services following the Initial Term or the currently
348ongoing Renewal Term subject to The Qt Company's terms and conditions applicable
349at the time of renewal. 13. CONFIDENTIALITY Each party acknowledges that during
350the Initial Term of this Agreement it shall have access to information about the
351other party's business, business methods, business plans, customers, business
352relations, technology, and other information, including the terms of this
353Agreement, that is confidential and of great value to the other party, and the
354value of which would be significantly reduced if disclosed to third parties
355("Confidential Information"). Accordingly, when a party (the "Receiving Party")
356receives Confidential Information from another party (the "Disclosing Party"),
357the Receiving Party shall, and shall obligate its employees and agents and
358employees and agents of its Affiliates to: (i) maintain the Confidential
359Information in strict confidence; (ii) not disclose the Confidential Information
360to a third party without the Disclosing Party's prior written approval; and
361(iii) not, directly or indirectly, use the Confidential Information for any
362purpose other than for exercising its rights and fulfilling its responsibilities
363pursuant to this Agreement. Each party shall take reasonable measures to protect
364the Confidential Information of the other party, which measures shall not be
365less than the measures taken by such party to protect its own confidential and
366proprietary information. "Confidential Information" shall not include
367information that (a) is or becomes generally known to the public through no act
368or omission of the Receiving Party; (b) was in the Receiving Party's lawful
369possession prior to the disclosure hereunder and was not subject to limitations
370on disclosure or use; (c) is developed by employees of the Receiving Party or
371other persons working for the Receiving Party who have not had access to the
372Confidential Information of the Disclosing Party, as proven by the written
373records of the Receiving Party or by persons who have not had access to the
374Confidential Information of the Disclosing Party as proven by the written
375records of the Receiving Party; (d) is lawfully disclosed to the Receiving Party
376without restrictions, by a third party not under an obligation of
377confidentiality; or (e) the Receiving Party is legally compelled to disclose the
378information, in which case the Receiving Party shall assert the privileged and
379confidential nature of the information and cooperate fully with the Disclosing
380Party to protect against and prevent disclosure of any Confidential Information
381and to limit the scope of disclosure and the dissemination of disclosed
382Confidential Information by all legally available means. The obligations of the
383Receiving Party under this Section shall continue during the Initial Term and
384for a period of five (5) years after expiration or termination of this
385Agreement. To the extent that the terms of the Non-Disclosure Agreement between
386The Qt Company and Licensee conflict with the terms of this Section 13, this
387Section 13 shall be controlling over the terms of the Non-Disclosure Agreement.
388
38914 FEES, ORDERS, DELIVERY AND PAYMENT 14.1 DISTRIBUTION LICENSE FEES The
390Distribution License provided under Section 5.2b) is conditional on the Licensee
391purchasing the needed amount of Distribution Licenses separately from The Qt
392Company before distributing Devices to Customers. Distribution licenses are sold
393in License Packs subject to a fee. The License Fee for a Distribution License
394purchased by Licensee cannot be refunded or claimed as a credit, even on the
395ground that it is not distributed, by sale or otherwise, from Licensee to
396Customers or for any other reason. Licensee will have an account of Distribution
397Licenses that will be applied to each copy of Licensed Software that is bundled
398or integrated with any of the Devices or that is distributed to Customers.
399Licensee may bundle, integrate and distribute copies of the Licensed Software so
400long as Licensee has Distribution Licenses paid for, but not yet used. Each time
401Licensee bundles, integrates or distributes a copy of Licensed Software, then
402one Distribution License is used, and Licensee's account of available
403Distribution Licenses is decreased accordingly. 14.2 DISTRIBUTION LICENSES
404ORDERED Licensee shall submit all purchase orders for Distribution Licenses to
405The Qt Company either by fax or mail or any other method acceptable to The Qt
406Company (each such order is referred to herein as a "Purchase Order"). If The Qt
407Company wishes to accept the Purchase Order, The Qt Company may then confirm and
408return the Purchase Order to Licensee, whereupon the Purchase Order shall become
409binding between the Parties. In the event of conflict or inconsistency between
410this Agreement and a Purchase Order, this Agreement shall control. 14.3 PAYMENT
411TERMS The Qt Company will submit an invoice to Licensee any time after The Qt
412Company receives a subsequent purchase order(s) from Licensee, and delivers the
413goods or services described in the Agreement or purchase order to Licensee.
414Licensee's payments for the Licensed Software and any other charges under this
415Agreement shall be paid by Licensee no later than thirty (30) days from the time
416The Qt Company mails its invoices to Licensee. A late payment charge of the
417lower of (a) one percent per month; or (b) the highest interest rate allowed by
418applicable law, shall be charged on unpaid balances that remain past due for
419more than thirty (30) days. The Qt Company shall have the right to suspend,
420terminate or withhold Distribution Licenses, License Certificates, deliveries
421and/or services should Licensee fail to make payment in a timely fashion.
422Licensee shall at all times maintain accurate and up-to-date written records of
423the number of copies of the Licensed Software that Licensee installs in each
424Device(s). 14.4 TAXES All amounts payable are gross amounts but exclusive of any
425value added tax, use tax, sales tax or similar tax. Licensee shall be entitled
426to withhold from payments any applicable withholding taxes and comply with all
427applicable tax and employment legislation. Each party shall pay all taxes
428(including, but not limited to, taxes based upon its income) or levies imposed
429on it under applicable laws, regulations and tax treaties as a result of this
430Agreement and any payments made hereunder (including those required to be
431withheld or deducted from payments). Each party shall furnish evidence of such
432paid taxes as is sufficient to enable the other party to obtain any credits
433available to it, including original withholding tax certificates. 15
434RECORD-KEEPING AND REPORTING OBLIGATIONS; AUDIT RIGHTS 15.1 LICENSEE'S
435RECORD-KEEPING Licensee shall at all times maintain accurate and up-to-date
436written records of Licensee's activities related to the Licensed Software and
437Distribution Licenses, including copying and distribution. The records shall be
438adequate to determine Licensee's compliance with the provisions of this
439Agreement and to demonstrate the number of Distribution Licenses of the Licensed
440Software distributed by Licensee. The records shall conform to good accounting
441practices commonly accepted in the industry and consistently applied. Licensee
442shall, within thirty (30) days from the end of each calendar quarter, deliver to
443The Qt Company a report detailing the number of copies of Licensed Software
444distributed by Licensee during that calendar quarter, and detailing also the
445number of undistributed copies of Licensed Software made by Licensee and
446remaining in its account (i.e., undistributed copies for which Distribution
447Licenses have been or need to be obtained from The Qt Company). Such report
448shall contain such other information as The Qt Company shall require from time
449to time. 15.2. THE QT COMPANY'S INSPECTION RIGHTS The Qt Company or an
450independent auditor on The Qt Company's behalf, may, upon at least five (5)
451business days' prior written notice and at its expense, audit Licensee with
452respect to the use of the Licensed, but not more frequently than once during
453each 6-month period. Such audit may be conducted by mail, electronic means or
454through an in-person visit to Licensee's place of business. Any such in-person
455audit shall be conducted during regular business hours at Licensee's facilities
456and shall not unreasonably interfere with Licensee's business activities. The Qt
457Company or the independent auditor shall be entitled to inspect Licensee's books
458and records that likely to contain information bearing on Licensee's compliance
459with this Agreement or the payments due to The Qt Company under this Agreement,
460including, but not limited to: assembly logs, sales records, distribution
461records ("Licensee's Records") The Qt Company shall not remove, copy, or
462redistribute any electronic material during the course of an audit. If an audit
463reveals that Licensee is using the Licensed Software in a way that is in
464material violation of the terms of the Agreement, then Licensee shall pay The Qt
465Company's reasonable costs of conducting the audit. In the case of a material
466violation, Licensee agrees to pay The Qt Company any amounts owing that are
467attributable to the unauthorized use. In the alternative, The Qt Company
468reserves the right, at The Qt Company's sole option, to terminate the licenses
469for the Licensed Software. 16. GENERAL PROVISIONS 16.1 Marketing The Qt Company
470may include Licensee's company name and logo in a publicly available list of The
471Qt Company customers and in its public communications.
472
47316.2 No Assignment Licensee shall not be entitled to assign or transfer all or
474any of its rights, benefits and obligations under this Agreement without the
475prior written consent of The Qt Company, which shall not be unreasonably
476withheld. The Qt Company shall be entitled to assign or transfer any of its
477rights, benefits or obligations under this Agreement on an unrestricted basis.
478
47916.3 Termination 16.3.1 Termination by The Qt Company The Qt Company shall have
480the right to terminate this Agreement upon thirty (30) days prior written notice
481if (i) the Licensee is in breach of any material obligation under this Agreement
482and 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
484expires; or (iii) Licensee or any of its Affiliates bring a suit before any
485court or administrative agency or otherwise assert a claim for infringement of
486Intellectual Property Rights owned or licensable by Licensee or its Affiliates
487against (a) The Qt Company or any of its Affiliates; or (b) any other recipient
488of a license from The Qt Company with respect to the Licensed Software; or (c)
489any contractor, customer or distributor of a Party listed above in a or b; where
490such suit or claim relates to the use of the Licensed Software. 16.3.2 Mutual
491right to Terminate Either party shall have the right to terminate this Agreement
492immediately upon written notice in the event that the other party becomes
493insolvent, files for any form of bankruptcy, makes any assignment for the
494benefit of creditors, has a receiver, administrative receiver or officer
495appointed over the whole or a substantial part of its assets, ceases to conduct
496business, or an act equivalent to any of the above occurs under the laws of the
497jurisdiction of the other party. 16.3.3 Parties´ Rights and Duties upon
498Termination 16.3.3.1 Licensed Software which has not been subject to
499Distribution Upon termination of the Licenses, Licensee shall cease using the
500Licensed Software and return to The Qt Company all copies of Licensed Software
501that were supplied by The Qt Company. All other copies of Licensed Software in
502the possession or control of Licensee must be erased or destroyed. An officer of
503Licensee must promptly deliver to The Qt Company a written confirmation that
504this has occurred. 16.3.3.2 Licensed Software which has been distributed in
505connection with Licensed Products Upon termination or expiration of this
506Agreement, the following rights granted hereunder, shall terminate, as follows:
507a) Licensee shall, within: (i) thirty (30) days if termination is based on
508Sections 16.3.1, 16.3.2, 15.2; or (ii) within six (6) months of the termination
509date, if termination is based on any other reason, discontinue all copying,
510embedding, production and distribution of any copies of the Licensed, and will
511cause any third parties who obtained from it the right to manufacture or
512distribution of copies of the Licensed Software to do likewise. b) Any
513termination of this Agreement shall not affect any rights of an end-user to use
514the Licensed Software. c) Licensee shall cease using the Licensed Software as
515provided for above, including without limitation all source code, master
516diskettes and tapes, user manuals for the Licensed Software and Documentation,
517and deliver such to The Qt Company and/or permanently destroy all copies of the
518Licensed Software and all materials relating to the Licensed Software, except
519that Licensee may retain and exploit only such copies of the Licensed Software
520as it may reasonably require in providing continued support to its end-user
521customers, and will certify that that is the case upon the request of the The Qt
522Company. 16.4 Surviving Sections Any terms and conditions that by their nature
523or otherwise reasonably should survive a cancellation or termination of this
524Agreement shall also be deemed to survive. The following Sections and
525Subsections of this Agreement shall survive its termination: 3, 10, 11, 13, 15,
52616.3, 16.9, but none of the licenses or rights granted to Licensee shall
527survive. Any obligation to make payment (including, without limitation, any
528obligation to pay License Fees, interest, and taxes) shall also survive
529termination of this Agreement and be paid in accordance with this Agreement.
53016.5 Entire Agreement This Agreement constitutes the complete agreement between
531the parties and supersedes all prior or contemporaneous discussions,
532representations, and proposals, written or oral, with respect to the subject
533matters discussed herein, with the exception of the non-disclosure agreement
534executed by the parties in connection with this Agreement ("Non-Disclosure
535Agreement"), if any, shall be subject to Section 13. No modification of this
536Agreement shall be effective unless contained in a writing executed by an
537authorized representative of each party. No term or condition contained in
538Licensee's purchase order shall apply unless expressly accepted by The Qt
539Company in writing. If any provision of the Agreement is found void or
540unenforceable, the remainder shall remain valid and enforceable according to its
541terms. If any remedy provided is determined to have failed for its essential
542purpose, all limitations of liability and exclusions of damages set forth in
543this Agreement shall remain in effect.
544
54516.6 Force Majeure Neither party shall be liable to the other for any delay or
546non-performance of its obligations hereunder other than the obligation of paying
547the license fees in the event and to the extent that such delay or non-
548performance is due to an event of Force Majeure (as defined below). If any event
549of Force Majeure results in a delay or non-performance of a party for a period
550of three (3) months or longer, then either party shall have the right to
551terminate this Agreement with immediate effect without any liability (except for
552the obligations of payment arising prior to the event of Force Majeure) towards
553the other party. A "Force Majeure" event shall mean an act of God, terrorist
554attack or other catastrophic event of nature that prevents either party for
555fulfilling its obligations under this Agreement.
556
55716.7 Notices Any notice given by one party to the other shall be deemed properly
558given and deemed received if specifically acknowledged by the receiving party in
559writing or when successfully delivered to the recipient by hand, fax, or special
560courier during normal business hours on a business day to the addresses
561specified below. Each communication and document made or delivered by one party
562to the other party pursuant to this Agreement shall be in the English language
563or accompanied by a translation thereof. Notices to The Qt Company shall be
564given to: The Qt Company Ltd Attn: Legal Valimotie 21 FI-00380 Helsinki Finland
565Fax: +358 10 313 3700 16.8 Export Control Licensee acknowledges that the
566Licensed Software may be subject to export control restrictions of various
567countries. Licensee shall fully comply with all applicable export license
568restrictions and requirements as well as with all laws and regulations relating
569to the importation of the Licensed Software and/or Modified Software and/or
570Applications and shall procure all necessary governmental authorizations,
571including without limitation, all necessary licenses, approvals, permissions or
572consents, where necessary for the re- exportation of the Licensed Software,
573Modified Software or Applications.
574
57516.9 Governing Law and Legal Venue This Agreement shall be construed and
576interpreted in accordance with the laws of Finland, excluding its choice of law
577provisions. Any disputes, controversy or claim arising out of or relating to
578this Agreement, or the breach, termination or validity thereof shall be shall be
579finally settled by arbitration in accordance with the Arbitration Rules of the
580Central Chamber of Commerce of Finland. The arbitration tribunal shall consist
581of one (1), or if either Party so requires, of three (3), arbitrators. The award
582shall be final and binding and enforceable in any court of competent
583jurisdiction. The arbitration shall be held in Helsinki, Finland and the process
584shall be conducted in the English language.
585
58616.10 No Implied License There are no implied licenses or other implied rights
587granted under this Agreement, and all rights, save for those expressly granted
588hereunder, shall remain with The Qt Company and its licensors. In addition, no
589licenses or immunities are granted to the combination of the Licensed Software
590and/or Modified Software, as applicable, with any other software or hardware not
591delivered by The Qt Company under this Agreement.
592
593Appendix 1: Licensed Software
594
5951. Parts of the Licensed Software that are permitted for distribution
596("Redistributables") - The Licensed Software's essential and add-on libraries as
597listed in the License Certificate in object code form - The Licensed Software's
598configuration tool ("qtconfig") - The Licensed Software's help tool in object
599code/executable form ("Qt Assistant") - The Licensed Software's
600internationalization 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
603plug-ins which are delivered to Licensee only in object code - The Licensed
604Software's QML ("Qt Quick") launcher tool ("qmlscene" and "qmlviewer") in object
605code/executable form - The Licensed Software's installer framework
606
6072. Parts of the Licensed Software that are not permitted for distribution
608without a separate SDK distribution license agreement include, but are not
609limited to - The Licensed Software's source code and header files - The Licensed
610Software's documentation - The Licensed Software's documentation generation tool
611("qdoc") - The Licensed Software's tool for writing makefiles ("qmake") - The
612Licensed Software's Meta Object Compiler ("moc") - The Licensed Software's User
613Interface Compiler ("uic" or in the case of Qt Jambi: "juic") - The Licensed
614Software's Resource Compiler ("rcc") - The Licensed Software's generator (only
615in the case of Qt Jambi if applicable) - The Licensed Software's parts of the
616IDE tool ("Qt Creator") that are delivered to Licensee only in object code - The
617Licensed Software's Emulator - Build scripts, recipes and other material for
618creating the configuration of Licensed Software and/or 3rd party components,
619including the reference operating system configuration delivered in conjunction
620with the Licensed Software
621
622Appendix 2: Distribution Licensing
623
624I - Definitions The terms used in this Appendix 3 shall have the same meaning as
625defined in the main part of the Agreement. "Sublicensed Software" shall mean the
626Licensed Software, which is sublicensed to end-users (Sublicensees) in
627accordance with Section 5.2 of the Agreement. "Sublicensee" shall mean the
628end-user to which the Sublicensed Software is licensed. "Sublicense" shall mean
629the license given by Licensee to Sublicensee in accordance with Section 5.2 of
630the Agreement and this Appendix 3. II - Sublicensing The sublicensing referred
631to in Section 5.2 of the Agreement must satisfy the criteria set forth under
632sections 1 - 11 below: 1. Source code. Only the object code of the Sublicensed
633Software may be sublicensed. Unless authorized in a separate agreement with The
634Qt Company, the source code may not be sublicensed. 2. End-User Documentation.
635Sublicensee may be given the right to use the end-user Documentation, provided
636that such rights are limited to use in connection with the Sublicensed Software.
637Whenever the context reasonably permits, any reference in this Appendix to
638Sublicensed Software shall also apply to the end-user Documentation. 3.
639Limitations on Numbers of Computers and Processors. The Sublicensee's right to
640use the Sublicensed Software must be limited so that each Sublicense can only be
641used on a single computer or processor within the possession and control of the
642Sublicensee. Each Sublicense may not withstanding the foregoing also cover
643additional computers or processors, but in such case, each additional computer
644or processor covered by the Sublicense shall require Licensee's purchase of one
645additional Distribution license from The Qt Company. 4. Limits on Use,
646Distribution and Derivative Works. The Sublicense and Sublicensee's rights must
647be limited to Sublicensee's internal use purposes only and must not include any
648license, right or authorization to distribute or disclose any copy or portion of
649the Sublicensed Software to any other person. Sublicensee must not be given the
650right to modify or create derivative works based on the Sublicensed Software,
651and it must be stated explicitly in the Sublicense that such modification or
652creation is prohibited.
653
6545. Copies. Sublicensee may be given the right to make copies of the Sublicensed
655Software, provided that any such copy: (a) is created as an essential step in
656the 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
658Software. Sublicensee may also be given the right to make copies of Sublicensed
659Software to the extent reasonably needed to exercise rights under the
660Sublicense. Sublicensee must be obliged under the Sublicense to make sure that
661all The Qt Company trademark, copyright and intellectual property notices are
662faithfully reproduced and included on copies made by Sublicensee. Sublicensee
663may be given the right to make copies of the Documentation, but only as
664reasonably needed to facilitate the use of Sublicensed Software. Sublicensee may
665not be given the right to make any other copies of Licensed Software or
666Documentation unless and except as permitted by The Qt Company in a separate,
667written agreement. 6. Other Versions and Updates. If Licensee is entitled to
668Updates in accordance with Section 12of the Agreement, such Updates may also be
669sublicensed, subject to the terms and conditions found in this Appendix 3. 7.
670Protection of Sublicensed Software. Except as expressly permitted in this
671Appendix 3 (or in another written agreement with The Qt Company), Sublicensee
672must not be given any rights to modify or create derivative works based on
673Sublicensed Software, or reproduce Sublicensed Software, or distribute any
674copies of Sublicensed Software, or disclose any Sublicensed Software to any
675third party, or decompile, disassemble or otherwise reverse engineer Sublicensed
676Software, or use any Sublicensed Software or information learned therefrom.
677Sublicensee must as part of the contractual terms in the Sublicense acknowledge
678that The Qt Company and its licensors own the copyrights and other intellectual
679property in and to the Sublicensed Software. 8. Disclaimers Of Warranties.
680Licensee may not give any warranties regarding the Sublicensed Software to
681Sublicensee on behalf of The Qt Company. 9. Responsibility of Sublicensee.
682Sublicensee shall, as part of the Sublicense, be made responsible for decisions
683made and actions taken based on Sublicensed Software. Sublicensee shall as part
684of the contractual terms of the Sublicense be made aware that the Sublicensed
685Software is not designed, intended or licensed for use in or with systems,
686devices or products intended for surgical implant into the body or other
687applications intended to support or sustain life or for any aviation or nuclear
688reactor application or any other application in which the software or its
689failure, malfunction or inadequacy could directly or indirectly cause or
690contribute to personal injury or death or significant property damage. It shall
691further be stated in the Sublicense that it is Sublicensee's responsibility to
692ascertain the suitability of Sublicensed Software for any situation or
693application. It shall also be stated that the Sublicense defines a mutually
694agreed-upon allocation of risk and the Sublicense fees reflect such allocation
695of risk. 10. Termination. Licensee shall, as part of the terms of the
696Sublicense, be entitled to terminate the Sublicense granted to Sublicensee if
697Sublicensee breaches terms and conditions set to comply with this Appendix 3.
698The Qt Company may instruct Licensee to terminate the Sublicense without undue
699delay if termination is warranted in accordance with the foregoing. Upon
700termination of the Sublicense, Sublicensee shall be obliged to immediately cease
701all use of Sublicensed Software and to destroy all copies of Sublicensed
702Software within the possession or control of Sublicensee. 11. Mandatory law. The
703requirements above shall not apply to the extent they contravene mandatory
704provisions of the law governing the Sublicense, but in such case, The Qt Company
705shall 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
5DESCRIPTION = "GPU driver and apps for imx6"
6SECTION = "libs"
7LICENSE = "Proprietary"
8LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=19f5925343fa3da65596eeaa4ddb5fd3"
9DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamage libxext libxfixes mesa', '', d)}"
10PROVIDES += "virtual/wayland-egl virtual/libgl virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 virtual/libopenvg"
11
12PE = "1"
13
14inherit fsl-eula-unpack
15
16SRC_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
30PACKAGES =+ "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
49python __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
60USE_X11 = "${@base_contains("DISTRO_FEATURES", "x11", "yes", "no", d)}"
61USE_DFB = "${@base_contains("DISTRO_FEATURES", "directfb", "yes", "no", d)}"
62USE_WL = "${@base_contains("DISTRO_FEATURES", "wayland", "yes", "no", d)}"
63
64# Inhibit warnings about files being stripped.
65INHIBIT_PACKAGE_STRIP = "1"
66INHIBIT_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.
70REALSOLIBS := "${SOLIBS}"
71SOLIBS = "${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.
78python __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
102do_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
171S = "${WORKDIR}/${PN}-${PV}"
172
173FILES_${PN} += "/opt"
174FILES_${PN}-dev = "${includedir}"
175FILES_${PN}-dbg = "${libdir}/.debug /opt/viv_samples/*/*/.debug"
176
177FILES_libclc-mx6 = "${libdir}/libCLC${SOLIBS}"
178FILES_libclc-mx6-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}"
179FILES_libclc-mx6-dbg = "${libdir}/.debug/libCLC${SOLIBS}"
180
181# libEGL.so is used by some demo apps from Freescale
182INSANE_SKIP_libegl-mx6 += "dev-so"
183FILES_libegl-mx6 = "${libdir}/libEGL${REALSOLIBS} ${libdir}/libEGL${SOLIBSDEV} "
184FILES_libegl-mx6-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc"
185FILES_libegl-mx6-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
186
187FILES_libgal-mx6 = "${libdir}/libGAL${SOLIBS}"
188FILES_libgal-mx6-dev = "${libdir}/libGAL${SOLIBSDEV}"
189FILES_libgal-mx6-dbg = "${libdir}/.debug/libGAL${SOLIBS}"
190
191FILES_libgl-mx6 = "${libdir}/libGL${REALSOLIBS}"
192FILES_libgl-mx6-dev = "${libdir}/libGL${SOLIBSDEV}"
193FILES_libgl-mx6-dbg = "${libdir}/.debug/libGL.${SOLIBS}"
194RDEPENDS_libgl-mx6-dev = "libgl-mesa-dev"
195
196# libEGL needs to open libGLESv1.so
197INSANE_SKIP_libgles-mx6 += "dev-so"
198FILES_libgles-mx6 = "${libdir}/libGLESv1*${REALSOLIBS} ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBS}"
199FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV} ${libdir}/pkgconfig/glesv1_cm.pc"
200FILES_libgles-mx6-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS} ${libdir}/.debug/libGLES_*${SOLIBS}"
201
202# libEGL needs to open libGLESv2.so
203INSANE_SKIP_libgles2-mx6 += "dev-so"
204FILES_libgles2-mx6 = "${libdir}/libGLESv2${REALSOLIBS} ${libdir}/libGLESv2${SOLIBS}"
205FILES_libgles2-mx6-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV} ${libdir}/pkgconfig/glesv2.pc"
206FILES_libgles2-mx6-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"
207RDEPENDS_libgles2-mx6 = "libglslc-mx6"
208
209FILES_libglslc-mx6 = "${libdir}/libGLSLC${SOLIBS}"
210FILES_libglslc-mx6-dev = "${includedir}/CL ${libdir}/libGLSLC${SOLIBSDEV}"
211FILES_libglslc-mx6-dbg = "${libdir}/.debug/libGLSLC${SOLIBS}"
212
213FILES_libopencl-mx6 = "${libdir}/libOpenCL${SOLIBS}"
214FILES_libopencl-mx6-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}"
215FILES_libopencl-mx6-dbg = "${libdir}/.debug/libOpenCL${SOLIBS}"
216RDEPENDS_libopencl-mx6 = "libclc-mx6"
217
218FILES_libopenvg-mx6 = "${libdir}/libOpenVG*${SOLIBS}"
219FILES_libopenvg-mx6-dev = "${includedir}/VG ${libdir}/libOpenVG*${SOLIBSDEV} ${libdir}/pkgconfig/vg.pc"
220FILES_libopenvg-mx6-dbg = "${libdir}/.debug/libOpenVG*${SOLIBS}"
221
222FILES_libvdk-mx6 = "${libdir}/libVDK${SOLIBS}"
223FILES_libvdk-mx6-dev = "${includedir}/*vdk.h ${libdir}/libVDK${SOLIBSDEV}"
224FILES_libvdk-mx6-dbg = "${libdir}/.debug/libVDK${SOLIBS}"
225
226FILES_libvivante-mx6 = "${libdir}/libVIVANTE${SOLIBS}"
227FILES_libvivante-mx6-dev = "${libdir}/libVIVANTE${SOLIBSDEV}"
228FILES_libvivante-mx6-dbg = "${libdir}/.debug/libVIVANTE${SOLIBS}"
229
230FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri.so"
231
232FILES_libvivante-dfb-mx6 = "${libdir}/directfb-1.6-0/gfxdrivers/libdirectfb_gal.so"
233
234INSANE_SKIP_libwayland-viv-mx6 += "dev-so"
235FILES_libwayland-viv-mx6 = "${libdir}/libwayland-viv${REALSOLIBS} ${libdir}/libwayland-viv${SOLIBS}"
236FILES_libwayland-viv-mx6-dev = "${libdir})/libwayland-viv${SOLIBSDEV} ${libdir}/pkgconfig/wayland-viv.pc"
237FILES_libwayland-viv-mx6-dbg = "${libdir}/.debug/libwayland-viv${SOLIBS}"
238
239INSANE_SKIP_libgc-wayland-protocol-mx6 += "dev-so"
240FILES_libgc-wayland-protocol-mx6 = "${libdir}/libgc_wayland_protocol${REALSOLIBS} ${libdir}/libgc_wayland_protocol${SOLIBS}"
241FILES_libgc-wayland-protocol-mx6-dev = "${libdir}/libgc_wayland_protocol${SOLIBSDEV} ${libdir}/pkgconfig/gc_wayland_protocol.pc"
242FILES_libgc-wayland-protocol-mx6-dbg = "${libdir}/libgc_wayland_protocol${SOLIBS}"
243
244FILES_libwayland-egl-mx6-dev = "${libdir}/pkgconfig/wayland-egl.pc"
245
246COMPATIBLE_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 @@
1From 1a4a35678ef70283d1a31835deecd39711a9db86 Mon Sep 17 00:00:00 2001
2From: Jeremy Stashluk <jstashluk@dekaresearch.com>
3Date: Wed, 30 Jan 2013 13:16:53 -0500
4Subject: [PATCH] change header path to HAL
5
6The gpu-viv-bin-mx6q package from Freescale puts this header in the HAL
7directory under the system. I think this is a problem in the LTIB release as
8well.
9
10Upstream-Status: Pending
11
12Signed-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
18Index: 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 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=/usr/lib
4includedir=/usr/include
5
6Name: egl
7Description: Vivante EGL library
8Requires.private:
9Version: 8.0
10Libs: -L${libdir} -lEGL
11Libs.private: -lm -lpthread -ldl
12Cflags: -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 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=/usr/lib
4includedir=/usr/include
5
6Name: egl
7Description: Vivante EGL library
8Requires.private: libdrm x11 xext xdamage xfixes xcb
9Version: 8.0
10Libs: -L${libdir} -lEGL
11Libs.private: -lm -lpthread -ldl
12Cflags: -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 @@
1Avoid conflicting types with Xorg newer code
2
3Upstream-Status: Pending
4Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
5
6Index: 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 @@
1From c59f9640d185759208f9d55a93b6602936dcb5e8 Mon Sep 17 00:00:00 2001
2From: Adrian Alonso <aalonso00@gmail.com>
3Date: Sat, 26 Jan 2013 17:52:04 -0600
4Subject: [PATCH 2/2] gc_hal_eglplatform: remove xlib undefs
5
6* Remove header undefs for Always and Status definitions
7
8Signed-off-by: Adrian Alonso <aalonso00@gmail.com>
9---
10 usr/include/HAL/gc_hal_eglplatform.h | 3 ---
11 1 file changed, 3 deletions(-)
12
13diff --git a/usr/include/HAL/gc_hal_eglplatform.h b/usr/include/HAL/gc_hal_eglplatform.h
14index 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--
331.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 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=${exec_prefix}/lib
4includedir=${prefix}/include
5
6Name: gc_wayland_protocol
7Description: Vivante Wayland Protocol Extension Library
8Version: 0.1
9Cflags: -I${includedir}
10Libs: -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 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=/usr/lib
4includedir=/usr/include
5
6Name: glesv1_cm
7Description: Vivante OpenGL ES 1.1 CM library
8Requires.private:
9Version: 8.0
10Libs: -L${libdir} -lGLESv1_CM -lEGL -lGAL
11Libs.private: -lm -lpthread -ldl
12Cflags: -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 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=/usr/lib
4includedir=/usr/include
5
6Name: glesv1_cm
7Description: Vivante OpenGL ES 1.1 CM library
8Requires.private: libdrm x11 xext xdamage xfixes xcb
9Version: 8.0
10Libs: -L${libdir} -lGLESv1_CM -lEGL -lGAL
11Libs.private: -lm -lpthread -ldl
12Cflags: -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 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=/usr/lib
4includedir=/usr/include
5
6Name: glesv2
7Description: Vivante OpenGL ES 2.0 library
8Requires.private:
9Version: 8.0
10Libs: -L${libdir} -lGLESv2 -lEGL -lGAL
11Libs.private: -lpthread -lrt
12Cflags: -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 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=/usr/lib
4includedir=/usr/include
5
6Name: glesv2
7Description: Vivante OpenGL ES 2.0 library
8Requires.private: libdrm x11 xext xdamage xfixes xcb
9Version: 8.0
10Libs: -L${libdir} -lGLESv2 -lEGL -lGAL
11Libs.private: -lpthread -lrt
12Cflags: -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 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=/usr/lib
4includedir=/usr/include
5
6Name: vg
7Description: Vivante OpenVG 1.1 library
8Requires.private:
9Version: 8.0
10Libs: -L${libdir} -lOpenVG -lEGL -lGAL
11Libs.private: -lpthread -lrt
12Cflags: -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 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=/usr/lib
4includedir=/usr/include
5
6Name: vg
7Description: Vivante OpenVG 1.1 library
8Requires.private: libdrm x11 xext xdamage xfixes xcb
9Version: 8.0
10Libs: -L${libdir} -lOpenVG -lEGL -lGAL
11Libs.private: -lpthread -lrt
12Cflags: -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 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=${exec_prefix}/lib
4includedir=${prefix}/include
5
6Name: wayland-egl
7Description: Bind the driver EGL to the Wayland API
8Version: 1.0.0
9Libs: -L${libdir} -lEGL
10Cflags: -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 @@
1prefix=/usr
2exec_prefix=${prefix}
3libdir=${exec_prefix}/lib
4includedir=${prefix}/include
5
6Name: Wayland Vivante Lib
7Description: Wayland server side library for Vivante's EGL driver
8Version: 0.1
9Cflags: -I${includedir}/wayland-viv
10Libs: -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
4require gpu-viv-bin-mx6q.inc
5
6SRC_URI[md5sum] = "52f5ebbb6a9b5d0eafdb952246de584e"
7SRC_URI[sha256sum] = "8b0386e13d4a7c770f8bc8e7a6119629c5ed379488dd5ef635bc92353f906003"
8
9PACKAGE_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
3require recipes-bsp/imx-lib/imx-lib.inc
4
5SRC_URI[md5sum] = "5cc9c8d09c7ba401cdab4a2ecbda89e2"
6SRC_URI[sha256sum] = "d1581c2f2956731da0c42e9dc17514a4d00790deeb83defeb5e07d14746190d8"
7
8PE = "1"
9
10COMPATIBLE_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 @@
1From 503daf4789dd23e4dc1e16c256de0c163fc2bf87 Mon Sep 17 00:00:00 2001
2From: Markus Trippelsdorf <markus@trippelsdorf.de>
3Date: Wed, 4 Apr 2012 10:45:27 +0200
4Subject: [PATCH] perf tools: Fix getrusage() related build failure on glibc
5 trunk
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9Organization: O.S. Systems Software LTDA.
10
11On a system running glibc trunk perf doesn't build:
12
13 CC builtin-sched.o
14builtin-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
17Fix it by including sys/resource.h.
18
19Upstream-Status: Pending
20
21Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
22Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
23Link: http://lkml.kernel.org/r/20120404084527.GA294@x4
24Signed-off-by: Ingo Molnar <mingo@kernel.org>
25---
26 tools/perf/builtin-sched.c | 1 +
27 1 file changed, 1 insertion(+)
28
29diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
30index 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--
421.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 @@
1From 2235b85f1c76d98b5f1e160cbd0a61a84c15e125 Mon Sep 17 00:00:00 2001
2From: Ivan Djelic <ivan.djelic@parrot.com>
3Date: Wed, 6 Mar 2013 20:09:27 +0100
4Subject: [PATCH] ARM: 7668/1: fix memset-related crashes caused by recent GCC
5 (4.7.2) optimizations
6Organization: O.S. Systems Software LTDA.
7
8Recent GCC versions (e.g. GCC-4.7.2) perform optimizations based on
9assumptions about the implementation of memset and similar functions.
10The current ARM optimized memset code does not return the value of
11its first argument, as is usually expected from standard implementations.
12
13For instance in the following function:
14
15void 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
22compiled as:
23
24800554d0 <debug_mutex_lock_common>:
25800554d0: e92d4008 push {r3, lr}
26800554d4: e1a00001 mov r0, r1
27800554d8: e3a02010 mov r2, #16 ; 0x10
28800554dc: e3a01011 mov r1, #17 ; 0x11
29800554e0: eb04426e bl 80165ea0 <memset>
30800554e4: e1a03000 mov r3, r0
31800554e8: e583000c str r0, [r3, #12]
32800554ec: e5830000 str r0, [r3]
33800554f0: e5830004 str r0, [r3, #4]
34800554f4: e8bd8008 pop {r3, pc}
35
36GCC assumes memset returns the value of pointer 'waiter' in register r0; causing
37register/memory corruptions.
38
39This patch fixes the return value of the assembly version of memset.
40It adds a 'mov' instruction and merges an additional load+store into
41existing load/store instructions.
42For ease of review, here is a breakdown of the patch into 4 simple steps:
43
44Step 1
45======
46Perform the following substitutions:
47ip -> r8, then
48r0 -> ip,
49and insert 'mov ip, r0' as the first statement of the function.
50At this point, we have a memset() implementation returning the proper result,
51but corrupting r8 on some paths (the ones that were using ip).
52
53Step 2
54======
55Make sure r8 is saved and restored when (! CALGN(1)+0) == 1:
56
57save r8:
58- str lr, [sp, #-4]!
59+ stmfd sp!, {r8, lr}
60
61and 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
70Step 3
71======
72Make sure r8 is saved and restored when (! CALGN(1)+0) == 0:
73
74save r8:
75- stmfd sp!, {r4-r7, lr}
76+ stmfd sp!, {r4-r8, lr}
77
78and 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
88Step 4
89======
90Rewrite register list "r4-r7, r8" as "r4-r8".
91
92Upstream-Status: Pending
93
94Signed-off-by: Ivan Djelic <ivan.djelic@parrot.com>
95Reviewed-by: Nicolas Pitre <nico@linaro.org>
96Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
97Signed-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
103diff --git a/arch/arm/lib/memset.S b/arch/arm/lib/memset.S
104index 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--
2581.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 @@
1From 2ba23fa6c4128febaaf57fe184420a7111caa237 Mon Sep 17 00:00:00 2001
2From: Nicolas Pitre <nicolas.pitre@linaro.org>
3Date: Tue, 12 Mar 2013 13:00:42 +0100
4Subject: [PATCH] ARM: 7670/1: fix the memset fix
5Organization: O.S. Systems Software LTDA.
6
7Commit 455bd4c430b0 ("ARM: 7668/1: fix memset-related crashes caused by
8recent GCC (4.7.2) optimizations") attempted to fix a compliance issue
9with the memset return value. However the memset itself became broken
10by that patch for misaligned pointers.
11
12This fixes the above by branching over the entry code from the
13misaligned fixup code to avoid reloading the original pointer.
14
15Also, because the function entry alignment is wrong in the Thumb mode
16compilation, that fixup code is moved to the end.
17
18While at it, the entry instructions are slightly reworked to help dual
19issue pipelines.
20
21Upstream-Status: Pending
22
23Signed-off-by: Nicolas Pitre <nico@linaro.org>
24Tested-by: Alexander Holler <holler@ahsoftware.de>
25Signed-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
31diff --git a/arch/arm/lib/memset.S b/arch/arm/lib/memset.S
32index 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--
861.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 @@
1From d8601292ae25e0af47aa4486055221ab44113f0e Mon Sep 17 00:00:00 2001
2From: Mahesh Mahadevan <Mahesh.Mahadevan@freescale.com>
3Date: Mon, 15 Jul 2013 15:34:54 -0500
4Subject: [PATCH] ENGR00271136 Fix build break when CONFIG_CLK_DEBUG is
5 disabled
6Organization: O.S. Systems Software LTDA.
7
8clk structure member name is defined only when CONFIG_CLK_DEBUG is enabled.
9Hence need to encapsulate the code with this config.
10
11Patch received from imx community:
12https://community.freescale.com/thread/308482
13
14Upstream-Status: Pending
15
16Signed-off-by: xiongweihuang
17Signed-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
22diff --git a/arch/arm/plat-mxc/clock.c b/arch/arm/plat-mxc/clock.c
23index 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--
421.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 @@
1From 538f4bb2f7a51f267395550a5be9f0ab2e426712 Mon Sep 17 00:00:00 2001
2From: Erik Boto <erik.boto@pelagicore.com>
3Date: Tue, 16 Jul 2013 12:06:05 -0500
4Subject: [PATCH] ENGR00271359 Add Multi-touch support
5Organization: O.S. Systems Software LTDA.
6
7The previous behavior of the driver did not work properly with Qt5
8QtQuick multi touch-point gestures, due to how touch-points are
9reported when removing a touch-point. My interpretation of the
10available documentation [1] was that the driver should report all
11touch-points between SYN_REPORTs, but it is not explicitly stated so.
12I've found another mail-thread [2] where the creator of the protocol
13states:
14
15"The protocol defines a generic way of sending a variable amount of
16contacts. The contact count is obtained by counting the number of
17non-empty finger packets between SYN_REPORT events."-Henrik Rydberg
18
19I think this verifies my assumption that all touch-points should be
20reported between SYN_REPORTs, otherwise it can not be used to obtain
21the 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
26Upstream-Status: Pending
27
28Signed-off-by: Erik Boto <erik.boto@pelagicore.com>
29Signed-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
35diff --git a/drivers/input/touchscreen/egalax_ts.c b/drivers/input/touchscreen/egalax_ts.c
36index 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--
971.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 @@
1From 3e6441d113f72b412081a2c87f39011e4c253a35 Mon Sep 17 00:00:00 2001
2From: Robert Winkler <robert.winkler@boundarydevices.com>
3Date: Fri, 19 Jul 2013 19:00:41 -0700
4Subject: [PATCH] Add support for DVI monitors
5Organization: O.S. Systems Software LTDA.
6
7Upstream-Status: Pending
8
9Signed-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
15diff --git a/arch/arm/plat-mxc/include/mach/mxc_hdmi.h b/arch/arm/plat-mxc/include/mach/mxc_hdmi.h
16index 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,
40diff --git a/drivers/video/mxc_hdmi.c b/drivers/video/mxc_hdmi.c
41index 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--
2261.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 @@
1From cd31abbe08372fa870fac78ae845edd4859f8835 Mon Sep 17 00:00:00 2001
2From: Fabio Estevam <fabio.estevam@freescale.com>
3Date: Sat, 28 Sep 2013 18:46:18 -0300
4Subject: [PATCH] ARM: mach-mx6: board-mx6q_sabresd: Register SDHC3 first
5Organization: O.S. Systems Software LTDA.
6
7On sabresd boards we boot from SDHC3, so let's register it as mmc0.
8
9Currently eMMC is mmc0 and mmc1 can be SDHC3 or SDHC2 (if present).
10
11Registering SDHC3 is safer as we can always find the rootfs.
12
13Signed-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
18diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c
19index 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--
371.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 @@
1From b37a944f55a5010bd08297a63db0275540922f32 Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Thu, 22 Aug 2013 16:31:29 -0300
4Subject: [PATCH] drm/vivante: Add ":00" sufix in returned bus Id
5
6This makes the 3.0.35 compatible with a Xorg driver build for 3.5.7 or
7newer kernels.
8
9Upstream-Status: Inapropriate [embedded specific]
10
11Signed-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
16diff --git a/drivers/gpu/drm/vivante/vivante_drv.c b/drivers/gpu/drm/vivante/vivante_drv.c
17index 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--
301.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 @@
1From 149545df26169d257b144ff78934ce9cb5b6818b Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Sat, 19 Oct 2013 10:55:11 -0300
4Subject: [PATCH] epdc: Rename mxcfb_epdc_kernel.h to mxc_epdc.h
5Organization: O.S. Systems Software LTDA.
6
7This allow for forward compatibility with imx-test >= 3.10.9-1.0.0.
8
9Signed-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
18diff --git a/drivers/video/mxc/mxc_epdc_fb.c b/drivers/video/mxc/mxc_epdc_fb.c
19index 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>
31diff --git a/include/linux/mxcfb_epdc.h b/include/linux/mxcfb_epdc.h
32new file mode 100644
33index 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
86diff --git a/include/linux/mxcfb_epdc_kernel.h b/include/linux/mxcfb_epdc_kernel.h
87deleted file mode 100644
88index 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--
1421.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
4require recipes-kernel/linux/linux-imx.inc
5
6COMPATIBLE_MACHINE = "(mx6)"
7
8# Revision of 4.1.0 branch
9SRCREV = "bdde708ebfde4a8c1d3829578d3f6481a343533a"
10LOCALVERSION = "-4.1.0+yocto"
11
12# Patches need for Yocto and not applied by Freescale when doing 4.1.0 branch
13SRC_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
24RDEPENDS_kernel-base = ""
25
26do_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 @@
1require recipes-bsp/u-boot/u-boot.inc
2
3LICENSE = "GPLv2+"
4LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"
5COMPATIBLE_MACHINE = "(mxs|mx3|mx5|mx6|vf60)"
6
7DEPENDS_mxs += "elftosb-native openssl-native"
8
9PROVIDES += "u-boot"
10
11PV = "v2013.10"
12
13SRCREV = "079e214888279518ce061c71238a74a0c3db2c28"
14SRC_URI = "git://github.com/Freescale/u-boot-imx.git"
15
16S = "${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.
21EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \
22 HOSTLDFLAGS="-L${STAGING_BASE_LIBDIR_NATIVE} -L${STAGING_LIBDIR_NATIVE}" \
23 HOSTSTRIP=true'
24
25PACKAGE_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 @@
1From 8221f36672b7a1336c2bf245c394f0b5453784a1 Mon Sep 17 00:00:00 2001
2From: Will Deacon <will.deacon@arm.com>
3Date: Thu, 26 Sep 2013 12:36:35 +0100
4Subject: [PATCH] ARM: perf: add support for perf registers API
5
6This patch implements the functions required for the perf registers API,
7allowing the perf tool to interface kernel register dumps with libunwind
8in order to provide userspace backtracing.
9
10B2Qt: Backported for 3.8 kernel
11
12Cc: Jean Pihet <jean.pihet@linaro.org>
13Signed-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
24diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
25index 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
37diff --git a/arch/arm/include/uapi/asm/Kbuild b/arch/arm/include/uapi/asm/Kbuild
38index 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
49diff --git a/arch/arm/include/uapi/asm/perf_regs.h b/arch/arm/include/uapi/asm/perf_regs.h
50new file mode 100644
51index 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 */
78diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile
79index 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
90diff --git a/arch/arm/kernel/perf_regs.c b/arch/arm/kernel/perf_regs.c
91new file mode 100644
92index 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--
1271.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 @@
1From 26f603c457e0af9f5f6a0ddda66e69978c7f43b4 Mon Sep 17 00:00:00 2001
2From: Will Deacon <will.deacon@arm.com>
3Date: Thu, 26 Sep 2013 12:36:36 +0100
4Subject: [PATCH] ARM: perf: wire up perf_regs and unwind support for ARM
5
6This patch hooks in the perf_regs and libunwind code for ARM.
7
8B2Qt: Backported for 3.8 kernel
9
10Cc: Jean Pihet <jean.pihet@linaro.org>
11Signed-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
21diff --git a/tools/perf/Makefile b/tools/perf/Makefile
22index 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)
36diff --git a/tools/perf/arch/arm/Makefile b/tools/perf/arch/arm/Makefile
37index 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
47diff --git a/tools/perf/arch/arm/include/perf_regs.h b/tools/perf/arch/arm/include/perf_regs.h
48new file mode 100644
49index 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 */
107diff --git a/tools/perf/arch/arm/util/unwind.c b/tools/perf/arch/arm/util/unwind.c
108new file mode 100644
109index 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--
1621.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
1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" 2FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2SRC_URI += "\ 3SRC_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
8INSANE_SKIP_${PN} = "installed-vs-shipped" 11INSANE_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
23FILESEXTRAPATHS_prepend := "${THISDIR}/../../../recipes/linux/linux:"
24SRC_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
24RDEPENDS_kernel-base = "" 30RDEPENDS_kernel-base = ""
25 31
26do_configure_prepend() { 32do_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
23FILESEXTRAPATHS_prepend := "${THISDIR}/../../../recipes/linux/linux:"
24SRC_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
30RDEPENDS_kernel-base = ""
31
32do_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 @@
1From 2288d6475ba3ab9a7fb3cd4aa0aa3a7c60dbfac6 Mon Sep 17 00:00:00 2001 1From ecd64c7926b7aa25b028278666abad582e7cdea8 Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@digia.com> 2From: Samuli Piippo <samuli.piippo@digia.com>
3Date: Fri, 9 May 2014 10:23:50 +0300 3Date: Fri, 9 May 2014 10:23:50 +0300
4Subject: [PATCH] Updated kernel arguments for sabre sd 4Subject: [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
15diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
16index 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
77diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h 12diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h
78index 5ee7fa5..b83bf74 100644 13index 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--
1321.8.3.2 671.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 @@
1From b21614109fb3cca15c4b0d296b3ab6cc1b778e3a Mon Sep 17 00:00:00 2001 1From b21614109fb3cca15c4b0d296b3ab6cc1b778e3a Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@digia.com> 2From: Yoann Lopes <yoann.lopes@theqtcompany.com>
3Date: Fri, 10 Jan 2014 12:37:20 +0200 3Date: Wed, 10 Jun 2015 16:36:10 +0100
4Subject: [PATCH] nitrogen6x: disable console cursor blinking 4Subject: [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
23FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" 23FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
24SRC_URI += " \ 24SRC_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
24BBPATH .= ":${LAYERDIR}"
25
26# We have a recipes directory, add to BBFILES
27BBFILES += "${LAYERDIR}/recipes*/*/*.bb \
28 ${LAYERDIR}/recipes*/*/*.bbappend \
29 "
30
31BBFILE_COLLECTIONS += "b2qt_rpi"
32BBFILE_PATTERN_b2qt_rpi := "^${LAYERDIR}/"
33BBFILE_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 @@
1From 7495f3742dda97612a77d92fa62f85cb7591ab14 Mon Sep 17 00:00:00 2001
2From: Will Deacon <will.deacon@arm.com>
3Date: Thu, 26 Sep 2013 12:36:36 +0100
4Subject: [PATCH] ARM: perf: wire up perf_regs and unwind support for ARM
5
6This patch hooks in the perf_regs and libunwind code for ARM.
7
8Cc: Jean Pihet <jean.pihet@linaro.org>
9Signed-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
19diff --git a/tools/perf/arch/arm/Makefile b/tools/perf/arch/arm/Makefile
20index 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
30diff --git a/tools/perf/arch/arm/include/perf_regs.h b/tools/perf/arch/arm/include/perf_regs.h
31new file mode 100644
32index 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 */
90diff --git a/tools/perf/arch/arm/util/unwind.c b/tools/perf/arch/arm/util/unwind.c
91new file mode 100644
92index 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+}
144diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
145index 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--
1701.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
23FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:${THISDIR}/../../../recipes/linux/linux:"
24SRC_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"
25LIBGLESWINDOWSYSTEM = "libpvrPVR2D_FLIPWSEGL.so.1" 25LIBGLESWINDOWSYSTEM = "libpvrPVR2D_FLIPWSEGL.so.1"
26 26
27do_install_append() { 27do_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 @@
1require recipes-graphics/libgles/libgles-omap3-no-x.inc 1require recipes-graphics/libgles/libgles-omap3-no-x.inc
2 2
3FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:${COREBASE}/../meta-ti/recipes-graphics/libgles/${PN}" 3FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:${COREBASE}/../meta-ti/recipes-graphics/libgles/${PN}:"
4 4
5LICENSE = "TI-TSPA" 5LICENSE = "TI-TSPA"
6 6
@@ -46,3 +46,10 @@ SRC_URI[sha256sum] := "${@base_contains('TUNE_FEATURES', 'callconvention-hard',
46S = "${WORKDIR}/Graphics_SDK_${SGXPV}" 46S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
47 47
48LIBGLESWINDOWSYSTEM = "libpvrPVR2D_FRONTWSEGL.so.1" 48LIBGLESWINDOWSYSTEM = "libpvrPVR2D_FRONTWSEGL.so.1"
49
50do_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
23do_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
23FILESEXTRAPATHS_prepend := "${THISDIR}/../../../recipes/linux/linux:"
24SRC_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
24RDEPENDS_kernel-base = "" 30RDEPENDS_kernel-base = ""
25 31
26config_script () { 32config_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 @@
1From 30c67656c09f49608bbadb75e365d1d3da36cc70 Mon Sep 17 00:00:00 2001
2From: Andy Nichols <andy.nichols@theqtcompany.com>
3Date: Wed, 18 Feb 2015 14:28:14 +0100
4Subject: [PATCH] Allow builds with GCC 4.8
5
6---
7 arch/arm/kernel/asm-offsets.c | 4 ----
8 1 file changed, 4 deletions(-)
9
10diff --git a/arch/arm/kernel/asm-offsets.c b/arch/arm/kernel/asm-offsets.c
11index 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--
261.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 @@
1From d57edef022af184015a8ccd87fa9021024513d55 Mon Sep 17 00:00:00 2001
2From: Andy Nichols <andy.nichols@theqtcompany.com>
3Date: Fri, 6 Mar 2015 10:14:13 +0100
4Subject: [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
10diff --git a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi
11index 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--
242.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
23FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
24
25SRC_URI += " \
26 file://0001-Enable-Fusion-7-and-10-multi-touch-controller.patch \
27 "
28
29do_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
26PV = "v2.3" 26PV = "v2.3"
27 27
28SRC_URI = "file://flash_mmc.scr" 28SRC_URI = " \
29 file://flash_mmc.scr \
30 file://flash_blk.scr \
31 "
29 32
30inherit deploy 33inherit deploy
31 34
32UPDATESCRIPT = "${WORKDIR}/flash_mmc.scr"
33
34do_mkimage () { 35do_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
40addtask mkimage after do_compile before do_install 45addtask mkimage after do_compile before do_install
@@ -42,10 +47,13 @@ addtask mkimage after do_compile before do_install
42do_deploy () { 47do_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
51addtask deploy after do_install before do_build 59addtask deploy after do_install before do_build
@@ -55,4 +63,4 @@ do_install[noexec] = "1"
55do_populate_sysroot[noexec] = "1" 63do_populate_sysroot[noexec] = "1"
56 64
57PACKAGE_ARCH = "${MACHINE_ARCH}" 65PACKAGE_ARCH = "${MACHINE_ARCH}"
58COMPATIBLE_MACHINE = "(apalis-imx6)" 66COMPATIBLE_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 @@
1setenv 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}'
2echo '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 @@
1test -n ${interface} || setenv interface mmc
2test -n ${drive} || setenv drive 1
3
4setenv set_blkcnt 'setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200'
5setenv update_uboot 'fatload ${interface} ${drive}:1 ${loadaddr} u-boot.imx && run set_blkcnt && mmc dev 0 0 && mmc write ${loadaddr} 2 ${blkcnt}'
6echo '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
2test -n ${interface} || setenv interface mmc
3test -n ${drive} || setenv drive 1
4
5fatload ${interface} ${drive}:1 ${loadaddr} flash_blk.img
6source ${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 @@
1setenv 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'
2echo '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 @@
1setenv interface mmc
2fatload ${interface} 0:1 ${loadaddr} flash_blk.img
3source ${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 @@
1From 7872f8e770a202f41fbcf0372b27eb3669c433a1 Mon Sep 17 00:00:00 2001 1From 1d5baa56ff177d7858727d1c4428096781e3817c Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@digia.com> 2From: Samuli Piippo <samuli.piippo@digia.com>
3Date: Mon, 27 Oct 2014 14:53:25 +0200 3Date: Mon, 27 Oct 2014 14:53:25 +0200
4Subject: [PATCH] Update default args for apalis imx6 4Subject: [PATCH] Update default args for apalis imx6
@@ -6,32 +6,36 @@ Subject: [PATCH] Update default args for apalis imx6
6Boot from sd card by default, disable kernel logs from tty1, and 6Boot from sd card by default, disable kernel logs from tty1, and
7disable cursor blinking. 7disable 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
12diff --git a/include/configs/apalis-imx6.h b/include/configs/apalis-imx6.h 12diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h
13index 3fb17e2..728c5dd 100644 13index 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--
521.8.3.2 561.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 @@
1From 878f506e43f40c2667e9e5ae82741d32fc653cac Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@theqtcompany.com>
3Date: Thu, 28 May 2015 09:06:54 +0300
4Subject: [PATCH] colibri vf: enable sdboot by default
5
6Run 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
11diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h
12index 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--
341.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}:"
24SRC_URI_append_apalis-imx6 = " \ 24SRC_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 "
27SRC_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
23DESCRIPTION = "Boot to Qt Appcontroller"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://main.cpp;md5=1fcdf6b49fbbf2bc9c831893cca1b279;beginline=1;endline=17"
26
27inherit qmake5 sdk-sources
28
29SRC_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
34SRCREV = "45d549fe274cd8f16578b2ff9a34af40fd9b98a9"
35BRANCH = "dev"
36
37S = "${WORKDIR}/git"
38
39DEPENDS = "qtbase"
40
41do_configure_append() {
42 sed -i -e '/^platform=/d' ${WORKDIR}/appcontroller.conf
43 echo platform=${MACHINE} >> ${WORKDIR}/appcontroller.conf
44}
45
46do_install_append() {
47 install -m 0755 -d ${D}${sysconfdir}
48 install -m 0755 ${WORKDIR}/appcontroller.conf ${D}${sysconfdir}/
49}
50
51FILES_${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 @@
1env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
2env=QT_IM_MODULE=qtvirtualkeyboard
3env=QT_QPA_EGLFS_FORCE888=0
4env=QT_QUICK_CONTROLS_STYLE=Flat
5base=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 @@
1env=QMLSCENE_DEVICE=softwarecontext
2env=QT_QPA_PLATFORM=linuxfb
3env=QSG_RENDER_LOOP=basic
4env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
5env=QT_IM_MODULE=qtvirtualkeyboard
6env=QT_QUICK_CONTROLS_STYLE=Flat
7base=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 @@
1env=QT_QPA_GENERIC_PLUGINS=simulator
2env=QT_QPA_EGLFS_HIDECURSOR=1
3env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
4env=QT_IM_MODULE=qtvirtualkeyboard
5env=QTGLESSTREAM_DISPLAY=192.168.56.1
6env=QT_QUICK_CONTROLS_STYLE=Flat
7base=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 @@
1env=FB_MULTI_BUFFER=2
2env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
3env=QT_IM_MODULE=qtvirtualkeyboard
4env=QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0
5env=QT_GSTREAMER_CAMERABIN_VIDEOSRC=mxc_v4l2=mfw_v4lsrc,v4l2src
6env=QT_QUICK_CONTROLS_STYLE=Flat
7base=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 @@
1env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
2env=QT_IM_MODULE=qtvirtualkeyboard
3env=QT_QPA_EGLFS_FORCE888=1
4env=QT_QUICK_CONTROLS_STYLE=Flat
5base=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
23DESCRIPTION = "Boot to Qt Demos"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://sensors/Accelbubble.qml;md5=1bf19846314f7b0fa81dc4db92338713;beginline=1;endline=40"
26
27inherit qmake5 sdk-sources
28
29SRC_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
36BRANCH = "dev"
37QT_BRANCH = "5.5"
38SRCREV_demos = "de50ff5dbf2f789786e25540ba0b0efc8c68e0f9"
39SRCREV_everywhere = "6178748a6ea34df40a8e3c9ce67137e33383bb0e"
40SRCREV_qtcanvas3d = "debe68a85b571b70e2fe0824e5ed40484a72c216"
41SRCREV_qtquickcontrols = "b4dc4a98d5deffbbb30f7011f6c0d3d10f430b98"
42
43
44S = "${WORKDIR}/git/basicsuite"
45
46DEPENDS = "qtbase qtdeclarative qtxmlpatterns qtquickcontrols qtgraphicaleffects qtsensors qtmultimedia qtcanvas3d \
47 ${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"
48
49do_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
103FILES_${PN} += " \
104 /data/images/ \
105 /data/videos/ \
106 /data/user \
107 "
108
109FILES_${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
23DESCRIPTION = "Proxy daemon for QtSimulator"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://proxy.h;md5=ba04e32af7257890758a149b0c14d11a;beginline=1;endline=17"
26
27inherit qt5-module
28
29SRC_URI = " \
30 git://codereview.qt-project.org/tqtc-boot2qt/emulator;branch=${BRANCH};protocol=ssh \
31 file://emulatorproxyd.sh \
32 "
33
34SRCREV = "1d001910d45349ae2a44fa01516baaa7ff4c9eda"
35BRANCH = "master"
36
37S = "${WORKDIR}/git/src/helperlibs/proxy"
38
39DEPENDS = "qtbase qtsimulator"
40
41do_install_append() {
42 install -m 0755 -d ${D}${sysconfdir}/init.d
43 install -m 0755 ${WORKDIR}/emulatorproxyd.sh ${D}${sysconfdir}/init.d/
44}
45
46INITSCRIPT_NAME = "emulatorproxyd.sh"
47INITSCRIPT_PARAMS = "defaults 97 10"
48
49inherit 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
24DAEMON=/usr/bin/emulatorproxyd
25
26case "$1" in
27start)
28 start-stop-daemon --start --quiet --exec $DAEMON &
29 ;;
30stop)
31 start-stop-daemon --stop --quiet --exec $DAEMON
32 ;;
33restart)
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
41esac
42exit 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
23DESCRIPTION = "SD-Card mount daemon for Emulator"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://sdcardmountd.h;md5=ba04e32af7257890758a149b0c14d11a;beginline=1;endline=17"
26
27inherit qt5-module
28
29SRC_URI = " \
30 git://codereview.qt-project.org/tqtc-boot2qt/emulator;branch=${BRANCH};protocol=ssh \
31 file://sdcardmountd.sh \
32 "
33
34SRCREV = "1d001910d45349ae2a44fa01516baaa7ff4c9eda"
35BRANCH = "master"
36
37S = "${WORKDIR}/git/src/helperlibs/sdcarddaemon"
38
39DEPENDS = "qtbase qtsimulator"
40
41do_install_append() {
42 install -m 0755 -d ${D}${sysconfdir}/init.d
43 install -m 0755 ${WORKDIR}/sdcardmountd.sh ${D}${sysconfdir}/init.d/
44}
45
46INITSCRIPT_NAME = "sdcardmountd.sh"
47INITSCRIPT_PARAMS = "defaults 97 10"
48
49inherit 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
24DAEMON=/usr/bin/sdcardmountd
25
26case "$1" in
27start)
28 start-stop-daemon --start --quiet --exec $DAEMON &
29 ;;
30stop)
31 start-stop-daemon --stop --quiet --exec $DAEMON
32 ;;
33restart)
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
41esac
42exit 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
23DESCRIPTION = "Virtual input plugin for QtSimulator"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://qvinput.h;md5=ba04e32af7257890758a149b0c14d11a;beginline=1;endline=17"
26
27inherit qt5-module
28
29SRC_URI = " \
30 git://codereview.qt-project.org/tqtc-boot2qt/emulator;branch=${BRANCH};protocol=ssh \
31 "
32
33SRCREV = "1d001910d45349ae2a44fa01516baaa7ff4c9eda"
34BRANCH = "master"
35
36EXTRA_QMAKEVARS_PRE += "CONFIG+=force_independent"
37
38S = "${WORKDIR}/git/src/helperlibs/vinput"
39
40DEPENDS = "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
23DESCRIPTION = "Boot to Qt Demo Launcher"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://src/main.cpp;md5=1fcdf6b49fbbf2bc9c831893cca1b279;beginline=1;endline=17"
26
27inherit qmake5 sdk-sources
28
29SRC_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
34SRCREV = "e824e206f28eb20bcb6f1d9064990f5e927261f4"
35BRANCH = "dev"
36
37S = "${WORKDIR}/git"
38
39DEPENDS = "qtbase qtdeclarative \
40 ${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"
41
42do_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
47FILES_${PN} += "${sysdir}/init.d/b2qt-startup.h"
48
49INITSCRIPT_NAME = "b2qt-startup.sh"
50INITSCRIPT_PARAMS = "defaults 30"
51
52inherit 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
24case "$1" in
25start)
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 ;;
35stop)
36 /usr/bin/appcontroller --stop
37 ;;
38*)
39 echo "Usage: $0 {start|stop}"
40 exit 1
41esac
42exit 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
23DESCRIPTION = "Boot to Qt Utils module"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://src/qconnectivity/main.cpp;md5=0b2892e6aca7d0750bbd7fe6b6b1c033;beginline=1;endline=17"
26
27inherit qt5-module sdk-sources
28
29SRC_URI = " \
30 git://codereview.qt-project.org/tqtc-boot2qt/utils;branch=${BRANCH};protocol=ssh;sdk-uri=5.5/Boot2Qt/sources/b2qt-utils \
31 "
32
33SRCREV = "602034c3a71c53d050e67101e070185cbcf7ccee"
34BRANCH = "dev"
35
36S = "${WORKDIR}/git"
37
38DEPENDS = "qtbase qtdeclarative wpa-supplicant"
39
40FILES_${PN}-examples-dbg = " \
41 /data/user/qt/.debug/* \
42 /data/user/qt/wifi-cpp/.debug/* \
43 "
44
45FILES_${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
23DESCRIPTION = "B2Qt embedded Qt5 image"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://${QT_LICENCE};md5=7bc9c54e450006250a60e96604c186c9"
26PR = "r0"
27
28IMAGE_FEATURES += "\
29 package-management \
30 ssh-server-dropbear \
31 tools-debug \
32 debug-tweaks \
33 hwcodecs \
34 "
35
36inherit core-image
37inherit bootfs-image
38
39MACHINE_EXTRA_INSTALL_QT ?= ""
40
41IMAGE_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
23DESCRIPTION = "B2Qt embedded Qt5 SDK toolchain"
24PR = "r0"
25LICENSE = "QtEnterprise"
26LIC_FILES_CHKSUM = "file://${QT_LICENCE};md5=7bc9c54e450006250a60e96604c186c9"
27
28inherit populate_sdk populate_sdk_qt5 qmake5_paths
29
30TOOLCHAIN_HOST_TASK += "nativesdk-packagegroup-b2qt-embedded-qt5-toolchain-host"
31TOOLCHAIN_TARGET_TASK += "packagegroup-b2qt-embedded-qt5-toolchain-target"
32
33SRC_URI = " \
34 file://qmake.conf \
35 file://qplatformdefs.h \
36 "
37
38SDK_MKSPEC_DIR = "${SDK_OUTPUT}${SDKTARGETSYSROOT}${libdir}/${QT_DIR_NAME}/mkspecs"
39SDK_MKSPEC = "devices/linux-oe-generic-g++"
40SDK_DEVICE_PRI = "${SDK_MKSPEC_DIR}/qdevice.pri"
41SDK_DYNAMIC_FLAGS = "-O. -pipe -g"
42
43create_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
68SDK_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
5include(../common/linux_device_pre.conf)
6
7QMAKE_PLATFORM += boot2qt
8
9# Load device-specific qmake.conf part, if any
10exists(../../oe-device-extra.pri):include(../../oe-device-extra.pri)
11
12include(../common/linux_device_post.conf)
13
14load(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
23DESCRIPTION = "Host packages for B2Qt embedded Qt5 SDK"
24LICENSE = "QtEnterprise"
25PR = "r0"
26
27inherit nativesdk packagegroup qtquickcompiler
28
29RDEPENDS_${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
23DESCRIPTION = "Qt5 addons toolchain packages"
24LICENSE = "QtEnterprise"
25
26inherit packagegroup
27
28PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"
29
30RDEPENDS_${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
23DESCRIPTION = "Qt5 addons packages"
24LICENSE = "QtEnterprise"
25
26inherit packagegroup
27
28PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"
29
30RDEPENDS_${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
23DESCRIPTION = "Target packages for B2Qt embedded Qt5 SDK"
24LICENSE = "QtEnterprise"
25PR = "r0"
26
27inherit packagegroup
28
29PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"
30
31MACHINE_EXTRA_INSTALL_QT_SDK ?= ""
32
33RDEPENDS_${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
23DESCRIPTION = "Qt5 modules"
24LICENSE = "QtEnterprise"
25
26inherit packagegroup
27
28PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"
29
30RDEPENDS_${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
23DESCRIPTION = "Qt Charts"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://src/charts/qchart.cpp;md5=6e3e95df24951a6ec145dc5614d29cac;beginline=1;endline=17"
26
27inherit qt5-module qtquickcompiler sdk-sources
28
29SRC_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
34SRCREV = "c6eddd6a7ac5a67f77f52eae3a074c85fbf525a9"
35BRANCH = "master"
36
37S = "${WORKDIR}/git"
38
39DEPENDS = "qtbase qtdeclarative qtmultimedia"
40
41PACKAGES =+ "${PN}-designer"
42DEBIAN_NOAUTONAME_${PN}-designer = "1"
43
44FILES_${PN}-designer = " \
45 ${OE_QMAKE_PATH_QML}/QtCharts/designer \
46 "
47
48RRECOMMENDS_${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
23DESCRIPTION = "Qt Data Visualization"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://src/datavisualization/global/datavisualizationglobal_p.h;md5=5c8619ca9925b150dec6288f86c56471;beginline=1;endline=17"
26
27inherit qt5-module sdk-sources
28
29SRC_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
34SRCREV = "5ba7f70d0d94de720d49b37b2d257b51b9afd026"
35BRANCH = "master"
36
37S = "${WORKDIR}/git"
38
39DEPENDS += "qtbase qtdeclarative qtmultimedia"
40
41FILES_${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
23DESCRIPTION = "QtGlesStream"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://qtglesstream.pro;md5=e95d9351d26ed899188e02d44133cae0"
26
27inherit qt5-module
28
29SRC_URI = " \
30 git://qt-gerrit.ci.local/QtRD-15810/qtglesstream.git;branch=${BRANCH};protocol=ssh \
31 "
32
33PV = "1.0.0"
34SRCREV = "137d476b0e39eaaa6f35296b6bd962175e6ea5d6"
35BRANCH = "dev"
36
37S = "${WORKDIR}/git"
38
39DEPENDS = "qtbase"
40RREPLACES_${PN} = "qtglesstream-dummy-client"
41RREPLACES_${PN}-dev = "qtglesstream-dummy-client-dev"
42
43do_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
58do_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
23DESCRIPTION = "Qt Quick 2D Rendender"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://src/plugins/scenegraph/softwarecontext/softwarelayer.cpp;md5=d90663d6d3096fe0989549d52fec6554;beginline=1;endline=17"
26
27inherit qt5-module sdk-sources
28
29SRC_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
34SRCREV = "97c310f3a18a5aaebf8c102ceaba1f6a093faf6b"
35BRANCH = "master"
36
37S = "${WORKDIR}/git"
38
39DEPENDS = "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
23DESCRIPTION = "Qt Quick Compiler"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://compiler/qtquickcompiler.h;md5=553f8ee8d120874969caca3193ae686c;beginline=1;endline=6"
26
27inherit qt5-module
28
29SRC_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
34SRCREV_compiler = "cc3b348065e84242d772d53b5f9dcad88b0da33e"
35BRANCH_compiler = "3.0"
36
37SRCREV_sdk = "60cb1a7763b670108b17c7e1345394e424153bea"
38BRANCH_sdk = "master"
39
40S = "${WORKDIR}/git"
41
42DEPENDS = "qtbase qtdeclarative"
43
44BBCLASSEXTEND = "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 23DESCRIPTION = "QtSimulator"
24RDEPENDS_kernel-base = "" 24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://src/simulator/version.h;md5=ba04e32af7257890758a149b0c14d11a;beginline=1;endline=17"
25 26
26do_configure_prepend() { 27inherit qt5-module
27 # FunctionFS for adb
28 echo "CONFIG_USB_FUNCTIONFS=m" >> ${WORKDIR}/defconfig
29 28
30 # Enable USB serial support 29SRC_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} 34SRCREV = "faf8ea5cee8a4105b97c3f2ba4a4c828f03a70ab"
35BRANCH = "master"
36
37S = "${WORKDIR}/git"
38
39DEPENDS = "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
23DESCRIPTION = "Qt Virtual Keyboard"
24LICENSE = "QtEnterprise"
25LIC_FILES_CHKSUM = "file://src/virtualkeyboard/plugin.cpp;md5=9e7c3707428a49f2fd857aa1538823b6;beginline=1;endline=17"
26
27inherit qt5-module qtquickcompiler sdk-sources
28
29SRC_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
34SRCREV = "ad517b66fc4aadb2807951f182552a1b161d9c95"
35BRANCH = "master"
36
37S = "${WORKDIR}/git"
38
39DEPENDS = "qtbase qtdeclarative hunspell"
40
41EXTRA_QMAKEVARS_PRE += "CONFIG+=disable-desktop"
42
43FILES_${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
24EXTRA_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 @@
1QMAKE_LIBS_EGL = -lQtGlesStreamClient
2QMAKE_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 @@
1IMX6_CFLAGS = -DLINUX=1 -DEGL_API_FB=1
2QMAKE_LIBS_EGL += -lEGL
3QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
4QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL
5QMAKE_CFLAGS += $$IMX6_CFLAGS
6QMAKE_CXXFLAGS += $$IMX6_CFLAGS
7
8EGLFS_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 @@
1QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/include/interface/vcos/pthreads \
2 $$[QT_SYSROOT]/usr/include/interface/vmcs_host/linux
3QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
4
5QMAKE_LIBS_EGL = -lEGL -lGLESv2
6QMAKE_CFLAGS += $$RPI_CFLAGS
7QMAKE_CXXFLAGS += $$RPI_CFLAGS
8
9EGLFS_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 @@
1QMAKE_LIBS_EGL = -lEGL -lIMGegl -lsrv_um
2QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 $${QMAKE_LIBS_EGL}
3QMAKE_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
23do_configure_append() { 23PACKAGECONFIG_GL = "gles2"
24 # FunctionFS for adb 24PACKAGECONFIG += " \
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 37FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
32 38
33 # Enable USB serial support 39SRC_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 43do_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
47QMAKE_PLATFORM += boot2qt
48QT_QPA_DEFAULT_PLATFORM = eglfs
49
50exists(../oe-device-extra.pri):include(../oe-device-extra.pri)
51
52load(qt_config)
53EOF
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
23PACKAGECONFIG += "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
23PACKAGECONFIG += "gypsy"
24
25EXTRA_QMAKEVARS_PRE_emulator += "CONFIG+=simulator"
26DEPENDS_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
23PACKAGECONFIG += "${@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
23EXTRA_QMAKEVARS_PRE_emulator += "SENSORS_PLUGINS=simulator"
24DEPENDS_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
23EXTRA_QMAKEVARS_PRE_emulator += "CONFIG+=simulator"
24DEPENDS_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"
24HOMEPAGE = "http://developer.android.com/tools/help/adb.html" 24HOMEPAGE = "http://developer.android.com/tools/help/adb.html"
25SECTION = "devel" 25SECTION = "devel"
26LICENSE = "Apache-2.0" 26LICENSE = "Apache-2.0"
27LIC_FILES_CHKSUM = "file://NOTICE;md5=2ddb23e63b1f9c3c46aaa4195f819a6d" 27LIC_FILES_CHKSUM = "file://adb/NOTICE;md5=2ddb23e63b1f9c3c46aaa4195f819a6d"
28 28
29PV = "android-4.2.2_r1.2" 29PV = "android-5.0.1_r1"
30PR = "r0" 30PR = "r0"
31SRCREV = "${PV}" 31SRCREV = "${PV}"
32 32
33RRECOMMENDS_${PN} += "kernel-module-g-ffs" 33RRECOMMENDS_${PN} += "kernel-module-g-ffs"
34DEPENDS = "openssl" 34DEPENDS = "openssl libcap"
35 35
36SRC_URI = "git://android.googlesource.com/platform/system/core;protocol=https \ 36SRC_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
43S = "${WORKDIR}/git/adb" 43S = "${WORKDIR}/git"
44 44
45FILES_${PN} += "${bindir}/adbd" 45FILES_${PN} += "${bindir}/adbd"
46 46
47do_configure() { 47do_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
53do_compile() { 53do_compile() {
54 make -f ${WORKDIR}/Makefile.adbd 54 make -f ${WORKDIR}/Makefile.adbd -C adb
55} 55}
56 56
57do_install() { 57do_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
68INITSCRIPT_NAME = "adb-init" 68INITSCRIPT_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 @@
1LOCAL_SRC_FILES := \ 1LOCAL_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
19LOCAL_OBJ_FILES=$(LOCAL_SRC_FILES:%.c=%.o) 16LOCAL_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
29LIBCUTILS_OBJ_FILES=$(LIBCUTILS_SRC_FILES:%.c=%.o) 25LIBCUTILS_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
7if [ -e /var/run/dbus/session_bus_address ]; then
8 . /var/run/dbus/session_bus_address
9fi
10
7case "$1" in 11case "$1" in
8start) 12start)
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 @@
1diff --git a/adb/adb.c b/adb/adb.c 1diff --git a/adb/adb.c b/adb/adb.c
2index 07bfbe5..c8f37ff 100644 2index 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"; 126diff --git a/adb/adb_trace.h b/adb/adb_trace.h
79 recovery_mode = 1; 127index 8a5d9f8..01c4c06 100644
80diff --git a/adb/adb.h b/adb/adb.h 128--- a/adb/adb_trace.h
81index 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
139diff --git a/adb/file_sync_service.c b/adb/file_sync_service.c
140index 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);
93diff --git a/adb/remount_service.c b/adb/remount_service.c 167diff --git a/adb/remount_service.c b/adb/remount_service.c
94index 4cb41e7..6cfc2c6 100644 168index 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
112diff --git a/adb/services.c b/adb/services.c 197diff --git a/adb/services.c b/adb/services.c
113index 495a083..eb895ae 100644 198index 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
143diff --git a/adb/transport_local.c b/adb/transport_local.c 228diff --git a/adb/transport_local.c b/adb/transport_local.c
144index 96a24ba..51c85fc 100644 229index 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
165diff --git a/adb/transport_usb.c b/adb/transport_usb.c 250diff --git a/include/cutils/properties.h b/include/cutils/properties.h
166index ee6b637..c5e1408 100644 251index 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
28do_install_append() { 28do_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"
39RRECOMMENDS_${PN} += "${PN}-ifplugd" 39RRECOMMENDS_${PN} += "${PN}-ifplugd"
40 40
41do_install_append () { 41do_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
3if [ -e /var/run/dbus/session_bus_address ]; then
4 . /var/run/dbus/session_bus_address
5fi
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
22DAEMON=@bindir@/dbus-launch
23NAME=dbus-session
24ADDRESSFILE=/var/run/dbus/session_bus_address
25UUIDDIR=/var/lib/dbus
26DESC="session message bus"
27
28test -x $DAEMON || exit 0
29
30# Source defaults file; edit that file to configure this script.
31ENABLED=1
32PARAMS=""
33if [ -e /etc/default/dbus ]; then
34 . /etc/default/dbus
35fi
36
37if [ -e $ADDRESSFILE ]; then
38 . $ADDRESSFILE
39fi
40
41test "$ENABLED" != "0" || exit 0
42
43start_it_up()
44{
45 echo -n "Starting $DESC: "
46 $DAEMON --auto-syntax > $ADDRESSFILE
47 echo "$NAME."
48}
49
50shut_it_down()
51{
52 echo -n "Stopping $DESC: "
53 kill $DBUS_SESSION_BUS_PID
54 echo "$NAME."
55}
56
57reload_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
67status_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
78case "$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 ;;
101esac
102
103exit 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
23FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
24SRC_URI += " \
25 file://dbus-session.init \
26 file://dbus-session-address \
27 "
28
29INITSCRIPT_PACKAGES = "${PN} ${PN}-session-init"
30INITSCRIPT_NAME_${PN}-session-init = "dbus-session"
31INITSCRIPT_PARAMS_${PN}-session-init = "start 20 5 3 2 . stop 10 0 1 6 ."
32
33PACKAGES =+ "${PN}-session-init"
34FILES_${PN}-session-init = " \
35 ${sysconfdir}/init.d/dbus-session \
36 ${sysconfdir}/profile.d/dbus-session-address \
37 "
38
39do_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 @@
1SUMMARY = "Noto Sans CJK"
2SECTION = "fonts"
3HOMEPAGE = "http://www.google.com/get/noto"
4LICENSE = "Apache-2.0"
5# see https://code.google.com/p/noto/issues/detail?id=331
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
7
8INHIBIT_DEFAULT_DEPS = "1"
9
10inherit allarch fontcache
11
12PV = "1.004"
13SRC_URI = "http://www.google.com/get/noto/pkgs/NotoSansCJKSC-hinted.zip"
14
15SRC_URI[md5sum] = "dc40e8af0b0178451ccc301f1d41e726"
16SRC_URI[sha256sum] = "25143bb803ebb20fd17ffd1299012ee2f3a929182ff0700ab656c181872413a4"
17
18do_install() {
19 install -m 0644 -d ${D}${datadir}/fonts/otf/noto
20 install -m 0644 ${WORKDIR}/*.otf ${D}${datadir}/fonts/otf/noto
21}
22
23PACKAGES = "${PN}"
24FILES_${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
23BBCLASSEXTEND = "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"
25LIC_FILES_CHKSUM = "file://${WORKDIR}/hunspell-${PV}/COPYING;md5=ed3a37b3ba6d6be3e08ab45987cf1b88" 25LIC_FILES_CHKSUM = "file://${WORKDIR}/hunspell-${PV}/COPYING;md5=ed3a37b3ba6d6be3e08ab45987cf1b88"
26 26
27SRC_URI = "http://downloads.sourceforge.net/hunspell/hunspell-${PV}.tar.gz;name=hunspell \ 27SRC_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
31SRC_URI[hunspell.md5sum] = "3121aaf3e13e5d88dfff13fb4a5f1ab8" 31SRC_URI[hunspell.md5sum] = "3121aaf3e13e5d88dfff13fb4a5f1ab8"
@@ -42,11 +42,11 @@ RRECOMMENDS_${PN} += "${PN}-dicts"
42FILES_${PN}-dicts = "${datadir}/hunspell" 42FILES_${PN}-dicts = "${datadir}/hunspell"
43 43
44do_install_append() { 44do_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
38IMAGE_INSTALL += "\ 38IMAGE_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}:"
25SRC_URI_append_beagleboard = " file://fixed_mac_address" 25SRC_URI_append_beagleboard = " file://fixed_mac_address"
26 26
27do_install_append_beagleboard() { 27do_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
23do_configure_append() { 23do_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 @@
1From 49863894db3ed7bd41541b1c17733273966cea71 Mon Sep 17 00:00:00 2001
2From: Will Deacon <will.deacon@arm.com>
3Date: Thu, 26 Sep 2013 12:36:35 +0100
4Subject: [PATCH] ARM: perf: add support for perf registers API
5
6This patch implements the functions required for the perf registers API,
7allowing the perf tool to interface kernel register dumps with libunwind
8in order to provide userspace backtracing.
9
10Cc: Jean Pihet <jean.pihet@linaro.org>
11Signed-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
22diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
23index 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
35diff --git a/arch/arm/include/uapi/asm/Kbuild b/arch/arm/include/uapi/asm/Kbuild
36index 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
47diff --git a/arch/arm/include/uapi/asm/perf_regs.h b/arch/arm/include/uapi/asm/perf_regs.h
48new file mode 100644
49index 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 */
76diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile
77index 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
88diff --git a/arch/arm/kernel/perf_regs.c b/arch/arm/kernel/perf_regs.c
89new file mode 100644
90index 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--
1251.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 @@
1From 8abd7519c1fd2b6ae35eddbb41f93f44d3886000 Mon Sep 17 00:00:00 2001
2From: Will Deacon <will.deacon@arm.com>
3Date: Thu, 26 Sep 2013 12:36:36 +0100
4Subject: [PATCH] ARM: perf: wire up perf_regs and unwind support for ARM
5
6This patch hooks in the perf_regs and libunwind code for ARM.
7
8B2Qt: Backported for 3.10 kernel
9
10Cc: Jean Pihet <jean.pihet@linaro.org>
11Signed-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
21diff --git a/tools/perf/Makefile b/tools/perf/Makefile
22index 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
45diff --git a/tools/perf/arch/arm/Makefile b/tools/perf/arch/arm/Makefile
46index 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
56diff --git a/tools/perf/arch/arm/include/perf_regs.h b/tools/perf/arch/arm/include/perf_regs.h
57new file mode 100644
58index 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 */
116diff --git a/tools/perf/arch/arm/util/unwind.c b/tools/perf/arch/arm/util/unwind.c
117new file mode 100644
118index 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--
1711.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"
24PR = "r0" 24PR = "r0"
25LICENSE = "CLOSED" 25LICENSE = "CLOSED"
26 26
27inherit populate_sdk
28
27TOOLCHAIN_HOST_TASK = "nativesdk-packagegroup-b2qt-embedded-toolchain-host packagegroup-cross-canadian-${MACHINE}" 29TOOLCHAIN_HOST_TASK = "nativesdk-packagegroup-b2qt-embedded-toolchain-host packagegroup-cross-canadian-${MACHINE}"
28TOOLCHAIN_TARGET_TASK = "nativesdk-packagegroup-b2qt-embedded-toolchain-target" 30TOOLCHAIN_TARGET_TASK += "packagegroup-b2qt-embedded-toolchain-target"
29 31
30require recipes-core/meta/meta-toolchain.bb
31 32
32toolchain_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 */
108typedef unsigned int EGLNativeDisplayType; 108typedef intptr_t EGLNativeDisplayType;
109typedef unsigned int EGLNativeWindowType; 109typedef intptr_t EGLNativeWindowType;
110typedef unsigned int EGLNativePixmapType; 110typedef 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"
29require opengldummy.inc 29require opengldummy.inc
30 30
31do_compile() { 31do_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
36do_install_append() { 36do_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
30FILES_${PN} = "${libdir}"
31FILES_${PN}-dev = "${includedir}/"
32
33do_install() { 30do_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"
25LICENSE = "CLOSED" 25LICENSE = "CLOSED"
26 26
27PV = "1.0.0" 27PV = "1.0.0"
28SOLIBMAJOR = "1"
29SOLIBMINOR = "0"
28 30
29require opengldummy.inc 31require opengldummy.inc
30 32
31do_compile() { 33do_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
35do_install_append() { 38do_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 @@
23PACKAGECONFIG += "perl" 23PACKAGECONFIG += "perl"
24 24
25do_install_append () { 25do_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
23DESCRIPTION = "Host packages for B2Qt on embedded Linux SDK" 23DESCRIPTION = "Host packages for B2Qt on embedded Linux SDK"
24PR = "r0" 24PR = "r0"
25ALLOW_EMPTY_${PN} = "1"
26LICENSE = "CLOSED" 25LICENSE = "CLOSED"
27 26
28require recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb 27inherit nativesdk packagegroup
29 28
30RDEPENDS_${PN} = "\ 29RDEPENDS_${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"
27inherit packagegroup 27inherit packagegroup
28 28
29RDEPENDS_${PN} = "\ 29RDEPENDS_${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
23DESCRIPTION = "Additional gstreamer packagegroup for B2Qt embedded Linux image"
24LICENSE = "CLOSED"
25PR = "r0"
26
27inherit packagegroup
28
29RDEPENDS_${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
23DESCRIPTION = "Target packages for B2Qt on embedded Linux SDK" 23DESCRIPTION = "Target packages for B2Qt on embedded Linux SDK"
24PR = "r0" 24PR = "r0"
25ALLOW_EMPTY_${PN} = "1"
26LICENSE = "CLOSED" 25LICENSE = "CLOSED"
27 26
28PACKAGES = "${PN}" 27inherit packagegroup
29
30MACHINE_EXTRA_INSTALL_SDK ?= ""
31 28
32RDEPENDS_${PN} += "\ 29RDEPENDS_${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 @@
1PERF_FEATURES_ENABLE = "perf-libunwind"
2EXTRA_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
31SRC_URI[md5sum] = "be834de415adaf2f696f7a499f88b4e6" 31SRC_URI[md5sum] = "cc053340f88922a11ad9d4fab56557bd"
32SRC_URI[sha256sum] = "f8f6dc19612f3c84a5c857b8e5c452b8db2cf3c8c52a678b6a00e5dd5831130d" 32SRC_URI[sha256sum] = "ea9569ec16cd6202ee61bcadb2506d31ac12fd343adb91565773a05eaaea9a36"
33 33
34S = "${WORKDIR}/VirtualBox-${PV}/src/VBox/Additions/linux/sharedfolders" 34S = "${WORKDIR}/VirtualBox-${PV}/src/VBox/Additions/linux/sharedfolders"
35 35
36do_compile() { 36do_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
40do_install() { 40do_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
48INITSCRIPT_NAME = "mount-vboxsf.sh" 48INITSCRIPT_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
32SRC_URI = "http://download.virtualbox.org/virtualbox/${PV}/VirtualBox-${PV}.tar.bz2" 32SRC_URI = "http://download.virtualbox.org/virtualbox/${PV}/VirtualBox-${PV}.tar.bz2"
33 33
34SRC_URI[md5sum] = "be834de415adaf2f696f7a499f88b4e6" 34SRC_URI[md5sum] = "cc053340f88922a11ad9d4fab56557bd"
35SRC_URI[sha256sum] = "f8f6dc19612f3c84a5c857b8e5c452b8db2cf3c8c52a678b6a00e5dd5831130d" 35SRC_URI[sha256sum] = "ea9569ec16cd6202ee61bcadb2506d31ac12fd343adb91565773a05eaaea9a36"
36 36
37S = "${WORKDIR}/vbox" 37S = "${WORKDIR}/vbox"
38 38
@@ -41,17 +41,15 @@ export KBUILD_VERBOSE="1"
41export BUILD_TARGET_ARCH="${ARCH}" 41export BUILD_TARGET_ARCH="${ARCH}"
42 42
43do_compile_prepend() { 43do_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
48do_install() { 48do_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
53PKG_${PN} = "kernel-module-vbox" 55PKG_${PN} = "kernel-module-vbox"
54
55module_autoload_vboxsf = "vboxsf"
56module_autoload_vboxvideo = "vboxvideo"
57module_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 @@
1From a9ab89496d32ab42d9f697c43cf8bb04feaeabfa Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@digia.com>
3Date: Fri, 26 Sep 2014 10:39:51 +0300
4Subject: [PATCH] Use native wayland-scanner when building nativesdk-wayland
5
6The wayland-scanner built for the nativesdk cannot be run during the build, 1The wayland-scanner built for the nativesdk cannot be run during the build,
7so instead use the wayland-scanner from native build. 2so instead use the wayland-scanner from native build.
8---
9 src/Makefile.am | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11 3
12diff --git a/src/Makefile.am b/src/Makefile.am 4Upstream-Status: Pending
13index b938d17..84fcdf6 100644 5
14--- a/src/Makefile.am 6Signed-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(-)
10diff --git a/Makefile.am b/Makefile.am
11index 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--
261.8.3.2 241.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
23FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" 23FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
24SRC_URI_append_class-nativesdk = " file://just-scanner.patch \ 24SRC_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 @@
1do_install_append () { 1do_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
17FILES_${PN}-dev += "${includedir}/wpa-supplicant/*" 17FILES_${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
24while test -n "$1"; do
25 case "$1" in
26 "--upload")
27 UPLOAD=1
28 ;;
29 esac
30 shift
31done
32
24echo "-------------------------------------" >> build.log 33echo "-------------------------------------" >> build.log
25for DIR in $(ls -d build-*); do 34for 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 )
35done 51done
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
24set -e
25
26MKSPEC="devices/linux-oe-generic-g++"
27ABI="arm-linux-generic-elf-32bit"
28### TBD: detect ABI
29
30printUsage ()
31{
32 echo "Usage: $0 <toolchain-environment-setup-file> [--remove]"
33}
34
35while 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
51done
52
53if [ ! -f "$CONFIG" ]; then
54 printUsage
55 exit 1
56fi
57
58if [ -z "${SDKTOOL}" ]; then
59 SDKTOOL="${HOME}/Qt/Tools/QtCreator/bin/sdktool"
60fi
61if [ ! -x ${SDKTOOL} ]; then
62 echo "Cannot find 'sdktool'"
63 exit 1
64fi
65
66source $CONFIG
67
68if [ ! -d "${OECORE_NATIVE_SYSROOT}/mkspecs/${MKSPEC}" ]; then
69 echo Error: $CONFIG is invalid.
70 exit 1
71fi
72
73MACHINE=$(grep '^MACHINE' ${OECORE_NATIVE_SYSROOT}/mkspecs/qdevice.pri | cut -d'=' -f2 | tr -d ' ')
74
75RELEASE=$(qmake -query QT_VERSION)
76
77BASEID="byos.${RELEASE}.${MACHINE}"
78
79BASENAME="Custom Qt Embedded"
80TOOLCHAINNAME="GCC (${BASENAME} ${RELEASE} ${MACHINE})"
81QTNAME="${BASENAME} ${RELEASE} ${MACHINE}"
82KITNAME="${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
88if [ -n "${REMOVEONLY}" ]; then
89 echo "Kit removed: ${KITNAME}"
90 exit 0
91fi
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
117echo "Configured Qt Creator with new kit:"
118echo " ${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
46fi 46fi
47 47
48BUILDDIR=${BUILDDIR:-build-${MACHINE}} 48BUILDDIRECTORY=${BUILDDIRECTORY:-build-${MACHINE}}
49 49
50if [ ! -f ${PWD}/${BUILDDIR}/conf/bblayers.conf ]; then 50if [ ! -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
85fi 89fi
86 90
87export TEMPLATECONF="${PWD}/sources/meta-b2qt/conf" 91export 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
91sed -i -e "/QT_SDK_PATH/s:\"\":\"${QT_SDK_PATH}\":" conf/local.conf 95sed -i -e "/QT_SDK_PATH/s:\"\":\"${QT_SDK_PATH}\":" conf/local.conf
92 96
97unset BUILDDIRECTORY
93unset QT_SDK_PATH 98unset QT_SDK_PATH
94unset TEMPLATECONF 99unset TEMPLATECONF
95unset LAYERSCONF 100unset 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 @@
24set -x 24set -x
25set -e 25set -e
26 26
27RELEASE=4.x 27RELEASE=5.5
28UPLOADPATH=QT@ci-files02-hki.ci.local:/srv/jenkins_data/enterprise/b2qt/yocto-${RELEASE}/latest 28UPLOADPATH=QT@ci-files02-hki.ci.local:/srv/jenkins_data/enterprise/b2qt/yocto/${RELEASE}/
29 29
30if [ ${MACHINE} = "nitrogen6x" ]; then 30if [ ${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
34elif [ ${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
39elif [ ${MACHINE} = "imx6qsabresd" ]; then 35elif [ ${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
49else 45else
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
52fi 48fi