summaryrefslogtreecommitdiff
path: root/sys/arch/loongson
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-14 14:07:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-14 14:07:09 +0000
commit8e4ff341776e248f3b84ce0033e33109e67e060f (patch)
tree796227e5fc0fff4fd727e7769f269404229837f5 /sys/arch/loongson
parent6ea34e8d76621b3a07963243bade30421938e9d4 (diff)
Instead of using COPTS=-Oz (and similar) in make environment to force
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc based upon SMALL_KERNEL
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r--sys/arch/loongson/conf/Makefile.loongson3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson
index 907761098a5..438d3a0d8c9 100644
--- a/sys/arch/loongson/conf/Makefile.loongson
+++ b/sys/arch/loongson/conf/Makefile.loongson
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.loongson,v 1.74 2019/04/14 10:14:50 jsg Exp $
+# $OpenBSD: Makefile.loongson,v 1.75 2019/04/14 14:07:06 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -44,6 +44,7 @@ CMACHFLAGS+= -fno-stack-protector
.endif
.if ${IDENT:M-DSMALL_KERNEL}
SORTR= cat
+COPTS?= -Oz
.endif
DEBUG?= -g