Date: Sun, 29 Jan 2012 19:14:45 -0800 From: Rob Farmer <rfarmer@predatorlabs.net> To: Rick Miller <vmiller@hostileadmin.com> Cc: freebsd-questions@freebsd.org Subject: Re: make release custom kernel conf not found Message-ID: <CANT_JfwMj60vndg=cvNjOBUOLg5rxX16X0gHP3iV91Wahi_7cQ@mail.gmail.com> In-Reply-To: <CAHzLAVG1%2Bx%2BA7%2Bzo1%2B80kKBvrQgKFxzo9RbCXBRQWfQ2tDZCTA@mail.gmail.com> References: <CAHzLAVG1%2Bx%2BA7%2Bzo1%2B80kKBvrQgKFxzo9RbCXBRQWfQ2tDZCTA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 29, 2012 at 9:03 AM, Rick Miller <vmiller@hostileadmin.com> 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/<whatever>. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANT_JfwMj60vndg=cvNjOBUOLg5rxX16X0gHP3iV91Wahi_7cQ>