disk: convert CONFIG_ISO_PARTITION to Kconfig
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay73@gmail.com>
This commit is contained in:
committed by
Tom Rini
parent
b0cf733933
commit
1acc008787
11
disk/Kconfig
11
disk/Kconfig
@@ -45,4 +45,15 @@ config SPL_DOS_PARTITION
|
||||
depends on SPL && PARTITIONS
|
||||
default y if DOS_PARTITION
|
||||
|
||||
config ISO_PARTITION
|
||||
bool "Enable ISO partition table"
|
||||
depends on PARTITIONS
|
||||
default y if DISTRO_DEFAULTS
|
||||
default y if SPARC || MIPS || TEGRA
|
||||
|
||||
config SPL_ISO_PARTITION
|
||||
bool "Enable ISO partition table for SPL"
|
||||
depends on SPL && PARTITIONS
|
||||
default y if ISO_PARTITION
|
||||
|
||||
endmenu
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
obj-$(CONFIG_PARTITIONS) += part.o
|
||||
obj-$(CONFIG_$(SPL_)MAC_PARTITION) += part_mac.o
|
||||
obj-$(CONFIG_$(SPL_)DOS_PARTITION) += part_dos.o
|
||||
obj-$(CONFIG_ISO_PARTITION) += part_iso.o
|
||||
obj-$(CONFIG_$(SPL_)ISO_PARTITION) += part_iso.o
|
||||
obj-$(CONFIG_AMIGA_PARTITION) += part_amiga.o
|
||||
obj-$(CONFIG_EFI_PARTITION) += part_efi.o
|
||||
|
||||
@@ -236,7 +236,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) || \
|
||||
defined(CONFIG_ISO_PARTITION) || \
|
||||
CONFIG_IS_ENABLED(ISO_PARTITION) || \
|
||||
defined(CONFIG_AMIGA_PARTITION) || \
|
||||
defined(CONFIG_EFI_PARTITION)
|
||||
puts ("\nPartition Map for ");
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#define _DISK_PART_AMIGA_H
|
||||
#include <common.h>
|
||||
|
||||
#ifdef CONFIG_ISO_PARTITION
|
||||
#if CONFIG_IS_ENABLED(ISO_PARTITION)
|
||||
/* Make the buffers bigger if ISO partition support is enabled -- CD-ROMS
|
||||
have 2048 byte blocks */
|
||||
#define DEFAULT_SECTOR_SIZE 2048
|
||||
|
||||
@@ -73,7 +73,7 @@ typedef struct mac_partition {
|
||||
__u32 boot_cksum; /* boot code checksum */
|
||||
uchar processor[16]; /* Type of Processor */
|
||||
__u16 part_pad[188]; /* reserved */
|
||||
#ifdef CONFIG_ISO_PARTITION
|
||||
#if CONFIG_IS_ENABLED(ISO_PARTITION)
|
||||
uchar iso_dummy[2048];/* Reservere enough room for an ISO partition block to fit */
|
||||
#endif
|
||||
} mac_partition_t;
|
||||
|
||||
Reference in New Issue
Block a user