All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH 1/2] libtoml: add new recipe
@ 2025-12-17 16:11 Renaud Barrau
  2025-12-17 16:11 ` [meta-oe][PATCH 2/2] drm-lease-manager: " Renaud Barrau
  2025-12-17 18:06 ` [oe] [meta-oe][PATCH 1/2] libtoml: " Gyorgy Sarvari
  0 siblings, 2 replies; 5+ messages in thread
From: Renaud Barrau @ 2025-12-17 16:11 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Renaud Barrau

From: Renaud Barrau <rbarrau33@gmail.com>

Create a recipe for the tomlc99 project https://github.com/cktan/tomlc99

Signed-off-by: Renaud Barrau <rbarrau33@gmail.com>
---
 .../recipes-support/libtoml/libtoml_git.bb    | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 meta-oe/recipes-support/libtoml/libtoml_git.bb

diff --git a/meta-oe/recipes-support/libtoml/libtoml_git.bb b/meta-oe/recipes-support/libtoml/libtoml_git.bb
new file mode 100644
index 0000000000..befd413d3c
--- /dev/null
+++ b/meta-oe/recipes-support/libtoml/libtoml_git.bb
@@ -0,0 +1,41 @@
+SUMMARY = "TOML parser in C"
+HOMEPAGE = "https://github.com/cktan/tomlc99"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=95bbe2f9180443b5dcef3fb959804a65"
+
+SRC_URI = "git://github.com/cktan/tomlc99;protocol=https;branch=master"
+
+SRCREV = "26b9c1ea770dab2378e5041b695d24ccebe58a7a"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+
+do_compile() {
+    oe_runmake CC="${CC}"
+}
+
+do_install() {
+    install -d ${D}${includedir}
+    install -m 0644 toml.h ${D}${includedir}/
+
+    install -d ${D}${libdir}
+    install -m 0644 libtoml.a ${D}${libdir}/
+}
+
+do_install:append() {
+    install -d ${D}${libdir}/pkgconfig
+
+    cat << EOF > ${D}${libdir}/pkgconfig/libtoml.pc
+prefix=${prefix}
+exec_prefix=${exec_prefix}
+includedir=${includedir}
+libdir=${libdir}
+
+Name: libtoml
+Description: TOML parser in C (tomlc99)
+Version: 1.0
+Libs: -L\${libdir} -ltoml
+Cflags: -I\${includedir}
+EOF
+}
-- 
2.43.0



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

* [meta-oe][PATCH 2/2] drm-lease-manager: add new recipe
  2025-12-17 16:11 [meta-oe][PATCH 1/2] libtoml: add new recipe Renaud Barrau
@ 2025-12-17 16:11 ` Renaud Barrau
  2025-12-17 18:14   ` [oe] " Gyorgy Sarvari
  2025-12-17 18:06 ` [oe] [meta-oe][PATCH 1/2] libtoml: " Gyorgy Sarvari
  1 sibling, 1 reply; 5+ messages in thread
From: Renaud Barrau @ 2025-12-17 16:11 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Renaud Barrau

From: Renaud Barrau <rbarrau33@gmail.com>

Create a recipe for the drm-lease-manager project  https://github.com/AGLExport/drm-lease-manager

Signed-off-by: Renaud Barrau <rbarrau33@gmail.com>
---
 .../drm-lease-manager_git.bb                  | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb

diff --git a/meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb b/meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb
new file mode 100644
index 0000000000..621a08f324
--- /dev/null
+++ b/meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb
@@ -0,0 +1,20 @@
+SUMMARY = "Recipe for drm-lease-manager"
+HOMEPAGE = "https://github.com/AGLExport/drm-lease-manager"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRC_URI = "git://github.com/AGLExport/drm-lease-manager;protocol=https;branch=master"
+
+SRCREV = "e6c3bf4ff76ae5eeefdb149e4b4167195dfcfb61"
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig
+
+DEPENDS += "libdrm pkgconfig-native libtoml"
+
+# Change default path /var/run/drm-lease-manager.
+# For exemple if you wish to move the runtime dir of drm-lease-manager to /etc :
+# EXTRA_OEMESON += "-Druntime_subdir=/etc/drm-lease-manager"
+
+FILES:${PN} += "${bindir}/drm-lease-manager"
-- 
2.43.0



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

* Re: [oe] [meta-oe][PATCH 1/2] libtoml: add new recipe
  2025-12-17 16:11 [meta-oe][PATCH 1/2] libtoml: add new recipe Renaud Barrau
  2025-12-17 16:11 ` [meta-oe][PATCH 2/2] drm-lease-manager: " Renaud Barrau
@ 2025-12-17 18:06 ` Gyorgy Sarvari
  1 sibling, 0 replies; 5+ messages in thread
From: Gyorgy Sarvari @ 2025-12-17 18:06 UTC (permalink / raw)
  To: rbarrau33, openembedded-devel

On 12/17/25 17:11, Renaud Barrau via lists.openembedded.org wrote:
> From: Renaud Barrau <rbarrau33@gmail.com>
>
> Create a recipe for the tomlc99 project https://github.com/cktan/tomlc99
>
> Signed-off-by: Renaud Barrau <rbarrau33@gmail.com>
> ---
>  .../recipes-support/libtoml/libtoml_git.bb    | 41 +++++++++++++++++++
>  1 file changed, 41 insertions(+)
>  create mode 100644 meta-oe/recipes-support/libtoml/libtoml_git.bb
>
> diff --git a/meta-oe/recipes-support/libtoml/libtoml_git.bb b/meta-oe/recipes-support/libtoml/libtoml_git.bb
> new file mode 100644
> index 0000000000..befd413d3c
> --- /dev/null
> +++ b/meta-oe/recipes-support/libtoml/libtoml_git.bb
> @@ -0,0 +1,41 @@
> +SUMMARY = "TOML parser in C"
> +HOMEPAGE = "https://github.com/cktan/tomlc99"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=95bbe2f9180443b5dcef3fb959804a65"
> +
> +SRC_URI = "git://github.com/cktan/tomlc99;protocol=https;branch=master"

It looks that this project isn't developed anymore (based on its
readme), and has been superseded by tomlc17 from the same developer.
Wouldn't it be better to use that? (This is a question from me - the
project claims to be compatible with this library, but don't know if
it's really true)

> +
> +SRCREV = "26b9c1ea770dab2378e5041b695d24ccebe58a7a"
> +
> +S = "${WORKDIR}/git"

Specifying S using WORKDIR is a fatal error in Whinlatter and master
branch - when using the git fetcher, S doesn't need to be specified
anymore 99% of the cases, the default should work.

> +
> +inherit pkgconfig
> +
> +do_compile() {
> +    oe_runmake CC="${CC}"
> +}
> +
> +do_install() {
> +    install -d ${D}${includedir}
> +    install -m 0644 toml.h ${D}${includedir}/
> +
> +    install -d ${D}${libdir}
> +    install -m 0644 libtoml.a ${D}${libdir}/
> +}
> +
> +do_install:append() {
> +    install -d ${D}${libdir}/pkgconfig
> +
> +    cat << EOF > ${D}${libdir}/pkgconfig/libtoml.pc
> +prefix=${prefix}
> +exec_prefix=${exec_prefix}
> +includedir=${includedir}
> +libdir=${libdir}
> +
> +Name: libtoml
> +Description: TOML parser in C (tomlc99)
> +Version: 1.0
> +Libs: -L\${libdir} -ltoml
> +Cflags: -I\${includedir}
> +EOF
> +}
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#122725): https://lists.openembedded.org/g/openembedded-devel/message/122725
> Mute This Topic: https://lists.openembedded.org/mt/116829679/6084445
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [skandigraun@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>



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

* Re: [oe] [meta-oe][PATCH 2/2] drm-lease-manager: add new recipe
  2025-12-17 16:11 ` [meta-oe][PATCH 2/2] drm-lease-manager: " Renaud Barrau
@ 2025-12-17 18:14   ` Gyorgy Sarvari
  2025-12-17 18:21     ` Gyorgy Sarvari
  0 siblings, 1 reply; 5+ messages in thread
From: Gyorgy Sarvari @ 2025-12-17 18:14 UTC (permalink / raw)
  To: rbarrau33, openembedded-devel

On 12/17/25 17:11, Renaud Barrau via lists.openembedded.org wrote:
> From: Renaud Barrau <rbarrau33@gmail.com>
>
> Create a recipe for the drm-lease-manager project  https://github.com/AGLExport/drm-lease-manager
>
> Signed-off-by: Renaud Barrau <rbarrau33@gmail.com>
> ---
>  .../drm-lease-manager_git.bb                  | 20 +++++++++++++++++++
>  1 file changed, 20 insertions(+)
>  create mode 100644 meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb
>
> diff --git a/meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb b/meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb
> new file mode 100644
> index 0000000000..621a08f324
> --- /dev/null
> +++ b/meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb
> @@ -0,0 +1,20 @@
> +SUMMARY = "Recipe for drm-lease-manager"
> +HOMEPAGE = "https://github.com/AGLExport/drm-lease-manager"
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
> +
> +SRC_URI = "git://github.com/AGLExport/drm-lease-manager;protocol=https;branch=master"

This seems to be a development fork, not the upstream repo:
https://git.automotivelinux.org/src/drm-lease-manager/ - I think this
(or a mirror of it) would be a better source.

> +
> +SRCREV = "e6c3bf4ff76ae5eeefdb149e4b4167195dfcfb61"
> +
> +S = "${WORKDIR}/git"

[Same comment about S as in the libtoml recipe]

> +
> +inherit meson pkgconfig
> +
> +DEPENDS += "libdrm pkgconfig-native libtoml"
> +
> +# Change default path /var/run/drm-lease-manager.
> +# For exemple if you wish to move the runtime dir of drm-lease-manager to /etc :
> +# EXTRA_OEMESON += "-Druntime_subdir=/etc/drm-lease-manager"
> +
> +FILES:${PN} += "${bindir}/drm-lease-manager"

Is this needed to specify? I would expect that ${PN} package grabs the
content of ${bindir} by default.


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

* Re: [oe] [meta-oe][PATCH 2/2] drm-lease-manager: add new recipe
  2025-12-17 18:14   ` [oe] " Gyorgy Sarvari
@ 2025-12-17 18:21     ` Gyorgy Sarvari
  0 siblings, 0 replies; 5+ messages in thread
From: Gyorgy Sarvari @ 2025-12-17 18:21 UTC (permalink / raw)
  To: rbarrau33, openembedded-devel

On 12/17/25 19:14, Gyorgy Sarvari wrote:
> On 12/17/25 17:11, Renaud Barrau via lists.openembedded.org wrote:
>> From: Renaud Barrau <rbarrau33@gmail.com>
>>
>> Create a recipe for the drm-lease-manager project  https://github.com/AGLExport/drm-lease-manager
>>
>> Signed-off-by: Renaud Barrau <rbarrau33@gmail.com>
>> ---
>>  .../drm-lease-manager_git.bb                  | 20 +++++++++++++++++++
>>  1 file changed, 20 insertions(+)
>>  create mode 100644 meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb
>>
>> diff --git a/meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb b/meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb
>> new file mode 100644
>> index 0000000000..621a08f324
>> --- /dev/null
>> +++ b/meta-oe/recipes-graphics/drm-lease-manager/drm-lease-manager_git.bb
>> @@ -0,0 +1,20 @@
>> +SUMMARY = "Recipe for drm-lease-manager"
>> +HOMEPAGE = "https://github.com/AGLExport/drm-lease-manager"
>> +LICENSE = "Apache-2.0"
>> +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
>> +
>> +SRC_URI = "git://github.com/AGLExport/drm-lease-manager;protocol=https;branch=master"
> This seems to be a development fork, not the upstream repo:
> https://git.automotivelinux.org/src/drm-lease-manager/ - I think this
> (or a mirror of it) would be a better source.
>
>> +
>> +SRCREV = "e6c3bf4ff76ae5eeefdb149e4b4167195dfcfb61"
>> +
>> +S = "${WORKDIR}/git"
> [Same comment about S as in the libtoml recipe]
>
>> +
>> +inherit meson pkgconfig
>> +
>> +DEPENDS += "libdrm pkgconfig-native libtoml"
>> +

Sorry for the spam, one more minor note: when you inherit pkgconfig, you
don't need to add pkgconfig-native to DEPENDS - the pkgconfig class
takes care of this (actually that's the only thing this class does)

>> +# Change default path /var/run/drm-lease-manager.
>> +# For exemple if you wish to move the runtime dir of drm-lease-manager to /etc :
>> +# EXTRA_OEMESON += "-Druntime_subdir=/etc/drm-lease-manager"
>> +
>> +FILES:${PN} += "${bindir}/drm-lease-manager"
> Is this needed to specify? I would expect that ${PN} package grabs the
> content of ${bindir} by default.



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

end of thread, other threads:[~2025-12-17 18:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-17 16:11 [meta-oe][PATCH 1/2] libtoml: add new recipe Renaud Barrau
2025-12-17 16:11 ` [meta-oe][PATCH 2/2] drm-lease-manager: " Renaud Barrau
2025-12-17 18:14   ` [oe] " Gyorgy Sarvari
2025-12-17 18:21     ` Gyorgy Sarvari
2025-12-17 18:06 ` [oe] [meta-oe][PATCH 1/2] libtoml: " Gyorgy Sarvari

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.