Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] python3-dtschema: add dependency on pylibfdt
@ 2023-02-09 18:37 Trevor Woerner
  2023-02-09 18:37 ` [PATCH 2/2] linux-yocto.inc: add dt-schema to devshell Trevor Woerner
  2023-02-10  8:46 ` [OE-core] [PATCH 1/2] python3-dtschema: add dependency on pylibfdt Luca Ceresoli
  0 siblings, 2 replies; 3+ messages in thread
From: Trevor Woerner @ 2023-02-09 18:37 UTC (permalink / raw)
  To: openembedded-core

dt-schema has a dependency on pylibfdt.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 .../python/python3-dtschema_2023.1.bb              |  2 +-
 .../python/python3-pylibfdt_1.6.1.bb               | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb

diff --git a/meta/recipes-devtools/python/python3-dtschema_2023.1.bb b/meta/recipes-devtools/python/python3-dtschema_2023.1.bb
index 9767c95d3043..24bded9710a9 100644
--- a/meta/recipes-devtools/python/python3-dtschema_2023.1.bb
+++ b/meta/recipes-devtools/python/python3-dtschema_2023.1.bb
@@ -10,6 +10,6 @@ PYPI_PACKAGE = "dtschema"
 SRC_URI[sha256sum] = "8fc8c269e4c57e9d008af7b32cd33b77afd4ea1ac9552bcfa96b41b9e0c52586"
 
 DEPENDS += "python3-setuptools-scm-native"
-RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987"
+RDEPENDS:${PN} += "python3-ruamel-yaml python3-jsonschema python3-rfc3987 python3-pylibfdt"
 
 BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb b/meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb
new file mode 100644
index 000000000000..966f8f1413fb
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb
@@ -0,0 +1,14 @@
+DESCRIPTION = "libfdt from the dtc project"
+HOMEPAGE = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "pylibfdt"
+
+SRC_URI[sha256sum] = "90c667c5adf44c6ab2f13bdc566598897784c7b781bed91064e7373bd270b778"
+
+DEPENDS += "python3-setuptools-scm-native swig-native"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.36.0.rc2.17.g4027e30c53



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] linux-yocto.inc: add dt-schema to devshell
  2023-02-09 18:37 [PATCH 1/2] python3-dtschema: add dependency on pylibfdt Trevor Woerner
@ 2023-02-09 18:37 ` Trevor Woerner
  2023-02-10  8:46 ` [OE-core] [PATCH 1/2] python3-dtschema: add dependency on pylibfdt Luca Ceresoli
  1 sibling, 0 replies; 3+ messages in thread
From: Trevor Woerner @ 2023-02-09 18:37 UTC (permalink / raw)
  To: openembedded-core

If the user invokes the devshell on the linux-yocto kernel, add
python3-dtschema-native to their native sysroot so they can do
things like:

	devshell> make dtbs_check

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 meta/recipes-kernel/linux/linux-yocto.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
index 091003ed8299..782dc7a06ef7 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -63,6 +63,7 @@ KERNEL_FEATURES:append:qemuall=" features/kernel-sample/kernel-sample.scc"
 KERNEL_DEBUG_OPTIONS ?= "stack"
 KERNEL_EXTRA_ARGS:append:x86-64 = " ${@bb.utils.contains('KERNEL_DEBUG_OPTIONS', 'stack', 'HOST_LIBELF_LIBS="-L${RECIPE_SYSROOT_NATIVE}/usr/lib/pkgconfig/../../../usr/lib/ -lelf"', '', d)}"
 
+do_devshell[depends] += "python3-dtschema-native:do_populate_sysroot"
 do_devshell:prepend() {
     # setup native pkg-config variables (kconfig scripts call pkg-config directly, cannot generically be overriden to pkg-config-native)
     d.setVar("PKG_CONFIG_DIR", "${STAGING_DIR_NATIVE}${libdir_native}/pkgconfig")
-- 
2.36.0.rc2.17.g4027e30c53



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH 1/2] python3-dtschema: add dependency on pylibfdt
  2023-02-09 18:37 [PATCH 1/2] python3-dtschema: add dependency on pylibfdt Trevor Woerner
  2023-02-09 18:37 ` [PATCH 2/2] linux-yocto.inc: add dt-schema to devshell Trevor Woerner
@ 2023-02-10  8:46 ` Luca Ceresoli
  1 sibling, 0 replies; 3+ messages in thread
From: Luca Ceresoli @ 2023-02-10  8:46 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: openembedded-core

Hello Trevor,

On Thu,  9 Feb 2023 13:37:55 -0500
"Trevor Woerner" <twoerner@gmail.com> wrote:

> dt-schema has a dependency on pylibfdt.
> 
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>

This patches triggers an error due to the new recipe not having a
maintainer:

The following recipes do not have a maintainer assigned to them. Please add an entry to meta/conf/distro/include/maintainers.inc file.
python3-pylibfdt (/home/pokybuild/yocto-worker/oe-selftest-armhost/build/meta/recipes-devtools/python/python3-pylibfdt_1.6.1.bb)

Some logs from the autobuilders that found this:

https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/943/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/4823/steps/14/logs/stdio

Best regards,
-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-10  8:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-09 18:37 [PATCH 1/2] python3-dtschema: add dependency on pylibfdt Trevor Woerner
2023-02-09 18:37 ` [PATCH 2/2] linux-yocto.inc: add dt-schema to devshell Trevor Woerner
2023-02-10  8:46 ` [OE-core] [PATCH 1/2] python3-dtschema: add dependency on pylibfdt Luca Ceresoli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox