mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
bc7ed46b63
kernel during dump time. A real life scenario is that cores are compressed to reduce size of dumpon partition, but we either don't care about space in the /var/crash or we have a filesystem level compression of /var/crash. And we want cores to be uncompressed in /var/crash because we'd like to instantily read them with kgdb. In this case we want kernel to write cores compressed, but savecore(1) write them uncompressed. Reviewed by: markj, gallatin Relnotes: yes Differential Revision: https://reviews.freebsd.org/D27245
24 lines
444 B
Makefile
24 lines
444 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE=runtime
|
|
CONFS= minfree
|
|
VAR_CRASH= /var/crash
|
|
VAR_CRASH_MODE= 0750
|
|
CONFSDIR= VAR_CRASH
|
|
PROG= savecore
|
|
LIBADD= xo z zstd
|
|
MAN= savecore.8
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/lib
|
|
|
|
.include <src.opts.mk>
|
|
|
|
.if ${MK_DYNAMICROOT} == "no"
|
|
.warning ${PROG} built without libcasper support
|
|
.elif ${MK_CASPER} != "no" && !defined(RESCUE)
|
|
CFLAGS+= -DWITH_CASPER
|
|
LIBADD+= casper cap_fileargs cap_syslog
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|