From owner-freebsd-stable@freebsd.org Mon Dec 12 07:07:55 2016 Return-Path: Delivered-To: freebsd-stable@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 7F861C738B9 for ; Mon, 12 Dec 2016 07:07:55 +0000 (UTC) (envelope-from herbert@mailbox.org) Received: from mx1.mailbox.org (mx1.mailbox.org [80.241.60.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.mailbox.org", Issuer "SwissSign Server Silver CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 42F001B3E for ; Mon, 12 Dec 2016 07:07:54 +0000 (UTC) (envelope-from herbert@mailbox.org) Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 56DCA404F7 for ; Mon, 12 Dec 2016 07:58:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-type:content-type:mime-version:references:in-reply-to :subject:subject:from:from:message-id:date:date:received; s= mail20150812; t=1481525896; bh=ohfubdn9C/gxdonjFwza43p1At308TjQh gQAdRH/vpQ=; b=Es3PcdNwHqN+CBKAGJjQRHgMx/N0jBUYZN551xil3sA4KcYbz BzO1RyPIRiJV1TWusirGwzeV0l3Rk2qas8KGFsc6hCUi7JDjXdITZcy7ihWyo/VX dIBkgOAlUDJGuWd2alHbvt9bWlsLiUk4CzsWC0U9pMrxzbI0kVt/k6GZPZB5qj6v 12JhS8OWAYZ1x6meIgv9Gf0YAGZO5+7p6+ve4NB2cZXkaXZO1JWSYfSxPpUesRHS OV/VByhMOTuo/H5snhml8UrQIhKr9oEWfXNYkd7vUmmZEdRG33YJs1Se/tXxHnvO oKhBqvIyoZfaiFd22XVw/EoDe5Uh5DM9sor2A== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id pLuMT5DFu7e3 for ; Mon, 12 Dec 2016 07:58:16 +0100 (CET) Date: Mon, 12 Dec 2016 07:58:14 +0100 Message-ID: <86r35dd46x.wl-herbert@mailbox.org> From: "Herbert J. Skuhra" To: freebsd-stable@freebsd.org Subject: Re: make buildkernel does not respect KERNCONF or JOBS in /etc/make.conf In-Reply-To: <201612120138.uBC1cA59025994@sdf.org> References: <201612120138.uBC1cA59025994@sdf.org> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2016 07:07:55 -0000 Scott Bennett skrev: > > On Sun, 11 Dec 2016 12:34:58 +0000 tech-lists > wrote: > >> I have found that make buildkernel/installkernel does not respect >> KERNCONF= variables. It also doesn't respect MAKE_JOBS_NUMBER. It *DOES* >> however respect WITH_CCACHE_BUILD. It's hard to say when the behaviour >> changed to what it is, but it was sometime around the time that >> 11-CURRENT became 11-STABLE. >> >> Sources are 11-STABLE r309795 >> >> Here is my /etc/make.conf, which used to work: >> >> MALLOC_PRODUCTION=yes >> WITH_CCACHE_BUILD=yes >> MAKE_JOBS_NUMBER=32 >> KERNCONF=PUMPKIN GENERIC >> WITH_MANCOMPRESS=YES >> WITHOUT_DEBUG=YES >> DEFAULT_VERSIONS+= ssl=libressl >> OPTIMIZED_CFLAGS=YES >> BUILD_OPTIMIZED=YES >> >> I used to be able to buildworld and kernel like this: >> >> root@localhost:/usr/src# make cleandir && make clean && make buildworld >> && make buildkernel && make installkernel && mergemaster -p >> >> and I'd get two installed kernels, PUMPKIN and GENERIC >> >> now I have to specify on the line: >> >> root@localhost:/usr/src# make cleandir && make clean && make -j32 >> buildworld && make -j32 buildkernel KERNCONF=PUMPKIN >> >> Also, I have to specify jobs # for both buildworld and buildkernel >> otherwise it just uses one, two or four cores. >> >> How can I get it to work like it did previously? >> > You may have misremembered how you did it previously. Try adding > > BUILDKERNELS=PUMPKIN GENERIC > > to your /etc/src.conf and removing the KERNCONF line from /etc/make.conf > before you run it again. KERNCONF goes on the "make buildkernel" command, > not into /etc/make.conf, but should not be necessary at all if /etc/src.conf > contains the list of kernels to be built. (See src.conf(5).) - BUILDKERNELS is used in Makefile.inc1 but not listed in neither src.conf(5) nor make.conf(5) - KERNCONF is listed in make.conf(5) - I use KERNCONF in /etc/make.conf to build two kernels and it works So why are you giving this advice? -- Herbert