blob: 9c0f56e7369dcc7dd2484de84591961b72f81d4b [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001DESCRIPTION = "Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux"
Andrew Geissler69721092021-07-23 12:57:00 -04002HOMEPAGE = "http://linuxptp.sourceforge.net/"
Andrew Geissler9aee5002022-03-30 16:27:02 +00003LICENSE = "GPL-2.0-only"
Brad Bishop19323692019-04-05 15:28:33 -04004LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
5
Andrew Geisslerd159c7f2021-09-02 21:05:58 -05006SRC_URI = "http://sourceforge.net/projects/linuxptp/files/v3.1/linuxptp-${PV}.tgz \
Brad Bishop19323692019-04-05 15:28:33 -04007 file://build-Allow-CC-and-prefix-to-be-overriden.patch \
Andrew Geisslerd688a012020-09-18 13:36:00 -05008 file://Use-cross-cpp-in-incdefs.patch \
Brad Bishop19323692019-04-05 15:28:33 -04009 "
10
Andrew Geissler69721092021-07-23 12:57:00 -040011UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/linuxptp/files/"
12UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/"
13
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050014SRC_URI[sha256sum] = "94d6855f9b7f2d8e9b0ca6d384e3fae6226ce6fc012dbad02608bdef3be1c0d9"
Brad Bishop19323692019-04-05 15:28:33 -040015
Andrew Geissler69721092021-07-23 12:57:00 -040016EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} EXTRA_CFLAGS='${CFLAGS}' mandir=${mandir}"
Andrew Geisslerd688a012020-09-18 13:36:00 -050017
18export KBUILD_OUTPUT="${RECIPE_SYSROOT}"
Brad Bishop19323692019-04-05 15:28:33 -040019
Andrew Geissler69721092021-07-23 12:57:00 -040020do_install() {
21 oe_runmake install DESTDIR=${D} prefix=${prefix}
22
23 # Install example configs from source tree
24 install -d ${D}${docdir}/${PN}
25 cp -R --no-dereference --preserve=mode,links ${S}/configs ${D}${docdir}/${PN}
Brad Bishop19323692019-04-05 15:28:33 -040026}
Andrew Geissler69721092021-07-23 12:57:00 -040027
28PACKAGES =+ "${PN}-configs"
29
Patrick Williams213cb262021-08-07 19:21:33 -050030FILES:${PN}-configs = "${docdir}"
31FILES:${PN}-doc = "${mandir}"