diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2017-01-27 11:00:39 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-28 08:47:36 -0500 |
commit | 863c5b6cdd49f0f0ce5ca0ae3bd0ed09b766121b (patch) | |
tree | a690c629474d2abfc4e9b85b59a1d7f8c515893f /disk | |
parent | 1acc0087876229d7ade1b23aaecbccf63de8a615 (diff) | |
download | u-boot-863c5b6cdd49f0f0ce5ca0ae3bd0ed09b766121b.tar.gz |
disk: convert CONFIG_AMIGA_PARTITION to Kconfig
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay73@gmail.com>
Diffstat (limited to 'disk')
-rw-r--r-- | disk/Kconfig | 12 | ||||
-rw-r--r-- | disk/Makefile | 2 | ||||
-rw-r--r-- | disk/part.c | 2 |
3 files changed, 14 insertions, 2 deletions
diff --git a/disk/Kconfig b/disk/Kconfig index 1400b26ae2..8adf59e821 100644 --- a/disk/Kconfig +++ b/disk/Kconfig @@ -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 diff --git a/disk/Makefile b/disk/Makefile index 95d286bbda..aa6ee4591c 100644 --- a/disk/Makefile +++ b/disk/Makefile @@ -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 diff --git a/disk/part.c b/disk/part.c index 4731ae9ac6..ad381641ec 100644 --- a/disk/part.c +++ b/disk/part.c @@ -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) { |