From: Jamin Lin <jamin_lin@aspeedtech.com>
To: <openembedded-devel@lists.openembedded.org>
Cc: <jamin_lin@aspeedtech.com>, <troy_lee@aspeedtech.com>,
<jaminlin1207@gmail.com>
Subject: [meta-oe][PATCH] meta-oe:drgn: add new recipe
Date: Tue, 20 Aug 2024 13:40:44 +0800 [thread overview]
Message-ID: <20240820054044.1538795-3-jamin_lin@aspeedtech.com> (raw)
In-Reply-To: <20240820054044.1538795-1-jamin_lin@aspeedtech.com>
drgn is a debugger with an emphasis on programmability
drgn exposes the types and variables in a program
for easy, expressive scripting in Python.
Drgn depends on:
1. python3
2. elfutils
The build requires:
1. setuptools
2. automake
3. autoconf
4. libtool
5. pkgconf
Reference:
https://drgn.readthedocs.io/en/latest/installation.html
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
---
.../drgn/python3-drgn_0.0.27.bb | 69 +++++++++++++++++++
1 file changed, 69 insertions(+)
create mode 100644 meta-oe/recipes-kernel/drgn/python3-drgn_0.0.27.bb
diff --git a/meta-oe/recipes-kernel/drgn/python3-drgn_0.0.27.bb b/meta-oe/recipes-kernel/drgn/python3-drgn_0.0.27.bb
new file mode 100644
index 000000000..5c0dbe963
--- /dev/null
+++ b/meta-oe/recipes-kernel/drgn/python3-drgn_0.0.27.bb
@@ -0,0 +1,69 @@
+SUMMARY = "drgn (pronounced dragon) is a debugger with an emphasis on \
+programmability. drgn exposes the types and variables in a program for easy, \
+expressive scripting in Python."
+HOMEPAGE = "https://github.com/osandov/drgn"
+LICENSE = " LGPL-2.1-or-later"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7c83d30e99508d6b790eacdd3abab846"
+
+SRC_URI = "git://github.com/osandov/drgn.git;protocol=https;branch=main"
+SRCREV = "a8dfc9e31f551d4b3c3d4307fa19ab6b3bfafb1c"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "\
+ autoconf-native \
+ automake-native \
+ libtool-native \
+ elfutils \
+ "
+
+RDEPENDS:${PN} = "\
+ python3-crypt \
+ python3-io \
+ python3-logging \
+ python3-math \
+ python3-pickle \
+ python3-stringold \
+ python3-compression \
+ "
+
+RDEPENDS:${PN}:append:class-target = "\
+ libdw \
+ libelf \
+ libgomp \
+ "
+
+RDEPENDS:${PN}:append:class-native = "\
+ elfutils-native \
+ "
+
+RDEPENDS:${PN}:append:class-nativesdk = "\
+ nativesdk-elfutils \
+ "
+
+export CONFIGURE_FLAGS = "\
+ --build=${BUILD_SYS}, \
+ --host=${HOST_SYS}, \
+ --target=${TARGET_SYS}, \
+ --prefix=${prefix}, \
+ --exec_prefix=${exec_prefix}, \
+ --bindir=${bindir}, \
+ --sbindir=${sbindir}, \
+ --libexecdir=${libexecdir}, \
+ --datadir=${datadir}, \
+ --sysconfdir=${sysconfdir}, \
+ --sharedstatedir=${sharedstatedir}, \
+ --localstatedir=${localstatedir}, \
+ --libdir=${libdir}, \
+ --includedir=${includedir}, \
+ --oldincludedir=${includedir}, \
+ --infodir=${infodir}, \
+ --mandir=${mandir}, \
+ --with-libtool-sysroot=${STAGING_DIR_HOST} \
+ "
+
+export PYTHON_CPPFLAGS = "-I${STAGING_INCDIR}/${PYTHON_DIR}"
+
+inherit python3native pkgconfig setuptools3
+
+BBCLASSEXTEND = "native nativesdk"
--
2.25.1
next prev parent reply other threads:[~2024-08-20 5:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-20 5:40 [PATCH v1 0/1] meta-oe:drgn: add new recipe Jamin Lin
2024-08-20 5:40 ` [PATCH v1 1/1] " Jamin Lin
2024-08-20 5:40 ` Jamin Lin [this message]
2024-08-21 0:11 ` [oe] [meta-oe][PATCH] " Khem Raj
2024-08-22 9:34 ` Jamin Lin
2024-08-22 9:56 ` [oe] " 林建明
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240820054044.1538795-3-jamin_lin@aspeedtech.com \
--to=jamin_lin@aspeedtech.com \
--cc=jaminlin1207@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=troy_lee@aspeedtech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.