Commit a237f856 authored by guptar's avatar guptar

Included fix for autodetecting number of processors during compilation

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7828 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 95bf12ea
...@@ -112,7 +112,7 @@ compilations() { ...@@ -112,7 +112,7 @@ compilations() {
cd $OPENAIR_DIR/cmake_targets/$1/build cd $OPENAIR_DIR/cmake_targets/$1/build
{ {
rm -f $3 rm -f $3
make -j4 $2 make -j`nproc` $2
} > $dlog/$2.$REL.txt 2>&1 } > $dlog/$2.$REL.txt 2>&1
echo_info "Log file for compilation has been written to: $dlog/$2.$REL.txt" echo_info "Log file for compilation has been written to: $dlog/$2.$REL.txt"
if [ -s $3 ] ; then if [ -s $3 ] ; then
...@@ -180,7 +180,7 @@ install_nettle_from_source() { ...@@ -180,7 +180,7 @@ install_nettle_from_source() {
cd nettle-2.5/ cd nettle-2.5/
./configure --disable-openssl --enable-shared --prefix=/usr ./configure --disable-openssl --enable-shared --prefix=/usr
echo "Compiling nettle" echo "Compiling nettle"
make -j4 make -j`nproc`
make check make check
$SUDO make install $SUDO make install
rm -rf /tmp/nettle-2.5.tar.gz /tmp/nettle-2.5 rm -rf /tmp/nettle-2.5.tar.gz /tmp/nettle-2.5
...@@ -195,7 +195,7 @@ install_gnutls_from_source(){ ...@@ -195,7 +195,7 @@ install_gnutls_from_source(){
cd gnutls-3.1.23/ cd gnutls-3.1.23/
./configure --prefix=/usr ./configure --prefix=/usr
echo "Compiling gnutls" echo "Compiling gnutls"
make -j4 make -j`nproc`
$SUDO make install $SUDO make install
rm -rf /tmp/gnutls-3.1.23.tar.xz /tmp/gnutls-3.1.23 rm -rf /tmp/gnutls-3.1.23.tar.xz /tmp/gnutls-3.1.23
} }
...@@ -212,7 +212,7 @@ install_1.1.5_freediameter_from_source() { ...@@ -212,7 +212,7 @@ install_1.1.5_freediameter_from_source() {
cd build cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ../ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ../
echo "Compiling freeDiameter" echo "Compiling freeDiameter"
make -j4 make -j`nproc`
#make test #make test
$SUDO make install $SUDO make install
rm -rf /tmp/1.1.5.tar.gz /tmp/freeDiameter-1.1.5 rm -rf /tmp/1.1.5.tar.gz /tmp/freeDiameter-1.1.5
...@@ -230,7 +230,7 @@ install_freediameter_from_source() { ...@@ -230,7 +230,7 @@ install_freediameter_from_source() {
cd build cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ../ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ../
echo "Compiling freeDiameter" echo "Compiling freeDiameter"
make -j4 make -j`nproc`
#make test #make test
$SUDO make install $SUDO make install
rm -rf /tmp/1.2.0.tar.gz /tmp/freeDiameter-1.2.0 rm -rf /tmp/1.2.0.tar.gz /tmp/freeDiameter-1.2.0
...@@ -247,7 +247,7 @@ install_latest_freediameter_from_source() { ...@@ -247,7 +247,7 @@ install_latest_freediameter_from_source() {
cd build cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ../ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ../
echo "Compiling freeDiameter" echo "Compiling freeDiameter"
make -j4 make -j`nproc`
#make test #make test
$SUDO make install $SUDO make install
rm -rf /tmp/freeDiameter rm -rf /tmp/freeDiameter
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment