linuxptp: ship example configurations in separate package

configs directory from source is shipped in linuxptp-configs package
and includes some example configuration files for the applications.

Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Peter Bergin 2021-06-04 16:17:36 +02:00 committed by Khem Raj
parent efb7b4d2e3
commit 22491c404c

View File

@ -17,6 +17,13 @@ export KBUILD_OUTPUT="${RECIPE_SYSROOT}"
do_install() {
oe_runmake install DESTDIR=${D} prefix=${prefix}
# Install example configs from source tree
install -d ${D}${docdir}/${PN}
cp -R --no-dereference --preserve=mode,links ${S}/configs ${D}${docdir}/${PN}
}
PACKAGES =+ "${PN}-configs"
FILES_${PN}-configs = "${docdir}"
FILES_${PN}-doc = "${mandir}"