Skip to content

Commit 8831abb

Browse files
authored
Merge pull request #3 from pyhys/update_pnet_recipe
Change p-net version to 089df76
2 parents cee73f5 + 8e4deb4 commit 8831abb

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

recipes-connectivity/p-net/p-net.bb

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
SUMMARY = "p-net Profinet communication stack"
22
HOMEPAGE = "https://github.com/rtlabs-com/p-net"
33
LICENSE = "GPLv3 | commercial"
4-
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=4b23c301952201d50182a03961874938"
4+
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=207cc6189ccb6e2be4f164397fc210ae"
55
SECTION = "console/network"
66

77
SRC_URI = "git://github.com/rtlabs-com/p-net.git"
8-
SRCREV = "49a781c945ccb2018e75e58c91848a7c44a04763"
8+
SRCREV = "089df76f38df13e4b8b58e12e5d1be6d3b9aa792"
99

10-
DEPENDS = "cmake-zeus-native"
11-
DEPENDS_remove = "cmake-native"
10+
# Enable these lines if using Yocto older than version 2.7
11+
#DEPENDS = "cmake-zeus-native"
12+
#DEPENDS_remove = "cmake-native"
1213

1314
S = "${WORKDIR}/git"
1415

@@ -17,15 +18,28 @@ inherit cmake
1718
# TODO How to handle -DCMAKE_MAKE_PROGRAM better?
1819
EXTRA_OECMAKE = "-DCMAKE_MAKE_PROGRAM=/usr/bin/make -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DUSE_SCHED_FIFO=ON"
1920
OECMAKE_RPATH = ""
20-
21+
OECMAKE_GENERATOR = "Unix Makefiles"
2122
SOLIBS = ".so"
2223
FILES_SOLIBSDEV = ""
24+
FILES_${PN} = "/usr/lib/libpro*"
2325

2426
PACKAGE_BEFORE_PN = "${PN}-demo"
2527
RDEPENDS_${PN}-demo = "${PN}"
26-
FILES_${PN} = "/usr/lib/libpro*"
2728
FILES_${PN}-demo = "${bindir}/pn_dev"
29+
FILES_${PN}-demo += "${bindir}/set_network_parameters"
30+
FILES_${PN}-demo += "${bindir}/set_profinet_leds"
31+
FILES_${PN}-demo += "${bindir}/set_profinet_leds.raspberrypi"
32+
33+
do_configure_prepend() {
34+
cd ${WORKDIR}/git
35+
git submodule update --init --recursive
36+
}
2837

2938
do_install_append() {
39+
install -d ${D}${bindir}
40+
cp "${WORKDIR}/build/set_network_parameters" ${D}${bindir}
41+
cp "${WORKDIR}/build/set_profinet_leds" ${D}${bindir}
42+
cp "${WORKDIR}/build/set_profinet_leds.raspberrypi" ${D}${bindir}
43+
3044
rm -rf ${D}/usr/cmake/
3145
}

0 commit comments

Comments
 (0)