Changeset View
Changeset View
Standalone View
Standalone View
sys/modules/zfs/Makefile
Show All 33 Lines | |||||
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \ | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \ | ||||
${MACHINE_ARCH} == "powerpcspe" || ${MACHINE_ARCH} == "arm" | ${MACHINE_ARCH} == "powerpcspe" || ${MACHINE_ARCH} == "arm" | ||||
CFLAGS+= -DBITS_PER_LONG=32 | CFLAGS+= -DBITS_PER_LONG=32 | ||||
.else | .else | ||||
CFLAGS+= -DBITS_PER_LONG=64 | CFLAGS+= -DBITS_PER_LONG=64 | ||||
.endif | .endif | ||||
.if ${MACHINE_CPUARCH} != "mips" && ${MACHINE_ARCH} != "arm" | |||||
CFLAGS+= -DHAVE_LARGE_STACKS=1 | |||||
delphij: [OPTIONAL] I don't really like this approach here, a better source of truth would be… | |||||
.endif | |||||
SRCS= vnode_if.h device_if.h bus_if.h | SRCS= vnode_if.h device_if.h bus_if.h | ||||
# avl | # avl | ||||
SRCS+= avl.c | SRCS+= avl.c | ||||
#lua | #lua | ||||
SRCS+= lapi.c \ | SRCS+= lapi.c \ | ||||
lauxlib.c \ | lauxlib.c \ | ||||
▲ Show 20 Lines • Show All 291 Lines • Show Last 20 Lines |
[OPTIONAL] I don't really like this approach here, a better source of truth would be KSTACK_PAGES in my opinion.
Can we consult the value of KSTACK_PAGES in opt_kstack_pages.h and only fall back to guess the value if that's not available?
Something like:
would get the value (you do need to check if KERNBUILDDIR is defined and if opt_kstack_pages.h exists, though.
Or, personally I'd probably do it in a place like zfs_config.h.