Freebsd building a kernel: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 13: Zeile 13:
 
*XINUXKERNEL
 
*XINUXKERNEL
 
Example:
 
Example:
options        IPSEC_NAT_T
+
 
 
==cd to /usr/src==
 
==cd to /usr/src==
 
*cd /usr/src
 
*cd /usr/src

Version vom 1. November 2017, 11:16 Uhr

Prerequisites

Install subversion

  • pkg install -y subversion
  • rehash

Get the kernel

Kernel building

Go to the right directory

  • cd /usr/src/sys/`uname -m`/conf

Save the generic config

  • cp GENERIC XINUXKERNEL

Add an option to the new file

  • XINUXKERNEL

Example:

cd to /usr/src

  • cd /usr/src

Build

  • make buildkernel KERNCONF=XINUXKERNEL

Install

  • make install KERNCONF=XINUXKERNEL

Links