From d3ebc4bf2eb0331226ef4eac79aaacd520ee5a60 Mon Sep 17 00:00:00 2001 From: Wataru Mizuno Date: Mon, 15 Oct 2018 19:03:20 +0900 Subject: [PATCH] waltham-transmitter: modify receipe file Change-Id: Ieb4c55a64350e7825231e789b1daf296d90fcc08 Signed-off-by: Wataru Mizuno --- .../wayland/waltham-renderer_git.bb | 33 ++++++++++++++++++++++ .../wayland/waltham-transmitter_git.bb | 22 ++++++++++++--- .../recipes-graphics/wayland/waltham_git.bb | 2 +- 3 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 meta-agl-profile-graphical/recipes-graphics/wayland/waltham-renderer_git.bb diff --git a/meta-agl-profile-graphical/recipes-graphics/wayland/waltham-renderer_git.bb b/meta-agl-profile-graphical/recipes-graphics/wayland/waltham-renderer_git.bb new file mode 100644 index 000000000..579ae92ef --- /dev/null +++ b/meta-agl-profile-graphical/recipes-graphics/wayland/waltham-renderer_git.bb @@ -0,0 +1,33 @@ +DESCRIPTION = "Waltham is a network IPC library designed to resemble Wayland both protocol and protocol-API wise" +HOMEPAGE = "https://github.com/waltham/waltham" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://waltham-transmitter/COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70" + +SRC_URI[md5sum] = "f1e84f6901f355113fb9328433faef15" +SRC_URI[sha256sum] = "ba68233c4cf16cebbfa31399ee9dfcf183de36f5183677cfb26fa7e360634b33" + +SRC_URI = "git://gerrit.automotivelinux.org/gerrit/p/src/weston-ivi-plugins.git;protocol=https;branch=${AGL_BRANCH};subpath=waltham-transmitter/waltham-renderer" +SRCREV = "" + +inherit autotools pkgconfig +inherit cmake + +DEPENDS += "libdrm virtual/kernel wayland waltham weston gstreamer1.0 gstreamer" + +WALTHAM_PIPELINE ?= "pipeline_example_general.cfg" +WALTHAM_RECIEVER_IP ?= "192.168.1.2" +WALTHAM_RECEIVER_PORT ?= "3440" + +do_install_append () { + install -d ${D}/etc/xdg/weston/ + install ${S}/${WALTHAM_PIPELINE} ${D}/etc/xdg/weston/pipeline.cfg + sed -i -e "s#YOUR_RECIEVER_IP#${WALTHAM_RECEIVER_IP}#g" ${D}/etc/xdg/weston/pipeline.cfg + sed -i -e "s#YOUR_RECIEVER_PORT#${WALTHAM_RECEIVER_PORT}#g" ${D}/etc/xdg/weston/pipeline.cfg + +} + +FILES_${PN} += "/etc/xdg/weston/*.cfg"S = "${WORKDIR}/git" + +FILES_${PN}-dbg += "${libdir}/weston/.dbg/*" +FILES_${PN}-dbg += "{libdir}/libweston-2/.dbg/*" \ No newline at end of file diff --git a/meta-agl-profile-graphical/recipes-graphics/wayland/waltham-transmitter_git.bb b/meta-agl-profile-graphical/recipes-graphics/wayland/waltham-transmitter_git.bb index f5a72dddc..1727e40d2 100644 --- a/meta-agl-profile-graphical/recipes-graphics/wayland/waltham-transmitter_git.bb +++ b/meta-agl-profile-graphical/recipes-graphics/wayland/waltham-transmitter_git.bb @@ -2,11 +2,10 @@ DESCRIPTION = "Waltham is a network IPC library designed to resemble Wayland bot HOMEPAGE = "https://github.com/waltham/waltham" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://waltham-transmitter/COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70" +LIC_FILES_CHKSUM = "file://waltham-transmitter/COPYING;md5=f21c9af4de068fb53b83f0b37d262ec3" -SRCREV = "${AUTOREV}" -SRC_URI = "ssh://wmizuno@gerrit.automotivelinux.org:29418/src/weston-ivi-plugins.git \ - " +SRC_URI = "git://gerrit.automotivelinux.org/gerrit/p/src/weston-ivi-plugins.git;protocol=https;branch=${AGL_BRANCH}" +SRCREV = "d38b138897558aa5ddd3baf654c4511d3c135428" S = "${WORKDIR}/git" @@ -18,6 +17,21 @@ inherit cmake DEPENDS += "libdrm virtual/kernel wayland waltham weston gstreamer1.0 gstreamer" +WALTHAM_PIPELINE ?= "waltham-transmitter/waltham-renderer/pipeline_example_general.cfg" +WALTHAM_RECIEVER_IP ?= "192.168.1.2" +WALTHAM_RECEIVER_PORT ?= "3440" + +do_install_append () { + install -d ${D}/etc/xdg/weston/ + install ${S}/${WALTHAM_PIPELINE} ${D}/etc/xdg/weston/pipeline.cfg + + sed -i -e "s/YOUR_RECIEVER_IP/${WALTHAM_RECIEVER_IP}/g" ${D}/etc/xdg/weston/pipeline.cfg + sed -i -e "s/YOUR_RECIEVER_PORT/${WALTHAM_RECEIVER_PORT}/g" ${D}/etc/xdg/weston/pipeline.cfg + +} + +FILES_${PN} += "/etc/xdg/weston/*.cfg"S = "${WORKDIR}/git" + FILES_${PN} += "*" FILES_${PN}-dbg += "${libdir}/weston/.dbg/*" diff --git a/meta-agl-profile-graphical/recipes-graphics/wayland/waltham_git.bb b/meta-agl-profile-graphical/recipes-graphics/wayland/waltham_git.bb index 55123e9bf..01023a1f2 100644 --- a/meta-agl-profile-graphical/recipes-graphics/wayland/waltham_git.bb +++ b/meta-agl-profile-graphical/recipes-graphics/wayland/waltham_git.bb @@ -5,7 +5,7 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = " \ file://LICENSE;md5=e8ad01a5182f2c1b3a2640e9ea268264 \ " -SRCREV = "${AUTOREV}" +SRCREV = "1de58c3ff746ddaba7584d760c5454243723d3ca" SRC_URI = "git://github.com/wmizuno/waltham.git \ " S = "${WORKDIR}/git" -- 2.16.6