Skip to contentSkip to conversation

package/davinci-bootcount: update GitHub URL

PATCH In review Dario Binacchi 2 participants 7 messages Feb 7, 2024 – Mar 1, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/3 package/davinci-bootcount: update GitHub URL

The patch updates the GitHub URL, which has recently changed.

---

(no changes since v2)

 package/davinci-bootcount/Config.in            | 2 +-
 package/davinci-bootcount/davinci-bootcount.mk | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/davinci-bootcount/Config.in +1 -1
index e34adde570af..0201530f9166 100644
@@ -8,4 +8,4 @@ config BR2_PACKAGE_DAVINCI_BOOTCOUNT
 	  SCRATCH2 register. This tool allows to read and write this
 	  register from userspace.
 
-	  https://github.com/VoltServer/uboot-davinci-bootcount
+	  https://github.com/VoltServer/uboot-bootcount
package/davinci-bootcount/davinci-bootcount.mk +1 -1
index 695d39688ac6..884bf420f396 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 DAVINCI_BOOTCOUNT_VERSION = 2.0.0
-DAVINCI_BOOTCOUNT_SITE = $(call github,VoltServer,uboot-davinci-bootcount,v$(DAVINCI_BOOTCOUNT_VERSION))
+DAVINCI_BOOTCOUNT_SITE = $(call github,VoltServer,uboot-bootcount,v$(DAVINCI_BOOTCOUNT_VERSION))
 DAVINCI_BOOTCOUNT_LICENSE = GPL-3.0
 DAVINCI_BOOTCOUNT_LICENSE_FILES = COPYING
 
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH v3 2/3 package/davinci-bootcount: rename to uboot-bootcount

Born as a project to read/write the bootcount on the TI am3xx platform, over time it has introduced bootcount management on EEPROM and for the stm32mp1 platform. As a result, the project removed the 'davinci' tag from its name and GitHub link.
The patch aligns the package name in Buildroot with the current one on GitHub.

---
 Config.in.legacy                                  |  6 ++++++
 DEVELOPERS                                        |  2 +-
 package/Config.in                                 |  2 +-
 package/davinci-bootcount/Config.in               | 11 -----------
 package/davinci-bootcount/davinci-bootcount.mk    | 15 ---------------
 package/uboot-bootcount/Config.in                 | 10 ++++++++++
 .../uboot-bootcount.hash}                         |  2 +-
 package/uboot-bootcount/uboot-bootcount.mk        | 15 +++++++++++++++
 8 files changed, 34 insertions(+), 29 deletions(-)
 delete mode 100644 package/davinci-bootcount/Config.in
 delete mode 100644 package/davinci-bootcount/davinci-bootcount.mk
 create mode 100644 package/uboot-bootcount/Config.in
 rename package/{davinci-bootcount/davinci-bootcount.hash => uboot-bootcount/uboot-bootcount.hash} (80%)
 create mode 100644 package/uboot-bootcount/uboot-bootcount.mk
Config.in.legacy +6 -0
index 5fbe5d903074..cf32f887d4b0 100644
@@ -146,6 +146,12 @@ endif
 
 comment "Legacy options removed in 2024.02"
 
+config BR2_PACKAGE_DAVINCI_BOOTCOUNT
+	bool "davinci-bootcount has been renamed"
+	select BR2_LEGACY
+	help
+	  The davinci-bootcount package has been renamed.
+
 config BR2_PACKAGE_PYTHON_CROSSBAR
 	bool "python-crossbar removed"
 	select BR2_LEGACY
DEVELOPERS +1 -1
index 7906a940a9b2..43dd5c8cb49d 100644
@@ -760,7 +760,7 @@ F:	package/sscep/
 F:	package/uuu/
 
 N:	Dario Binacchi <[email protected]>
-F:	package/davinci-bootcount/
+F:	package/uboot-bootcount/
 F:	package/libmnl/
 
 N:	David Bachelart <[email protected]>
package/Config.in +1 -1
index 24e5f04ed671..4c6deb13337c 100644
@@ -486,7 +486,6 @@ endmenu
 	source "package/cwiid/Config.in"
 	source "package/dahdi-linux/Config.in"
 	source "package/dahdi-tools/Config.in"
-	source "package/davinci-bootcount/Config.in"
 	source "package/dbus/Config.in"
 	source "package/dbus-broker/Config.in"
 	source "package/dbus-cpp/Config.in"
@@ -638,6 +637,7 @@ endmenu
 	source "package/ti-utils/Config.in"
 	source "package/tio/Config.in"
 	source "package/triggerhappy/Config.in"
+	source "package/uboot-bootcount/Config.in"
 	source "package/uboot-tools/Config.in"
 	source "package/ubus/Config.in"
 	source "package/udev/Config.in"
package/davinci-bootcount/Config.in deleted +0 -11
deleted file mode 100644
index 0201530f9166..000000000000
@@ -1,11 +0,0 @@
-config BR2_PACKAGE_DAVINCI_BOOTCOUNT
-	bool "davinci-bootcount"
-	depends on BR2_arm # only relevant for TI am335x
-	help
-	  U-Boot implements a boot count scheme that can be used to
-	  detect multiple failed attempts to boot Linux. On Davinci
-	  platform (TI AM 335x) the `bootcount' is stored in the RTC
-	  SCRATCH2 register. This tool allows to read and write this
-	  register from userspace.
-
-	  https://github.com/VoltServer/uboot-bootcount
package/davinci-bootcount/davinci-bootcount.mk deleted +0 -15
deleted file mode 100644
index 884bf420f396..000000000000
@@ -1,15 +0,0 @@
-################################################################################
-#
-# davinci-bootcount
-#
-################################################################################
-
-DAVINCI_BOOTCOUNT_VERSION = 2.0.0
-DAVINCI_BOOTCOUNT_SITE = $(call github,VoltServer,uboot-bootcount,v$(DAVINCI_BOOTCOUNT_VERSION))
-DAVINCI_BOOTCOUNT_LICENSE = GPL-3.0
-DAVINCI_BOOTCOUNT_LICENSE_FILES = COPYING
-
-# sources fetched from github, no configure script
-DAVINCI_BOOTCOUNT_AUTORECONF = YES
-
-$(eval $(autotools-package))
package/uboot-bootcount/Config.in new file +10 -0
new file mode 100644
index 000000000000..53a0bd9174a4
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_UBOOT_BOOTCOUNT
+	bool "uboot-bootcount"
+	default y if BR2_PACKAGE_DAVINCI_BOOTCOUNT # legacy
+	help
+	  U-Boot implements a boot count scheme that can be used to
+	  detect multiple failed attempts to boot Linux. This tool
+	  allows to read and write bootcount from userspace for some
+	  platforms (TI AM335X or STM32MP1) or from I2C EEPROM.
+
+	  https://github.com/VoltServer/uboot-bootcount
package/uboot-bootcount/uboot-bootcount.hash renamed from package/davinci-bootcount/davinci-bootcount.hash +1 -1
similarity index 80%
rename from package/davinci-bootcount/davinci-bootcount.hash
rename to package/uboot-bootcount/uboot-bootcount.hash
index 53435b1d1d6d..e1ebc442357e 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  12b5aa83736efb2fefd22cd4d9f305a25c68dfaa10401d5efb17e55a5163934e  davinci-bootcount-2.0.0.tar.gz
+sha256  12b5aa83736efb2fefd22cd4d9f305a25c68dfaa10401d5efb17e55a5163934e  uboot-bootcount-2.0.0.tar.gz
 sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  COPYING
package/uboot-bootcount/uboot-bootcount.mk new file +15 -0
new file mode 100644
index 000000000000..07b52ab89eb5
@@ -0,0 +1,15 @@
+################################################################################
+#
+# uboot-bootcount
+#
+################################################################################
+
+UBOOT_BOOTCOUNT_VERSION = 2.0.0
+UBOOT_BOOTCOUNT_SITE = $(call github,VoltServer,uboot-bootcount,v$(UBOOT_BOOTCOUNT_VERSION))
+UBOOT_BOOTCOUNT_LICENSE = GPL-3.0
+UBOOT_BOOTCOUNT_LICENSE_FILES = COPYING
+
+# sources fetched from github, no configure script
+UBOOT_BOOTCOUNT_AUTORECONF = YES
+
+$(eval $(autotools-package))
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH v3 2/3] package/davinci-bootcount: rename to uboot-bootcount

Quoted 32 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Dario" == Dario Binacchi <[email protected]> writes:

Born as a project to read/write the bootcount on the TI am3xx platform, over time it has introduced bootcount management on EEPROM and for the stm32mp1 platform. As a result, the project removed the 'davinci' tag from its name and GitHub link.
The patch aligns the package name in Buildroot with the current one on GitHub.

---
 Config.in.legacy                                  |  6 ++++++
 DEVELOPERS                                        |  2 +-
 package/Config.in                                 |  2 +-
 package/davinci-bootcount/Config.in               | 11 -----------
 package/davinci-bootcount/davinci-bootcount.mk    | 15 ---------------
 package/uboot-bootcount/Config.in                 | 10 ++++++++++
 .../uboot-bootcount.hash}                         |  2 +-
 package/uboot-bootcount/uboot-bootcount.mk        | 15 +++++++++++++++
 8 files changed, 34 insertions(+), 29 deletions(-)
 delete mode 100644 package/davinci-bootcount/Config.in
 delete mode 100644 package/davinci-bootcount/davinci-bootcount.mk
 create mode 100644 package/uboot-bootcount/Config.in
 rename package/{davinci-bootcount/davinci-bootcount.hash =>
uboot-bootcount/uboot-bootcount.hash} (80%)
 create mode 100644 package/uboot-bootcount/uboot-bootcount.mk
Config.in.legacy +0 -0
index 5fbe5d903074..cf32f887d4b0 100644

Config.in.legacy endif · line 151

Quoted 6 lines
Config.in.legacy +3 -0
@@ -146,6 +146,12 @@ endif
 
 comment "Legacy options removed in 2024.02"
 
+config BR2_PACKAGE_DAVINCI_BOOTCOUNT
+	bool "davinci-bootcount has been renamed"
+	select BR2_LEGACY

We normally add the legacy handling here, so I've added select BR2_PACKAGE_UBOOT_BOOTCOUNT (and dropped it from the package).

Config.in.legacy endif · line 153

Quoted 2 lines
Config.in.legacy +2 -0
+	help
+	  The davinci-bootcount package has been renamed.

And extended this to mention the new name.

Committed with these changes, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

PATCH v3 3/3 package/uboot-bootcount: bump to version 3.0.0

In reply to Dario Binacchi

- Support for i.MX 8M chipsets
- README: updated documentation and source comments

Release notes:
https://github.com/VoltServer/uboot-bootcount/releases/tag/v3.0.0

---

Changes in v3:
- The patch has been added to the series because a new version has been released in the meantime.

 package/uboot-bootcount/uboot-bootcount.hash | 2 +-
 package/uboot-bootcount/uboot-bootcount.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/uboot-bootcount/uboot-bootcount.hash +1 -1
index e1ebc442357e..7f46da22ebe0 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  12b5aa83736efb2fefd22cd4d9f305a25c68dfaa10401d5efb17e55a5163934e  uboot-bootcount-2.0.0.tar.gz
+sha256  b26b9135716afb2ea967edc2327d1d307cdd15a643bd105dc223d062e18f2dda  uboot-bootcount-3.0.0.tar.gz
 sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  COPYING
package/uboot-bootcount/uboot-bootcount.mk +1 -1
index 07b52ab89eb5..48a45b91aae0 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-UBOOT_BOOTCOUNT_VERSION = 2.0.0
+UBOOT_BOOTCOUNT_VERSION = 3.0.0
 UBOOT_BOOTCOUNT_SITE = $(call github,VoltServer,uboot-bootcount,v$(UBOOT_BOOTCOUNT_VERSION))
 UBOOT_BOOTCOUNT_LICENSE = GPL-3.0
 UBOOT_BOOTCOUNT_LICENSE_FILES = COPYING
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

Re: [Buildroot] [PATCH v3 3/3] package/uboot-bootcount: bump to version 3.0.0

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Dario" == Dario Binacchi <[email protected]> writes:

- Support for i.MX 8M chipsets
- README: updated documentation and source comments

Release notes:
https://github.com/VoltServer/uboot-bootcount/releases/tag/v3.0.0

Quoted 7 lines

---

Changes in v3:
- The patch has been added to the series because a new version has been released in the meantime.

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw
In reply to Dario Binacchi
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Dario" == Dario Binacchi <[email protected]> writes:

The patch updates the GitHub URL, which has recently changed.

---

(no changes since v2)

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw
In reply to Dario Binacchi
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Dario" == Dario Binacchi <[email protected]> writes:

The patch updates the GitHub URL, which has recently changed.

Committed to 2023.02.x and 2023.11.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot