Add gst-record argument to weston option 11/9911/3
authorHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Tue, 27 Jun 2017 01:25:10 +0000 (10:25 +0900)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 6 Jul 2017 12:17:57 +0000 (12:17 +0000)
v2:
 When gst-record is included DISTRO_FEATURES, "--gst-record" is set.

Bug-AGL: SPEC-559

Change-Id: Ia172135f355a98bb10234743cdd1a7b1319723e7
Signed-off-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9911
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>

meta-agl/classes/agl-graphical.bbclass
meta-agl/recipes-graphics/wayland/weston-init.bbappend

index e99a441..0004d9c 100644 (file)
@@ -1,7 +1,7 @@
 WESTONTTY ??= "1"
 WESTONUSER ??= "display"
 WESTONGROUP ??= "display"
-WESTONARGS ?= "--idle-time=0  --tty=${WESTONTTY}"
+WESTONARGS ?= "--idle-time=0  --tty=${WESTONTTY} ${@bb.utils.contains("DISTRO_FEATURES", "gst-record", "--gst-record", "",d)}"
 WESTONLAUNCHARGS ??= "--tty /dev/tty${WESTONTTY} --user ${WESTONUSER}"
 DISPLAY_XDG_RUNTIME_DIR ??= "/run/platform/${WESTONUSER}"
 
index 4975b8e..552cd84 100644 (file)
@@ -2,7 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 inherit agl-graphical
 
-WESTONSTART ??= "/usr/bin/weston --idle-time=4294967 --tty=${WESTONTTY}"
+WESTONSTART ??= "/usr/bin/weston ${WESTONARGS}"
 WESTONSTART_append = " ${@bb.utils.contains("IMAGE_FEATURES", "debug-tweaks", " --log=${DISPLAY_XDG_RUNTIME_DIR}/weston.log", "",d)}"
 
 SRC_URI += " \