]> git.sur5r.net Git - u-boot/commitdiff
disk: convert CONFIG_AMIGA_PARTITION to Kconfig
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 27 Jan 2017 10:00:39 +0000 (11:00 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 28 Jan 2017 13:47:36 +0000 (08:47 -0500)
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay73@gmail.com>
configs/sandbox_defconfig
configs/sandbox_noblk_defconfig
configs/sandbox_spl_defconfig
disk/Kconfig
disk/Makefile
disk/part.c
include/configs/sandbox.h
scripts/config_whitelist.txt

index df1b7ab7a284c7afb5d87a28cb34f0795a5a462b..ce70951abf53694fc1c830c23d0d32ba3db5f9a8 100644 (file)
@@ -51,6 +51,7 @@ CONFIG_CMD_TPM=y
 CONFIG_CMD_TPM_TEST=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MAC_PARTITION=y
+CONFIG_AMIGA_PARTITION=y
 CONFIG_OF_CONTROL=y
 CONFIG_OF_HOSTFILE=y
 CONFIG_NETCONSOLE=y
index c5c84fb4c07b066174e6cd61d0376fb93e74e71c..809da3b85953349d42bd6fa89a9c158b0927712c 100644 (file)
@@ -58,6 +58,7 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_MAC_PARTITION=y
 CONFIG_ISO_PARTITION=y
+CONFIG_AMIGA_PARTITION=y
 CONFIG_OF_CONTROL=y
 CONFIG_OF_HOSTFILE=y
 CONFIG_NETCONSOLE=y
index 5d7bf109509a14badd2b685f2c8fb1ef5b8edb8e..e2cb6d1625330f2d5ac4427b346366c00369ab31 100644 (file)
@@ -58,6 +58,7 @@ CONFIG_CMD_TPM=y
 CONFIG_CMD_TPM_TEST=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MAC_PARTITION=y
+CONFIG_AMIGA_PARTITION=y
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_HOSTFILE=y
index 1400b26ae247f525896cc90551281aae813fa4d2..8adf59e821c39616d955fd26d78995bd07646b62 100644 (file)
@@ -56,4 +56,16 @@ config SPL_ISO_PARTITION
        depends on SPL && PARTITIONS
        default y if ISO_PARTITION
 
+config AMIGA_PARTITION
+       bool "Enable AMIGA partition table"
+       depends on PARTITIONS
+       help
+         Say Y here if you would like to use device under U-Boot which
+         were partitioned under AmigaOS.
+
+config SPL_AMIGA_PARTITION
+       bool "Enable AMIGA partition table for SPL"
+       depends on SPL && PARTITIONS
+       default y if AMIGA_PARTITION
+
 endmenu
index 95d286bbda94ffd02319445263ffbc01ca1d73cd..aa6ee4591c3bec210ec6a0da744eb81f8e9e269b 100644 (file)
@@ -11,5 +11,5 @@ obj-$(CONFIG_PARTITIONS)      += part.o
 obj-$(CONFIG_$(SPL_)MAC_PARTITION)   += part_mac.o
 obj-$(CONFIG_$(SPL_)DOS_PARTITION)   += part_dos.o
 obj-$(CONFIG_$(SPL_)ISO_PARTITION)   += part_iso.o
-obj-$(CONFIG_AMIGA_PARTITION) += part_amiga.o
+obj-$(CONFIG_$(SPL_)AMIGA_PARTITION) += part_amiga.o
 obj-$(CONFIG_EFI_PARTITION)   += part_efi.o
index 4731ae9ac6a68609bbadd45e48b18a252d74181b..ad381641ec1dd6e67907ec6eb35617e369c8d211 100644 (file)
@@ -237,7 +237,7 @@ static void print_part_header(const char *type, struct blk_desc *dev_desc)
 #if CONFIG_IS_ENABLED(MAC_PARTITION) || \
        CONFIG_IS_ENABLED(DOS_PARTITION) || \
        CONFIG_IS_ENABLED(ISO_PARTITION) || \
-       defined(CONFIG_AMIGA_PARTITION) || \
+       CONFIG_IS_ENABLED(AMIGA_PARTITION) || \
        defined(CONFIG_EFI_PARTITION)
        puts ("\nPartition Map for ");
        switch (dev_desc->if_type) {
index 2591887a2b2c7a82c06f71d314ea9f42a6b962f5..1cb8292b4f66d0558c0277735db30a35c1dee2d1 100644 (file)
@@ -49,7 +49,6 @@
 
 #define CONFIG_CMD_GPT
 #define CONFIG_PARTITION_UUIDS
-#define CONFIG_AMIGA_PARTITION
 #define CONFIG_EFI_PARTITION
 
 /*
index c35588e266eda886a265e2a2b0bddb4e89785a32..5d43d51bf2c9cc370bc28bae63e4fdc59f2bd2ec 100644 (file)
@@ -93,7 +93,6 @@ CONFIG_AMCC_DEF_ENV_PPC
 CONFIG_AMCC_DEF_ENV_PPC_OLD
 CONFIG_AMCC_DEF_ENV_ROOTPATH
 CONFIG_AMCORE
-CONFIG_AMIGA_PARTITION
 CONFIG_ANDES_PCU
 CONFIG_ANDES_PCU_BASE
 CONFIG_AP325RXA