Re: tweaking installkernel

看板DFBSD_submit作者時間21年前 (2004/08/08 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/6 (看更多)
Hmm. Well, I like the directory creation part but I do not want to move the manual pages out of the context of their related module build. -Matt :Hello. :Have you ever created a single file named /modules and made your :system unbootable? Have you tried installing your kernel and modules :under $DESTDIR and installkernel suddenly stopped because it tried to :install stupid scripts and manpages no matter what options you specified? :Well, you're not alone, and here's the patch to fix that. : :The patch removes four scripts and four manpages, : sys/dev/misc/joy joy.8 joy.sh : sys/emulation/ibcs2 ibcs2.8 ibcs2.sh : sys/emulation/linux linux.8 linux.sh : sys/emulation/svr4 linux.8 svr4.sh :moves ef.4 into share/man/man4, and disconnect them from module build :(moving ef.4 should probably be a repo-copy to preserve revisions). :The patch also takes care of creating ${DESTDIR} and ${KMODDIR} before :installing the kernel and the modules. With this patch applied (note: :you need to apply the patch before {build,native}world, because :${KRNLOBJDIR}/${KERNCONF}/Makefile should be generated from patched :/sys/conf/Makefile.${ARCH}), you can do : :# make DESTDIR=/test installkernel :to install kernel as /test/kernel and modules as /test/modules/*.ko, and : :# make KMODDIR='' DESTDIR=/test installkernel :to install kernel and modules into a directory. In this case, multiple :runs of installkernel creates a backup directory named /test.old and :copy the previous version(including the kernel) into it. : :Regards.
文章代碼(AID): #115Ha400 (DFBSD_submit)
文章代碼(AID): #115Ha400 (DFBSD_submit)