From 653b6af852fad5b715a11a71a5404505268a6598 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Wed, 22 Jan 2014 12:08:51 +0200 Subject: Add support for BeagleBone Black Change-Id: I1f30b93c6e3473a00a0a851f5fceccae90ba2f1b Reviewed-by: Samuli Piippo --- conf/distro/include/beaglebone.conf | 35 ++++++++++++++++ recipes/libgles/libgles-omap3_5.00.00.01.bbappend | 48 ++++++++++++++++++++++ recipes/libgles/libgles-omap3_5.01.00.01.bbappend | 44 ++++++++++++++++++++ recipes/linux/linux-ti-staging_3.12.bbappend | 1 + .../0001-BBB-disable-console-cursor-blinking.patch | 25 +++++++++++ recipes/u-boot/u-boot-ti-staging_2013.10.bbappend | 26 ++++++++++++ 6 files changed, 179 insertions(+) create mode 100644 conf/distro/include/beaglebone.conf create mode 100644 recipes/libgles/libgles-omap3_5.00.00.01.bbappend create mode 100644 recipes/libgles/libgles-omap3_5.01.00.01.bbappend create mode 100644 recipes/linux/linux-ti-staging_3.12.bbappend create mode 100644 recipes/u-boot/u-boot-ti-staging/0001-BBB-disable-console-cursor-blinking.patch create mode 100644 recipes/u-boot/u-boot-ti-staging_2013.10.bbappend diff --git a/conf/distro/include/beaglebone.conf b/conf/distro/include/beaglebone.conf new file mode 100644 index 0000000..528b41d --- /dev/null +++ b/conf/distro/include/beaglebone.conf @@ -0,0 +1,35 @@ +############################################################################ +## +## Copyright (C) 2013 Digia Plc +## All rights reserved. +## For any questions to Digia, please use contact form at http://qt.digia.com +## +## This file is part of QtEnterprise Embedded. +## +## Licensees holding valid Qt Enterprise licenses may use this file in +## accordance with the Qt Enterprise License Agreement provided with the +## Software or, alternatively, in accordance with the terms contained in +## a written agreement between you and Digia. +## +## If you have questions regarding the use of this file, please use +## contact form at http://qt.digia.com +## +############################################################################ +IMAGE_FSTYPES = "tar.gz" + +PREFERRED_PROVIDER_virtual/libgl = "libgles-omap3" +PREFERRED_VERSION_libgles-omap3 = "5.01.00.01" +PREFERRED_VERSION_omap3-sgx-modules = "5.01.00.01" + +MACHINE_EXTRA_INSTALL = "\ + libgles-omap3 \ + libgles-omap3-rawdemos \ + " + +MACHINE_EXTRA_INSTALL_SDK = "\ + libgles-omap3-dev \ + " + +ADB_PRODUCTID = "0xD002" + +DEFAULTTUNE = "armv7ahf-neon" diff --git a/recipes/libgles/libgles-omap3_5.00.00.01.bbappend b/recipes/libgles/libgles-omap3_5.00.00.01.bbappend new file mode 100644 index 0000000..1398af0 --- /dev/null +++ b/recipes/libgles/libgles-omap3_5.00.00.01.bbappend @@ -0,0 +1,48 @@ +############################################################################# +## +## Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +## +## This file is part of the Qt Enterprise Embedded Scripts of the Qt +## framework. +## +## $QT_BEGIN_LICENSE$ +## Commercial License Usage Only +## Licensees holding valid commercial Qt license agreements with Digia +## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, +## may use this file in accordance with the terms contained in said license +## agreement. +## +## For further information use the contact form at +## http://qt.digia.com/contact-us. +## +## +## $QT_END_LICENSE$ +## +############################################################################# + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +BINLOCATION_omap3 = "${S}/gfx_rel_es5.x" +BINLOCATION_beaglebone = "${S}/gfx_rel_es8.x" + +PROVIDES += "virtual/libgl" + +LIBGLESWINDOWSYSTEM = "libpvrPVR2D_FLIPWSEGL.so.1" + +do_install_append() { + echo "ParamBufferSize=33554432" >> ${D}${sysconfdir}/powervr.ini +} + +# Inhibit warnings about files being stripped. +INHIBIT_PACKAGE_DEBUG_SPLIT = "1" + +pkg_postinst_${PN}_append() { +ESREV=$(echo ${BINLOCATION} | grep -Po '(\d+)(?!.*\d)' ) +echo ${ESREV} > $D${sysconfdir}/powervr-esrev +} + +RRECOMMENDS_${PN} = "omap3-sgx-modules" +RRECOMMENDS_${PN}-blitwsegl = "" +RRECOMMENDS_${PN}-flipwsegl = "" +RRECOMMENDS_${PN}-frontwsegl = "" +RRECOMMENDS_${PN}-linuxfbwsegl = "" diff --git a/recipes/libgles/libgles-omap3_5.01.00.01.bbappend b/recipes/libgles/libgles-omap3_5.01.00.01.bbappend new file mode 100644 index 0000000..17666cb --- /dev/null +++ b/recipes/libgles/libgles-omap3_5.01.00.01.bbappend @@ -0,0 +1,44 @@ +############################################################################# +## +## Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +## +## This file is part of the Qt Enterprise Embedded Scripts of the Qt +## framework. +## +## $QT_BEGIN_LICENSE$ +## Commercial License Usage Only +## Licensees holding valid commercial Qt license agreements with Digia +## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, +## may use this file in accordance with the terms contained in said license +## agreement. +## +## For further information use the contact form at +## http://qt.digia.com/contact-us. +## +## +## $QT_END_LICENSE$ +## +############################################################################# + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +BINLOCATION_omap3 = "${S}/gfx_rel_es5.x" +BINLOCATION_beaglebone = "${S}/gfx_rel_es8.x" + +PROVIDES += "virtual/libgl" + +LIBGLESWINDOWSYSTEM = "libpvrPVR2D_FLIPWSEGL.so.1" + +# Inhibit warnings about files being stripped. +INHIBIT_PACKAGE_DEBUG_SPLIT = "1" + +pkg_postinst_${PN}_append() { +ESREV=$(echo ${BINLOCATION} | grep -Po '(\d+)(?!.*\d)' ) +echo ${ESREV} > $D${sysconfdir}/powervr-esrev +} + +RRECOMMENDS_${PN} = "omap3-sgx-modules" +RRECOMMENDS_${PN}-blitwsegl = "" +RRECOMMENDS_${PN}-flipwsegl = "" +RRECOMMENDS_${PN}-frontwsegl = "" +RRECOMMENDS_${PN}-linuxfbwsegl = "" diff --git a/recipes/linux/linux-ti-staging_3.12.bbappend b/recipes/linux/linux-ti-staging_3.12.bbappend new file mode 100644 index 0000000..5bc8967 --- /dev/null +++ b/recipes/linux/linux-ti-staging_3.12.bbappend @@ -0,0 +1 @@ +KERNEL_DEVICETREE_b2qt = "am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb" diff --git a/recipes/u-boot/u-boot-ti-staging/0001-BBB-disable-console-cursor-blinking.patch b/recipes/u-boot/u-boot-ti-staging/0001-BBB-disable-console-cursor-blinking.patch new file mode 100644 index 0000000..25dd9e4 --- /dev/null +++ b/recipes/u-boot/u-boot-ti-staging/0001-BBB-disable-console-cursor-blinking.patch @@ -0,0 +1,25 @@ +From bde714b9bfeafe46abc1078c09f6efac0e7b6478 Mon Sep 17 00:00:00 2001 +From: Samuli Piippo +Date: Wed, 22 Jan 2014 11:30:59 +0200 +Subject: [PATCH] BBB: disable console cursor blinking + +--- + include/configs/am335x_evm.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h +index d53f17d..1b3d2a4 100644 +--- a/include/configs/am335x_evm.h ++++ b/include/configs/am335x_evm.h +@@ -59,6 +59,8 @@ + "ramrootfstype=ext2\0" \ + "mmcargs=setenv bootargs console=${console} " \ + "${optargs} " \ ++ "consoleblank=0 " \ ++ "vt.global_cursor_default=0 " \ + "root=${mmcroot} " \ + "rootfstype=${mmcrootfstype}\0" \ + "spiroot=/dev/mtdblock4 rw\0" \ +-- +1.8.3.2 + diff --git a/recipes/u-boot/u-boot-ti-staging_2013.10.bbappend b/recipes/u-boot/u-boot-ti-staging_2013.10.bbappend new file mode 100644 index 0000000..8caf0c5 --- /dev/null +++ b/recipes/u-boot/u-boot-ti-staging_2013.10.bbappend @@ -0,0 +1,26 @@ +############################################################################# +## +## Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +## +## This file is part of the Qt Enterprise Embedded Scripts of the Qt +## framework. +## +## $QT_BEGIN_LICENSE$ +## Commercial License Usage Only +## Licensees holding valid commercial Qt license agreements with Digia +## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, +## may use this file in accordance with the terms contained in said license +## agreement. +## +## For further information use the contact form at +## http://qt.digia.com/contact-us. +## +## +## $QT_END_LICENSE$ +## +############################################################################# + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +SRC_URI += " \ + file://0001-BBB-disable-console-cursor-blinking.patch \ + " -- cgit v1.2.3-54-g00ecf