mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
7f8967c2b8
This option is fact really related to SPL. For U-Boot proper we always use driver model for block devices, so CONFIG_BLK is enabled if block devices are in use. It is only for SPL that we have two cases: - SPL_BLK is enabled, in which case we use driver model and blk-uclass.c - SPL_BLK is not enabled, in which case (if we need block devices) we must use blk_legacy.c Rename the symbol to SPL_LEGACY_BLOCK to make this clear. This is different enough from BLK and SPL_BLK that there should be no confusion. Signed-off-by: Simon Glass <sjg@chromium.org>
20 lines
693 B
Makefile
20 lines
693 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2000-2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#ccflags-y += -DET_DEBUG -DDEBUG
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)PARTITIONS) += part.o
|
|
ifdef CONFIG_$(SPL_TPL_)BLK
|
|
obj-$(CONFIG_$(SPL_TPL_)PARTITIONS) += disk-uclass.o
|
|
endif
|
|
|
|
# Must have BLK or SPL_LEGACY_BLOCK to support partitions
|
|
ifneq ($(CONFIG_$(SPL_TPL_)BLK),$(CONFIG_SPL_LEGACY_BLOCK),)
|
|
obj-$(CONFIG_$(SPL_TPL_)MAC_PARTITION) += part_mac.o
|
|
obj-$(CONFIG_$(SPL_TPL_)DOS_PARTITION) += part_dos.o
|
|
obj-$(CONFIG_$(SPL_TPL_)ISO_PARTITION) += part_iso.o
|
|
obj-$(CONFIG_$(SPL_TPL_)AMIGA_PARTITION) += part_amiga.o
|
|
obj-$(CONFIG_$(SPL_TPL_)EFI_PARTITION) += part_efi.o
|
|
endif
|