Skip to contentSkip to conversation

lib: uuid: Do not enable UUID command SPL

PATCH In review Marek Vasut 2 participants 2 messages Jan 7, 2019 – Jan 16, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: uuid: Do not enable UUID command SPL

The uuid command is only really useful in U-Boot, but it's useless in SPL. Worse yet, it pulls in various environment manipulation functions as it call env_set(). Do not compile the command in in SPL.

---
 lib/uuid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/uuid.c +1 -1
index 5d5adf6b2d..fa20ee39fc 100644
@@ -271,7 +271,7 @@ void gen_rand_uuid_str(char *uuid_str, int str_format)
 	uuid_bin_to_str(uuid_bin, uuid_str, str_format);
 }
 
-#ifdef CONFIG_CMD_UUID
+#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_CMD_UUID)
 int do_uuid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
 	char uuid[UUID_STR_LEN + 1];
Signature · 1 line
2.19.2
#1 lore raw
Quoted 6 lines · Marek Vasut

The uuid command is only really useful in U-Boot, but it's useless in SPL. Worse yet, it pulls in various environment manipulation functions as it call env_set(). Do not compile the command in in SPL.

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/20190115/6a667d1e/attachment.sig>