diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2016-11-18 16:23:31 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2016-11-18 16:23:31 +0000 |
commit | 63a16ecab1973c856ac3b4c90639100ec448d241 (patch) | |
tree | dcf51b64e12f898781b149279777f7e8f9f15ff2 /sys/conf | |
parent | cbaba16b23124331498f0a6d48a4d71f4f20b508 (diff) | |
download | src-63a16ecab1973c856ac3b4c90639100ec448d241.tar.gz src-63a16ecab1973c856ac3b4c90639100ec448d241.zip |
Subject: [PATCH] Pass MACHINE_ARCH on command line for MIPS kernels.
While there, make param.h guess proper MACHINE_ARCH on hardfloat targets
correctly as well, so tools like bmake can get their defaults right.
This does not help the kernel case, since we compile them with forced
-msoft-float and need to override an incorrect guess by param.h.
Reviewed by: br
Differential Revision: https://reviews.freebsd.org/D8574
Notes
Notes:
svn path=/head/; revision=308807
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/kern.pre.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 0a2d9a65ee76..ee72dbe0ebe1 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -74,7 +74,7 @@ CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global. CFLAGS_PARAM_INLINE_UNIT_GROWTH?=100 CFLAGS_PARAM_LARGE_FUNCTION_GROWTH?=1000 .if ${MACHINE_CPUARCH} == "mips" -CFLAGS_ARCH_PARAMS?=--param max-inline-insns-single=1000 +CFLAGS_ARCH_PARAMS?=--param max-inline-insns-single=1000 -DMACHINE_ARCH='"${MACHINE_ARCH}"' .endif CFLAGS.gcc+= -fno-common -fms-extensions -finline-limit=${INLINE_LIMIT} CFLAGS.gcc+= --param inline-unit-growth=${CFLAGS_PARAM_INLINE_UNIT_GROWTH} |