Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kern.pre.mk
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | |||||
NORMAL_FW= uudecode -o ${.TARGET} ${.ALLSRC} | NORMAL_FW= uudecode -o ${.TARGET} ${.ALLSRC} | ||||
NORMAL_FWO= ${CC:N${CCACHE_BIN}} -c ${ASM_CFLAGS} ${WERROR} -o ${.TARGET} \ | NORMAL_FWO= ${CC:N${CCACHE_BIN}} -c ${ASM_CFLAGS} ${WERROR} -o ${.TARGET} \ | ||||
$S/kern/firmw.S -DFIRMW_FILE="${.ALLSRC:M*.fw}" \ | $S/kern/firmw.S -DFIRMW_FILE="${.ALLSRC:M*.fw}" \ | ||||
-DFIRMW_SYMBOL="${.ALLSRC:M*.fw:C/[-.\/]/_/g}" | -DFIRMW_SYMBOL="${.ALLSRC:M*.fw:C/[-.\/]/_/g}" | ||||
# for ZSTD in the kernel (include zstd/lib/freebsd before other CFLAGS) | # for ZSTD in the kernel (include zstd/lib/freebsd before other CFLAGS) | ||||
ZSTD_C= ${CC} -c -DZSTD_HEAPMODE=1 -I$S/contrib/zstd/lib/freebsd ${CFLAGS} \ | ZSTD_C= ${CC} -c -DZSTD_HEAPMODE=1 -I$S/contrib/zstd/lib/freebsd ${CFLAGS} \ | ||||
-I$S/contrib/zstd/lib -I$S/contrib/zstd/lib/common ${WERROR} \ | -I$S/contrib/zstd/lib -I$S/contrib/zstd/lib/common ${WERROR} \ | ||||
-Wno-inline -Wno-missing-prototypes ${PROF} -U__BMI__ \ | -Wno-missing-prototypes ${PROF} -U__BMI__ \ | ||||
-DZSTD_NO_INTRINSICS \ | -DZSTD_NO_INTRINSICS \ | ||||
${.IMPSRC} | ${.IMPSRC} | ||||
# https://github.com/facebook/zstd/commit/812e8f2a [zstd 1.4.1] | # https://github.com/facebook/zstd/commit/812e8f2a [zstd 1.4.1] | ||||
# "Note that [GCC] autovectorization still does not do a good job on the | # "Note that [GCC] autovectorization still does not do a good job on the | ||||
# optimized version, so it's turned off via attribute and flag. I found | # optimized version, so it's turned off via attribute and flag. I found | ||||
# that neither attribute nor command-line flag were entirely successful in | # that neither attribute nor command-line flag were entirely successful in | ||||
# turning off vectorization, which is why there were both." | # turning off vectorization, which is why there were both." | ||||
.if ${COMPILER_TYPE} == "gcc" | .if ${COMPILER_TYPE} == "gcc" | ||||
Show All 13 Lines | CDDL_CFLAGS= \ | ||||
-I${ZINCDIR}/os/freebsd \ | -I${ZINCDIR}/os/freebsd \ | ||||
-I${ZINCDIR}/os/freebsd/spl \ | -I${ZINCDIR}/os/freebsd/spl \ | ||||
-I${ZINCDIR}/os/freebsd/zfs \ | -I${ZINCDIR}/os/freebsd/zfs \ | ||||
-I$S/modules/zfs \ | -I$S/modules/zfs \ | ||||
-I$S/contrib/openzfs/module/zstd/include \ | -I$S/contrib/openzfs/module/zstd/include \ | ||||
${CFLAGS} \ | ${CFLAGS} \ | ||||
-Wno-cast-qual \ | -Wno-cast-qual \ | ||||
-Wno-duplicate-decl-specifier \ | -Wno-duplicate-decl-specifier \ | ||||
-Wno-inline \ | |||||
-Wno-missing-braces \ | -Wno-missing-braces \ | ||||
-Wno-missing-prototypes \ | -Wno-missing-prototypes \ | ||||
-Wno-nested-externs \ | -Wno-nested-externs \ | ||||
-Wno-parentheses \ | -Wno-parentheses \ | ||||
-Wno-pointer-arith \ | -Wno-pointer-arith \ | ||||
-Wno-redundant-decls \ | -Wno-redundant-decls \ | ||||
-Wno-strict-prototypes \ | -Wno-strict-prototypes \ | ||||
-Wno-switch \ | -Wno-switch \ | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |