diff options
-rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-bsp/rwmem/rwmem/0001-include-missing-cstdint.patch | 32 | ||||
-rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-bsp/rwmem/rwmem_1.2.bb | 26 |
2 files changed, 45 insertions, 13 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-bsp/rwmem/rwmem/0001-include-missing-cstdint.patch b/meta-oe/dynamic-layers/meta-python/recipes-bsp/rwmem/rwmem/0001-include-missing-cstdint.patch new file mode 100644 index 0000000000..0560daa4c2 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-bsp/rwmem/rwmem/0001-include-missing-cstdint.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 84e884f99e581515b49d8973538bb17e1e6c0dc0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 26 Jan 2023 20:45:57 -0800 | ||
4 | Subject: [PATCH] include missing <cstdint> | ||
5 | |||
6 | gcc 13 moved some includes around and as a result <cstdint> is no | ||
7 | longer transitively included [1]. Explicitly include it for | ||
8 | uint{32,64}_t. | ||
9 | |||
10 | [1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes | ||
11 | |||
12 | Upstream-Status: Submitted [https://github.com/tomba/rwmem/pull/7] | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | librwmem/helpers.h | 1 + | ||
16 | 1 file changed, 1 insertion(+) | ||
17 | |||
18 | diff --git a/librwmem/helpers.h b/librwmem/helpers.h | ||
19 | index a0a738b..8d02c9c 100644 | ||
20 | --- a/librwmem/helpers.h | ||
21 | +++ b/librwmem/helpers.h | ||
22 | @@ -1,6 +1,7 @@ | ||
23 | #pragma once | ||
24 | |||
25 | #include <cerrno> | ||
26 | +#include <cstdint> | ||
27 | #include <string> | ||
28 | #include <vector> | ||
29 | #include <string.h> | ||
30 | -- | ||
31 | 2.39.1 | ||
32 | |||
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-bsp/rwmem/rwmem_1.2.bb b/meta-oe/dynamic-layers/meta-python/recipes-bsp/rwmem/rwmem_1.2.bb index 7bca24cc0a..8ccdc27a8e 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-bsp/rwmem/rwmem_1.2.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-bsp/rwmem/rwmem_1.2.bb | |||
@@ -11,25 +11,25 @@ In i2c mode rwmem accesses an i2c peripheral by sending i2c messages to it." | |||
11 | LICENSE = "GPL-2.0-or-later" | 11 | LICENSE = "GPL-2.0-or-later" |
12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
13 | 13 | ||
14 | DEPENDS += "python3 python3-pybind11" | 14 | DEPENDS += "fmt libinih" |
15 | 15 | ||
16 | PV .= "+git${SRCPV}" | 16 | PV .= "+git${SRCPV}" |
17 | 17 | ||
18 | SRCREV_rwmem = "3ec3e421211b58e766651c2e3a3a21acf14a1906" | 18 | SRCREV = "8416326777b2aada0706539b8f9f6acefa476b16" |
19 | SRCREV_inih = "4b10c654051a86556dfdb634c891b6c3224c4109" | ||
20 | 19 | ||
21 | SRCREV_FORMAT = "rwmem_inih" | 20 | SRC_URI = "git://github.com/tomba/rwmem.git;protocol=https;name=rwmem;branch=master \ |
22 | 21 | file://0001-include-missing-cstdint.patch" | |
23 | SRC_URI = " \ | ||
24 | git://github.com/tomba/rwmem.git;protocol=https;name=rwmem;branch=master \ | ||
25 | git://github.com/benhoyt/inih.git;protocol=https;name=inih;nobranch=1;destsuffix=git/ext/inih \ | ||
26 | " | ||
27 | 22 | ||
28 | S = "${WORKDIR}/git" | 23 | S = "${WORKDIR}/git" |
29 | 24 | ||
30 | inherit cmake pkgconfig | 25 | inherit meson pkgconfig python3native |
26 | |||
27 | PACKAGECONFIG ?= "python static" | ||
28 | PACKAGECONFIG[python] = "-Dpyrwmem=enabled,-Dpyrwmem=disabled,cmake-native python3 python3-pybind11" | ||
29 | PACKAGECONFIG[static] = "-Dstatic-libc=true,-Dstatic-libc=false," | ||
31 | 30 | ||
32 | do_install() { | 31 | do_install:append() { |
33 | install -D -m 0755 ${B}/bin/rwmem ${D}${bindir}/rwmem | 32 | install -D -m 0644 ${B}/librwmem/librwmem.a ${D}${libdir}/librwmem.a |
34 | install -D -m 0644 ${B}/lib/librwmem.a ${D}${libdir}/librwmem.a | ||
35 | } | 33 | } |
34 | |||
35 | FILES:${PN} += "${libdir}/python3.11/site-packages/pyrwmem" | ||