package/davinci-bootcount: rename as uboot-bootcount
PATCH 1/1 package/davinci-bootcount: rename as 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.
---
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 +++++++++++++++
7 files changed, 28 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.mkDEVELOPERS +1 -1
@@ -739,7 +739,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
@@ -476,7 +476,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"
@@ -627,6 +626,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
@@ -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-davinci-bootcount
package/davinci-bootcount/davinci-bootcount.mk deleted +0 -15
@@ -1,15 +0,0 @@ -################################################################################ -# -# davinci-bootcount -# -################################################################################ - -DAVINCI_BOOTCOUNT_VERSION = 2.0.0 -DAVINCI_BOOTCOUNT_SITE = $(call github,VoltServer,uboot-davinci-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
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_UBOOT_BOOTCOUNT + bool "uboot-bootcount" + depends on BR2_arm + 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
@@ -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
@@ -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.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 6 lines · Dario Binacchi
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.
We try to avoid package renames unless it's really needed, because it causes
some annoyance when updating Buildroot.
In this specific case, the package name (davinci-bootcount) was already not
aligned with the (original) upstream name (uboot-davinci-bootcount).
That said - if you don't have a davinci, then with the name "uboot-bootcount"
the package is a lot more discoverable, so there is probably a good reason to update it.
Still, I think it's worth to make two separate patches: one which updates the
URL (both in the .mk and Config.in), and perhaps also updates the help text. This patch can be backported to the stable branches. And then a second patch that changes the package name.
Quoted 10 lines
Signed-off-by Dario Binacchi <[email protected]>--- 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 +++++++++++++++
You're missing legacy handling. The top of Config.in.legacy is hopefully
sufficient documentation to know how to do it (if not, patches welcome :-).
[snip]
package/uboot-bootcount/Config.in line 3
Quoted 9 lines
package/uboot-bootcount/Config.in new file +3
-0@@ -0,0 +1,10 @@ +config BR2_PACKAGE_UBOOT_BOOTCOUNT + bool "uboot-bootcount" + depends on BR2_arm
Below you write that it can also come from EEPROM, which means it's not
limited to ARM.
Regards,
Arnout
Quoted 30 lines
package/uboot-bootcount/Config.in new file +7
-0+ 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-bootcountpackage/uboot-bootcount/uboot-bootcount.hash renamed from package/davinci-bootcount/davinci-bootcount.hash +1
-1@@ -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 COPYINGpackage/uboot-bootcount/uboot-bootcount.mk new file +5
-0@@ -0,0 +1,15 @@ +################################################################################ +# +# uboot-bootcount +# +################################################################################
package/uboot-bootcount/uboot-bootcount.mk line 15
Quoted 10 lines
package/uboot-bootcount/uboot-bootcount.mk new file +10
-0+ +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))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot