Skip to content

Commit fea3cc8

Browse files
committed
docker: Copy all in-tree and out-of-tree modules to final image
This is a short-term solution. Long-term solution: #49 Signed-off-by: Hersh Pathak hersh.pathak@intel.com
1 parent b2a3f80 commit fea3cc8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

docker/intel-dgpu-driver.Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ RUN git clone -b ${I915_RELEASE} --single-branch https://github.com/intel-gpu/in
4848
&& cp defconfigs/drm .config \
4949
&& make olddefconfig && make -j $(nproc) && make modules_install
5050

51-
# Create /build/modules directory with all *.ko and *.ko.xz files
52-
RUN mkdir -p /build/modules \
53-
&& find /lib/modules/${KERNEL_FULL_VERSION}/ \
54-
-name "*.ko" -o -name "*.ko.xz" -o -name "modules.order" -o -name "modules.builtin" -type f \
55-
| xargs -I {} install -D {} /build/modules/
56-
5751
# Firmware
5852
RUN git clone -b ${FIRMWARE_RELEASE} --single-branch https://github.com/intel-gpu/intel-gpu-firmware.git \
5953
&& install -D /build/intel-gpu-firmware/COPYRIGHT /licenses/firmware/COPYRIGHT \
@@ -83,7 +77,7 @@ RUN microdnf update -y && rm -rf /var/cache/yum
8377
RUN microdnf -y install kmod findutils && microdnf clean all
8478
COPY --from=builder /licenses/ /licenses/
8579
COPY --from=builder /etc/driver-toolkit-release.json /etc/
86-
COPY --from=builder /build/modules/ /opt/lib/modules/${KERNEL_FULL_VERSION}/
80+
COPY --from=builder /lib/modules/${KERNEL_FULL_VERSION}/ /opt/lib/modules/${KERNEL_FULL_VERSION}/
8781
COPY --from=builder /build/firmware/ /firmware/i915/
8882

8983
RUN depmod -b /opt ${KERNEL_FULL_VERSION}

0 commit comments

Comments
 (0)