From 73c4f8673156248f5e2b1b783ed8f9fe24b8d188 Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Wed, 13 Mar 2024 11:11:58 +0100 Subject: [PATCH] Integrate rust version of gnss-mgr --- .../gnss-mgr-rust/gnss-mgr-rust_git.bb | 14 ++++++++++++ recipes-navigation/gnss-lib/gnss-lib_git.bb | 22 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 recipes-connectivity/gnss-mgr-rust/gnss-mgr-rust_git.bb create mode 100644 recipes-navigation/gnss-lib/gnss-lib_git.bb diff --git a/recipes-connectivity/gnss-mgr-rust/gnss-mgr-rust_git.bb b/recipes-connectivity/gnss-mgr-rust/gnss-mgr-rust_git.bb new file mode 100644 index 0000000..a7274ef --- /dev/null +++ b/recipes-connectivity/gnss-mgr-rust/gnss-mgr-rust_git.bb @@ -0,0 +1,14 @@ +SUMMARY = "A tool to configure the GNSS receivers, Rust variant" +LICENSE = "CLOSED" +LIC_FILES_CHKSUM = "" + +inherit cargo_bin + +DEPENDS = "gnss-lib" + +# Enable network for the compile task allowing cargo to download dependencies +do_compile[network] = "1" + +SRC_URI = "git://git@bitbucket.gad.local:7999/ins-cgp-sw/gnss-manager.rs.git;protocol=ssh;branch=main" +SRCREV = "fd46b45d9c838e724679fc39a011eb47d27f98cd" +S = "${WORKDIR}/git" diff --git a/recipes-navigation/gnss-lib/gnss-lib_git.bb b/recipes-navigation/gnss-lib/gnss-lib_git.bb new file mode 100644 index 0000000..af8037f --- /dev/null +++ b/recipes-navigation/gnss-lib/gnss-lib_git.bb @@ -0,0 +1,22 @@ +LICENSE = "CLOSED" +LIC_FILES_CHKSUM = "" + +SRC_URI = "git://git@bitbucket.gad.local:7999/nm-nsp/gnss-lib.git;protocol=ssh;branch=main" + +PV = "1.0+git${SRCPV}" +SRCREV = "2f1770712370402a4137547ae6e6f4d7bd74ed80" + +S = "${WORKDIR}/git" + +do_compile () { + oe_runmake +} + +do_install () { + install -d ${D}/${libdir}/ + cp --no-preserve=ownership -r ${B}/lib/* ${D}/${libdir}/ + + install -d ${D}/${includedir}/ + cp --no-preserve=ownership -r ${B}/api/* ${D}/${includedir}/ +} +