summaryrefslogtreecommitdiff
path: root/disk/part_dos.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-08-12 04:34:44 +0300
committerTom Rini <trini@konsulko.com>2022-09-16 18:05:00 +0300
commitfc614d2044a41ce98588f591349ac0f8c1c43ff6 (patch)
tree6241b5ed4a1ebd84165a149b1a9df80b2d359dda /disk/part_dos.c
parent1bbfdc575cdaf3afde6485b204d95b26ad2c5677 (diff)
downloadu-boot-fc614d2044a41ce98588f591349ac0f8c1c43ff6.tar.xz
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>
Diffstat (limited to 'disk/part_dos.c')
-rw-r--r--disk/part_dos.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/disk/part_dos.c b/disk/part_dos.c
index 94fae7166d..a94702c5f3 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -23,8 +23,6 @@
#include "part_dos.h"
#include <part.h>
-#ifdef CONFIG_HAVE_BLOCK_DEVICE
-
#define DOS_PART_DEFAULT_SECTOR 512
/* should this be configurable? It looks like it's not very common at all
@@ -518,5 +516,3 @@ U_BOOT_PART_TYPE(dos) = {
.print = part_print_ptr(part_print_dos),
.test = part_test_dos,
};
-
-#endif