User:Anthumchris:How to build the Alpine Linux kernel: Difference between revisions
Anthumchris (talk | contribs) No edit summary |
Anthumchris (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
== How build the Alpine Linux kernel == | == How build the Alpine Linux kernel == | ||
A customized build of the Alpine Linux | A customized build of the Alpine Linux may be needed if you are experimenting with adding/removing kernel features and modules. For example, Alpine releases multiple [[Kernels]kernels] that vary in features and file sizes. Alpine kernels extend the standard [https://www.kernel.org/linux.html Linux kernel] and build within a few minutes to a few hours (depending on the speed of your system) using <code>[[abuild]]</code>, [https://gitlab.alpinelinux.org/alpine/aports aports], and [https://pkgs.alpinelinux.org/package/edge/main/x86_64/alpine-sdk alpine-sdk]. | ||
== Before you start == | == Before you start == | ||
A running instance of Alpine Linux and a non-root user with wheel/ | A running instance of Alpine Linux and a non-root user with [https://pkgs.alpinelinux.org/package/edge/main/x86_64/doas doas] (<code>wheel</code> group) privileges are required to use <code>[[abuild]]</code>. | ||
== Build & install the kernel == | == Build & install the kernel == | ||
Line 9: | Line 9: | ||
=== Build === | === Build === | ||
<pre> | <pre> | ||
doas apk add alpine-sdk | |||
doas addgroup USERNAME abuild # your non-root user | |||
apk add alpine-sdk | |||
addgroup USERNAME abuild | |||
git clone --depth 1 https://gitlab.alpinelinux.org/alpine/aports.git | git clone --depth 1 https://gitlab.alpinelinux.org/alpine/aports.git | ||
abuild-keygen --append | abuild-keygen --append --install | ||
cd aports/main/linux-lts/ | cd aports/main/linux-lts/ |
Revision as of 19:11, 3 December 2024
How build the Alpine Linux kernel
A customized build of the Alpine Linux may be needed if you are experimenting with adding/removing kernel features and modules. For example, Alpine releases multiple [[Kernels]kernels] that vary in features and file sizes. Alpine kernels extend the standard Linux kernel and build within a few minutes to a few hours (depending on the speed of your system) using abuild
, aports, and alpine-sdk.
Before you start
A running instance of Alpine Linux and a non-root user with doas (wheel
group) privileges are required to use abuild
.
Build & install the kernel
Build
doas apk add alpine-sdk doas addgroup USERNAME abuild # your non-root user git clone --depth 1 https://gitlab.alpinelinux.org/alpine/aports.git abuild-keygen --append --install cd aports/main/linux-lts/ time abuild -crK
Install
apk add /home/USERNAME/packages/.....................................