Skip to content

Commit

Permalink
build acrn-kernel without network
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Deitcher <avi@deitcher.net>
  • Loading branch information
deitch committed Nov 13, 2022
1 parent dbb0a42 commit dd2863c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 7 additions & 5 deletions pkg/acrn-kernel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM lfedge/eve-alpine:145f062a40639b6c65efa36bed1c5614b873be52 as kernel-build

ENV BUILD_PKGS \
argp-standalone automake bash bc binutils-dev bison build-base curl \
argp-standalone automake bash bc binutils-dev bison build-base \
diffutils flex git gmp-dev gnupg installkernel kmod openssl-dev \
linux-headers ncurses-dev python3 findutils sed squashfs-tools tar \
xz xz-dev zlib-dev openssl lz4 lz4-libs elfutils-libelf elfutils-dev
Expand All @@ -11,10 +11,12 @@ RUN eve-alpine-deploy.sh
# Download acrn-kernel
ENV KERNEL_VERSION acrn-2019w39.3-150000p
ENV KERNEL_SOURCE=https://github.com/projectacrn/acrn-kernel/archive/${KERNEL_VERSION}.tar.gz
RUN \
[ -f "$(basename ${KERNEL_SOURCE})" ] || curl -fsSLO "${KERNEL_SOURCE}" && \
tar --absolute-names -xz < "$(basename ${KERNEL_SOURCE})" && mv "/acrn-kernel-${KERNEL_VERSION}" /acrn-kernel
RUN ls -l /acrn-kernel


# hadolint ignore=DL3020
ADD ${KERNEL_SOURCE} /kernel.tar.gz
RUN tar --absolute-names -xz < /kernel.tar.gz && mv "/acrn-kernel-${KERNEL_VERSION}" /acrn-kernel
RUN ls -l /acrn-kernel

# Apply local patches
COPY patches-${KERNEL_VERSION} /patches
Expand Down
1 change: 0 additions & 1 deletion pkg/acrn-kernel/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
image: eve-acrn-kernel
org: lfedge
network: yes

0 comments on commit dd2863c

Please sign in to comment.