make: use $(nproc) instead of hard-coded number of cores

Change-Id: Ie93b81a8a9206c47c4e4d4834fc5c03d9bf4254c
changes/32/19232/1
Vadim Yanitskiy 2 years ago
parent fc5cab9e3a
commit e6e2b06689
  1. 4
      gr-gsm-master/Dockerfile
  2. 2
      osmo-bsc-master/Dockerfile
  3. 2
      osmo-bts-master/Dockerfile
  4. 20
      osmo-gerrit-libosmo/Dockerfile
  5. 2
      osmo-ggsn-master/Dockerfile
  6. 2
      osmo-hlr-master/Dockerfile
  7. 2
      osmo-hnbgw-master/Dockerfile
  8. 2
      osmo-mgw-master/Dockerfile
  9. 2
      osmo-msc-master/Dockerfile
  10. 2
      osmo-nitb-master/Dockerfile
  11. 2
      osmo-pcu-master/Dockerfile
  12. 4
      osmo-remsim-master/Dockerfile
  13. 2
      osmo-sgsn-master/Dockerfile
  14. 2
      osmo-sip-master/Dockerfile
  15. 2
      osmo-stp-master/Dockerfile
  16. 2
      osmo-uecups-master/Dockerfile
  17. 4
      osmocom-bb-host-master/Dockerfile

@ -57,7 +57,7 @@ RUN cd libosmocore \
--disable-doxygen \
--disable-pcsc \
--prefix=/usr \
&& make -j5 \
&& make "-j$(nproc)" \
&& make install \
&& make distclean
@ -74,7 +74,7 @@ RUN cd gr-gsm \
-Wno-dev \
-DENABLE_GRCC=OFF \
../ \
&& make -j5 \
&& make "-j$(nproc)" \
&& make install \
&& cd ../ \
&& rm -rf build/

@ -61,7 +61,7 @@ RUN cd osmo-bsc && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \
make -j8 install
make "-j$(nproc)" install
VOLUME /data

@ -62,7 +62,7 @@ RUN cd osmo-bts && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure --enable-trx && \
make -j8 install
make "-j$(nproc)" install
VOLUME /data

@ -48,7 +48,7 @@ RUN cd libasn1c && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure && \
make -j8 && \
make "-j$(nproc)" && \
sudo make install && \
make clean && \
sudo ldconfig
@ -59,7 +59,7 @@ RUN cd libsmpp34 && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure && \
make -j1 && \
make "-j$(nproc)" && \
sudo make install && \
make clean && \
sudo ldconfig
@ -70,7 +70,7 @@ RUN cd libosmocore && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure && \
make -j8 && \
make "-j$(nproc)" && \
sudo make install && \
make clean && \
sudo ldconfig
@ -82,7 +82,7 @@ RUN cd libosmo-abis && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure && \
make -j8 && \
make "-j$(nproc)" && \
sudo make install && \
make clean && \
sudo ldconfig
@ -92,7 +92,7 @@ RUN cd libosmo-netif && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure && \
make -j8 && \
make "-j$(nproc)" && \
sudo make install && \
make clean && \
sudo ldconfig
@ -102,7 +102,7 @@ RUN cd libosmo-sccp && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure && \
make -j8 && \
make "-j$(nproc)" && \
sudo make install && \
make clean && \
sudo ldconfig
@ -112,7 +112,7 @@ RUN cd osmo-mgw && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure && \
make -j8 && \
make "-j$(nproc)" && \
sudo make install && \
make clean && \
sudo ldconfig
@ -122,7 +122,7 @@ RUN cd osmo-iuh && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure && \
make -j8 && \
make "-j$(nproc)" && \
sudo make install && \
make clean && \
sudo ldconfig
@ -132,11 +132,11 @@ RUN cd osmo-ggsn && \
git fetch && git checkout -f -B master origin/master && \
autoreconf -fi && \
./configure && \
make -j8 && \
make "-j$(nproc)" && \
sudo make install && \
make clean && \
sudo ldconfig
# example command which builds a single osmo-* application at 'docker run' time in tmpfs
CMD /bin/sh -c 'cd /tmpfs && git clone --reference /build/openbsc git://git.osmocom.org/openbsc.git && cd openbsc && git checkout -f -B master origin/master && cd openbsc && autoreconf -fi && ./configure --enable-nat --enable-osmo-bsc --enable-smpp --enable-vty-tests --enable-external-tests && make -j8 check'
CMD /bin/sh -c 'cd /tmpfs && git clone --reference /build/openbsc git://git.osmocom.org/openbsc.git && cd openbsc && git checkout -f -B master origin/master && cd openbsc && autoreconf -fi && ./configure --enable-nat --enable-osmo-bsc --enable-smpp --enable-vty-tests --enable-external-tests && make "-j$(nproc)" check'

@ -50,7 +50,7 @@ RUN cd osmo-ggsn && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \
make -j8 install && \
make "-j$(nproc)" install && \
ldconfig
VOLUME /data

@ -56,7 +56,7 @@ RUN cd osmo-hlr && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \
make -j8 install && \
make "-j$(nproc)" install && \
ldconfig
VOLUME /data

@ -35,7 +35,7 @@ RUN cd osmo-iuh && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \
make -j8 install && \
make "-j$(nproc)" install && \
ldconfig
VOLUME /data

@ -56,7 +56,7 @@ RUN cd osmo-mgw && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \
make -j8 install && \
make "-j$(nproc)" install && \
ldconfig
VOLUME /data

@ -70,7 +70,7 @@ RUN cd osmo-msc && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure --enable-smpp --enable-iu && \
make -j8 install
make "-j$(nproc)" install
VOLUME /data

@ -36,7 +36,7 @@ RUN cd openbsc/openbsc && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure --enable-nat --enable-osmo-bsc --enable-smpp && \
make -j8 install && \
make "-j$(nproc)" install && \
ldconfig
VOLUME /data

@ -52,7 +52,7 @@ RUN cd osmo-pcu && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \
make -j8 install
make "-j$(nproc)" install
VOLUME /data

@ -28,7 +28,7 @@ RUN case "$DISTRO" in \
# build virtualsmartcard
RUN git clone https://github.com/frankmorgner/vsmartcard.git
RUN cd vsmartcard/virtualsmartcard && autoreconf -fi && ./configure && make -j8 install
RUN cd vsmartcard/virtualsmartcard && autoreconf -fi && ./configure && make "-j$(nproc)" install
ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
@ -91,7 +91,7 @@ RUN cd osmo-remsim && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \
make -j8 install && \
make "-j$(nproc)" install && \
ldconfig
VOLUME /data

@ -68,7 +68,7 @@ RUN cd osmo-sgsn && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure --enable-iu && \
make -j8 install && \
make "-j$(nproc)" install && \
ldconfig
VOLUME /data

@ -60,7 +60,7 @@ RUN cd osmo-sip-connector && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure --enable-smpp --enable-iu && \
make -j8 install
make "-j$(nproc)" install
VOLUME /data

@ -50,7 +50,7 @@ RUN cd libosmo-sccp && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \
make -j8 install && \
make "-j$(nproc)" install && \
install examples/.libs/sccp_demo_user /usr/local/bin/ && \
ldconfig

@ -35,7 +35,7 @@ RUN cd osmo-uecups && \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \
make -j8 install
make "-j$(nproc)" install
VOLUME /data

@ -33,12 +33,12 @@ RUN cd osmocom-bb && \
RUN cd osmocom-bb/src/host/trxcon && \
autoreconf -fi && \
./configure && \
make -j8 install
make "-j$(nproc)" install
RUN cd osmocom-bb/src/host/virt_phy && \
autoreconf -fi && \
./configure && \
make -j8 install
make "-j$(nproc)" install
RUN mkdir -p /data/unix

Loading…
Cancel
Save