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 11: | Line 11: | ||
## Run as root | ## Run as root | ||
apk add alpine-sdk | apk add alpine-sdk | ||
addgroup USERNAME abuild # your non-root user | addgroup USERNAME abuild # your non-root user | ||
</pre> | </pre> |
Revision as of 18:29, 3 December 2024
How build the Alpine Linux kernel
A customized build of the Alpine Linux kernel may be needed if you are experimenting with adding/removing kernel features and modules. The Alpine kernel extends the standard Linux kernel and builds 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 are required to use abuild
.
Build & install the kernel
Build
## Run as root apk add alpine-sdk addgroup USERNAME abuild # your non-root user
## Run as non-root user git clone --depth 1 https://gitlab.alpinelinux.org/alpine/aports.git abuild-keygen --append cd aports/main/linux-lts/ time abuild -crK
Install
apk add /home/USERNAME/packages/.....................................