Patchwork [U-Boot] tegra: enable CONFIG_CMD_PART

login
register
mail settings
Submitter Stephen Warren
Date Sept. 25, 2012, 11:32 p.m.
Message ID <1348615946-25588-1-git-send-email-swarren@wwwdotorg.org>
Download mbox | patch
Permalink /patch/186921/
State Accepted
Delegated to: Tom Warren
Headers show

Comments

Stephen Warren - Sept. 25, 2012, 11:32 p.m.
From: Stephen Warren <swarren@nvidia.com>

This is extremely likely to be used from the boot.scr that Tegra's default
bootcmd locates and executes.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
Note: This enables a new feature that's in u-boot/master, so won't have
any effect until u-boot-tegra/* is rebased onto it. Still, we may as well
queue the patch up ASAP.

 include/configs/tegra-common-post.h |    9 +++++++++
 include/configs/tegra20-common.h    |    2 ++
 2 files changed, 11 insertions(+), 0 deletions(-)

Patch

diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h
index 168b64b..dda46c6 100644
--- a/include/configs/tegra-common-post.h
+++ b/include/configs/tegra-common-post.h
@@ -209,6 +209,15 @@ 
 #undef CONFIG_CMD_USB
 #endif
 
+/* remove part command support */
+#ifdef CONFIG_PARTITION_UUIDS
+#undef CONFIG_PARTITION_UUIDS
+#endif
+
+#ifdef CONFIG_CMD_PART
+#undef CONFIG_CMD_PART
+#endif
+
 #endif /* CONFIG_SPL_BUILD */
 
 #endif /* __TEGRA_COMMON_POST_H */
diff --git a/include/configs/tegra20-common.h b/include/configs/tegra20-common.h
index 098cdb4..1492f2a 100644
--- a/include/configs/tegra20-common.h
+++ b/include/configs/tegra20-common.h
@@ -113,6 +113,8 @@ 
 
 /* include default commands */
 #include <config_cmd_default.h>
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_CMD_PART
 
 /* remove unused commands */
 #undef CONFIG_CMD_FLASH		/* flinfo, erase, protect */