<div dir="ltr">The summary says it&#39;s hardware independent and then the recipe sets:<div>PACKAGE_ARCH = &quot;${MACHINE_ARCH}&quot;<br></div><div><br></div><div>why is that?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 2, 2020 at 2:18 PM Stefano Babic &lt;<a href="mailto:sbabic@denx.de">sbabic@denx.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">libubootenv is a replacement for u-boot-fw-utils. It is<br>
hardware-independent and provides fw_printenv and fw_setenv tools that<br>
are full compatible with the ones provided by U-Boot. A library is<br>
provided to access the environment from an own application.<br>
License is LGPL-2.1 and this allow to link the library to proprietary<br>
code. The user of the tools should install the configuration file<br>
&quot;fw_env.config&quot;, as he is already used to with u-boot-fw-utils. The<br>
configuration file is compatible with u-boot-fw-utils.<br>
<br>
Signed-off-by: Stefano Babic &lt;<a href="mailto:sbabic@denx.de" target="_blank">sbabic@denx.de</a>&gt;<br>
---<br>
 meta/recipes-bsp/u-boot/libubootenv.inc    | 27 ++++++++++++++++++++++<br>
 meta/recipes-bsp/u-boot/<a href="http://libubootenv_0.2.bb" rel="noreferrer" target="_blank">libubootenv_0.2.bb</a> |  2 ++<br>
 2 files changed, 29 insertions(+)<br>
 create mode 100644 meta/recipes-bsp/u-boot/libubootenv.inc<br>
 create mode 100644 meta/recipes-bsp/u-boot/<a href="http://libubootenv_0.2.bb" rel="noreferrer" target="_blank">libubootenv_0.2.bb</a><br>
<br>
diff --git a/meta/recipes-bsp/u-boot/libubootenv.inc b/meta/recipes-bsp/u-boot/libubootenv.inc<br>
new file mode 100644<br>
index 0000000000..87e15e5d79<br>
--- /dev/null<br>
+++ b/meta/recipes-bsp/u-boot/libubootenv.inc<br>
@@ -0,0 +1,27 @@<br>
+SUMMARY = &quot;U-Boot libraries and tools to access environment&quot;<br>
+DEPENDS += &quot;mtd-utils&quot;<br>
+<br>
+DESCRIPTION = &quot;This package contains tools and libraries to read \<br>
+and modify U-Boot environment. \<br>
+It provides a hardware-independent replacement for fw_printenv/setenv utilities \<br>
+provided by U-Boot&quot;<br>
+<br>
+HOMEPAGE = &quot;<a href="https://github.com/sbabic/libubootenv" rel="noreferrer" target="_blank">https://github.com/sbabic/libubootenv</a>&quot;<br>
+LICENSE = &quot;LGPL-2.1&quot;<br>
+LIC_FILES_CHKSUM = &quot;file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c&quot;<br>
+SECTION = &quot;libs&quot;<br>
+<br>
+SRC_URI = &quot;git://<a href="http://github.com/sbabic/libubootenv;protocol=https" rel="noreferrer" target="_blank">github.com/sbabic/libubootenv;protocol=https</a>&quot;<br>
+<br>
+S = &quot;${WORKDIR}/git&quot;<br>
+<br>
+inherit cmake<br>
+<br>
+EXTRA_OECMAKE = &quot;-DCMAKE_BUILD_TYPE=Release&quot;<br>
+<br>
+PACKAGE_ARCH = &quot;${MACHINE_ARCH}&quot;<br>
+<br>
+PROVIDES += &quot;u-boot-fw-utils&quot;<br>
+RPROVIDES_${PN} += &quot;u-boot-fw-utils&quot;<br>
+<br>
+BBCLASSEXTEND = &quot;native&quot;<br>
diff --git a/meta/recipes-bsp/u-boot/<a href="http://libubootenv_0.2.bb" rel="noreferrer" target="_blank">libubootenv_0.2.bb</a> b/meta/recipes-bsp/u-boot/<a href="http://libubootenv_0.2.bb" rel="noreferrer" target="_blank">libubootenv_0.2.bb</a><br>
new file mode 100644<br>
index 0000000000..96a60cbc4b<br>
--- /dev/null<br>
+++ b/meta/recipes-bsp/u-boot/<a href="http://libubootenv_0.2.bb" rel="noreferrer" target="_blank">libubootenv_0.2.bb</a><br>
@@ -0,0 +1,2 @@<br>
+require libubootenv.inc<br>
+SRCREV = &quot;bf6ff631c0e38cede67268ceb8bf1383b5f8848e&quot;<br>
-- <br>
2.17.1<br>
<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div>