[OE-core] [PATCH] u-boot-fw-utils: Add support for libubootenv

Stefano Babic sbabic at denx.de
Thu Jan 2 16:57:48 UTC 2020


Hi Martin,

On 02/01/20 16:45, Martin Jansa wrote:
> The summary says it's hardware independent and then the recipe sets:
> PACKAGE_ARCH = "${MACHINE_ARCH}"
> 

You're right, this is not needed, I remove it in V2.

Regards,
Stefano

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


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the Openembedded-core mailing list