From b092df77e7b5ede496f4d3c8b71ba37a640b1fa8 Mon Sep 17 00:00:00 2001 From: Christian Gromm Date: Wed, 14 Dec 2016 14:25:46 +0100 Subject: recipes-demo-hmi: add recipes to build MOST applications This patch adds the recipes to build the recently pushed sources for the MostNetworkManager, the VideoOnDemand server. Additionally, it updates the recipe to fetch the CAN/LIN binary. Change-Id: I77d5727d9b2b9b6f93ee959cf9b828090c35d05a Signed-off-by: Christian Gromm --- recipes-demo-hmi/can-lin/can-lin_0.2.bb | 23 ++++++++++ recipes-demo-hmi/unicens/.unicens_0.1.bb.swp | Bin 0 -> 12288 bytes .../0001-Fix-cross-compilation-with-yocto.patch | 49 +++++++++++++++++++++ recipes-demo-hmi/unicens/unicens_0.1.bb | 27 ++++++++++++ .../0001-Fix-cross-compilation-with-yocto.patch | 25 +++++++++++ recipes-demo-hmi/vod-server/vod-server_0.1.bb | 20 +++++++++ 6 files changed, 144 insertions(+) create mode 100644 recipes-demo-hmi/can-lin/can-lin_0.2.bb create mode 100644 recipes-demo-hmi/unicens/.unicens_0.1.bb.swp create mode 100644 recipes-demo-hmi/unicens/files/0001-Fix-cross-compilation-with-yocto.patch create mode 100644 recipes-demo-hmi/unicens/unicens_0.1.bb create mode 100644 recipes-demo-hmi/vod-server/files/0001-Fix-cross-compilation-with-yocto.patch create mode 100644 recipes-demo-hmi/vod-server/vod-server_0.1.bb diff --git a/recipes-demo-hmi/can-lin/can-lin_0.2.bb b/recipes-demo-hmi/can-lin/can-lin_0.2.bb new file mode 100644 index 000000000..ec3db4bed --- /dev/null +++ b/recipes-demo-hmi/can-lin/can-lin_0.2.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "CAN-LIN Application" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" +PR = "r0" + +SRC_URI = "git://gerrit.automotivelinux.org/gerrit/staging/most-can-demo-bin;protocol=https" + +S = "${WORKDIR}/git" +SRCREV = "70458963c48662012af856b56676260150f124c8" + +do_configure() { + echo "" +} + +do_compile() { + echo "" +} + +do_install() { + install -m 0755 -d ${D}${bindir} + install -m 0755 ${S}/OptoLyzerMoccaApp ${D}${bindir} +} + diff --git a/recipes-demo-hmi/unicens/.unicens_0.1.bb.swp b/recipes-demo-hmi/unicens/.unicens_0.1.bb.swp new file mode 100644 index 000000000..3b7f4f084 Binary files /dev/null and b/recipes-demo-hmi/unicens/.unicens_0.1.bb.swp differ diff --git a/recipes-demo-hmi/unicens/files/0001-Fix-cross-compilation-with-yocto.patch b/recipes-demo-hmi/unicens/files/0001-Fix-cross-compilation-with-yocto.patch new file mode 100644 index 000000000..23b6a04f9 --- /dev/null +++ b/recipes-demo-hmi/unicens/files/0001-Fix-cross-compilation-with-yocto.patch @@ -0,0 +1,49 @@ +From e75a2aafc7fc6b845e84a1a66d4883dddbbc93e2 Mon Sep 17 00:00:00 2001 +From: Jan-Simon Moeller +Date: Fri, 9 Dec 2016 21:53:22 +0100 +Subject: [PATCH] Fix cross-compilation with yocto + +Signed-off-by: Jan-Simon Moeller +--- + buildX86/Makefile-Release.mk | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/buildX86/Makefile-Release.mk b/buildX86/Makefile-Release.mk +index 7419a76..72d7df8 100644 +--- a/buildX86/Makefile-Release.mk ++++ b/buildX86/Makefile-Release.mk +@@ -11,14 +11,14 @@ + MKDIR=mkdir + CP=cp + GREP=grep +-NM=nm +-CCADMIN=CCadmin +-RANLIB=ranlib +-CC=${CROSS_COMPILE}gcc +-CCC=${CROSS_COMPILE}g++ +-CXX=${CROSS_COMPILE}g++ +-FC=${CROSS_COMPILE}gfortran +-AS=${CROSS_COMPILE}as ++#NM=nm ++#CCADMIN=CCadmin ++#RANLIB=ranlib ++#CC=${CROSS_COMPILE}gcc ++#CCC=${CROSS_COMPILE}g++ ++#CXX=${CROSS_COMPILE}g++ ++#FC=${CROSS_COMPILE}gfortran ++#AS=${CROSS_COMPILE}as + + # Macros + CND_PLATFORM=GNU-Linux-x86 +@@ -86,7 +86,7 @@ OBJECTFILES= \ + + + # Include Path +-C_INCLUDE=-Imnsl -ISrc -ISrc/IP -ISrc/Network -ISrc/Network/base -I/usr/include/libxml2 ${INCLUDE_PATH} ++C_INCLUDE=-Imnsl -ISrc -ISrc/IP -ISrc/Network -ISrc/Network/base -I=/usr/include/libxml2 ${INCLUDE_PATH} + + # C Compiler Flags + CFLAGS=-c -Wall -O2 -MMD -MP -DNDEBUG ${PROJECT_C_FLAGS} +-- +2.10.2 + diff --git a/recipes-demo-hmi/unicens/unicens_0.1.bb b/recipes-demo-hmi/unicens/unicens_0.1.bb new file mode 100644 index 000000000..27069a096 --- /dev/null +++ b/recipes-demo-hmi/unicens/unicens_0.1.bb @@ -0,0 +1,27 @@ +DESCRIPTION = "Build NetworkManager" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" +#LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ +# " + +PV = "0.1" + +DEPENDS += "libxml2" + +SRC_URI = "git://gerrit.automotivelinux.org/gerrit/src/unicens;protocol=https" +SRC_URI += "file://0001-Fix-cross-compilation-with-yocto.patch" + +S = "${WORKDIR}/git" +#SRCREV = "8c5f2324d7aa61669324aec1a0ad091fe1379489" +SRCREV = "${AUTOREV}" + +do_install() { + install -m 0755 -d ${D}${bindir} ${D}/home/root + install -m 0755 ${S}/NetworkManager ${D}${bindir}/MostNetworkManager + install -m 0644 ${S}/scripts/config-agl.xml ${D}/home/root + install -m 0644 ${S}/scripts/camera-os88122-ts.script ${D}/home/root + install -m 0644 ${S}/scripts/i2c-slim-amplifier-v2.3.script ${D}/home/root + install -m 0644 ${S}/scripts/i2c-uda1388-v2.3.script ${D}/home/root + install -m 0644 ${S}/scripts/loadDriver.sh ${D}/home/root +} +FILES_${PN} += "/home/root*" diff --git a/recipes-demo-hmi/vod-server/files/0001-Fix-cross-compilation-with-yocto.patch b/recipes-demo-hmi/vod-server/files/0001-Fix-cross-compilation-with-yocto.patch new file mode 100644 index 000000000..c034d4eeb --- /dev/null +++ b/recipes-demo-hmi/vod-server/files/0001-Fix-cross-compilation-with-yocto.patch @@ -0,0 +1,25 @@ +--- a/buildX86/Makefile-Release.mk 2016-12-09 15:48:37.000000000 +0100 ++++ b/buildX86/Makefile-Release.mk 2016-12-09 16:56:35.071740652 +0100 +@@ -11,14 +11,14 @@ + MKDIR=mkdir + CP=cp + GREP=grep +-NM=nm +-CCADMIN=CCadmin +-RANLIB=ranlib +-CC=${CROSS_COMPILE}gcc +-CCC=${CROSS_COMPILE}g++ +-CXX=${CROSS_COMPILE}g++ +-FC=${CROSS_COMPILE}gfortran +-AS=${CROSS_COMPILE}as ++#NM=nm ++#CCADMIN=CCadmin ++#RANLIB=ranlib ++#CC=${CROSS_COMPILE}gcc ++#CCC=${CROSS_COMPILE}g++ ++#CXX=${CROSS_COMPILE}g++ ++#FC=${CROSS_COMPILE}gfortran ++#AS=${CROSS_COMPILE}as + + # Macros + CND_PLATFORM=GNU-Linux-x86 diff --git a/recipes-demo-hmi/vod-server/vod-server_0.1.bb b/recipes-demo-hmi/vod-server/vod-server_0.1.bb new file mode 100644 index 000000000..949509d6b --- /dev/null +++ b/recipes-demo-hmi/vod-server/vod-server_0.1.bb @@ -0,0 +1,20 @@ +DESCRIPTION = "Build VideoOnDemand server" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" +#LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ +# " + +PV = "0.1" + +SRC_URI = "git://gerrit.automotivelinux.org/gerrit/src/vod-server;protocol=https" +SRC_URI += "file://0001-Fix-cross-compilation-with-yocto.patch" + +S = "${WORKDIR}/git" +#SRCREV = "8c5f2324d7aa61669324aec1a0ad091fe1379489" +SRCREV = "${AUTOREV}" + +do_install() { + install -m 0755 -d ${D}${bindir} + install -m 0755 ${S}/VideoOnDemand ${D}${bindir}/VideoOnDemand +} + -- cgit 1.2.3-korg