Use -j nproc to use all cores for speedup builds
This commit is contained in:
10
build
10
build
@ -54,11 +54,11 @@ echo "WiringPi Library"
|
|||||||
cd wiringPi
|
cd wiringPi
|
||||||
${PFX}make uninstall
|
${PFX}make uninstall
|
||||||
if [ x$1 = "xstatic" ]; then
|
if [ x$1 = "xstatic" ]; then
|
||||||
make static
|
make -j `nproc` static
|
||||||
check_make_ok
|
check_make_ok
|
||||||
${PFX}make install-static
|
${PFX}make install-static
|
||||||
else
|
else
|
||||||
make
|
make -j `nproc`
|
||||||
check_make_ok
|
check_make_ok
|
||||||
${PFX}make install
|
${PFX}make install
|
||||||
fi
|
fi
|
||||||
@ -69,11 +69,11 @@ echo "WiringPi Devices Library"
|
|||||||
cd ../devLib
|
cd ../devLib
|
||||||
${PFX}make uninstall
|
${PFX}make uninstall
|
||||||
if [ x$1 = "xstatic" ]; then
|
if [ x$1 = "xstatic" ]; then
|
||||||
make static
|
make -j `nproc` static
|
||||||
check_make_ok
|
check_make_ok
|
||||||
${PFX}make install-static
|
${PFX}make install-static
|
||||||
else
|
else
|
||||||
make
|
make -j `nproc`
|
||||||
check_make_ok
|
check_make_ok
|
||||||
${PFX}make install
|
${PFX}make install
|
||||||
fi
|
fi
|
||||||
@ -82,7 +82,7 @@ check_make_ok
|
|||||||
echo
|
echo
|
||||||
echo "GPIO Utility"
|
echo "GPIO Utility"
|
||||||
cd ../gpio
|
cd ../gpio
|
||||||
make
|
make -j `nproc`
|
||||||
check_make_ok
|
check_make_ok
|
||||||
${PFX}make install
|
${PFX}make install
|
||||||
check_make_ok
|
check_make_ok
|
||||||
|
Reference in New Issue
Block a user