summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/compile
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2016-10-14 18:43:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2016-10-14 18:43:03 +0000
commit645eff3a855254a1fd4271016d679ddf41bda9b5 (patch)
tree0d9ce821aa8023f5b24efd533b7ba7701d8a6cb1 /sys/arch/sparc64/compile
parent1f9195d8cf739e4124db4512200c8278bbda6957 (diff)
Kernel builds now happen in compile/CONFIG/obj@ -> /usr/obj/... [or ./obj/,
if srctree is not rooted at /usr/src]. As a result, stock GENERIC & RAMDISK kernels are commited to the tree, to ensure the src tree can be "readonly" during builds, with all writes occuring inside the obj space. config -b options are handled by ../Makefile.inc. The canonical new way to configure one of these kernels is: % cd /sys/arch/amd64/compile/GENERIC.MP % doas make obj % make config % make % doas cp obj/bsd /bsd The build infrastructure will use this new mechanism in a de-escalation way using BUILDUSER. Much help from natano and tb.
Diffstat (limited to 'sys/arch/sparc64/compile')
-rw-r--r--sys/arch/sparc64/compile/.cvsignore5
-rw-r--r--sys/arch/sparc64/compile/GENERIC.MP/Makefile1
-rw-r--r--sys/arch/sparc64/compile/GENERIC/Makefile1
-rw-r--r--sys/arch/sparc64/compile/Makefile9
-rw-r--r--sys/arch/sparc64/compile/Makefile.inc19
-rw-r--r--sys/arch/sparc64/compile/RAMDISK/Makefile1
-rw-r--r--sys/arch/sparc64/compile/RAMDISKU1/Makefile1
-rw-r--r--sys/arch/sparc64/compile/RAMDISKU5/Makefile1
8 files changed, 33 insertions, 5 deletions
diff --git a/sys/arch/sparc64/compile/.cvsignore b/sys/arch/sparc64/compile/.cvsignore
deleted file mode 100644
index fc8b48ec6d2..00000000000
--- a/sys/arch/sparc64/compile/.cvsignore
+++ /dev/null
@@ -1,5 +0,0 @@
-GENERIC
-GENERIC.MP
-RAMDISK
-RAMDISKU1
-RAMDISKU5
diff --git a/sys/arch/sparc64/compile/GENERIC.MP/Makefile b/sys/arch/sparc64/compile/GENERIC.MP/Makefile
new file mode 100644
index 00000000000..01b5f23410c
--- /dev/null
+++ b/sys/arch/sparc64/compile/GENERIC.MP/Makefile
@@ -0,0 +1 @@
+.include "../Makefile.inc"
diff --git a/sys/arch/sparc64/compile/GENERIC/Makefile b/sys/arch/sparc64/compile/GENERIC/Makefile
new file mode 100644
index 00000000000..01b5f23410c
--- /dev/null
+++ b/sys/arch/sparc64/compile/GENERIC/Makefile
@@ -0,0 +1 @@
+.include "../Makefile.inc"
diff --git a/sys/arch/sparc64/compile/Makefile b/sys/arch/sparc64/compile/Makefile
new file mode 100644
index 00000000000..8a80b3aa5e3
--- /dev/null
+++ b/sys/arch/sparc64/compile/Makefile
@@ -0,0 +1,9 @@
+# $OpenBSD: Makefile,v 1.1 2016/10/14 18:43:01 deraadt Exp $
+
+.if make(obj) || make(clean)
+SUBDIR!=find . -type d -maxdepth 1 \! \( -name . -o -name CVS \)
+#SUBDIR=GENERIC GENERIC.MP RAMDISK RAMDISKU1 RAMDISKU5
+.endif
+
+.include <bsd.subdir.mk>
+
diff --git a/sys/arch/sparc64/compile/Makefile.inc b/sys/arch/sparc64/compile/Makefile.inc
new file mode 100644
index 00000000000..d79a8803ef2
--- /dev/null
+++ b/sys/arch/sparc64/compile/Makefile.inc
@@ -0,0 +1,19 @@
+SYSDIR != cd ${.CURDIR}/../../../..; pwd
+CONFDIR != cd ${.CURDIR}/../../conf; pwd
+
+.if ${.CURDIR} == ${.OBJDIR}
+.PHONY: config
+config:
+ @echo make obj required first >&2
+ @false
+.elif !exists(${OBJDIR}/Makefile)
+.PHONY: config clean
+config:
+ config -b ${.OBJDIR} -s ${SYSDIR} ${CONFDIR}/${.CURDIR:T}
+
+clean:
+
+.endif
+
+.include <bsd.obj.mk>
+
diff --git a/sys/arch/sparc64/compile/RAMDISK/Makefile b/sys/arch/sparc64/compile/RAMDISK/Makefile
new file mode 100644
index 00000000000..01b5f23410c
--- /dev/null
+++ b/sys/arch/sparc64/compile/RAMDISK/Makefile
@@ -0,0 +1 @@
+.include "../Makefile.inc"
diff --git a/sys/arch/sparc64/compile/RAMDISKU1/Makefile b/sys/arch/sparc64/compile/RAMDISKU1/Makefile
new file mode 100644
index 00000000000..01b5f23410c
--- /dev/null
+++ b/sys/arch/sparc64/compile/RAMDISKU1/Makefile
@@ -0,0 +1 @@
+.include "../Makefile.inc"
diff --git a/sys/arch/sparc64/compile/RAMDISKU5/Makefile b/sys/arch/sparc64/compile/RAMDISKU5/Makefile
new file mode 100644
index 00000000000..01b5f23410c
--- /dev/null
+++ b/sys/arch/sparc64/compile/RAMDISKU5/Makefile
@@ -0,0 +1 @@
+.include "../Makefile.inc"