From owner-freebsd-current@freebsd.org Mon Oct 26 11:38:44 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 02842A19841 for ; Mon, 26 Oct 2015 11:38:44 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5630122E for ; Mon, 26 Oct 2015 11:38:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbdj2 with SMTP id dj2so53871439igb.1 for ; Mon, 26 Oct 2015 04:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8le9n+jfpJXYYt4RAmBOQd79QmYmea6cAIFwbzDKGUY=; b=vYlOP/2eZSt/xktmNQ2rSwFcOABgEV7G8vRORNnG9McY6/l4nswkHacmzpVDtW1C3x 2Q6ir8HnfB6WVaWcz77HgKp7PoeG3G6ElpwGQq/ucAzqRh70Lb/HhLaBCbxXqT29WolR cb2XlPlRr8kfrbNiQERUd+Mhalg9wjD2kuCG6ZLF6WKqMpWJtCut7Hi6EFSLBZgPxa0h H7QO341wN8/Jwuw8dm9lGrOfCSfD9wrgIfI0BXr7AOqH+1kc7ZYLTqWVnR48EHHyOyQn 8mZnC+IjsUw7Bs6QKMtLONU71sbx4LidHoRYACFqOFqRTBZhYxnd3LfcoKqR1V1K4nhs aHEQ== MIME-Version: 1.0 X-Received: by 10.50.111.226 with SMTP id il2mr16812364igb.61.1445859523204; Mon, 26 Oct 2015 04:38:43 -0700 (PDT) Received: by 10.36.46.66 with HTTP; Mon, 26 Oct 2015 04:38:43 -0700 (PDT) In-Reply-To: <562DEE4F.5010203@selasky.org> References: <562DEE4F.5010203@selasky.org> Date: Mon, 26 Oct 2015 04:38:43 -0700 Message-ID: Subject: Re: Quick test building a module cross all targets and architectures From: Adrian Chadd To: Hans Petter Selasky Cc: FreeBSD Current Content-Type: text/plain; charset=UTF-8 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 11:38:44 -0000 +1 to this thankyou! -adrian On 26 October 2015 at 02:11, Hans Petter Selasky wrote: > 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 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"