mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 14:18:14 +01:00
disk: don't compile in partition support for spl/tpl if not really necessary
Under the current Kconfigs, disk/part.c will be compiled in even if none of partition table types are enabled. This will lead to the size growth of SPL /TPL code. With this patch, CONFIG_PARTITIONS is selected only if, at least, one of CONFIG_*_PARTITION is enabled. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
This commit is contained in:
parent
38f255b960
commit
3fb6fa7a71
37
disk/Kconfig
37
disk/Kconfig
@ -2,8 +2,7 @@
|
|||||||
menu "Partition Types"
|
menu "Partition Types"
|
||||||
|
|
||||||
config PARTITIONS
|
config PARTITIONS
|
||||||
bool "Enable Partition Labels (disklabels) support"
|
bool
|
||||||
default y
|
|
||||||
help
|
help
|
||||||
Partition Labels (disklabels) Supported:
|
Partition Labels (disklabels) Supported:
|
||||||
Zero or more of the following:
|
Zero or more of the following:
|
||||||
@ -20,8 +19,7 @@ config PARTITIONS
|
|||||||
as well.
|
as well.
|
||||||
|
|
||||||
config SPL_PARTITIONS
|
config SPL_PARTITIONS
|
||||||
bool "Enable Partition Labels (disklabels) support in SPL"
|
bool
|
||||||
default y if PARTITIONS
|
|
||||||
select SPL_SPRINTF
|
select SPL_SPRINTF
|
||||||
select SPL_STRTO
|
select SPL_STRTO
|
||||||
help
|
help
|
||||||
@ -30,8 +28,7 @@ config SPL_PARTITIONS
|
|||||||
small amount of size to SPL, typically 500 bytes.
|
small amount of size to SPL, typically 500 bytes.
|
||||||
|
|
||||||
config TPL_PARTITIONS
|
config TPL_PARTITIONS
|
||||||
bool "Enable Partition Labels (disklabels) support in TPL"
|
bool
|
||||||
default y if PARTITIONS
|
|
||||||
select TPL_SPRINTF
|
select TPL_SPRINTF
|
||||||
select TPL_STRTO
|
select TPL_STRTO
|
||||||
help
|
help
|
||||||
@ -41,57 +38,61 @@ config TPL_PARTITIONS
|
|||||||
|
|
||||||
config MAC_PARTITION
|
config MAC_PARTITION
|
||||||
bool "Enable Apple's MacOS partition table"
|
bool "Enable Apple's MacOS partition table"
|
||||||
depends on PARTITIONS
|
select PARTITIONS
|
||||||
help
|
help
|
||||||
Say Y here if you would like to use device under U-Boot which
|
Say Y here if you would like to use device under U-Boot which
|
||||||
were partitioned on a Macintosh.
|
were partitioned on a Macintosh.
|
||||||
|
|
||||||
config SPL_MAC_PARTITION
|
config SPL_MAC_PARTITION
|
||||||
bool "Enable Apple's MacOS partition table for SPL"
|
bool "Enable Apple's MacOS partition table for SPL"
|
||||||
depends on SPL && PARTITIONS
|
depends on SPL
|
||||||
default y if MAC_PARTITION
|
default y if MAC_PARTITION
|
||||||
|
select SPL_PARTITIONS
|
||||||
|
|
||||||
config DOS_PARTITION
|
config DOS_PARTITION
|
||||||
bool "Enable MS Dos partition table"
|
bool "Enable MS Dos partition table"
|
||||||
depends on PARTITIONS
|
|
||||||
default y if DISTRO_DEFAULTS
|
default y if DISTRO_DEFAULTS
|
||||||
default y if x86 || CMD_FAT || USB_STORAGE
|
default y if x86 || CMD_FAT || USB_STORAGE
|
||||||
|
select PARTITIONS
|
||||||
help
|
help
|
||||||
traditional on the Intel architecture, USB sticks, etc.
|
traditional on the Intel architecture, USB sticks, etc.
|
||||||
|
|
||||||
config SPL_DOS_PARTITION
|
config SPL_DOS_PARTITION
|
||||||
bool "Enable MS Dos partition table for SPL"
|
bool "Enable MS Dos partition table for SPL"
|
||||||
depends on SPL && PARTITIONS
|
depends on SPL
|
||||||
default n if ARCH_SUNXI
|
default n if ARCH_SUNXI
|
||||||
default y if DOS_PARTITION
|
default y if DOS_PARTITION
|
||||||
|
select SPL_PARTITIONS
|
||||||
|
|
||||||
config ISO_PARTITION
|
config ISO_PARTITION
|
||||||
bool "Enable ISO partition table"
|
bool "Enable ISO partition table"
|
||||||
depends on PARTITIONS
|
|
||||||
default y if DISTRO_DEFAULTS
|
default y if DISTRO_DEFAULTS
|
||||||
default y if MIPS || ARCH_TEGRA
|
default y if MIPS || ARCH_TEGRA
|
||||||
|
select PARTITIONS
|
||||||
|
|
||||||
config SPL_ISO_PARTITION
|
config SPL_ISO_PARTITION
|
||||||
bool "Enable ISO partition table for SPL"
|
bool "Enable ISO partition table for SPL"
|
||||||
depends on SPL && PARTITIONS
|
depends on SPL
|
||||||
|
select SPL_PARTITIONS
|
||||||
|
|
||||||
config AMIGA_PARTITION
|
config AMIGA_PARTITION
|
||||||
bool "Enable AMIGA partition table"
|
bool "Enable AMIGA partition table"
|
||||||
depends on PARTITIONS
|
select PARTITIONS
|
||||||
help
|
help
|
||||||
Say Y here if you would like to use device under U-Boot which
|
Say Y here if you would like to use device under U-Boot which
|
||||||
were partitioned under AmigaOS.
|
were partitioned under AmigaOS.
|
||||||
|
|
||||||
config SPL_AMIGA_PARTITION
|
config SPL_AMIGA_PARTITION
|
||||||
bool "Enable AMIGA partition table for SPL"
|
bool "Enable AMIGA partition table for SPL"
|
||||||
depends on SPL && PARTITIONS
|
depends on SPL
|
||||||
default y if AMIGA_PARTITION
|
default y if AMIGA_PARTITION
|
||||||
|
select SPL_PARTITIONS
|
||||||
|
|
||||||
config EFI_PARTITION
|
config EFI_PARTITION
|
||||||
bool "Enable EFI GPT partition table"
|
bool "Enable EFI GPT partition table"
|
||||||
depends on PARTITIONS
|
|
||||||
default y if DISTRO_DEFAULTS
|
default y if DISTRO_DEFAULTS
|
||||||
default y if ARCH_TEGRA
|
default y if ARCH_TEGRA
|
||||||
|
select PARTITIONS
|
||||||
select LIB_UUID
|
select LIB_UUID
|
||||||
help
|
help
|
||||||
Say Y here if you would like to use device under U-Boot which
|
Say Y here if you would like to use device under U-Boot which
|
||||||
@ -128,9 +129,10 @@ config EFI_PARTITION_ENTRIES_OFF
|
|||||||
|
|
||||||
config SPL_EFI_PARTITION
|
config SPL_EFI_PARTITION
|
||||||
bool "Enable EFI GPT partition table for SPL"
|
bool "Enable EFI GPT partition table for SPL"
|
||||||
depends on SPL && PARTITIONS
|
depends on SPL
|
||||||
default n if ARCH_SUNXI
|
default n if ARCH_SUNXI
|
||||||
default y if EFI_PARTITION
|
default y if EFI_PARTITION
|
||||||
|
select SPL_PARTITIONS
|
||||||
|
|
||||||
config PARTITION_UUIDS
|
config PARTITION_UUIDS
|
||||||
bool "Enable support of UUID for partition"
|
bool "Enable support of UUID for partition"
|
||||||
@ -143,12 +145,11 @@ config PARTITION_UUIDS
|
|||||||
|
|
||||||
config SPL_PARTITION_UUIDS
|
config SPL_PARTITION_UUIDS
|
||||||
bool "Enable support of UUID for partition in SPL"
|
bool "Enable support of UUID for partition in SPL"
|
||||||
depends on SPL && PARTITIONS
|
depends on SPL_PARTITIONS
|
||||||
default y if SPL_EFI_PARTITION
|
default y if SPL_EFI_PARTITION
|
||||||
|
|
||||||
config PARTITION_TYPE_GUID
|
config PARTITION_TYPE_GUID
|
||||||
bool "Enable support of GUID for partition type"
|
bool "Enable support of GUID for partition type"
|
||||||
depends on PARTITIONS
|
|
||||||
depends on EFI_PARTITION
|
depends on EFI_PARTITION
|
||||||
help
|
help
|
||||||
Activate the configuration of GUID type
|
Activate the configuration of GUID type
|
||||||
|
Loading…
x
Reference in New Issue
Block a user