disk: Use Makefile to omit partition drivers
authorSimon Glass <sjg@chromium.org>
Fri, 12 Aug 2022 01:34:44 +0000 (19:34 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 16 Sep 2022 15:05:00 +0000 (11:05 -0400)
commitfc614d2044a41ce98588f591349ac0f8c1c43ff6
tree6241b5ed4a1ebd84165a149b1a9df80b2d359dda
parent1bbfdc575cdaf3afde6485b204d95b26ad2c5677
disk: Use Makefile to omit partition drivers

At present these files have an #ifdef covering the whole file. Move the
condition to the Makefile instead.

Add BLK to the condition since future patches will adjust things so that
HAVE_BLOCK_DEVICE is only for SPL, but the partition drivers are needed
in U-Boot proper too.

Signed-off-by: Simon Glass <sjg@chromium.org>
disk/Makefile
disk/part_amiga.c
disk/part_dos.c
disk/part_efi.c
disk/part_iso.c
disk/part_mac.c
drivers/Makefile