summaryrefslogtreecommitdiffstats
path: root/meta-agl-core/recipes-graphics/wayland
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-core/recipes-graphics/wayland')
-rw-r--r--meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb15
-rw-r--r--meta-agl-core/recipes-graphics/wayland/weston-ini-conf/transmitter-output.cfg.in (renamed from meta-agl-core/recipes-graphics/wayland/weston-ini-conf/transmitter-output.cfg)0
2 files changed, 14 insertions, 1 deletions
diff --git a/meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb b/meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb
index 8842a5a46..c635d7b2f 100644
--- a/meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb
+++ b/meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb
@@ -10,7 +10,7 @@ SRC_URI = " \
file://hdmi-a-1-180.cfg \
file://hdmi-a-1-270.cfg \
file://remote-output.cfg \
- file://transmitter-output.cfg \
+ file://transmitter-output.cfg.in \
file://virtual-0.cfg \
file://virtual-180.cfg \
file://virtual-270.cfg \
@@ -31,6 +31,19 @@ WESTON_FRAGMENTS = "core shell ${WESTON_DISPLAYS}"
# On-target weston.ini directory
weston_ini_dir = "${sysconfdir}/xdg/weston"
+# Options for the user to change in local.conf
+# e.g. TRANSMITTER_OUTPUT_MODE = "1080x1488"
+TRANSMITTER_OUTPUT_MODE ??= "640x720@30"
+TRANSMITTER_OUTPUT_HOST ??= "192.168.20.99"
+TRANSMITTER_OUTPUT_PORT ??= "5005"
+
+do_configure() {
+ sed -e "s#mode=.*#mode=${TRANSMITTER_OUTPUT_MODE}#" \
+ -e "s#host=.*#host=${TRANSMITTER_OUTPUT_HOST}#" \
+ -e "s#port=.*#port=${TRANSMITTER_OUTPUT_PORT}#" \
+ ${WORKDIR}/transmitter-output.cfg.in > ${WORKDIR}/transmitter-output.cfg
+}
+
do_compile() {
# Put all of our cfg files together for a default portrait
# orientation configuration
diff --git a/meta-agl-core/recipes-graphics/wayland/weston-ini-conf/transmitter-output.cfg b/meta-agl-core/recipes-graphics/wayland/weston-ini-conf/transmitter-output.cfg.in
index e77f74ec0..e77f74ec0 100644
--- a/meta-agl-core/recipes-graphics/wayland/weston-ini-conf/transmitter-output.cfg
+++ b/meta-agl-core/recipes-graphics/wayland/weston-ini-conf/transmitter-output.cfg.in