aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoroccanMalinois <MoroccanMalinois@protonmail.com>2018-10-29 09:17:32 +0100
committerMoroccanMalinois <MoroccanMalinois@protonmail.com>2018-10-29 09:17:32 +0100
commit6789385cd0b98a834e87a4ee5764f217f7ef4271 (patch)
treec1770ea9d4829e532a99c9e514c3d569223ed299
parentMerge pull request #4721 (diff)
downloadmonero-6789385cd0b98a834e87a4ee5764f217f7ef4271.tar.xz
Dockerfile: add udev, libusb and hidapi build
Diffstat (limited to '')
-rw-r--r--Dockerfile40
1 files changed, 39 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index cd3e7df70..86d833a98 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,7 +18,9 @@ RUN set -ex && \
libtool-bin \
autoconf \
automake \
- bzip2
+ bzip2 \
+ xsltproc \
+ gperf
WORKDIR /usr/local
@@ -109,6 +111,42 @@ RUN set -ex \
&& make check \
&& 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
COPY . .