Skip to contentSkip to conversation

Convert CONFIG_SYS_BOOTCOUNT_SINGLEWORD to Kconfig

PATCH New Lukasz Majewski 4 participants 4 messages Feb 9, 2018 – Feb 15, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Convert CONFIG_SYS_BOOTCOUNT_SINGLEWORD to Kconfig

This converts the following to Kconfig:
CONFIG_SYS_BOOTCOUNT_SINGLEWORD

---

 configs/highbank_defconfig | 1 +
 drivers/bootcount/Kconfig  | 6 ++++++
 include/configs/highbank.h | 1 -
 3 files changed, 7 insertions(+), 1 deletion(-)
configs/highbank_defconfig +1 -0
index 41f4ef5f78..60a43db197 100644
@@ -25,6 +25,7 @@ CONFIG_EFI_PARTITION=y
 CONFIG_ENV_IS_IN_NVRAM=y
 CONFIG_SCSI_AHCI=y
 CONFIG_BOOTCOUNT_LIMIT=y
+CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y
 # CONFIG_MMC is not set
 CONFIG_SCSI=y
 CONFIG_OF_LIBFDT=y
drivers/bootcount/Kconfig +6 -0
index cb6be73d52..d82289f57b 100644
@@ -17,6 +17,12 @@ config BOOTCOUNT_LIMIT
 	  Enable checking for exceeding the boot count limit.
 	  More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
 
+config SYS_BOOTCOUNT_SINGLEWORD
+	bool "Use single word to pack boot count and magic value"
+	help
+	  This option enables packing boot count magic value and boot count
+	  into single word (32 bits).
+
 if BOOTCOUNT
 
 config BOOTCOUNT_EXT
include/configs/highbank.h +0 -1
index 2831aa3875..6c5d3ae3ac 100644
@@ -26,7 +26,6 @@
 #define CONFIG_PL01x_PORTS		{ (void *)(0xFFF36000) }
 #define CONFIG_CONS_INDEX		0
 
-#define CONFIG_SYS_BOOTCOUNT_SINGLEWORD
 #define CONFIG_SYS_BOOTCOUNT_LE		/* Use little-endian accessors */
 #define CONFIG_SYS_BOOTCOUNT_ADDR	0xfff3cf0c
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/2 Convert CONFIG_SYS_BOOTCOUNT_SINGLEWORD to Kconfig

Quoted 45 lines · Lukasz Majewski

This converts the following to Kconfig:
CONFIG_SYS_BOOTCOUNT_SINGLEWORD

---

 configs/highbank_defconfig | 1 +
 drivers/bootcount/Kconfig  | 6 ++++++
 include/configs/highbank.h | 1 -
 3 files changed, 7 insertions(+), 1 deletion(-)
configs/highbank_defconfig +1 -0
index 41f4ef5f78..60a43db197 100644
@@ -25,6 +25,7 @@ CONFIG_EFI_PARTITION=y
 CONFIG_ENV_IS_IN_NVRAM=y
 CONFIG_SCSI_AHCI=y
 CONFIG_BOOTCOUNT_LIMIT=y
+CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y
 # CONFIG_MMC is not set
 CONFIG_SCSI=y
 CONFIG_OF_LIBFDT=y
drivers/bootcount/Kconfig +6 -0
index cb6be73d52..d82289f57b 100644
@@ -17,6 +17,12 @@ config BOOTCOUNT_LIMIT
          Enable checking for exceeding the boot count limit.
          More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
 
+config SYS_BOOTCOUNT_SINGLEWORD
+       bool "Use single word to pack boot count and magic value"
+       help
+         This option enables packing boot count magic value and boot count
+         into single word (32 bits).
+
 if BOOTCOUNT
 
 config BOOTCOUNT_EXT
include/configs/highbank.h +0 -0
index 2831aa3875..6c5d3ae3ac 100644

include/configs/highbank.h line 31

Quoted 7 lines
include/configs/highbank.h +0 -1
@@ -26,7 +26,6 @@
 #define CONFIG_PL01x_PORTS             { (void *)(0xFFF36000) }
 #define CONFIG_CONS_INDEX              0
 
-#define CONFIG_SYS_BOOTCOUNT_SINGLEWORD
 #define CONFIG_SYS_BOOTCOUNT_LE                /* Use little-endian accessors */
 #define CONFIG_SYS_BOOTCOUNT_ADDR      0xfff3cf0c
 
Signature · 1 line
Alex Kiernan
Reviewed-by Ian Ray on v1 2/2
#2 lore raw

[U-Boot] EXT: Re: [PATCH 2/2] Convert CONFIG_SYS_BOOTCOUNT_SINGLEWORD to Kconfig

Quoted 52 lines · Alex Kiernan
Quoted 48 lines · Lukasz Majewski

This converts the following to Kconfig:
CONFIG_SYS_BOOTCOUNT_SINGLEWORD

---

configs/highbank_defconfig | 1 +
drivers/bootcount/Kconfig  | 6 ++++++
include/configs/highbank.h | 1 -
3 files changed, 7 insertions(+), 1 deletion(-)
configs/highbank_defconfig +0 -0
index 41f4ef5f78..60a43db197 100644
@@ -25,6 +25,7 @@ CONFIG_EFI_PARTITION=y

CONFIG_ENV_IS_IN_NVRAM=y CONFIG_SCSI_AHCI=y CONFIG_BOOTCOUNT_LIMIT=y +CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y # CONFIG_MMC is not set CONFIG_SCSI=y CONFIG_OF_LIBFDT=y

drivers/bootcount/Kconfig +6 -0
index cb6be73d52..d82289f57b 100644
@@ -17,6 +17,12 @@ config BOOTCOUNT_LIMIT
         Enable checking for exceeding the boot count limit.
         More information: http://www.denx.de/wiki/DULG/UBootBootCountLimit
 
+config SYS_BOOTCOUNT_SINGLEWORD
+       bool "Use single word to pack boot count and magic value"
+       help
+         This option enables packing boot count magic value and boot count
+         into single word (32 bits).
+

if BOOTCOUNT

config BOOTCOUNT_EXT

include/configs/highbank.h +0 -0
index 2831aa3875..6c5d3ae3ac 100644
@@ -26,7 +26,6 @@
 #define CONFIG_PL01x_PORTS             { (void *)(0xFFF36000) }
 #define CONFIG_CONS_INDEX              0
 
Quoted 7 lines

include/configs/highbank.h line 31

Quoted 4 lines
include/configs/highbank.h +0 -1
-#define CONFIG_SYS_BOOTCOUNT_SINGLEWORD
 #define CONFIG_SYS_BOOTCOUNT_LE                /* Use little-endian accessors */
 #define CONFIG_SYS_BOOTCOUNT_ADDR      0xfff3cf0c
 
Quoted 2 lines
Signature · 1 line
Alex Kiernan
#3 lore raw

PATCH 2/2 Convert CONFIG_SYS_BOOTCOUNT_SINGLEWORD to Kconfig

In reply to Lukasz Majewski
Quoted 6 lines · Lukasz Majewski

This converts the following to Kconfig:
CONFIG_SYS_BOOTCOUNT_SINGLEWORD

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180215/da5bde7f/attachment.sig>