Skip to content

Commit dd20d4e

Browse files
committed
fixes for building the latest nvidia drivers
The latest nvidia drivers failed to build without bison, flex, and Module.symvers from the developer container.
1 parent f4ca01f commit dd20d4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ubuntu:17.10 as BUILD
22
MAINTAINER source{d}
33

44
RUN apt-get -y update && \
5-
apt-get -y install curl git bc make dpkg-dev libssl-dev module-init-tools p7zip-full libelf-dev && \
5+
apt-get -y install curl git bc make dpkg-dev libssl-dev module-init-tools p7zip-full libelf-dev bison flex && \
66
apt-get autoremove && \
77
apt-get clean
88

@@ -29,6 +29,7 @@ RUN git checkout -b stable v${KERNEL_TAG} && rm -rf .git
2929
RUN curl ${COREOS_RELEASE_URL}/coreos_developer_container.bin.bz2 | \
3030
bzip2 -d > /tmp/coreos_developer_container.bin
3131
RUN 7z e /tmp/coreos_developer_container.bin "usr/lib64/modules/*-coreos*/build/.config"
32+
RUN 7z e /tmp/coreos_developer_container.bin "usr/lib64/modules/*-coreos*/build/Module.symvers"
3233
RUN 7z e /tmp/coreos_developer_container.bin "usr/lib64/modules/*-coreos*/build/include/config/kernel.release" && cp kernel.release /tmp/kernel.release
3334
RUN make modules_prepare
3435
RUN sed -i -e "s/${KERNEL_VERSION}/$(cat /tmp/kernel.release)/" include/generated/utsrelease.h

0 commit comments

Comments
 (0)