Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2 1/2] systemd-boot: Add recipe to compile native
@ 2023-12-13 11:57 Viswanath Kraleti
  2023-12-13 11:57 ` [PATCH v2 2/2] systemd-boot: Add efi stubs to systemd-boot-stubs PACKAGE Viswanath Kraleti
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Viswanath Kraleti @ 2023-12-13 11:57 UTC (permalink / raw)
  To: openembedded-core

systemd-boot native recipe provides ukify tool to build
UKI images for systemd-boot

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
---
 .../systemd/systemd-boot-native_254.4.bb          | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/recipes-core/systemd/systemd-boot-native_254.4.bb

diff --git a/meta/recipes-core/systemd/systemd-boot-native_254.4.bb b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
new file mode 100644
index 0000000000..0cdd7e7045
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
@@ -0,0 +1,15 @@
+require systemd.inc
+
+inherit native
+
+RRECOMMENDS:${PN} += "python3-pefile-native"
+
+COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*)-linux"
+
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+do_install () {
+       install -d ${D}${bindir}
+       install -m 0755 ${S}/src/ukify/ukify.py ${D}${bindir}/ukify
+}
-- 
2.25.1



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

* [PATCH v2 2/2] systemd-boot: Add efi stubs to systemd-boot-stubs PACKAGE
  2023-12-13 11:57 [PATCH v2 1/2] systemd-boot: Add recipe to compile native Viswanath Kraleti
@ 2023-12-13 11:57 ` Viswanath Kraleti
  2023-12-13 20:52 ` [OE-core] [PATCH v2 1/2] systemd-boot: Add recipe to compile native Khem Raj
  2023-12-14  8:02 ` Alexandre Belloni
  2 siblings, 0 replies; 7+ messages in thread
From: Viswanath Kraleti @ 2023-12-13 11:57 UTC (permalink / raw)
  To: openembedded-core

Place efi stubs generated by systemd-boot in systemd-boot-stubs package.
Currently these are only installed in DEPLOY_DIR, making it difficult to
consume from other recipes.

Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
---
 meta/recipes-core/systemd/systemd-boot_254.4.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd-boot_254.4.bb b/meta/recipes-core/systemd/systemd-boot_254.4.bb
index 2b43ccf243..45c08dcb31 100644
--- a/meta/recipes-core/systemd/systemd-boot_254.4.bb
+++ b/meta/recipes-core/systemd/systemd-boot_254.4.bb
@@ -59,6 +59,8 @@ COMPATIBLE_HOST:x86-x32 = "null"
 do_install() {
 	install -d ${D}${EFI_FILES_PATH}
 	install ${B}/src/boot/efi/systemd-boot*.efi ${D}${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}
+	install ${B}/src/boot/efi/linux*.efi.stub ${D}
+	install ${B}/src/boot/efi/addon*.efi.stub ${D}
 }
 
 do_deploy () {
@@ -69,3 +71,5 @@ do_deploy () {
 
 addtask deploy before do_build after do_compile
 
+PACKAGES += "${PN}-stubs"
+FILES:${PN}-stubs = "*.efi.stub"
-- 
2.25.1



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

* Re: [OE-core] [PATCH v2 1/2] systemd-boot: Add recipe to compile native
  2023-12-13 11:57 [PATCH v2 1/2] systemd-boot: Add recipe to compile native Viswanath Kraleti
  2023-12-13 11:57 ` [PATCH v2 2/2] systemd-boot: Add efi stubs to systemd-boot-stubs PACKAGE Viswanath Kraleti
@ 2023-12-13 20:52 ` Khem Raj
  2023-12-14 14:35   ` Viswanath Kraleti
  2023-12-14  8:02 ` Alexandre Belloni
  2 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2023-12-13 20:52 UTC (permalink / raw)
  To: Viswanath Kraleti; +Cc: openembedded-core

On Wed, Dec 13, 2023 at 3:58 AM Viswanath Kraleti
<quic_vkraleti@quicinc.com> wrote:
>
> systemd-boot native recipe provides ukify tool to build
> UKI images for systemd-boot
>
> Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
> ---
>  .../systemd/systemd-boot-native_254.4.bb          | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>  create mode 100644 meta/recipes-core/systemd/systemd-boot-native_254.4.bb
>
> diff --git a/meta/recipes-core/systemd/systemd-boot-native_254.4.bb b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
> new file mode 100644
> index 0000000000..0cdd7e7045
> --- /dev/null
> +++ b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
> @@ -0,0 +1,15 @@
> +require systemd.inc
> +
> +inherit native
> +
> +RRECOMMENDS:${PN} += "python3-pefile-native"
> +
> +COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*)-linux"

this is a native recipe, so I wonder why do we need COMPATIBLE_HOST

> +
> +do_configure[noexec] = "1"
> +do_compile[noexec] = "1"

should these tasks be simply deleted using deltask

> +
> +do_install () {
> +       install -d ${D}${bindir}
> +       install -m 0755 ${S}/src/ukify/ukify.py ${D}${bindir}/ukify

you can make it one liner

install -Dm 0755 ${S}/src/ukify/ukify.py ${D}${bindir}/ukify

> +}
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#192289): https://lists.openembedded.org/g/openembedded-core/message/192289
> Mute This Topic: https://lists.openembedded.org/mt/103147679/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

* Re: [OE-core] [PATCH v2 1/2] systemd-boot: Add recipe to compile native
  2023-12-13 11:57 [PATCH v2 1/2] systemd-boot: Add recipe to compile native Viswanath Kraleti
  2023-12-13 11:57 ` [PATCH v2 2/2] systemd-boot: Add efi stubs to systemd-boot-stubs PACKAGE Viswanath Kraleti
  2023-12-13 20:52 ` [OE-core] [PATCH v2 1/2] systemd-boot: Add recipe to compile native Khem Raj
@ 2023-12-14  8:02 ` Alexandre Belloni
  2023-12-14 14:41   ` Viswanath Kraleti
  2 siblings, 1 reply; 7+ messages in thread
From: Alexandre Belloni @ 2023-12-14  8:02 UTC (permalink / raw)
  To: Viswanath Kraleti; +Cc: openembedded-core

Hello, this causes:

https://autobuilder.yoctoproject.org/typhoon/#/builders/23/builds/8617/steps/11/logs/warnings

WARNING: Nothing RPROVIDES 'python3-pefile-native' (but /home/pokybuild/yocto-worker/build-appliance/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb RDEPENDS on or otherwise requires it)
WARNING: Nothing RPROVIDES 'systemd-boot-native-dev' (but /home/pokybuild/yocto-worker/build-appliance/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb RDEPENDS on or otherwise requires it)
WARNING: Nothing RPROVIDES 'systemd-boot-native' (but /home/pokybuild/yocto-worker/build-appliance/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb RDEPENDS on or otherwise requires it)

and:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6133/steps/14/logs/stdio

The following recipes do not have a maintainer assigned to them. Please add an entry to meta/conf/distro/include/maintainers.inc file.
systemd-boot-native (/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb)

On 13/12/2023 17:27:47+0530, Viswanath Kraleti wrote:
> systemd-boot native recipe provides ukify tool to build
> UKI images for systemd-boot
> 
> Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
> ---
>  .../systemd/systemd-boot-native_254.4.bb          | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>  create mode 100644 meta/recipes-core/systemd/systemd-boot-native_254.4.bb
> 
> diff --git a/meta/recipes-core/systemd/systemd-boot-native_254.4.bb b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
> new file mode 100644
> index 0000000000..0cdd7e7045
> --- /dev/null
> +++ b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
> @@ -0,0 +1,15 @@
> +require systemd.inc
> +
> +inherit native
> +
> +RRECOMMENDS:${PN} += "python3-pefile-native"
> +
> +COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*)-linux"
> +
> +do_configure[noexec] = "1"
> +do_compile[noexec] = "1"
> +
> +do_install () {
> +       install -d ${D}${bindir}
> +       install -m 0755 ${S}/src/ukify/ukify.py ${D}${bindir}/ukify
> +}
> -- 
> 2.25.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#192289): https://lists.openembedded.org/g/openembedded-core/message/192289
> Mute This Topic: https://lists.openembedded.org/mt/103147679/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


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

* Re: [OE-core] [PATCH v2 1/2] systemd-boot: Add recipe to compile native
  2023-12-13 20:52 ` [OE-core] [PATCH v2 1/2] systemd-boot: Add recipe to compile native Khem Raj
@ 2023-12-14 14:35   ` Viswanath Kraleti
  0 siblings, 0 replies; 7+ messages in thread
From: Viswanath Kraleti @ 2023-12-14 14:35 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core



On 12/14/2023 2:22 AM, Khem Raj wrote:
> On Wed, Dec 13, 2023 at 3:58 AM Viswanath Kraleti
> <quic_vkraleti@quicinc.com> wrote:
>>
>> systemd-boot native recipe provides ukify tool to build
>> UKI images for systemd-boot
>>
>> Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
>> ---
>>   .../systemd/systemd-boot-native_254.4.bb          | 15 +++++++++++++++
>>   1 file changed, 15 insertions(+)
>>   create mode 100644 meta/recipes-core/systemd/systemd-boot-native_254.4.bb
>>
>> diff --git a/meta/recipes-core/systemd/systemd-boot-native_254.4.bb b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
>> new file mode 100644
>> index 0000000000..0cdd7e7045
>> --- /dev/null
>> +++ b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
>> @@ -0,0 +1,15 @@
>> +require systemd.inc
>> +
>> +inherit native
>> +
>> +RRECOMMENDS:${PN} += "python3-pefile-native"
>> +
>> +COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*)-linux"
> 
> this is a native recipe, so I wonder why do we need COMPATIBLE_HOST
> 
Removed it.
>> +
>> +do_configure[noexec] = "1"
>> +do_compile[noexec] = "1"
> 
> should these tasks be simply deleted using deltask
> 
Used noexec to let default task dependencies to remain as is so that 
install can find source under ${S}. I'll explicitly add 'addtask install 
after do_unpack'.
>> +
>> +do_install () {
>> +       install -d ${D}${bindir}
>> +       install -m 0755 ${S}/src/ukify/ukify.py ${D}${bindir}/ukify
> 
> you can make it one liner
> 
> install -Dm 0755 ${S}/src/ukify/ukify.py ${D}${bindir}/ukify
>
Thanks for the input.

>> +}
>> --
>> 2.25.1
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#192289): https://lists.openembedded.org/g/openembedded-core/message/192289
>> Mute This Topic: https://lists.openembedded.org/mt/103147679/1997914
>> Group Owner: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>


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

* Re: [OE-core] [PATCH v2 1/2] systemd-boot: Add recipe to compile native
  2023-12-14  8:02 ` Alexandre Belloni
@ 2023-12-14 14:41   ` Viswanath Kraleti
  2023-12-14 23:04     ` Alexandre Belloni
  0 siblings, 1 reply; 7+ messages in thread
From: Viswanath Kraleti @ 2023-12-14 14:41 UTC (permalink / raw)
  To: alexandre.belloni; +Cc: openembedded-core



On 12/14/2023 1:32 PM, Alexandre Belloni via lists.openembedded.org wrote:
> Hello, this causes:
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/23/builds/8617/steps/11/logs/warnings
> 
> WARNING: Nothing RPROVIDES 'python3-pefile-native' (but /home/pokybuild/yocto-worker/build-appliance/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb RDEPENDS on or otherwise requires it)
> WARNING: Nothing RPROVIDES 'systemd-boot-native-dev' (but /home/pokybuild/yocto-worker/build-appliance/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb RDEPENDS on or otherwise requires it)
> WARNING: Nothing RPROVIDES 'systemd-boot-native' (but /home/pokybuild/yocto-worker/build-appliance/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb RDEPENDS on or otherwise requires it)
> 

Thanks for pointing.Uploaded a new patch-set to address these.
https://lists.openembedded.org/g/openembedded-core/message/192384

Some how in local build no warnings seen. Is there a way to run auto 
builder locally before submitting patches to avoid this?

> and:
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6133/steps/14/logs/stdio
> 
> The following recipes do not have a maintainer assigned to them. Please add an entry to meta/conf/distro/include/maintainers.inc file.
> systemd-boot-native (/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb)
>
For updating maintainer, can I submit a change post patch acceptance?

> On 13/12/2023 17:27:47+0530, Viswanath Kraleti wrote:
>> systemd-boot native recipe provides ukify tool to build
>> UKI images for systemd-boot
>>
>> Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
>> ---
>>   .../systemd/systemd-boot-native_254.4.bb          | 15 +++++++++++++++
>>   1 file changed, 15 insertions(+)
>>   create mode 100644 meta/recipes-core/systemd/systemd-boot-native_254.4.bb
>>
>> diff --git a/meta/recipes-core/systemd/systemd-boot-native_254.4.bb b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
>> new file mode 100644
>> index 0000000000..0cdd7e7045
>> --- /dev/null
>> +++ b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
>> @@ -0,0 +1,15 @@
>> +require systemd.inc
>> +
>> +inherit native
>> +
>> +RRECOMMENDS:${PN} += "python3-pefile-native"
>> +
>> +COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*)-linux"
>> +
>> +do_configure[noexec] = "1"
>> +do_compile[noexec] = "1"
>> +
>> +do_install () {
>> +       install -d ${D}${bindir}
>> +       install -m 0755 ${S}/src/ukify/ukify.py ${D}${bindir}/ukify
>> +}
>> -- 
>> 2.25.1
>>
> 
>>
>>
>>
> 
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#192337): https://lists.openembedded.org/g/openembedded-core/message/192337
> Mute This Topic: https://lists.openembedded.org/mt/103147679/5192326
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [quic_vkraleti@quicinc.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


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

* Re: [OE-core] [PATCH v2 1/2] systemd-boot: Add recipe to compile native
  2023-12-14 14:41   ` Viswanath Kraleti
@ 2023-12-14 23:04     ` Alexandre Belloni
  0 siblings, 0 replies; 7+ messages in thread
From: Alexandre Belloni @ 2023-12-14 23:04 UTC (permalink / raw)
  To: Viswanath Kraleti; +Cc: openembedded-core

On 14/12/2023 20:11:16+0530, Viswanath Kraleti wrote:
> 
> 
> On 12/14/2023 1:32 PM, Alexandre Belloni via lists.openembedded.org wrote:
> > Hello, this causes:
> > 
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/23/builds/8617/steps/11/logs/warnings
> > 
> > WARNING: Nothing RPROVIDES 'python3-pefile-native' (but /home/pokybuild/yocto-worker/build-appliance/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb RDEPENDS on or otherwise requires it)
> > WARNING: Nothing RPROVIDES 'systemd-boot-native-dev' (but /home/pokybuild/yocto-worker/build-appliance/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb RDEPENDS on or otherwise requires it)
> > WARNING: Nothing RPROVIDES 'systemd-boot-native' (but /home/pokybuild/yocto-worker/build-appliance/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb RDEPENDS on or otherwise requires it)
> > 
> 
> Thanks for pointing.Uploaded a new patch-set to address these.
> https://lists.openembedded.org/g/openembedded-core/message/192384
> 
> Some how in local build no warnings seen. Is there a way to run auto builder
> locally before submitting patches to avoid this?

Well, this one is simply a checkout of poky with the following
configuration:

https://autobuilder.yoctoproject.org/typhoon/#/builders/23/builds/8617/steps/10/logs/stdio

The failing command was then:
bitbake universe -k -c fetch -k


> 
> > and:
> > 
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6133/steps/14/logs/stdio
> > 
> > The following recipes do not have a maintainer assigned to them. Please add an entry to meta/conf/distro/include/maintainers.inc file.
> > systemd-boot-native (/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-core/systemd/systemd-boot-native_254.4.bb)
> > 
> For updating maintainer, can I submit a change post patch acceptance?

No, your patches need to pass the tests before they can be merged.


> 
> > On 13/12/2023 17:27:47+0530, Viswanath Kraleti wrote:
> > > systemd-boot native recipe provides ukify tool to build
> > > UKI images for systemd-boot
> > > 
> > > Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com>
> > > ---
> > >   .../systemd/systemd-boot-native_254.4.bb          | 15 +++++++++++++++
> > >   1 file changed, 15 insertions(+)
> > >   create mode 100644 meta/recipes-core/systemd/systemd-boot-native_254.4.bb
> > > 
> > > diff --git a/meta/recipes-core/systemd/systemd-boot-native_254.4.bb b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
> > > new file mode 100644
> > > index 0000000000..0cdd7e7045
> > > --- /dev/null
> > > +++ b/meta/recipes-core/systemd/systemd-boot-native_254.4.bb
> > > @@ -0,0 +1,15 @@
> > > +require systemd.inc
> > > +
> > > +inherit native
> > > +
> > > +RRECOMMENDS:${PN} += "python3-pefile-native"
> > > +
> > > +COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*)-linux"
> > > +
> > > +do_configure[noexec] = "1"
> > > +do_compile[noexec] = "1"
> > > +
> > > +do_install () {
> > > +       install -d ${D}${bindir}
> > > +       install -m 0755 ${S}/src/ukify/ukify.py ${D}${bindir}/ukify
> > > +}
> > > -- 
> > > 2.25.1
> > > 
> > 
> > > 
> > > 
> > > 
> > 
> > 
> > 
> > 
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#192337): https://lists.openembedded.org/g/openembedded-core/message/192337
> > Mute This Topic: https://lists.openembedded.org/mt/103147679/5192326
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [quic_vkraleti@quicinc.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> > 

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


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

end of thread, other threads:[~2023-12-14 23:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-13 11:57 [PATCH v2 1/2] systemd-boot: Add recipe to compile native Viswanath Kraleti
2023-12-13 11:57 ` [PATCH v2 2/2] systemd-boot: Add efi stubs to systemd-boot-stubs PACKAGE Viswanath Kraleti
2023-12-13 20:52 ` [OE-core] [PATCH v2 1/2] systemd-boot: Add recipe to compile native Khem Raj
2023-12-14 14:35   ` Viswanath Kraleti
2023-12-14  8:02 ` Alexandre Belloni
2023-12-14 14:41   ` Viswanath Kraleti
2023-12-14 23:04     ` Alexandre Belloni

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