This repository was archived by the owner on Jan 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 56
56
ln -s /usr/lib/libftdi1.a /usr/lib/libftdi.a && \
57
57
ln -s /usr/include/libftdi1/ftdi.h /usr/include/ftdi.h && \
58
58
59
+
59
60
# build telldus-core
60
61
mkdir -p \
61
62
/tmp/telldus-core && \
@@ -104,8 +105,22 @@ RUN \
104
105
-DUSE_STATIC_LIBSTDCXX=OFF \
105
106
-DUSE_STATIC_OPENZWAVE=OFF \
106
107
-Wno-dev && \
107
- make && \
108
+ # attempt to set number of cores available for make to use
109
+ set -ex && \
110
+ CPU_CORES=$( < /proc/cpuinfo grep -c processor ) || echo "failed cpu look up" && \
111
+ if echo $CPU_CORES | grep -E -q '^[0-9]+$' ; then \
112
+ : ;\
113
+ if [ "$CPU_CORES" -gt 7 ]; then \
114
+ CPU_CORES=$(( CPU_CORES - 3 )); \
115
+ elif [ "$CPU_CORES" -gt 5 ]; then \
116
+ CPU_CORES=$(( CPU_CORES - 2 )); \
117
+ elif [ "$CPU_CORES" -gt 3 ]; then \
118
+ CPU_CORES=$(( CPU_CORES - 1 )); fi \
119
+ else CPU_CORES="1" ; fi && \
120
+
121
+ make -j $CPU_CORES && \
108
122
make install && \
123
+ set +ex && \
109
124
110
125
# determine runtime packages
111
126
RUNTIME_PACKAGES="$( \
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ The user manual is available at [www.domoticz.com][appurl]
106
106
107
107
## Versions
108
108
109
+ + ** 26.11.2017:** Use cpu core counting routine to speed up build time.
109
110
+ ** 28.05.2017:** Rebase to alpine 3.6.
110
111
+ ** 26.02.2017:** Add curl and replace openssl with libressl.
111
112
+ ** 11.02.2017:** Update README.
You can’t perform that action at this time.
0 commit comments