mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-27 07:30:16 +00:00
Make number of cores used for compilation a command line option for easyinstall.sh (#465)
This commit is contained in:
parent
a3645dfecc
commit
df361f70d9
@ -79,7 +79,8 @@ function installRaScsi() {
|
|||||||
|
|
||||||
cd "$BASE/src/raspberrypi" || exit 1
|
cd "$BASE/src/raspberrypi" || exit 1
|
||||||
|
|
||||||
( make clean && make -j $(nproc) all CONNECT_TYPE="${CONNECT_TYPE-FULLSPEC}" && sudo make install CONNECT_TYPE="${CONNECT_TYPE-FULLSPEC}" ) </dev/null
|
echo "Compiling with ${CORES-1} simultaneous cores..."
|
||||||
|
( make clean && make -j "${CORES-1}" all CONNECT_TYPE="${CONNECT_TYPE-FULLSPEC}" && sudo make install CONNECT_TYPE="${CONNECT_TYPE-FULLSPEC}" ) </dev/null
|
||||||
|
|
||||||
sudo sed -i "s@^ExecStart.*@& -F $VIRTUAL_DRIVER_PATH@" /etc/systemd/system/rascsi.service
|
sudo sed -i "s@^ExecStart.*@& -F $VIRTUAL_DRIVER_PATH@" /etc/systemd/system/rascsi.service
|
||||||
echo "Configured rascsi.service to use $VIRTUAL_DRIVER_PATH as default image dir."
|
echo "Configured rascsi.service to use $VIRTUAL_DRIVER_PATH as default image dir."
|
||||||
@ -753,9 +754,12 @@ while [ "$1" != "" ]; do
|
|||||||
-c | --connect_type)
|
-c | --connect_type)
|
||||||
CONNECT_TYPE=$VALUE
|
CONNECT_TYPE=$VALUE
|
||||||
;;
|
;;
|
||||||
-r | --run_choice)
|
-r | --run_choice)
|
||||||
RUN_CHOICE=$VALUE
|
RUN_CHOICE=$VALUE
|
||||||
;;
|
;;
|
||||||
|
-j | --cores)
|
||||||
|
CORES=$VALUE
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "ERROR: unknown parameter \"$PARAM\""
|
echo "ERROR: unknown parameter \"$PARAM\""
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user