]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a new kernel-pkgs target to create pkg(8) packages from the kernel
authorbapt <bapt@FreeBSD.org>
Sun, 8 Feb 2015 18:12:34 +0000 (18:12 +0000)
committerbapt <bapt@FreeBSD.org>
Sun, 8 Feb 2015 18:12:34 +0000 (18:12 +0000)
commit806d247de0d11be5ffc4a482f7c623092dafebe4
tree94ddbb9f46f70e3a33f57104e0092d799b5ffad1
parent9141a6bf90564081084d1eb54e643d2a9679bc05
Add a new kernel-pkgs target to create pkg(8) packages from the kernel

The version scheme used is the following:
For stable/current branches:
${REVISION}.sYYYYMMDDhhmmss

s standing for snapshot

For releases branches:
${REVISION}_${PATCHLEVEL}

When packaging the kernel 2 different package are created per kernel
release (only contains the regular kernel and modules)
debug (contains the .symbols files)

Note that package the kernel (packaging world will follow the same rule) can
only by passing -DNO_ROOT to the build (hence can be done as a regular user)

To package the kernel:
make buildkernel
make distributekernel DESTDIR=/somewhere -DNO_ROOT
make kernel-pkgs DESTDIR=/somewhere -DNO_ROOT

The packages will be created inside the DESTDIR
Makefile.inc1