Commit 4fc68d20 authored by Oliver Horst's avatar Oliver Horst
Browse files

[merge] Integrated updates from 'next' branch

- Added recipes for additional applications:
  - PTPd
  - kybos-demo
  - lwip-echo-server
  - adjtimex-demo
parents c48d2b0b b3fcc531
inherit cmake
TARGET_CC_ARCH_append = " -Og"
TARGET_CFLAGS_append = " -Og"
def generate_cmake_param_list(d, var_name, param):
retVal = []
if type(param) is dict:
......@@ -24,6 +27,7 @@ def app_build_params (d):
# as the it is not possible to evaluate them at an earlier stage on the Yocto build process.
python do_populate_site_file () {
import os
import re
build_params = app_build_params(d)
......@@ -36,7 +40,11 @@ python do_populate_site_file () {
f = open(filename, mode)
for var, val in app_build_params(d):
f.write("set({} \"{}\" CACHE STRING \"Build parameter of the application {} automatically set according to the deployment configuration.\")".format(var, val, d.getVar('PN')) + '\n')
# Ensure that we generate correct CMake variable names only
_var = re.sub(r"[^a-zA-Z0-9_]", "_", var)
# Write everything to the site-file
f.write("set({} \"{}\" CACHE STRING \"Build parameter of the application {} automatically set according to the deployment configuration.\")".format(_var, val, d.getVar('PN')) + '\n')
f.close()
}
......
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""
SRC_URI = "git://git.fortiss.org/toki/applications/adjtimex-demo.git;protocol=https"
SRCREV = "521b0bcdafaaa3696dfba1cf581edb8b85fa9e7d"
PV = "0.0.1+git${SRCPV}"
S = "${WORKDIR}/git"
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "applications/adjtimex-demo")}"
BINARY_NAME = "adjtimex-demo.elf"
inherit toki-app
FILES_${PN}-dev += "${libdir}/cmake/*"
TARGET_CFLAGS += "-fpie"
TARGET_LDFLAGS += "-pie"
SYSROOT_DIRS_append = " ${bindir}"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""
SRC_URI = "git://git.fortiss.org/toki/applications/kybos-demo.git;protocol=https"
SRCREV = "de66bea84363778330e03adfd00a82ca69676671"
PV = "0.0.1+git${SRCPV}"
S = "${WORKDIR}/git"
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "applications/kybos-demo")}"
BINARY_NAME = "kybos-demo.elf"
inherit toki-app
FILES_${PN}-dev += "${libdir}/cmake/*"
TARGET_CFLAGS += "-fpie"
TARGET_LDFLAGS += "-pie"
SYSROOT_DIRS_append = " ${bindir}"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""
SRC_URI = "git://git.fortiss.org/toki/applications/lwip-echo-server.git;protocol=https"
SRCREV = "2bd942020d90511c3444e8eae9e286ddb1b8b0f7"
PV = "0.0.1+git${SRCPV}"
S = "${WORKDIR}/git"
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "applications/lwip-echo-server")}"
BINARY_NAME = "lwip-echo-server.elf"
inherit toki-app
FILES_${PN}-dev += "${libdir}/cmake/*"
TARGET_CFLAGS += "-fpie"
TARGET_LDFLAGS += "-pie"
SYSROOT_DIRS_append = " ${bindir}"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""
SRC_URI = "git://git.fortiss.org/toki/components/ptpd.git;branch=feature/ptpd-next;protocol=https"
PV = "2.3.1+git${SRCPV}"
SRCREV = "c166e96fb4a45ab5246ebb1815e6989764296b87"
inherit cmake
FILES_${PN}-dev += "${libdir}/cmake/*"
require ptpd-common.inc
S = "${WORKDIR}/git/include"
inherit toki-app
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "applications/ptpd/include")}"
DEPENDS += "ptpd-sys-headers"
FILES_${PN}-dev += "${prefix}/ptpd/def/*/*.def"
require ptpd-common.inc
PTPD_SYS_PORT ?= ""
PTPD_SYS_PORT_freertos-elf ?= "freertos"
S = "${WORKDIR}/git/ports/sys/${PTPD_SYS_PORT}/include"
inherit toki-app
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "applications/ptpd/ports/sys/${PTPD_SYS_PORT}/include")}"
require ptpd-common.inc
PTPD_SYS_PORT ?= ""
PTPD_SYS_PORT_freertos-elf ?= "freertos"
S = "${WORKDIR}/git/ports/sys/${PTPD_SYS_PORT}"
inherit toki-app
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "applications/ptpd/ports/sys/${PTPD_SYS_PORT}")}"
DEPENDS = "ptpd-sys-headers ptpd-headers lwip-headers"
DEPENDS_append_freertos-elf = " freertos-headers"
EXTRA_OECMAKE_append = " -DWITH_HEADERS:BOOL=FALSE"
require ptpd-common.inc
S = "${WORKDIR}/git"
inherit toki-externalsrc
EXTERNALSRC = "${@relative_externalsrc(d, "applications/ptpd")}"
DEPENDS = "ptpd-headers ptpd-sys lwip-headers"
EXTRA_OECMAKE_append = " -DWITH_HEADERS:BOOL=FALSE -DWITH_PORTS:BOOL=FALSE"
BINARY_NAME = "ptpd.elf"
inherit toki-app
FILES_${PN}-dev += "${libdir}/cmake/*"
TARGET_CFLAGS += "-fpie"
TARGET_LDFLAGS += "-pie"
SYSROOT_DIRS_append = " ${bindir}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment