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 +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 97
97
-DUSE_STATIC_LIBSTDCXX=OFF \
98
98
-DUSE_STATIC_OPENZWAVE=OFF \
99
99
-Wno-dev && \
100
- make && \
100
+ # attempt to set number of cores available for make to use
101
+ set -ex && \
102
+ CPU_CORES=$( < /proc/cpuinfo grep -c processor ) || echo "failed cpu look up" && \
103
+ if echo $CPU_CORES | grep -E -q '^[0-9]+$' ; then \
104
+ : ;\
105
+ if [ "$CPU_CORES" -gt 7 ]; then \
106
+ CPU_CORES=$(( CPU_CORES - 3 )); \
107
+ elif [ "$CPU_CORES" -gt 5 ]; then \
108
+ CPU_CORES=$(( CPU_CORES - 2 )); \
109
+ elif [ "$CPU_CORES" -gt 3 ]; then \
110
+ CPU_CORES=$(( CPU_CORES - 1 )); fi \
111
+ else CPU_CORES="1" ; fi && \
112
+
113
+ make -j $CPU_CORES && \
101
114
make install && \
115
+ set +ex && \
102
116
103
117
# determine runtime packages
104
118
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
+ ** 01.10.2017:** Add branch for stable-3.8153.
110
111
+ ** 28.05.2017:** Rebase to alpine 3.6.
111
112
+ ** 26.02.2017:** Add curl and replace openssl with libressl.
You can’t perform that action at this time.
0 commit comments