SMALL_KERNEL specific variations.
ok espie jsg
-# $OpenBSD: Makefile.alpha,v 1.114 2019/11/07 20:42:28 guenther Exp $
+# $OpenBSD: Makefile.alpha,v 1.115 2021/01/28 17:39:01 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE?= -Oz
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -T ld.script -X -N -G 4 --warn-common -nopie
-# $OpenBSD: Makefile.amd64,v 1.118 2020/06/08 04:47:57 jsg Exp $
+# $OpenBSD: Makefile.amd64,v 1.119 2021/01/28 17:39:02 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE= -Oz
.if ${COMPILER_VERSION:Mclang}
CMACHFLAGS+= -mno-retpoline
.endif
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -T ld.script -X --warn-common -nopie
-# $OpenBSD: Makefile.arm64,v 1.36 2020/06/08 04:47:58 jsg Exp $
+# $OpenBSD: Makefile.arm64,v 1.37 2021/01/28 17:39:02 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE?= -Oz
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -T ld.script -X --warn-common -nopie
-# $OpenBSD: Makefile.armv7,v 1.48 2019/11/09 19:59:53 guenther Exp $
+# $OpenBSD: Makefile.armv7,v 1.49 2021/01/28 17:39:02 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE?= -Oz
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -T ld.script --warn-common -nopie
-# $OpenBSD: Makefile.hppa,v 1.108 2019/11/07 20:42:28 guenther Exp $
+# $OpenBSD: Makefile.hppa,v 1.109 2021/01/28 17:39:03 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
SORTR= sort -R
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE?= -Oz
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -X -T ld.script -Ttext 80000 --warn-common -nopie
-# $OpenBSD: Makefile.i386,v 1.139 2020/08/17 17:23:59 deraadt Exp $
+# $OpenBSD: Makefile.i386,v 1.140 2021/01/28 17:39:03 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz -mno-retpoline
+COPTIMIZE?= -Oz -mno-retpoline
.elif ${COMPILER_VERSION:Mclang}
CMACHFLAGS+= -mretpoline
.endif
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -T ld.script -X --warn-common -nopie
-# $OpenBSD: Makefile.landisk,v 1.81 2019/11/07 20:42:28 guenther Exp $
+# $OpenBSD: Makefile.landisk,v 1.82 2021/01/28 17:39:03 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-#COPTS?= -Oz # locks up during boot
+#COPTIMIZE?=-Oz # locks up during boot
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -N -Ttext 0x8c002000 -e start --warn-common -nopie
-# $OpenBSD: Makefile.loongson,v 1.79 2020/12/22 04:32:08 visa Exp $
+# $OpenBSD: Makefile.loongson,v 1.80 2021/01/28 17:39:03 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE?= -Oz
.endif
.if ${COMPILER_VERSION:Mclang}
NO_INTEGR_AS= -no-integrated-as
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -e start -T ld.script -Ttext=${LINK_ADDRESS} -warn-common -nopie
-# $OpenBSD: Makefile.luna88k,v 1.83 2019/11/07 20:42:28 guenther Exp $
+# $OpenBSD: Makefile.luna88k,v 1.84 2021/01/28 17:39:03 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE?= -Oz
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -T ld.script -Ttext 0x80000 -e __start -X -N --warn-common -nopie
-# $OpenBSD: Makefile.macppc,v 1.100 2020/11/29 18:57:29 gkoehler Exp $
+# $OpenBSD: Makefile.macppc,v 1.101 2021/01/28 17:39:03 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE?= -Oz
.endif
.if ${COMPILER_VERSION:Mclang}
NO_INTEGR_AS= -no-integrated-as
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE ${CMACHFLAGS}
LINKFLAGS= -N -Ttext 100114 -e start --warn-common -nopie
-# $OpenBSD: Makefile.octeon,v 1.56 2019/11/07 20:42:28 guenther Exp $
+# $OpenBSD: Makefile.octeon,v 1.57 2021/01/28 17:39:03 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE?= -Oz
.endif
.if ${COMPILER_VERSION:Mclang}
NO_INTEGR_AS= -no-integrated-as
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -e start -T ld.script -Ttext=${LINK_ADDRESS} --warn-common -nopie
-# $OpenBSD: Makefile.powerpc64,v 1.8 2020/07/20 17:57:46 deraadt Exp $
+# $OpenBSD: Makefile.powerpc64,v 1.9 2021/01/28 17:39:03 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE?= -Oz
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -T ld.script -X --warn-common -pie
-# $OpenBSD: Makefile.sgi,v 1.100 2019/11/07 20:42:28 guenther Exp $
+# $OpenBSD: Makefile.sgi,v 1.101 2021/01/28 17:39:03 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE?= -Oz
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -e start -T ld.script -Ttext=${LINK_ADDRESS} --warn-common -nopie
-# $OpenBSD: Makefile.sparc64,v 1.102 2019/11/07 20:42:28 guenther Exp $
+# $OpenBSD: Makefile.sparc64,v 1.103 2021/01/28 17:39:03 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
-COPTS?= -Oz
+COPTIMIZE?= -Oz
.endif
.if ${COMPILER_VERSION:Mclang}
CWARNFLAGS+= -Wno-unused-command-line-argument
.endif
DEBUG?= -g
-COPTS?= -O2
-CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
+COPTIMIZE?= -O2
+CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTIMIZE} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -n -T ld.script --warn-common -nopie