Deleted Added
full compact
kern.pre.mk (278519) kern.pre.mk (278913)
1# $FreeBSD: head/sys/conf/kern.pre.mk 278519 2015-02-10 15:15:08Z imp $
1# $FreeBSD: head/sys/conf/kern.pre.mk 278913 2015-02-17 19:27:14Z glebius $
2
3# Part of a unified Makefile for building kernels. This part contains all
4# of the definitions that need to be before %BEFORE_DEPEND.
5
6# Allow user to configure things that only effect src tree builds.
7# Note: This is duplicated from src.sys.mk to ensure that we include
8# /etc/src.conf when building the kernel. Kernels can be built without
9# the rest of /usr/src, but they still always process SRCCONF even though

--- 82 unchanged lines hidden (view full) ---

92
93CFLAGS= ${COPTFLAGS} ${DEBUG} ${CWARNFLAGS}
94CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
95CFLAGS_PARAM_INLINE_UNIT_GROWTH?=100
96CFLAGS_PARAM_LARGE_FUNCTION_GROWTH?=1000
97.if ${MACHINE_CPUARCH} == "mips"
98CFLAGS_ARCH_PARAMS?=--param max-inline-insns-single=1000
99.endif
2
3# Part of a unified Makefile for building kernels. This part contains all
4# of the definitions that need to be before %BEFORE_DEPEND.
5
6# Allow user to configure things that only effect src tree builds.
7# Note: This is duplicated from src.sys.mk to ensure that we include
8# /etc/src.conf when building the kernel. Kernels can be built without
9# the rest of /usr/src, but they still always process SRCCONF even though

--- 82 unchanged lines hidden (view full) ---

92
93CFLAGS= ${COPTFLAGS} ${DEBUG} ${CWARNFLAGS}
94CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
95CFLAGS_PARAM_INLINE_UNIT_GROWTH?=100
96CFLAGS_PARAM_LARGE_FUNCTION_GROWTH?=1000
97.if ${MACHINE_CPUARCH} == "mips"
98CFLAGS_ARCH_PARAMS?=--param max-inline-insns-single=1000
99.endif
100CFLAGS.gcc+= -fno-common -finline-limit=${INLINE_LIMIT}
100CFLAGS.gcc+= -fno-common -fms-extensions -finline-limit=${INLINE_LIMIT}
101CFLAGS.gcc+= --param inline-unit-growth=${CFLAGS_PARAM_INLINE_UNIT_GROWTH}
102CFLAGS.gcc+= --param large-function-growth=${CFLAGS_PARAM_LARGE_FUNCTION_GROWTH}
103.if defined(CFLAGS_ARCH_PARAMS)
104CFLAGS.gcc+=${CFLAGS_ARCH_PARAMS}
105.endif
106WERROR?= -Werror
107
108# XXX LOCORE means "don't declare C stuff" not "for locore.s".

--- 48 unchanged lines hidden (view full) ---

157NORMAL_CTFCONVERT= @:
158.endif
159
160NORMAL_LINT= ${LINT} ${LINTFLAGS} ${CFLAGS:M-[DIU]*} ${.IMPSRC}
161
162# Infiniband C flags. Correct include paths and omit errors that linux
163# does not honor.
164OFEDINCLUDES= -I$S/ofed/include/
101CFLAGS.gcc+= --param inline-unit-growth=${CFLAGS_PARAM_INLINE_UNIT_GROWTH}
102CFLAGS.gcc+= --param large-function-growth=${CFLAGS_PARAM_LARGE_FUNCTION_GROWTH}
103.if defined(CFLAGS_ARCH_PARAMS)
104CFLAGS.gcc+=${CFLAGS_ARCH_PARAMS}
105.endif
106WERROR?= -Werror
107
108# XXX LOCORE means "don't declare C stuff" not "for locore.s".

--- 48 unchanged lines hidden (view full) ---

157NORMAL_CTFCONVERT= @:
158.endif
159
160NORMAL_LINT= ${LINT} ${LINTFLAGS} ${CFLAGS:M-[DIU]*} ${.IMPSRC}
161
162# Infiniband C flags. Correct include paths and omit errors that linux
163# does not honor.
164OFEDINCLUDES= -I$S/ofed/include/
165OFEDNOERR= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
165OFEDNOERR= -Wno-cast-qual -Wno-pointer-arith
166OFEDCFLAGS= ${CFLAGS:N-I*} ${OFEDINCLUDES} ${CFLAGS:M-I*} ${OFEDNOERR}
167OFED_C_NOIMP= ${CC} -c -o ${.TARGET} ${OFEDCFLAGS} ${WERROR} ${PROF}
168OFED_C= ${OFED_C_NOIMP} ${.IMPSRC}
169
170GEN_CFILES= $S/$M/$M/genassym.c ${MFILES:T:S/.m$/.c/}
171SYSTEM_CFILES= config.c env.c hints.c vnode_if.c
172SYSTEM_DEP= Makefile ${SYSTEM_OBJS}
173SYSTEM_OBJS= locore.o ${MDOBJS} ${OBJS}

--- 30 unchanged lines hidden ---
166OFEDCFLAGS= ${CFLAGS:N-I*} ${OFEDINCLUDES} ${CFLAGS:M-I*} ${OFEDNOERR}
167OFED_C_NOIMP= ${CC} -c -o ${.TARGET} ${OFEDCFLAGS} ${WERROR} ${PROF}
168OFED_C= ${OFED_C_NOIMP} ${.IMPSRC}
169
170GEN_CFILES= $S/$M/$M/genassym.c ${MFILES:T:S/.m$/.c/}
171SYSTEM_CFILES= config.c env.c hints.c vnode_if.c
172SYSTEM_DEP= Makefile ${SYSTEM_OBJS}
173SYSTEM_OBJS= locore.o ${MDOBJS} ${OBJS}

--- 30 unchanged lines hidden ---