From 645eff3a855254a1fd4271016d679ddf41bda9b5 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 14 Oct 2016 18:43:03 +0000 Subject: 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. --- sys/arch/socppc/compile/Makefile.inc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sys/arch/socppc/compile/Makefile.inc (limited to 'sys/arch/socppc/compile/Makefile.inc') diff --git a/sys/arch/socppc/compile/Makefile.inc b/sys/arch/socppc/compile/Makefile.inc new file mode 100644 index 00000000000..d79a8803ef2 --- /dev/null +++ b/sys/arch/socppc/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 + -- cgit v1.2.3