diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2017-01-27 11:00:36 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-28 08:47:31 -0500 |
commit | f18fa31cdcfeecaf56e61224eb18d2f2b6d39d85 (patch) | |
tree | 5155a3f4c52821f6896b8b3b00a554dd665dc6e3 /disk | |
parent | e274ef6b577deacd8bb3b38a52f0083a5f601ae8 (diff) | |
download | u-boot-imx-f18fa31cdcfeecaf56e61224eb18d2f2b6d39d85.zip u-boot-imx-f18fa31cdcfeecaf56e61224eb18d2f2b6d39d85.tar.gz u-boot-imx-f18fa31cdcfeecaf56e61224eb18d2f2b6d39d85.tar.bz2 |
disk: convert CONFIG_MAC_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 | 13 | ||||
-rw-r--r-- | disk/Makefile | 2 | ||||
-rw-r--r-- | disk/part.c | 2 |
3 files changed, 15 insertions, 2 deletions
diff --git a/disk/Kconfig b/disk/Kconfig index 966553c..bafd025 100644 --- a/disk/Kconfig +++ b/disk/Kconfig @@ -19,4 +19,17 @@ config PARTITIONS you must configure support for at least one non-MTD partition type as well. +config MAC_PARTITION + bool "Enable Apple's MacOS partition table" + depends on PARTITIONS + default y if SPARC + help + Say Y here if you would like to use device under U-Boot which + were partitioned on a Macintosh. + +config SPL_MAC_PARTITION + bool "Enable Apple's MacOS partition table for SPL" + depends on SPL && PARTITIONS + default y if MAC_PARTITION + endmenu diff --git a/disk/Makefile b/disk/Makefile index 6970cec..d68df9f 100644 --- a/disk/Makefile +++ b/disk/Makefile @@ -8,7 +8,7 @@ #ccflags-y += -DET_DEBUG -DDEBUG obj-$(CONFIG_PARTITIONS) += part.o -obj-$(CONFIG_MAC_PARTITION) += part_mac.o +obj-$(CONFIG_$(SPL_)MAC_PARTITION) += part_mac.o obj-$(CONFIG_DOS_PARTITION) += part_dos.o obj-$(CONFIG_ISO_PARTITION) += part_iso.o obj-$(CONFIG_AMIGA_PARTITION) += part_amiga.o diff --git a/disk/part.c b/disk/part.c index 4e37735..cb9b861 100644 --- a/disk/part.c +++ b/disk/part.c @@ -234,7 +234,7 @@ void part_init(struct blk_desc *dev_desc) static void print_part_header(const char *type, struct blk_desc *dev_desc) { -#if defined(CONFIG_MAC_PARTITION) || \ +#if CONFIG_IS_ENABLED(MAC_PARTITION) || \ defined(CONFIG_DOS_PARTITION) || \ defined(CONFIG_ISO_PARTITION) || \ defined(CONFIG_AMIGA_PARTITION) || \ |