Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] qt4e-demo-image: Fix bug 999
Date: Wed, 24 Aug 2011 16:36:45 -0700	[thread overview]
Message-ID: <4E558B0D.1080307@linux.intel.com> (raw)
In-Reply-To: <e62894baf8e79baa7e19901b7ec8c515dddb2537.1314166867.git.xiaofeng.yan@windriver.com>

On 08/23/2011 11:34 PM, Xiaofeng Yan wrote:
> From: Xiaofeng Yan<xiaofeng.yan@windriver.com>
>
> [YOCTO #999]
> Copy metadata of qt4e-demo-image from OE for easy testing qt4embeded on embedded platform.
> This image was tested on qemuarm and can run program "qtdemoE".
>
> Signed-off-by: Xiaofeng Yan<xiaofeng.yan@windriver.com>
> ---
>   meta/recipes-qt/images/qt4e-base-image.bb        |   14 ++++++
>   meta/recipes-qt/images/qt4e-demo-image.bb        |   12 +++++
>   meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init |   55 ++++++++++++++++++++++
>   meta/recipes-qt/qt-demo/qt-demo-init_0.1.bb      |   19 ++++++++
>   meta/recipes-qt/tasks/task-qt4e.bb               |   48 +++++++++++++++++++
>   5 files changed, 148 insertions(+), 0 deletions(-)
>   create mode 100644 meta/recipes-qt/images/qt4e-base-image.bb
>   create mode 100644 meta/recipes-qt/images/qt4e-demo-image.bb
>   create mode 100644 meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init
>   create mode 100644 meta/recipes-qt/qt-demo/qt-demo-init_0.1.bb
>   create mode 100644 meta/recipes-qt/tasks/task-qt4e.bb
>
> diff --git a/meta/recipes-qt/images/qt4e-base-image.bb b/meta/recipes-qt/images/qt4e-base-image.bb
> new file mode 100644
> index 0000000..395c069
> --- /dev/null
> +++ b/meta/recipes-qt/images/qt4e-base-image.bb
> @@ -0,0 +1,14 @@
> +inherit core-image
> +
> +TOUCH = ' ${@base_contains("MACHINE_FEATURES", "touchscreen", "tslib tslib-calibrate tslib-tests", "",d)}'
> +
> +DEPENDS += "task-qt4e"
> +
> +RDEPENDS_${PN} += " \
> +	task-qt4e-base \
> +	"
> +
> +IMAGE_INSTALL += "\
> +	task-qt4e-base \
> +	${TOUCH} \
> +"
> diff --git a/meta/recipes-qt/images/qt4e-demo-image.bb b/meta/recipes-qt/images/qt4e-demo-image.bb
> new file mode 100644
> index 0000000..cf3e6fb
> --- /dev/null
> +++ b/meta/recipes-qt/images/qt4e-demo-image.bb
> @@ -0,0 +1,12 @@
> +require qt4e-base-image.bb
> +
Why do we need the qt4e-base-image and this demo-image?  Do we expect to 
have multiple images?  This creates yet another image that needs to be 
built and tested?  Can this really just be added to the sato-sdk or 
lsb-sdk images instead?

Sau!

> +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
> +                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
> +
> +
> +IMAGE_INSTALL += "\
> +        qt4-embedded-demos \
> +        qt4-embedded-examples \
> +        qt-demo-init \
> +        qt4-embedded-assistant \
> +"
> diff --git a/meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init b/meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init
> new file mode 100644
> index 0000000..affb958
> --- /dev/null
> +++ b/meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init
> @@ -0,0 +1,55 @@
> +#!/bin/sh
> +
> +set -e
> +
> +if [ -f /usr/bin/qtdemo ]; then
> +	QTDEMO="qtdemo>  /var/log/Xsession.log 2>  &1"
> +else
> +	QTDEMO="qtdemoE -qws"
> +fi
> +
> +case "$1" in
> +  start)
> +	echo "Starting qtdemo"
> +	if [ -f /etc/profile.d/tslib.sh ]; then
> +		source /etc/profile.d/tslib.sh
> +	fi
> +	if [ -e $TSLIB_TSDEVICE ]; then
> +		if [ ! -f /etc/pointercal ]; then
> +			/usr/bin/ts_calibrate
> +		fi
> +		if [ $QTDEMO == qtdemo ]; then
> +			Xorg&
> +			export DISPLAY=:0
> +			$QTDEMO&
> +		else
> +			QWS_MOUSE_PROTO=tslib:$TSLIB_TSDEVICE $QTDEMO&
> +		fi
> +	else
> +		if [ $QTDEMO == qtdemo ]; then
> +			Xorg&
> +			export DISPLAY=:0
> +		fi
> +		$QTDEMO&
> +	fi
> +	;;
> +  stop)
> +	echo "Stopping qtdemo"
> +	if [ $QTDEMO == qtdemo ]; then
> +		killall Xorg
> +		killall qtdemo
> +	else
> +		killall qtdemoE
> +	fi
> +	;;
> +  restart)
> +	$0 stop
> +	$0 start
> +	;;
> +  *)
> +	echo "usage: $0 { start | stop | restart }">&2
> +	exit 1
> +	;;
> +esac
> +
> +exit 0
> diff --git a/meta/recipes-qt/qt-demo/qt-demo-init_0.1.bb b/meta/recipes-qt/qt-demo/qt-demo-init_0.1.bb
> new file mode 100644
> index 0000000..3d7cdfc
> --- /dev/null
> +++ b/meta/recipes-qt/qt-demo/qt-demo-init_0.1.bb
> @@ -0,0 +1,19 @@
> +DESCRIPTION = "Init script for qtdemo"
> +LICENSE = "MIT"
> +SRC_URI = "file://qtdemo-init"
> +PR = "r2"
> +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
> +                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
> +
> +
> +PACKAGE_ARCH = "all"
> +
> +do_install() {
> +	install -d ${D}${sysconfdir}/init.d/
> +	install -m 0755 ${WORKDIR}/qtdemo-init ${D}${sysconfdir}/init.d/qtdemo
> +}
> +
> +inherit update-rc.d
> +
> +INITSCRIPT_NAME = "qtdemo"
> +INITSCRIPT_PARAMS = "start 99 5 2 . stop 19 0 1 6 ."
> diff --git a/meta/recipes-qt/tasks/task-qt4e.bb b/meta/recipes-qt/tasks/task-qt4e.bb
> new file mode 100644
> index 0000000..5b181bb
> --- /dev/null
> +++ b/meta/recipes-qt/tasks/task-qt4e.bb
> @@ -0,0 +1,48 @@
> +DESCRIPTION = "QT4 Embedded base Image Feed"
> +PR = "r0"
> +LICENSE = "MIT"
> +
> +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
> +                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
> +
> +inherit task
> +
> +PACKAGES += " \
> +	${PN}-base \
> +"
> +
> +RDEPENDS_${PN}-base = " \
> +	qt4-embedded \
> +	libqt-embedded3support4 \
> +	libqt-embeddedclucene4 \
> +	libqt-embeddedcore4 \
> +	libqt-embeddeddbus4 \
> +	libqt-embeddedgui4 \
> +	libqt-embeddedhelp4 \
> +	libqt-embeddedmultimedia4 \
> +	libqt-embeddednetwork4 \
> +	libqt-embeddedscript4 \
> +	libqt-embeddedscripttools4 \
> +	libqt-embeddedsql4 \
> +	libqt-embeddedsvg4 \
> +	libqt-embeddedtest4 \
> +	libqt-embeddedwebkit4 \
> +	libqt-embeddedxml4 \
> +	qt4-embedded-fonts-ttf-dejavu \
> +	qt4-embedded-fonts-ttf-vera \
> +	qt4-embedded-plugin-iconengine-svgicon \
> +	qt4-embedded-plugin-imageformat-gif \
> +	qt4-embedded-plugin-imageformat-ico \
> +	qt4-embedded-plugin-imageformat-jpeg \
> +	qt4-embedded-plugin-imageformat-mng \
> +	qt4-embedded-plugin-imageformat-svg \
> +	qt4-embedded-plugin-imageformat-tiff \
> +	qt4-embedded-plugin-mousedriver-tslib \
> +	qt4-embedded-plugin-phonon-backend-gstreamer \
> +	qt4-embedded-plugin-script-dbus \
> +	qt4-embedded-plugin-sqldriver-sqlite \
> +"
> +
> +RRECOMMENDS_${PN}-base = " \
> +	libqt-embeddedxmlpatterns4 \
> +"



  reply	other threads:[~2011-08-24 23:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-24  6:34 [PATCH 0/1] qt4e-demo-image: Fix bug 999 Xiaofeng Yan
2011-08-24  6:34 ` [PATCH 1/1] " Xiaofeng Yan
2011-08-24 23:36   ` Saul Wold [this message]
2011-08-25  0:13     ` Paul Eggleton
2011-08-25  2:10       ` Xiaofeng Yan
  -- strict thread matches above, loose matches on Subject: below --
2011-09-05  1:47 [PATCH 0/1]:qt4e-demo-image: " Xiaofeng Yan
2011-09-05  1:47 ` [PATCH 1/1] qt4e-demo-image:Fix " Xiaofeng Yan
2011-08-23 10:57 [PATCH 0/1] qt4e-demo-image: Fix " Xiaofeng Yan
2011-08-23 10:57 ` [PATCH 1/1] " Xiaofeng Yan
2011-08-23 12:18   ` Paul Eggleton
2011-08-23 12:27     ` Koen Kooi
2011-08-23 12:53       ` Paul Eggleton
2011-08-23 15:10         ` Koen Kooi
2011-08-24  0:16           ` Saul Wold
2011-08-24  1:04             ` Paul Eggleton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E558B0D.1080307@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox