Skip to content

Commit

Permalink
linuxptp: use install from makefile and install more apps
Browse files Browse the repository at this point in the history
Before this patch just a few of the produced binaries were installed.
This patch use install from linuxptp's makefile to install all binaries
and man pages. man pages are packaged in linuxptp-doc.

Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
pberginkonsult authored and kraj committed Jun 9, 2021
1 parent 0d50515 commit 96e7586
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions meta-oe/recipes-connectivity/linuxptp/linuxptp_3.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ SRC_URI = "http://sourceforge.net/projects/linuxptp/files/v${PV}/linuxptp-${PV}.
SRC_URI[md5sum] = "2264cb69c9af947028835c12c89a7572"
SRC_URI[sha256sum] = "f58f5b11cf14dc7c4f7c9efdfb27190e43d02cf20c3525f6639edac10528ce7d"

EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} EXTRA_CFLAGS='${CFLAGS}'"
EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} EXTRA_CFLAGS='${CFLAGS}' mandir=${mandir}"

export KBUILD_OUTPUT="${RECIPE_SYSROOT}"

do_install () {
install -d ${D}/${bindir}
install -p ${S}/ptp4l ${D}/${bindir}
install -p ${S}/pmc ${D}/${bindir}
install -p ${S}/phc2sys ${D}/${bindir}
install -p ${S}/hwstamp_ctl ${D}/${bindir}
do_install() {
oe_runmake install DESTDIR=${D} prefix=${prefix}
}

FILES_${PN}-doc = "${mandir}"

0 comments on commit 96e7586

Please sign in to comment.