From owner-freebsd-current@freebsd.org Mon Oct 26 09:10:01 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C76788FF6 for ; Mon, 26 Oct 2015 09:10:01 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8FAE91115 for ; Mon, 26 Oct 2015 09:10:01 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 667EF1FE023 for ; Mon, 26 Oct 2015 10:09:59 +0100 (CET) To: FreeBSD Current From: Hans Petter Selasky Subject: Quick test building a module cross all targets and architectures Message-ID: <562DEE4F.5010203@selasky.org> Date: Mon, 26 Oct 2015 10:11:43 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2015 09:10:01 -0000 Hi, We have NO_MODULES for building kernel without modules, but no NO_KERNEL to only build the modules. What do you think about the following patch: > diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk > index ddf828e..f0920df 100644 > --- a/sys/conf/kern.post.mk > +++ b/sys/conf/kern.post.mk > @@ -32,7 +32,11 @@ KERN_DEBUGDIR?= ${DEBUGDIR} > > .for target in all clean cleandepend cleandir clobber depend install \ > obj reinstall tags > +.if !defined(NO_KERNEL) > ${target}: kernel-${target} > +.else > +${target}: > +.endif > .if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists($S/modules) > ${target}: modules-${target} > modules-${target}: It allows only a single module with MODULES_OVERRIDE= and NO_KERNEL=YES to be built with universe in very little time. This can save a lot of build time when changes are limited to a set of kernel modules. --HPS