]> xenbits.xensource.com Git - people/sstabellini/mojo.git/.git/commitdiff
The Linux build doesn't depend on the Xen and QEMU build. Make it independent.
authorStefano Stabellini <sstabellini@kernel.org>
Wed, 13 Dec 2017 00:20:31 +0000 (16:20 -0800)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 13 Dec 2017 22:20:44 +0000 (14:20 -0800)
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
alpine-dom0/dom0/Dockerfile
alpine-dom0/linux-builder/Dockerfile

index c923afd953f1ddcd46f5f5dacb4423ab946864d6..e60e57cd0cedd03ccadf22178d7d9c76588dab99 100644 (file)
@@ -5,6 +5,7 @@ RUN \
        apk add openrc
 
 ADD udhcpc.script /usr/share/udhcpc/default.script
+COPY --from=mojoos/qemu-builder:qemu-builder /out/ /
 COPY --from=mojoos/linux-builder:linux-builder /out/ /
 
 RUN \
index d8b29a340834584c4ce0e425d9e9d5028801d2fe..0e3e4c91d9e36a23ea99bf10f04ac26121e18b67 100644 (file)
@@ -1,4 +1,4 @@
-FROM mojoos/qemu-builder:qemu-builder as linux-builder
+FROM alpine:3.6 as linux-builder
 
 COPY linux-config /root/
 
@@ -9,8 +9,8 @@ ENV LINUX_VERSION=4.14
 RUN \
     apk update && \
 # Linux build deps
-    apk add bc
-
+    apk add bc curl gcc make binutils-dev build-base libressl-dev \
+    ncurses-dev tar xz xz-dev zlib-dev libelf-dev linux-headers perl
 # Download and build Linux
 RUN \
 cd $SOURCE_DIR && \
@@ -19,6 +19,7 @@ tar xvJf linux-$LINUX_VERSION.tar.xz && \
 cd linux-$LINUX_VERSION && \
 cp $SOURCE_DIR/linux-config .config && \
 make -j "$(getconf _NPROCESSORS_ONLN)" && \
+mkdir -p $OUT_DIR/boot && \
 cp arch/x86/boot/bzImage $OUT_DIR/boot/kernel
 
 ENTRYPOINT ["/bin/sh"]