sys/boot/common: Make geli(4) support optional in MI sources
This saves a negligible amount of memory for non-geli enabled bootloaders. MFC after: 1 week Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
cf2d0b34c2
commit
71f3939eb1
@ -37,6 +37,9 @@ CFLAGS+= -DLOADER_GPT_SUPPORT
|
||||
CFLAGS+= -DLOADER_MBR_SUPPORT
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(LOADER_NO_GELI_SUPPORT)
|
||||
CFLAGS+= -DLOADER_GELI_SUPPORT
|
||||
.endif
|
||||
|
||||
.if defined(HAVE_BCACHE)
|
||||
SRCS+= bcache.c
|
||||
|
@ -183,6 +183,7 @@ command_load(int argc, char *argv[])
|
||||
return (error == 0 ? CMD_OK : CMD_CRIT);
|
||||
}
|
||||
|
||||
#ifdef LOADER_GELI_SUPPORT
|
||||
COMMAND_SET(load_geli, "load_geli", "load a geli key", command_load_geli);
|
||||
|
||||
static int
|
||||
@ -221,6 +222,7 @@ command_load_geli(int argc, char *argv[])
|
||||
sprintf(typestr, "%s:geli_keyfile%d", argv[1], num);
|
||||
return (file_loadraw(argv[2], typestr, 1) ? CMD_OK : CMD_ERROR);
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
unload(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user