mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 06:15:33 -04:00
r238966 Bump up the heap size to 1MB. With a few kernel modules, libstand zalloc and userboot seem to want to use ~600KB of heap space, which results in a segfault when malloc fails in bhyveload. r241180 Clarify comment about default number of FICL dictionary cells. r241153 Allow the number of FICL dictionary cells to be overridden. Loading a 7.3 ISO with userboot/amd64 takes up 10035 cells, overflowing the long-standing default of 10000. Bump userboot's value up to 15000 cells. Reviewed by: dteske (r238966,241180) Obtained from: NetApp
61 lines
1.3 KiB
Makefile
61 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
NO_MAN=
|
|
WITHOUT_SSP=
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
SHLIB_NAME= userboot.so
|
|
NO_CTF= yes
|
|
STRIP=
|
|
LIBDIR= /boot
|
|
|
|
SRCS= autoload.c
|
|
SRCS+= bootinfo.c
|
|
SRCS+= bootinfo32.c
|
|
SRCS+= bootinfo64.c
|
|
SRCS+= conf.c
|
|
SRCS+= console.c
|
|
SRCS+= copy.c
|
|
SRCS+= devicename.c
|
|
SRCS+= elf32_freebsd.c
|
|
SRCS+= elf64_freebsd.c
|
|
SRCS+= host.c
|
|
SRCS+= main.c
|
|
SRCS+= userboot_cons.c
|
|
SRCS+= userboot_disk.c
|
|
SRCS+= vers.c
|
|
|
|
CFLAGS+= -Wall
|
|
CFLAGS+= -I${.CURDIR}/..
|
|
CFLAGS+= -I${.CURDIR}/../../common
|
|
CFLAGS+= -I${.CURDIR}/../../..
|
|
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand
|
|
CFLAGS+= -ffreestanding -I.
|
|
|
|
LDFLAGS+= -nostdlib -Wl,-Bsymbolic
|
|
|
|
NEWVERSWHAT= "User boot" ${MACHINE_CPUARCH}
|
|
|
|
vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
|
|
sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
|
|
|
|
CLEANFILES= vers.c
|
|
|
|
.if ${MK_FORTH} != "no"
|
|
BOOT_FORTH= yes
|
|
CFLAGS+= -DBOOT_FORTH -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/i386
|
|
CFLAGS+= -DBF_DICTSIZE=15000
|
|
LIBFICL= ${.OBJDIR}/../ficl/libficl.a
|
|
LIBSTAND= ${.OBJDIR}/../libstand/libstand.a
|
|
.endif
|
|
|
|
# Always add MI sources
|
|
.PATH: ${.CURDIR}/../../common
|
|
.include "${.CURDIR}/../../common/Makefile.inc"
|
|
CFLAGS+= -I${.CURDIR}/../../common
|
|
CFLAGS+= -I.
|
|
DPADD= ${LIBFICL} ${LIBSTAND}
|
|
LDADD= ${LIBFICL} ${LIBSTAND}
|
|
|
|
.include <bsd.lib.mk>
|