User:Anthumchris:How to build the Alpine Linux kernel: Difference between revisions

From Alpine Linux
No edit summary
No edit summary
Line 5: Line 5:
A running instance of Alpine Linux and a non-root user are required to use <code>[[abuild]]</code>.
A running instance of Alpine Linux and a non-root user are required to use <code>[[abuild]]</code>.


== Build the kernel ==
== Build & install the kernel ==
 
=== Build ===
Run as root:
Run as root:
<pre>
<pre>
Line 22: Line 24:
</pre>
</pre>


== Install the kernel ==
=== Install ===
 
<pre>
<pre>
apk add /home/USERNAME/packages/.....................................
apk add /home/USERNAME/packages/.....................................

Revision as of 18:06, 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 5 minutes to few hours (depending on the speed of your system). The kernel is built using abuild and aports.

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           # install required packages
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

# build/install the kernel
cd aports/main/linux-lts/
time abuild -crK

Install

apk add /home/USERNAME/packages/.....................................

See Also