Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3424

Programming • Compiling linux kernel debian-way

$
0
0
Hello, really quick question.
I didn't find official debian documentation straightly explaining how to complile linux-kernel the "debian way".
So I'd like to ask if following Dockerfile is valid.

Code:

cp "/boot/config-$(uname -r)" .

Code:

FROM debian:12-slimWORKDIR /usr/srcRUN echo "deb-src http://deb.debian.org/debian bookworm main" >> /etc/apt/sources.list \    && apt update \    && apt install -y build-essential \    libncurses-dev \    bison \    flex \    libssl-dev \    libelf-dev \    wget \    git \    sudo \    dpkg-dev \    && apt build-dep -y linux \    && apt source linuxCOPY . /tmpRUN cd linux-* \    && cat /tmp/config* > .config \    && sed -i 's/# CONFIG_ACPI_EC_DEBUGFS_DEBUGFS is not set/CONFIG_ACPI_EC_DEBUGFS=m/' .config \    && make olddefconfig \    && make -j$(nproc) \    && make modules_install \    && make install
And hopefully get some further instructions, docs where do I copy compiled kernel from and to.
To install it on host machine.

Statistics: Posted by sequencer — 2024-10-18 17:36 — Replies 2 — Views 107



Viewing all articles
Browse latest Browse all 3424

Trending Articles