From owner-freebsd-current@freebsd.org Tue Oct 27 12:16:32 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 C2FF3872B for ; Tue, 27 Oct 2015 12:16:32 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B175147E for ; Tue, 27 Oct 2015 12:16:32 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id t9RCGN3R036947 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 27 Oct 2015 14:16:23 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua t9RCGN3R036947 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id t9RCGNoA036946; Tue, 27 Oct 2015 14:16:23 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 27 Oct 2015 14:16:23 +0200 From: Konstantin Belousov To: Hans Petter Selasky Cc: freebsd-current@freebsd.org Subject: Re: Quick test building a module cross all targets and architectures Message-ID: <20151027121623.GW2257@kib.kiev.ua> References: <562DEE4F.5010203@selasky.org> <5888922.UHSgpdyTWY@ralph.baldwin.cx> <20151026182348.GT2257@kib.kiev.ua> <562F446E.6090906@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <562F446E.6090906@selasky.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home 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: Tue, 27 Oct 2015 12:16:32 -0000 On Tue, Oct 27, 2015 at 10:31:26AM +0100, Hans Petter Selasky wrote: > I understand that the compilation environments are different. > > How would you suggest to build-test a handful of C-files under a single > device keyword and associated kernel module cross all kernels we have in > a 10-minutes time-frame? MODULES_OVERRIDE can be defined from within > kernel configs aswell, so possibly a MODULES_OVERRIDE_OVERRIDE is needed > for this kind of feature. How about some kind of KERNCONF_APPEND= > parameter, which contains instructions for "config" to only emit a > single device keyword, yet, keeping all options and parameters. Did you tried to pass -DNO_CLEAN -DNO_KERNELCLEAN -DNO_KERNELCONFIG -DNO_KERNELDEPEND -DNO_KERNELOBJ options for make universe over the already built tree ? When I develop, I use make buildkernel -DNO_KERNELCLEAN -DNO_KERNELCONFIG -DNO_KERNELDEPEND -DNO_KERNELOBJ unless I change config, or add a file, or add a module etc. This combination gives me seconds for whole kernel and modules rebuild time when I know that the build metadata, i.e. files participating in the build, and the build options, did not changed from the latest full rebuild. I think that a similar trick should work with make universe, it might be somewhat more involved to properly pass the directions, may be not. But it should give the build time in the range of tens of minutes, indeed.