diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2017-03-18 17:31:32 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2017-03-18 17:31:32 +0000 |
commit | f844ea0270ca1ff4c089db7d304b5ab5991df528 (patch) | |
tree | 01ddbdb87ffb181f0ceda99d8e7ea8dda328da6a /sys | |
parent | 8d06fd43744c2fa9082056b3a677e3d63984e7f0 (diff) |
Build mips64 kernels with -ffreestanding.
OK kettenis@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/loongson/conf/Makefile.loongson | 8 | ||||
-rw-r--r-- | sys/arch/octeon/conf/Makefile.octeon | 8 | ||||
-rw-r--r-- | sys/arch/sgi/conf/Makefile.sgi | 8 |
3 files changed, 9 insertions, 15 deletions
diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson index 77556ad90ac..5091dfc315a 100644 --- a/sys/arch/loongson/conf/Makefile.loongson +++ b/sys/arch/loongson/conf/Makefile.loongson @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.loongson,v 1.53 2016/11/29 09:08:34 mpi Exp $ +# $OpenBSD: Makefile.loongson,v 1.54 2017/03/18 17:31:31 visa Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -31,13 +31,11 @@ _archdir?= $S/arch/${_arch} INCLUDES= -nostdinc -I$S -I${.OBJDIR} -I$S/arch CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \ - -Wno-main -Wno-uninitialized -Wno-pointer-sign \ + -Wno-uninitialized -Wno-pointer-sign \ -Wframe-larger-than=2047 CMACHFLAGS= -mno-abicalls ${ABI} -msoft-float -Wa,-mfix-loongson2f-btb -G 0 -CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \ - -fno-builtin-vsnprintf -fno-builtin-log \ - -fno-builtin-log2 -fno-builtin-malloc ${NOPIE_FLAGS} +CMACHFLAGS+= -ffreestanding ${NOPIE_FLAGS} .if ${IDENT:M-DNO_PROPOLICE} CMACHFLAGS+= -fno-stack-protector .endif diff --git a/sys/arch/octeon/conf/Makefile.octeon b/sys/arch/octeon/conf/Makefile.octeon index 47bcb233204..29bcc8899de 100644 --- a/sys/arch/octeon/conf/Makefile.octeon +++ b/sys/arch/octeon/conf/Makefile.octeon @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.octeon,v 1.29 2016/11/29 09:08:34 mpi Exp $ +# $OpenBSD: Makefile.octeon,v 1.30 2017/03/18 17:31:31 visa Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -31,13 +31,11 @@ _archdir?= $S/arch/${_arch} INCLUDES= -nostdinc -I$S -I${.OBJDIR} -I$S/arch CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \ - -Wno-main -Wno-uninitialized -Wno-pointer-sign \ + -Wno-uninitialized -Wno-pointer-sign \ -Wframe-larger-than=2047 CMACHFLAGS= -mno-abicalls ${ABI} -msoft-float -G 0 -CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \ - -fno-builtin-vsnprintf -fno-builtin-log \ - -fno-builtin-log2 -fno-builtin-malloc ${NOPIE_FLAGS} +CMACHFLAGS+= -ffreestanding ${NOPIE_FLAGS} .if ${IDENT:M-DNO_PROPOLICE} CMACHFLAGS+= -fno-stack-protector .endif diff --git a/sys/arch/sgi/conf/Makefile.sgi b/sys/arch/sgi/conf/Makefile.sgi index 56bf7cf4d39..93e82bf2447 100644 --- a/sys/arch/sgi/conf/Makefile.sgi +++ b/sys/arch/sgi/conf/Makefile.sgi @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sgi,v 1.77 2016/11/29 09:08:34 mpi Exp $ +# $OpenBSD: Makefile.sgi,v 1.78 2017/03/18 17:31:31 visa Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -31,13 +31,11 @@ _archdir?= $S/arch/${_arch} INCLUDES= -nostdinc -I$S -I${.OBJDIR} -I$S/arch CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -MD -MP CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \ - -Wno-main -Wno-uninitialized -Wno-pointer-sign \ + -Wno-uninitialized -Wno-pointer-sign \ -Wframe-larger-than=2047 CMACHFLAGS= -mno-abicalls ${ABI} -msoft-float -G 0 -CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \ - -fno-builtin-vsnprintf -fno-builtin-log \ - -fno-builtin-log2 -fno-builtin-malloc ${NOPIE_FLAGS} +CMACHFLAGS+= -ffreestanding ${NOPIE_FLAGS} .if ${IDENT:M-DNO_PROPOLICE} CMACHFLAGS+= -fno-stack-protector .endif |