From ea5dc9d8f3a51f07a09cf60446bfe915eff9157b Mon Sep 17 00:00:00 2001 From: Harunobu Kurokawa Date: Wed, 6 Dec 2017 15:52:15 +0900 Subject: weston-ini-conf: Add virtual display and record for CES2017 demo In order to support IVI-Cluster demo, virtual display and gst-recorder parameter are set in weston.ini. If you want to use virtual output system, set "virtual-display" in DISTRO_FEATURES. Then the sample value is enabled. If you want to use transfer system to multi ECU via H.264, set "gst-record" in DISTRO_FEATURES. This feature is commited to DD[1]. After that he weston-ini-conf is updated. This commit is same result as that time. Note: These system are supported in R-Car M3 and H3 only. [1] https://gerrit.automotivelinux.org/gerrit/#/c/9907/ [2] https://gerrit.automotivelinux.org/gerrit/#/c/10847/ Change-Id: I1f7b9af5dc0e459aa49d336ed5ba0cebaf8adab2 Signed-off-by: Harunobu Kurokawa --- recipes-graphics/wayland/weston-ini-conf.bbappend | 15 +++++++++++++++ .../wayland/weston-ini-conf/virtualoutput.cfg | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 recipes-graphics/wayland/weston-ini-conf.bbappend create mode 100644 recipes-graphics/wayland/weston-ini-conf/virtualoutput.cfg (limited to 'recipes-graphics/wayland') diff --git a/recipes-graphics/wayland/weston-ini-conf.bbappend b/recipes-graphics/wayland/weston-ini-conf.bbappend new file mode 100644 index 000000000..2f155c022 --- /dev/null +++ b/recipes-graphics/wayland/weston-ini-conf.bbappend @@ -0,0 +1,15 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +# +SRC_URI += "${@bb.utils.contains("DISTRO_FEATURES", "virtual-display", "file://virtualoutput.cfg", "",d)}" + +do_configure_append() { + if [ ${@bb.utils.contains('DISTRO_FEATURES', 'virtual-display', 'true', 'false', d)} ]; then + echo virtual=1 >> ${WORKDIR}/core.cfg + fi + + if [ ${@bb.utils.contains('DISTRO_FEATURES', 'gst-record', 'true', 'false', d)} ]; then + echo recorder=true >> ${WORKDIR}/virtualoutput.cfg + fi +} + diff --git a/recipes-graphics/wayland/weston-ini-conf/virtualoutput.cfg b/recipes-graphics/wayland/weston-ini-conf/virtualoutput.cfg new file mode 100644 index 000000000..76f536ff8 --- /dev/null +++ b/recipes-graphics/wayland/weston-ini-conf/virtualoutput.cfg @@ -0,0 +1,7 @@ +[output] +name=virtual1 +mode=1920x1080@30 +ip=192.168.20.99 +port=5005 +bitrate=3000000 +crop=384x368@0x0 -- cgit 1.2.3-korg