blob: 4c6a0797bb0db187189b4db844e85172ede95f00 [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/"
Brad Bishop19323692019-04-05 15:28:33 -04003LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
5
6SRC_URI = "http://sourceforge.net/projects/linuxptp/files/v${PV}/linuxptp-${PV}.tgz \
7 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 Geisslerbbbd5f42020-10-30 15:42:48 -050014SRC_URI[md5sum] = "2264cb69c9af947028835c12c89a7572"
15SRC_URI[sha256sum] = "f58f5b11cf14dc7c4f7c9efdfb27190e43d02cf20c3525f6639edac10528ce7d"
Brad Bishop19323692019-04-05 15:28:33 -040016
Andrew Geissler69721092021-07-23 12:57:00 -040017EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} EXTRA_CFLAGS='${CFLAGS}' mandir=${mandir}"
Andrew Geisslerd688a012020-09-18 13:36:00 -050018
19export KBUILD_OUTPUT="${RECIPE_SYSROOT}"
Brad Bishop19323692019-04-05 15:28:33 -040020
Andrew Geissler69721092021-07-23 12:57:00 -040021do_install() {
22 oe_runmake install DESTDIR=${D} prefix=${prefix}
23
24 # Install example configs from source tree
25 install -d ${D}${docdir}/${PN}
26 cp -R --no-dereference --preserve=mode,links ${S}/configs ${D}${docdir}/${PN}
Brad Bishop19323692019-04-05 15:28:33 -040027}
Andrew Geissler69721092021-07-23 12:57:00 -040028
29PACKAGES =+ "${PN}-configs"
30
Patrick Williams213cb262021-08-07 19:21:33 -050031FILES:${PN}-configs = "${docdir}"
32FILES:${PN}-doc = "${mandir}"