<div dir="ltr">The summary says it's hardware independent and then the recipe sets:<div>PACKAGE_ARCH = "${MACHINE_ARCH}"<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 <<a href="mailto:sbabic@denx.de">sbabic@denx.de</a>> 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>
"fw_env.config", 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 <<a href="mailto:sbabic@denx.de" target="_blank">sbabic@denx.de</a>><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 = "U-Boot libraries and tools to access environment"<br>
+DEPENDS += "mtd-utils"<br>
+<br>
+DESCRIPTION = "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"<br>
+<br>
+HOMEPAGE = "<a href="https://github.com/sbabic/libubootenv" rel="noreferrer" target="_blank">https://github.com/sbabic/libubootenv</a>"<br>
+LICENSE = "LGPL-2.1"<br>
+LIC_FILES_CHKSUM = "file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c"<br>
+SECTION = "libs"<br>
+<br>
+SRC_URI = "git://<a href="http://github.com/sbabic/libubootenv;protocol=https" rel="noreferrer" target="_blank">github.com/sbabic/libubootenv;protocol=https</a>"<br>
+<br>
+S = "${WORKDIR}/git"<br>
+<br>
+inherit cmake<br>
+<br>
+EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release"<br>
+<br>
+PACKAGE_ARCH = "${MACHINE_ARCH}"<br>
+<br>
+PROVIDES += "u-boot-fw-utils"<br>
+RPROVIDES_${PN} += "u-boot-fw-utils"<br>
+<br>
+BBCLASSEXTEND = "native"<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 = "bf6ff631c0e38cede67268ceb8bf1383b5f8848e"<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>