From owner-freebsd-questions@FreeBSD.ORG Tue Sep 23 07:32:30 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AD9616A4B3 for ; Tue, 23 Sep 2003 07:32:30 -0700 (PDT) Received: from conn.mc.mpls.visi.com (conn.mc.mpls.visi.com [208.42.156.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 760E043FD7 for ; Tue, 23 Sep 2003 07:32:28 -0700 (PDT) (envelope-from hawkeyd@visi.com) Received: from sheol.localdomain (hawkeyd-fw.dsl.visi.com [208.42.101.193]) by conn.mc.mpls.visi.com (Postfix) with ESMTP id AA6FCC7B5 for ; Tue, 23 Sep 2003 09:32:27 -0500 (CDT) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6p2/8.11.6) id h8NEWQl00248 for freebsd-questions@freebsd.org; Tue, 23 Sep 2003 09:32:26 -0500 (CDT) (envelope-from hawkeyd) X-Spam-Policy: http://www.visi.com/~hawkeyd/index.html#mail Date: Tue, 23 Sep 2003 09:32:26 -0500 From: D J Hawkey Jr To: questions at FreeBSD Message-ID: <20030923143226.GA89496@sheol.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Something I should know about 'make buildkernel ...', but I don't. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hawkeyd@visi.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2003 14:32:30 -0000 Hi All. Something's been bugging me about 'make buildkernel ...' (or pro'lly more precisely, the docs): How do I re-make the kernel without first cleaning /usr/obj/...? After applying patches, I bump $BRANCH in /sys/conf/newvers.sh, and would like the running kernel to reflect the current patchlevel, but not at the expense of a complete rebuild. Something this trivial shouldn't get me in any trouble, kernel-wise, should it? Browsing Makefile.inc1, I see these defines: -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir -DNOCLEAN do not clean at all What does 'cleandir' do that 'clean' doesn't? Remove directory trees? Anyway, is it as simple as: make buildkernel -DNOCLEAN KERNCONF=... Like I said, I should already know this. Dave -- ______________________ ______________________ \__________________ \ D. J. HAWKEY JR. / __________________/ \________________/\ hawkeyd@visi.com /\________________/ http://www.visi.com/~hawkeyd/