Skip to content

Commit

Permalink
Add support for changing Vendor and Buildhost for the driver RPM
Browse files Browse the repository at this point in the history
Signed-off-by: Costin Gamenț <cgament@redhat.com>
  • Loading branch information
kwozyman committed Jul 25, 2024
1 parent 55610a8 commit 57a9745
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions training/nvidia-bootc/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ ARG TARGET_ARCH=''

ARG DRIVER_VERSION='550.90.07'

ARG VENDOR=''
ARG RPM_HOST=''

USER builder

WORKDIR /home/builder
Expand Down Expand Up @@ -63,6 +66,8 @@ RUN if [ "${KERNEL_VERSION}" == "" ]; then \
--define "kernel_dist ${KDIST}" \
--define "driver ${DRIVER_VERSION}" \
--define "driver_branch ${DRIVER_STREAM}" \
--define "vendor ${VENDOR:-undefined}" \
--define "_buildhost ${RPM_HOST:-${HOSTNAME}}" \
-v -bb SPECS/kmod-nvidia.spec

FROM ${BASEIMAGE}
Expand Down

0 comments on commit 57a9745

Please sign in to comment.