From bc5f5a67a5850d2a68527d37de6b512854a72f93 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 27 Mar 2013 16:58:42 +0100 Subject: images: added a QT4 X11 image - bbappends to the base qt4-x11-free recipe to use OpenGL ES2 - script which starts X plus qtdemo, including a systemd service to activate script --- recipes/images/angstrom-qt-x11-image.bb | 175 ++++++++++++++++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 recipes/images/angstrom-qt-x11-image.bb (limited to 'recipes') diff --git a/recipes/images/angstrom-qt-x11-image.bb b/recipes/images/angstrom-qt-x11-image.bb new file mode 100644 index 0000000..6774ca6 --- /dev/null +++ b/recipes/images/angstrom-qt-x11-image.bb @@ -0,0 +1,175 @@ +#Angstrom image +DESCRIPTION = "Image based on qt4-x11-free" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" + +PV = "V2.0" +PR = "r3" + +#start of the resulting deployable tarball name +IMAGE_NAME_colibri-t20 = "T20_LinuxImage-qt" +IMAGE_NAME_colibri-t30 = "T30_LinuxImage-qt" +IMAGE_NAME_apalis-t30 = "ApalisT30_LinuxImage-qt" +IMAGE_NAME_colibri-pxa = "PXA_LinuxImage-qt" + +#create the deployment directory-tree +require trdx-image-fstype.inc + +#create the file /etc/timestamp +IMAGE_PREPROCESS_COMMAND = "rootfs_update_timestamp" + +#remove interfering sysv scripts, connman systemd service +ROOTFS_POSTINSTALL_COMMAND = "for i in ${IMAGE_ROOTFS}/etc/rc0.d ${IMAGE_ROOTFS}/etc/rc1.d ${IMAGE_ROOTFS}/etc/rc2.d ${IMAGE_ROOTFS}/etc/rc3.d ${IMAGE_ROOTFS}/etc/rc4.d ${IMAGE_ROOTFS}/etc/rc5.d ${IMAGE_ROOTFS}/etc/rc6.d ${IMAGE_ROOTFS}/etc/rcS.d ; do rm -f $i/*dropbear $i/*avahi-daemon $i/*dbus-1 $i/*lxdm $i/*ntpd $i/*syslog $i/*ofono $i/*alsa-state $i/*networking $i/*udev-late-mount $i/*sendsigs $i/*save-rtc.sh $i/*umountnfs.sh $i/*portmap $i/*umountfs $i/*halt $i/*rmnologin.sh $i/*reboot; rm -f $i/*banner.sh $i/*sysfs.sh $i/*checkroot.sh $i/*alignment.sh $i/*mountall.sh $i/*populate-volatile.sh $i/*devpts.sh $i/*hostname.sh $i/*portmap $i/*mountnfs.sh $i/*bootmisc.sh ; done" + +#IMAGE_LINGUAS = "" +IMAGE_LINGUAS = "en-us" + +DISTRO_UPDATE_ALTERNATIVES ??= "" +ROOTFS_PKGMANAGE_PKGS ?= '${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${ROOTFS_PKGMANAGE} ${DISTRO_UPDATE_ALTERNATIVES}", d)}' + +CONMANPKGS ?= "connman connman-plugin-loopback connman-plugin-ethernet connman-plugin-wifi" +CONMANPKGS_libc-uclibc = "" + +DEPENDS += "gst-plugins-good gst-plugins-bad gst-plugins-ugly" + +#deploy the OpenGL ES headers to the sysroot +DEPENDS += "nvsamples" + +#build some ipk which are needed together with CAN, but do not yet install them +DEPENDS += "canutils libsocketcan iproute2" + +# this would pull in a large amount of gst-plugins, we only add a selected few +# gst-plugins-base-meta +# gst-plugins-good-meta +# gst-plugins-bad-meta +# gst-ffmpeg + +# needed by nvidia commandline player +# libpcre + +# these were in the oe classic image +IMAGE_INSTALL_CLASSIC = " \ +xdg-utils \ +xvinfo \ +\ +file \ +initscripts \ +libgsf \ +polkit-gnome \ +libwnck \ +libxres \ +makedevs \ +mime-support \ +zeroconf \ +" + +IMAGE_INSTALL_QT4 = " \ + qt4-x11-free \ + qt4-xmlpatterns \ + libqt3support4 \ + libqtclucene4 \ + libqtcore4 \ + libqtdbus4 \ + libqtgui4 \ + libqthelp4 \ + libqtmultimedia4 \ + libqtnetwork4 \ + libqtscript4 \ + libqtscripttools4 \ + libqtsql4 \ + libqtsvg4 \ + libqttest4 \ + libqtwebkit4 \ + libqtxml4 \ + qt4-plugin-iconengine-svgicon \ + qt4-plugin-imageformat-gif \ + qt4-plugin-imageformat-ico \ + qt4-plugin-imageformat-jpeg \ + qt4-plugin-imageformat-mng \ + qt4-plugin-imageformat-svg \ + qt4-plugin-imageformat-tga \ + qt4-plugin-imageformat-tiff \ + qt4-plugin-phonon-backend-gstreamer \ + qt4-plugin-script-dbus \ + qt4-plugin-sqldriver-sqlite \ + qt4-demos \ + qt4-x11-free-systemd \ + qt4-examples \ + qt4-assistant \ + icu \ +" + +IMAGE_INSTALL += " \ + ${IMAGE_INSTALL_QT4} \ + ${IMAGE_INSTALL_CLASSIC} \ + angstrom-packagegroup-boot \ + task-basic \ + udev-extra-rules \ + ${CONMANPKGS} \ + ${ROOTFS_PKGMANAGE_PKGS} \ + timestamp-service \ + task-base-extended \ + ${XSERVER} \ + xserver-common \ + xserver-xorg-extension-dbe \ + xserver-xorg-extension-extmod \ + xserver-xorg-extension-extmod \ + xauth \ + xhost \ + xset \ + setxkbmap \ + \ + xrandr \ + xrdb \ + xorg-minimal-fonts xserver-xorg-multimedia-modules xserver-xorg-utils \ + \ + libxdamage libxvmc libxinerama \ + libxcursor \ + \ + bash \ + tinylogin \ + \ + gstreamer \ + gst-plugins-base \ + gst-plugins-base-alsa \ + gst-plugins-base-audioconvert \ + gst-plugins-base-audioresample \ + gst-plugins-base-audiotestsrc \ + gst-plugins-base-decodebin \ + gst-plugins-base-decodebin2 \ + gst-plugins-base-playbin \ + gst-plugins-base-typefindfunctions \ + gst-plugins-base-ivorbisdec \ + gst-plugins-base-ogg \ + gst-plugins-base-theora \ + gst-plugins-base-videotestsrc \ + gst-plugins-base-vorbis \ + gst-plugins-good-audioparsers \ + gst-plugins-good-autodetect \ + gst-plugins-good-avi \ + gst-plugins-good-id3demux \ + gst-plugins-good-isomp4 \ + gst-plugins-good-matroska \ + gst-plugins-good-rtp \ + gst-plugins-good-udp \ + gst-plugins-good-video4linux2 \ + gst-plugins-good-wavenc \ + gst-plugins-good-wavparse \ + gst-plugins-ugly-asf \ + libpcre \ + libpcreposix \ + libxcomposite \ + alsa-states \ +" + +require trdx-extra.inc + +IMAGE_DEV_MANAGER = "udev" +IMAGE_INIT_MANAGER = "systemd" +IMAGE_INITSCRIPTS = " " +IMAGE_LOGIN_MANAGER = "tinylogin shadow" + +export IMAGE_BASENAME = "qt-image" + +inherit core-image -- cgit v1.2.3