25 lines
479 B
Docker
25 lines
479 B
Docker
FROM fedora:latest
|
|
ENV KERNEL_VERSION=5.10.3
|
|
|
|
RUN dnf install -y \
|
|
bc \
|
|
bison \
|
|
clang \
|
|
cpio \
|
|
curl \
|
|
diffutils \
|
|
elfutils-libelf-devel \
|
|
findutils \
|
|
flex \
|
|
hostname \
|
|
make \
|
|
ncurses-devel \
|
|
patch \
|
|
xz
|
|
|
|
RUN mkdir -p /build/ramfs
|
|
RUN curl https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${KERNEL_VERSION}.tar.xz | tar xJC /build
|
|
RUN mv /build/linux* /build/kernel
|
|
COPY lam.config /build/kernel/.config
|
|
COPY buildramfs.sh /build/ramfs/buildramfs.sh
|