aboutsummaryrefslogtreecommitdiff
path: root/disk/part_mac.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-08-11 19:34:44 -0600
committerTom Rini <trini@konsulko.com>2022-09-16 11:05:00 -0400
commitfc614d2044a41ce98588f591349ac0f8c1c43ff6 (patch)
tree6241b5ed4a1ebd84165a149b1a9df80b2d359dda /disk/part_mac.c
parent1bbfdc575cdaf3afde6485b204d95b26ad2c5677 (diff)
downloadu-boot-fc614d2044a41ce98588f591349ac0f8c1c43ff6.zip
u-boot-fc614d2044a41ce98588f591349ac0f8c1c43ff6.tar.gz
u-boot-fc614d2044a41ce98588f591349ac0f8c1c43ff6.tar.bz2
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_mac.c')
-rw-r--r--disk/part_mac.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/disk/part_mac.c b/disk/part_mac.c
index e01ae74..ae8263f 100644
--- a/disk/part_mac.c
+++ b/disk/part_mac.c
@@ -20,8 +20,6 @@
#include "part_mac.h"
#include <part.h>
-#ifdef CONFIG_HAVE_BLOCK_DEVICE
-
/* stdlib.h causes some compatibility problems; should fixe these! -- wd */
#ifndef __ldiv_t_defined
typedef struct {
@@ -247,4 +245,3 @@ U_BOOT_PART_TYPE(mac) = {
.print = part_print_mac,
.test = part_test_mac,
};
-#endif