[U-Boot] [RFC PATCH v2 8/8] sandbox: GPT over MTD test
Patrick Delaunay
patrick.delaunay73 at gmail.com
Wed Nov 30 12:01:28 CET 2016
From: Patrick Delaunay <patrick.delaunay at st.com>
activate needed feature in sandbox to allow test GPT over MTD
- EFI_PARTITION_MTD
- SPI_FLASH_MTD
- CMD_MTDPARTS
- MTD_PARTITIONS
- MTD_DEVICE
activate 2 features useful for test
- RANDOM_UUID
- PARTITION_TYPE_GUID
Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay73 at gmail.com>
---
Changes in v2: None
configs/sandbox_defconfig | 2 ++
include/configs/sandbox.h | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index 380d4fe..1ba8d2a 100644
--- a/configs/sandbox_defconfig
+++ b/configs/sandbox_defconfig
@@ -5,6 +5,7 @@ CONFIG_FIT=y
CONFIG_FIT_VERBOSE=y
CONFIG_FIT_SIGNATURE=y
CONFIG_SPL_LOAD_FIT=y
+CONFIG_EFI_PARTITION_MTD=y
CONFIG_BOOTSTAGE=y
CONFIG_BOOTSTAGE_REPORT=y
CONFIG_BOOTSTAGE_USER_COUNT=0x20
@@ -110,6 +111,7 @@ CONFIG_SPI_FLASH_SPANSION=y
CONFIG_SPI_FLASH_STMICRO=y
CONFIG_SPI_FLASH_SST=y
CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_SPI_FLASH_MTD=y
CONFIG_DM_ETH=y
CONFIG_PCI=y
CONFIG_DM_PCI=y
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 2daf02d..66707e3 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -49,13 +49,20 @@
#define CONFIG_CMD_MD5SUM
#define CONFIG_CMD_GPT
+#define CONFIG_RANDOM_UUID
#define CONFIG_PARTITION_UUIDS
+#define CONFIG_PARTITION_TYPE_GUID
#define CONFIG_AMIGA_PARTITION
#define CONFIG_DOS_PARTITION
#define CONFIG_EFI_PARTITION
#define CONFIG_ISO_PARTITION
#define CONFIG_MAC_PARTITION
+/* Dynamic MTD partition support */
+#define CONFIG_CMD_MTDPARTS
+#define CONFIG_MTD_PARTITIONS
+#define CONFIG_MTD_DEVICE
+
/*
* Size of malloc() pool, before and after relocation
*/
--
1.9.1
More information about the U-Boot
mailing list