mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 01:06:27 +00:00
Add a (non modular) upstream kernel build, for pinata alpha and general testing
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
cfc5296bda
commit
33056820a4
32
kernel/Dockerfile
Normal file
32
kernel/Dockerfile
Normal file
@ -0,0 +1,32 @@
|
||||
FROM debian:jessie
|
||||
|
||||
ENV KERNEL_VERSION 4.1.13
|
||||
|
||||
RUN apt-get update && apt-get -y upgrade && apt-get -y install \
|
||||
unzip \
|
||||
xz-utils \
|
||||
curl \
|
||||
bc \
|
||||
build-essential \
|
||||
cpio \
|
||||
gcc libc6 libc6-dev \
|
||||
kmod \
|
||||
squashfs-tools \
|
||||
genisoimage \
|
||||
xorriso \
|
||||
syslinux \
|
||||
isolinux \
|
||||
automake \
|
||||
pkg-config \
|
||||
p7zip-full
|
||||
|
||||
ADD https://www.kernel.org/pub/linux/kernel/v4.x/linux-${KERNEL_VERSION}.tar.xz .
|
||||
|
||||
RUN cat linux-${KERNEL_VERSION}.tar.xz | tar --absolute-names -xJ && mv /linux-${KERNEL_VERSION} /linux
|
||||
|
||||
COPY kernel_config /linux/.config
|
||||
|
||||
RUN jobs=$(nproc); \
|
||||
cd /linux && \
|
||||
make -j ${jobs} oldconfig && \
|
||||
make -j ${jobs} bzImage
|
8
kernel/Makefile
Normal file
8
kernel/Makefile
Normal file
@ -0,0 +1,8 @@
|
||||
all: vmlinuz64
|
||||
|
||||
vmlinuz64:
|
||||
docker build -t mobykernel:test .
|
||||
docker run -i mobykernel:test cat /linux/arch/x86_64/boot/bzImage > vmlinuz64
|
||||
|
||||
clean:
|
||||
rm vmlinuz64
|
3
kernel/README.md
Normal file
3
kernel/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
Temporary non modular kernel config for pinata alpha
|
||||
|
||||
TODO: build with Alpine and/or use Alpine kernels - needs some patches.
|
3253
kernel/kernel_config
Normal file
3253
kernel/kernel_config
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user