Herbert J. Skuhra
2016-Dec-12 23:40 UTC
make buildkernel does not respect KERNCONF or JOBS in /etc/make.conf
tech-lists skrev:> > Hi, > > Yep I'm sure. The only extra I've added is for > nvidia-driver. Everything else is a "without" directive. My > /etc/src.conf looks like this: > > # less src.conf > PORTS_MODULES=x11/nvidia-driver > [...] > This is the error I get when I try to build kernel and world the old way: > > /usr/src # make cleandir && make clean && make buildworld && make > buildkernel && make installkernel && mergemaster -p > [...] > SRC_BASE=/storage/usr/src OSVERSION=1100506 > WRKDIRPREFIX=/usr/obj/storage/usr/src/sys/PUMPKIN GENERIC make -B clean all^^^^^^^^^^^^^^^> env: GENERIC: No such file or directory > *** Error code 127PORTS_MODULES does not work if KERNCONF contains multiple kernels: The problem is obviously in /usr/src/sys/conf/kern.post.mk (line 66): WRKDIRPREFIX?= ${MAKEOBJDIRPREFIX}${SRC_BASE}/sys/${KERNCONF} -- Herbert
tech-lists
2016-Dec-13 10:00 UTC
make buildkernel does not respect KERNCONF or JOBS in /etc/make.conf
On 12/12/2016 23:40, Herbert J. Skuhra wrote:> PORTS_MODULES does not work if KERNCONF contains multiple kernels: > > The problem is obviously in /usr/src/sys/conf/kern.post.mk (line 66): > > WRKDIRPREFIX?= ${MAKEOBJDIRPREFIX}${SRC_BASE}/sys/${KERNCONF}hmm! I didn't know that. I can't confirm exactly when the old way stopped working and when I started defining modules in src.conf. If I wanted to install a known, good kernel as /boot/workingkernel with all of its modules, so that I can avoid kernel.old being a bad kernel and kernel being non-bootable, how would I go about doing it? many thanks, -- J.