Commit 94074aab authored by Ulrich Huber's avatar Ulrich Huber Committed by Oliver Horst
Browse files

[add] Add recipes for PTPd application

parent fe71802a
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