Skip to contentSkip to conversation

sunxi: Enable random UUIDs when GPT is enabled

PATCH New Maxime Ripard 2 participants 2 messages Aug 23, 2017 – Aug 24, 2017 Arm/Allwinner sunXi SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunxi: Enable random UUIDs when GPT is enabled

We can create GPT partitions without a UUID, but we need to have RANDOM_UUID enabled to do that. Enable it.

---
 include/configs/sunxi-common.h | 4 ++++
 1 file changed, 4 insertions(+)
include/configs/sunxi-common.h +4 -0
index 07c7ffd7f204..75bf668ecdb3 100644
@@ -270,6 +270,10 @@ extern int soft_i2c_gpio_scl;
 /* GPIO */
 #define CONFIG_SUNXI_GPIO
 
+#ifdef CONFIG_EFI_PARTITION
+#define CONFIG_RANDOM_UUID	1
+#endif
+
 #ifdef CONFIG_VIDEO
 /*
  * The amount of RAM to keep free at the top of RAM when relocating u-boot,
Signature · 1 line
2.13.5
#1 lore raw

PATCH 1/1 sunxi: Enable random UUIDs when GPT is enabled

Quoted 13 lines · Maxime Ripard

We can create GPT partitions without a UUID, but we need to have RANDOM_UUID enabled to do that. Enable it.

---
 include/configs/sunxi-common.h | 4 ++++
 1 file changed, 4 insertions(+)
include/configs/sunxi-common.h +0 -0
index 07c7ffd7f204..75bf668ecdb3 100644

include/configs/sunxi-common.h extern int soft_i2c_gpio_scl; · line 279

Quoted 10 lines
include/configs/sunxi-common.h +4 -0
@@ -270,6 +270,10 @@ extern int soft_i2c_gpio_scl;
 /* GPIO */
 #define CONFIG_SUNXI_GPIO
 
+#ifdef CONFIG_EFI_PARTITION
+#define CONFIG_RANDOM_UUID	1
+#endif
+
 #ifdef CONFIG_VIDEO
 /*
  * The amount of RAM to keep free at the top of RAM when relocating u-boot,

Can you please add a Kconfig entry for RANDOM_UUID in cmd/Kconfig under CMD_GPT (the only user of the code) ? Thanks!

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