Skip to content

Commit

Permalink
disk: convert CONFIG_AMIGA_PARTITION to Kconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Delaunay <[email protected]>
Signed-off-by: Patrick Delaunay <[email protected]>
  • Loading branch information
patrickdelaunay authored and trini committed Jan 28, 2017
1 parent 1acc008 commit 863c5b6
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions configs/sandbox_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions configs/sandbox_noblk_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions configs/sandbox_spl_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions disk/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion disk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion disk/part.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion include/configs/sandbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@

#define CONFIG_CMD_GPT
#define CONFIG_PARTITION_UUIDS
#define CONFIG_AMIGA_PARTITION
#define CONFIG_EFI_PARTITION

/*
Expand Down
1 change: 0 additions & 1 deletion scripts/config_whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 863c5b6

Please sign in to comment.