mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
initial changes towards building kernel for arm
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
parent
d9f3649dcf
commit
c655429a32
@ -1,6 +1,7 @@
|
|||||||
FROM debian:unstable
|
FROM debian:unstable
|
||||||
|
|
||||||
ENV KERNEL_VERSION 4.1.12
|
ARG KERNEL_VERSION=4.1.12
|
||||||
|
ARG ARCH=x86_64
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y upgrade && apt-get -y install \
|
RUN apt-get update && apt-get -y upgrade && apt-get -y install \
|
||||||
unzip \
|
unzip \
|
||||||
@ -52,16 +53,20 @@ RUN git clone -b "$AUFS_BRANCH" "$AUFS_REPO" /aufs && \
|
|||||||
patch -p1 < "$patch"; \
|
patch -p1 < "$patch"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
COPY kernel_config /linux/.config
|
COPY kernel_config /linux/arch/x86/configs/x86_64_defconfig
|
||||||
|
COPY kernel_config.arm /linux/arch/arm/configs/versatile_defconfig
|
||||||
|
|
||||||
RUN jobs=$(nproc); \
|
RUN jobs=$(nproc); \
|
||||||
cd /linux && \
|
cd /linux && \
|
||||||
make oldconfig && \
|
make ARCH=$ARCH defconfig && \
|
||||||
make -j ${jobs} bzImage && \
|
make ARCH=$ARCH oldconfig && \
|
||||||
make INSTALL_HDR_PATH=/tmp/kernel-headers headers_install
|
make ARCH=$ARCH -j ${jobs} && \
|
||||||
|
make ARCH=$ARCH INSTALL_HDR_PATH=/tmp/kernel-headers headers_install
|
||||||
|
|
||||||
# Build aufs tools, do this here as they need kernel headers and to match aufs
|
# Build aufs tools, do this here as they need kernel headers and to match aufs
|
||||||
# Fortunately they are build statically linked
|
# Fortunately they are built statically linked
|
||||||
|
|
||||||
|
# XXX not cross compiled yet!
|
||||||
|
|
||||||
ENV AUFS_TOOLS_COMMIT 5e0c348bd8b1898beb1e043b026bcb0e0c7b0d54
|
ENV AUFS_TOOLS_COMMIT 5e0c348bd8b1898beb1e043b026bcb0e0c7b0d54
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user