DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th October 2016
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default 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
Reply With Quote
  #2   (View Single Post)  
Old 29th October 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

It appears to me that you are making the obj directory both "one time before first building" and during "building" also.
Reply With Quote
  #3   (View Single Post)  
Old 29th October 2016
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

Yes, I am going to remove that redundant step.
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase
Reply With Quote
Reply

Tags
building, cvs, kernel

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 11:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick