summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2014-04-02 10:20:06 +0200
committerTom Rini <trini@ti.com>2014-04-02 16:36:06 -0400
commit39206382dea929b6a834c212b431821e06e68f39 (patch)
treee6eba4856ca5f0a66fa9756ae3bcdf37538bd565 /lib
parent89c8230dec063d894aec1a7b5c58f1dcadced738 (diff)
downloadu-boot-imx-39206382dea929b6a834c212b431821e06e68f39.zip
u-boot-imx-39206382dea929b6a834c212b431821e06e68f39.tar.gz
u-boot-imx-39206382dea929b6a834c212b431821e06e68f39.tar.bz2
cmd:gpt: randomly generate each partition uuid if undefined
Changes: - randomly generate partition uuid if any is undefined and CONFIG_RAND_UUID is defined - print debug info about set/unset/generated uuid - update doc/README.gpt Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com> Cc: Piotr Wilczek <p.wilczek@samsung.com> Cc: Tom Rini <trini@ti.com> Cc: Stephen Warren <swarren@nvidia.com> Cc: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/uuid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/uuid.c b/lib/uuid.c
index f32b602..f6b4423 100644
--- a/lib/uuid.c
+++ b/lib/uuid.c
@@ -251,5 +251,5 @@ U_BOOT_CMD(guid, CONFIG_SYS_MAXARGS, 1, do_uuid,
"varname: for set result in a environment variable\n"
"e.g. guid guid_env"
);
-#endif
-#endif
+#endif /* CONFIG_CMD_UUID */
+#endif /* CONFIG_RANDOM_UUID || CONFIG_CMD_UUID */