mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
kinst: accommodate other architectures in Makefile
Reviewed by: markj Approved by: markj (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40871
This commit is contained in:
parent
ac40021c93
commit
2e28f8cc39
1 changed files with 11 additions and 4 deletions
|
|
@ -1,16 +1,23 @@
|
|||
SYSDIR?= ${SRCTOP}/sys
|
||||
|
||||
.PATH: ${SYSDIR}/cddl/dev/kinst \
|
||||
${SYSDIR}/cddl/dev/kinst/${MACHINE_CPUARCH}
|
||||
|
||||
KMOD= kinst
|
||||
SRCS= kinst.c kinst_isa.c trampoline.c
|
||||
|
||||
CFLAGS+= ${OPENZFS_CFLAGS} \
|
||||
-I${SYSDIR}/cddl/dev/kinst \
|
||||
-I${SYSDIR}/cddl/dev/dtrace/x86 \
|
||||
-I${SYSDIR}/cddl/dev/kinst/${MACHINE_CPUARCH}
|
||||
|
||||
.PATH: ${SYSDIR}/cddl/dev/kinst \
|
||||
${SYSDIR}/cddl/dev/kinst/${MACHINE_CPUARCH}
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
||||
CFLAGS+= -I${SYSDIR}/cddl/dev/dtrace/x86
|
||||
.PATH: ${SYSDIR}/cddl/dev/dtrace/x86
|
||||
.else
|
||||
CFLAGS+= -I${SYSDIR}/cddl/dev/dtrace/${MACHINE_CPUARCH}
|
||||
.PATH: ${SYSDIR}/cddl/dev/dtrace/${MACHINE_CPUARCH}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
|
||||
|
|
|
|||
Loading…
Reference in a new issue