Skip to content

Commit

Permalink
serial: add recipe for version 1.2.1
Browse files Browse the repository at this point in the history
Serial is cross-platform library for interfacing with
RS-232 serial like ports.

Signed-off-by: Matija Tudan <tudan.matija@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
mtudan authored and kraj committed May 10, 2023
1 parent bd7cd3b commit 77b6df9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meta-oe/recipes-support/serial/serial/Findcatkin.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Work-around for https://github.com/wjwwood/serial/issues/135

function(catkin_package)
endfunction()

28 changes: 28 additions & 0 deletions meta-oe/recipes-support/serial/serial_1.2.1.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
SUMMARY = "Cross-platform library for interfacing with rs-232 serial like ports"
HOMEPAGE = "http://wjwwood.io/serial/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://README.md;beginline=53;endline=62;md5=049c68d559533f90250404746e6a1045"

SRC_URI = " \
git://github.com/wjwwood/${BPN}.git;protocol=https;branch=main \
file://Findcatkin.cmake \
"
SRCREV = "10ac4e1c25c2cda1dc0a32a8e12b87fd89f3bb4f"
SRC_URI[sha256sum] = "c8cd235dda2ef7d977ba06dfcb35c35e42f45cfd9149ba3ad257756123d8ff96"

S = "${WORKDIR}/git"

inherit cmake

# Work-around for https://github.com/wjwwood/serial/issues/135
EXTRA_OECMAKE = " \
-DCMAKE_MODULE_PATH=${WORKDIR} \
-DCATKIN_PACKAGE_LIB_DESTINATION=${libdir} \
-DCATKIN_PACKAGE_BIN_DESTINATION=${bindir} \
-DCATKIN_GLOBAL_INCLUDE_DESTINATION=${includedir} \
-DCATKIN_ENABLE_TESTING=OFF \
"

# Do not depend on the main package since it will be empty
RDEPENDS:${PN}-dev = ""

0 comments on commit 77b6df9

Please sign in to comment.