added my Recipes
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
From 84e884f99e581515b49d8973538bb17e1e6c0dc0 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 26 Jan 2023 20:45:57 -0800
|
||||
Subject: [PATCH] include missing <cstdint>
|
||||
|
||||
gcc 13 moved some includes around and as a result <cstdint> is no
|
||||
longer transitively included [1]. Explicitly include it for
|
||||
uint{32,64}_t.
|
||||
|
||||
[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/tomba/rwmem/pull/7]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
librwmem/helpers.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/librwmem/helpers.h b/librwmem/helpers.h
|
||||
index a0a738b..8d02c9c 100644
|
||||
--- a/librwmem/helpers.h
|
||||
+++ b/librwmem/helpers.h
|
||||
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cerrno>
|
||||
+#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <string.h>
|
||||
--
|
||||
2.39.1
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
SUMMARY = "A small tool to read/write memory"
|
||||
DESCRIPTION = "rwmem is a small tool for reading and writing device registers. \
|
||||
rwmem supports two modes: mmap mode and i2c mode. \
|
||||
\
|
||||
In mmap mode rwmem accesses a file by memory mapping it. \
|
||||
Using /dev/mem as the memory mapped file makes rwmem access memory and \
|
||||
can thus be used to access devices which have memory mapped registers. \
|
||||
\
|
||||
In i2c mode rwmem accesses an i2c peripheral by sending i2c messages to it."
|
||||
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
DEPENDS += "fmt libinih"
|
||||
|
||||
PV .= "+git${SRCPV}"
|
||||
|
||||
SRCREV = "8416326777b2aada0706539b8f9f6acefa476b16"
|
||||
|
||||
SRC_URI = "git://github.com/tomba/rwmem.git;protocol=https;name=rwmem;branch=master \
|
||||
file://0001-include-missing-cstdint.patch"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit meson pkgconfig python3native
|
||||
|
||||
PACKAGECONFIG ?= "python static"
|
||||
PACKAGECONFIG[python] = "-Dpyrwmem=enabled,-Dpyrwmem=disabled,cmake-native python3 python3-pybind11"
|
||||
PACKAGECONFIG[static] = "-Dstatic-libc=true,-Dstatic-libc=false,"
|
||||
|
||||
do_install:append() {
|
||||
install -D -m 0644 ${B}/librwmem/librwmem.a ${D}${libdir}/librwmem.a
|
||||
}
|
||||
|
||||
FILES:${PN} += "${libdir}/python3.11/site-packages/pyrwmem"
|
||||
Reference in New Issue
Block a user