mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Dockerfile: add udev, libusb and hidapi build
This commit is contained in:
parent
4cbb476cd1
commit
6789385cd0
1 changed files with 39 additions and 1 deletions
40
Dockerfile
40
Dockerfile
|
@ -18,7 +18,9 @@ RUN set -ex && \
|
||||||
libtool-bin \
|
libtool-bin \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bzip2
|
bzip2 \
|
||||||
|
xsltproc \
|
||||||
|
gperf
|
||||||
|
|
||||||
WORKDIR /usr/local
|
WORKDIR /usr/local
|
||||||
|
|
||||||
|
@ -109,6 +111,42 @@ RUN set -ex \
|
||||||
&& make check \
|
&& make check \
|
||||||
&& make install
|
&& make install
|
||||||
|
|
||||||
|
# Udev
|
||||||
|
ARG UDEV_VERSION=v3.2.6
|
||||||
|
ARG UDEV_HASH=0c35b136c08d64064efa55087c54364608e65ed6
|
||||||
|
RUN set -ex \
|
||||||
|
&& git clone https://github.com/gentoo/eudev -b ${UDEV_VERSION} \
|
||||||
|
&& cd eudev \
|
||||||
|
&& test `git rev-parse HEAD` = ${UDEV_HASH} || exit 1 \
|
||||||
|
&& ./autogen.sh \
|
||||||
|
&& CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure --disable-gudev --disable-introspection --disable-hwdb --disable-manpages --disable-shared \
|
||||||
|
&& make \
|
||||||
|
&& make install
|
||||||
|
|
||||||
|
# Libusb
|
||||||
|
ARG USB_VERSION=v1.0.22
|
||||||
|
ARG USB_HASH=0034b2afdcdb1614e78edaa2a9e22d5936aeae5d
|
||||||
|
RUN set -ex \
|
||||||
|
&& git clone https://github.com/libusb/libusb.git -b ${USB_VERSION} \
|
||||||
|
&& cd libusb \
|
||||||
|
&& test `git rev-parse HEAD` = ${USB_HASH} || exit 1 \
|
||||||
|
&& ./autogen.sh \
|
||||||
|
&& CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure --disable-shared \
|
||||||
|
&& make \
|
||||||
|
&& make install
|
||||||
|
|
||||||
|
# Hidapi
|
||||||
|
ARG HIDAPI_VERSION=hidapi-0.8.0-rc1
|
||||||
|
ARG HIDAPI_HASH=40cf516139b5b61e30d9403a48db23d8f915f52c
|
||||||
|
RUN set -ex \
|
||||||
|
&& git clone https://github.com/signal11/hidapi -b ${HIDAPI_VERSION} \
|
||||||
|
&& cd hidapi \
|
||||||
|
&& test `git rev-parse HEAD` = ${HIDAPI_HASH} || exit 1 \
|
||||||
|
&& ./bootstrap \
|
||||||
|
&& CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure --enable-static --disable-shared \
|
||||||
|
&& make \
|
||||||
|
&& make install
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue