mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
Remove duplication and centralize testing of various config(8)ed features.
This commit is contained in:
parent
c475a3ea4d
commit
43bb1a21f2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240402
@ -31,9 +31,6 @@ S= ../../..
|
||||
.endif
|
||||
.include "$S/conf/kern.pre.mk"
|
||||
|
||||
DDB_ENABLED!= grep DDB opt_ddb.h || true ; echo
|
||||
DTR_ENABLED!= grep KDTRACE_FRAME opt_kdtrace.h || true ; echo
|
||||
HWPMC_ENABLED!= grep HWPMC opt_hwpmc_hooks.h || true ; echo
|
||||
.if !empty(DDB_ENABLED) || !empty(DTR_ENABLED) || !empty(HWPMC_ENABLED)
|
||||
CFLAGS+= -fno-omit-frame-pointer
|
||||
.endif
|
||||
|
@ -39,8 +39,6 @@ SYSTEM_DEP:= ${SYSTEM_DEP:$S/conf/ldscript.$M=ldscript.$M}
|
||||
STRIP_FLAGS = -S
|
||||
.endif
|
||||
|
||||
DDB_ENABLED!= grep DDB opt_ddb.h || true ; echo
|
||||
|
||||
.if empty(DDB_ENABLED)
|
||||
CFLAGS += -mno-apcs-frame
|
||||
.endif
|
||||
|
@ -37,7 +37,6 @@ INCLUDES+= -I$S/contrib/libfdt
|
||||
|
||||
CFLAGS+= -msoft-float -Wa,-many
|
||||
|
||||
DDB_ENABLED!= grep DDB opt_ddb.h || true ; echo
|
||||
.if !empty(DDB_ENABLED)
|
||||
CFLAGS+= -fno-omit-frame-pointer
|
||||
.endif
|
||||
|
@ -189,3 +189,8 @@ MKMODULESENV+= WITHOUT_MODULES="${WITHOUT_MODULES}"
|
||||
.if defined(DEBUG)
|
||||
MKMODULESENV+= DEBUG_FLAGS="${DEBUG}"
|
||||
.endif
|
||||
|
||||
# Are various things configured?
|
||||
DDB_ENABLED!= grep DDB opt_ddb.h || true ; echo
|
||||
DTR_ENABLED!= grep KDTRACE_FRAME opt_kdtrace.h || true ; echo
|
||||
HWPMC_ENABLED!= grep HWPMC opt_hwpmc_hooks.h || true ; echo
|
||||
|
Loading…
Reference in New Issue
Block a user