[PATCH v2 3/3] uboot-envtools: use `commitcount` for release

Paul Spooren mail at aparcar.org
Thu Jan 7 14:51:50 EST 2021


Use `commitcount` function rather than manually setting a PKG_RELEASE.

Signed-off-by: Paul Spooren <mail at aparcar.org>
---
 package/boot/uboot-envtools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/boot/uboot-envtools/Makefile b/package/boot/uboot-envtools/Makefile
index 8bc2c00ba5..fef3008f3b 100644
--- a/package/boot/uboot-envtools/Makefile
+++ b/package/boot/uboot-envtools/Makefile
@@ -10,7 +10,6 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=uboot-envtools
 PKG_DISTNAME:=u-boot
 PKG_VERSION:=2020.04
-PKG_RELEASE:=17
 
 PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:= \
@@ -38,6 +37,7 @@ define Package/uboot-envtools
   SUBMENU:=Boot Loaders
   TITLE:=read/modify U-Boot bootloader environment
   URL:=http://www.denx.de/wiki/U-Boot
+  VERSION:=$(PKG_VERSION)-$(strip $(call commitcount))
 endef
 
 define Package/uboot-envtools/description
-- 
2.29.2




More information about the openwrt-devel mailing list