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

From Alpine Linux
No edit summary
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
== How build the Alpine Linux kernel ==
''This draft was removed'' and is published at https://wiki.alpinelinux.org/wiki/How_to_build_the_Alpine_Linux_kernel
A customized Alpine Linux kernel 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 ==
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 ===
<pre>
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
</pre>
 
=== Install ===
<pre>
apk add /home/USERNAME/packages/.....................................
</pre>
 
== See Also ==
 
* [[Kernels]]
* [[Custom Kernel]]

Latest revision as of 23:31, 11 December 2024