|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Building only kernel by new build infrastructure OpenBSD-current
Page
https://www.openbsd.org/faq/current.html states that since Oct 6th, 2016 there is new infrastructure to build base and since Oct 14th, 2016 for building kernel. I am only interested in updating kernel source code and building kernel. I would like to consult if I do this correctly. I understand that building kernel with external patches is not supported by Project and I can not report problems not reproducible on GENERIC or GENERIC.MP kernel from official snapshots. Code:
## One-time: I have removed all old files - not required to succesfuly perform clean-up ## Backup your patches, if you have any # rm -rf /usr/src # mkdir -p /usr/src/sys # chown -R root:wsrc /usr/src # chmod -R 660 /usr/src # find /usr/src/ -type d -exec chmod ug+x {} \; ## One-time: Fetching kernel source and update to specified date - for those who removed all old files $ cd /usr $ export CVSROOT=anoncvs@ftp.hostserver.de:/cvs $ cvs -qd ${CVSROOT} checkout -P src/sys $ cd /usr/src $ time cvs -q -d${CVSROOT} up -D "2016-10-27 11:31:06" -Pd sys ## One-time clean up for those, who do not removed all files from CVS directory $ cd /sys $ rm -r arch/*/compile/[GR]* $ rm arch/*/compile/.cvsignore $ cd /usr/src $ time cvs -q -d${CVSROOT} up -D "2016-10-27 11:31:06" -Pd sys ## Updating $ cd /usr/src $ time cvs -q -d${CVSROOT} up -D "2016-10-27 11:31:06" -Pd sys ## One-time before first building $ cd /sys/arch/$(machine)/compile/GENERIC.MP ## my: cd /usr/src/sys/arch/amd64/compile/GENERIC.MP/ $ doas /usr/bin/make obj ## my doas.conf: permit nopass open as root cmd /usr/bin/make args obj ## building $ cd /sys/arch/$(machine)/compile/GENERIC.MP ## my: cd /usr/src/sys/arch/amd64/compile/GENERIC.MP/ $ make clean $ doas /usr/bin/make obj ## my doas.conf: permit nopass open as root cmd /usr/bin/make args obj $ make config $ make clean $ time make $ doas /usr/bin/make install
__________________
Signature: Furthermore, I consider that systemd must be destroyed. Based on Latin oratorical phrase Last edited by e1-531g; 29th October 2016 at 10:39 AM. Reason: added separate updating section |
|
|||
Yes, I am going to remove that redundant step.
__________________
Signature: Furthermore, I consider that systemd must be destroyed. Based on Latin oratorical phrase |
Tags |
building, cvs, kernel |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
build a kernel | philo_neo71 | NetBSD General | 12 | 18th December 2015 04:58 AM |
building kernel modules | bashrules | NetBSD General | 3 | 19th November 2015 08:08 PM |
OBSD 4.6 Installed - Problem building Kernel for -current | IronForge | OpenBSD Installation and Upgrading | 11 | 10th November 2009 09:34 PM |
FreeBSD 7.0 kernel building... | daemonFromHeaven | FreeBSD Installation and Upgrading | 4 | 3rd September 2008 02:42 PM |
Updating FreeBSD and Building a Custom Kernel | bsdforlife | FreeBSD Installation and Upgrading | 8 | 16th August 2008 02:45 AM |