Преглед изворни кода

Introduce git and release versions for libubootenv

Signed-off-by: Stefano Babic <sbabic@denx.de>
Tested-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Stefano Babic пре 6 година
родитељ
комит
31fa0b689d

+ 25 - 0
recipes-bsp/libubootenv/libubootenv.inc

@@ -0,0 +1,25 @@
+SUMMARY = "U-Boot libraries and tools to acces environment"
+DEPENDS += "mtd-utils"
+
+DESCRIPTION = "This package contains tools and libraries to read \
+and modify U-Boot environment"
+
+HOMEPAGE = "https://github.com/sbabic/libubootenv"
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
+SECTION = "libs"
+
+SRC_URI = "git://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 = "cross"

+ 2 - 27
recipes-bsp/libubootenv/libubootenv_0.1.bb

@@ -1,27 +1,2 @@
-SUMMARY = "U-Boot libraries and tools to acces environment"
-DEPENDS += "mtd-utils"
-
-DESCRIPTION = "This package contains tools and libraries to read \
-and modify U-Boot environment"
-
-HOMEPAGE = "https://github.com/sbabic/libubootenv"
-LICENSE = "LGPL-2.1"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
-SECTION = "libs"
-
-SRC_URI = "git://github.com/sbabic/libubootenv;protocol=https"
-SRCREV = "edb580a42e46f76543edd0d6fd603881c6294eca"
-PV_append = "+git${SRCPV}"
-
-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 = "cross"
+require libubootenv.inc
+SRCREV = "8a7d4030bcb106de11632e85b6a0e7b7d4cb47af"

+ 5 - 0
recipes-bsp/libubootenv/libubootenv_git.bb

@@ -0,0 +1,5 @@
+require libubootenv.inc
+SRCREV = "edb580a42e46f76543edd0d6fd603881c6294eca"
+PV_append = "+git${SRCPV}"
+
+DEFAULT_PREFERENCE = "-1"