tests: Use elfutils-dev for kmod tests

Commit 250b14661b ("kernel: Use elfutils-dev instead
of libelf-dev") switched the kernel build to use
elfutils-dev instead of libelf-dev. This caused the kernel
module tests to fail. The still installed libelf-dev and
the dunamically linked objtool (and friends) from the
kernel source package failed to execute.

Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
Rolf Neugebauer 2019-04-05 22:55:51 +01:00
parent 7f3b13aa92
commit 510f26581f
4 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ FROM linuxkit/kernel:4.9.167 AS ksrc
# Extract headers and compile module
FROM linuxkit/alpine:5ce235f4fb55772e7f78871a70bfe26f774fe2b0 AS build
RUN apk add build-base libelf-dev
RUN apk add build-base elfutils-dev
COPY --from=ksrc /kernel-dev.tar /
RUN tar xf kernel-dev.tar

View File

@ -7,7 +7,7 @@ FROM linuxkit/kernel:4.14.110 AS ksrc
# Extract headers and compile module
FROM linuxkit/alpine:5ce235f4fb55772e7f78871a70bfe26f774fe2b0 AS build
RUN apk add build-base libelf-dev
RUN apk add build-base elfutils-dev
COPY --from=ksrc /kernel-dev.tar /
RUN tar xf kernel-dev.tar

View File

@ -7,7 +7,7 @@ FROM linuxkit/kernel:4.19.33 AS ksrc
# Extract headers and compile module
FROM linuxkit/alpine:5ce235f4fb55772e7f78871a70bfe26f774fe2b0 AS build
RUN apk add build-base libelf-dev
RUN apk add build-base elfutils-dev
COPY --from=ksrc /kernel-dev.tar /
RUN tar xf kernel-dev.tar

View File

@ -7,7 +7,7 @@ FROM linuxkit/kernel:5.0.6 AS ksrc
# Extract headers and compile module
FROM linuxkit/alpine:5ce235f4fb55772e7f78871a70bfe26f774fe2b0 AS build
RUN apk add build-base libelf-dev
RUN apk add build-base elfutils-dev
COPY --from=ksrc /kernel-dev.tar /
RUN tar xf kernel-dev.tar