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

From Alpine Linux
m (Anthumchris moved page User:Anthumchris/kernel/howto to User:How to build the Alpine Linux kernel: Misspelled title)
m (Anthumchris moved page User:How to build the Alpine Linux kernel to User:Anthumchris:How to build the Alpine Linux kernel: this wiki is confusing me and I moved to the wrong place outside my userspace)
(No difference)

Revision as of 17:59, 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 the kernel

Run as root:

# add required packages
apk add alpine-sdk

# add non-root user to abuild group
addgroup USERNAME abuild

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 the kernel

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


See Also