On 12/14/2023 2:22 AM, Khem Raj wrote:
On Wed, Dec 13, 2023 at 3:58 AM Viswanath Kraleti
<[email protected]> wrote:

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

Signed-off-by: Viswanath Kraleti <[email protected]>
---
  .../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 (#192385): 
https://lists.openembedded.org/g/openembedded-core/message/192385
Mute This Topic: https://lists.openembedded.org/mt/103147679/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to