From owner-freebsd-questions@FreeBSD.ORG Mon Jan 30 03:45:02 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43ECA1065670 for ; Mon, 30 Jan 2012 03:45:02 +0000 (UTC) (envelope-from rfarmer@predatorlabs.net) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id EE7C48FC0A for ; Mon, 30 Jan 2012 03:45:01 +0000 (UTC) Received: by vcmm1 with SMTP id m1so3877326vcm.13 for ; Sun, 29 Jan 2012 19:45:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=predatorlabs.net; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=cP5XmvNPu7c1qTsaVAzExCvJbTp+lvYk2jKeiN4vaMY=; b=D60JLSiLVrLArPRN+ZyA8D8aRXCLtrDWPaTXBQQEyfz4C/ZKcgB3J+vaO3V9cuJtbH 3WbCGnavcKO5HP3GKbZ9/xJBYQKOEvg3itv4VXc/5ds36ufVDjFir86PlzPAq/ym1uBb kbcmrx3db/OxbfLj9wju6OIDpdLCY00EFaKZc= MIME-Version: 1.0 Received: by 10.220.38.10 with SMTP id z10mr8774910vcd.48.1327893285323; Sun, 29 Jan 2012 19:14:45 -0800 (PST) Received: by 10.220.199.77 with HTTP; Sun, 29 Jan 2012 19:14:45 -0800 (PST) X-Originating-IP: [128.95.134.93] In-Reply-To: References: Date: Sun, 29 Jan 2012 19:14:45 -0800 Message-ID: From: Rob Farmer To: Rick Miller Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: make release custom kernel conf not found X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2012 03:45:02 -0000 On Sun, Jan 29, 2012 at 9:03 AM, Rick Miller wro= te: > Hi All, > > I am performing a `make release` to build a new release with a custom > kernel. =A0The `make release` fails with the following error: > > cd /usr/src/release/..; =A0make TARGET_ARCH=3Damd64 TARGET=3Damd64 > KERNCONF=3DMYKERNEL kernel =A0DESTDIR=3D/R/stage/kernels KODIR=3D/MYKERNE= L > ERROR: Missing kernel configuration file(s) (MYKERNEL). > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src/release. > + umount /dev > *** Error code 1 > > Stop in /usr/src/release. > > I have the kernel config at /root/kernels/MYKERNEL and > /usr/src/sys/amd64/conf/MYKERNEL is a symlink to the kernel config. > The applicable environment variables are set in my .profile as > follows: > > BUILDNAME=3D8.2-RELEASE-MYKERNEL-1.1 > CHROOTDIR=3D/app/release > CVSROOT=3D/home/cvs > EXTPORTSDIR=3D/usr/ports > EXTSRCDIR=3D/usr/src > KERNELS=3D"GENERIC MYKERNEL" > MAKE_DVD=3DYES > NODOC=3DYES > NO_FLOPPIES=3DYES > > I am unsure how to get `make release` to realize the location of the > kernel config. =A0Also, I notice that in the command to make the kernel, > DESTDIR is set to /R/stage/kernels while the CHROOTDIR (and the > location where I want the release to be built) is /app/release. > > I am wondering if someone knows how I may resolve the issue so I can > get the release built. =A0I appreciate any advice and feedback. =A0Thanks= . > The kernel is built inside the chroot, so all paths are really /app/release/. Your symlink points to /app/release/root/kernels/MYKERNEL. It will be easiest to get rid of the symlink and copy the actual file into your EXTSRCDIR before starting the make release; alternately you could use the LOCAL_PATCHES or LOCAL_SCRIPT variables to import it. --=20 Rob Farmer