Created
April 19, 2018 14:05
-
-
Save nealey/f3bb45dd268d4f198b7fe7c451e65b1a to your computer and use it in GitHub Desktop.
Build Rocket r750 driver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM bugroger/coreos-developer:${COREOS_VERSION} as BUILD | |
ENV R750_VERSION=v1.2.10.1-17_01_23 | |
RUN emerge-gitclone | |
RUN . /usr/share/coreos/release && \ | |
git -C /var/lib/portage/coreos-overlay checkout build-${COREOS_RELEASE_VERSION%%.*} | |
RUN emerge -gKv coreos-sources > /dev/null | |
RUN cp /usr/lib64/modules/*/build/.config /usr/src/linux/ | |
RUN make -C /usr/src/linux modules_prepare | |
WORKDIR /tmp | |
RUN wget http://www.highpoint-tech.com/BIOS_Driver/R750/Linux/R750_Linux_Src_${R750_VERSION}.tar.gz | |
RUN tar xzf R750_Linux_Src_${R750_VERSION}.tar.gz | |
RUN echo y | sh -x r750-linux-src-${R750_VERSION}.bin --nox11 | |
RUN cat /usr/share/hptdrv/r750/inc/linux_64mpa/Makefile.def | |
RUN ls -l /lib/modules/ | |
RUN make KERNELDIR=/lib/modules/*/build -C /usr/share/hptdrv/r750/product/r750/linux | |
FROM alpine | |
COPY --from=BUILD /usr/share/hptdrv/r750/product/r750/linux/r750.ko / | |
CMD ["insmod", "/r750.ko"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment