@@ -33,13 +33,22 @@ function baremetal_setup {
3333 mkdir src
3434 mkdir sys
3535
36- echo -n " Pulling code from GitHub... "
36+ echo -n " Pulling code from GitHub"
37+
38+ if [ " $1 " = " dev" ]; then
39+ echo -n " (Dev Env)... "
40+ setup_args=" -q"
41+ else
42+ echo -n " ... "
43+ setup_args=" -q --depth 1"
44+ fi
45+
3746 cd src
38- git clone https://github.com/ReturnInfinity/Pure64.git -q --depth 1
39- git clone https://github.com/ReturnInfinity/BareMetal.git -q --depth 1
40- git clone https://github.com/ReturnInfinity/BareMetal-Monitor.git -q --depth 1
41- git clone https://github.com/ReturnInfinity/BMFS.git -q --depth 1
42- git clone https://github.com/ReturnInfinity/BareMetal-Demo.git -q --depth 1
47+ git clone https://github.com/ReturnInfinity/Pure64.git $setup_args
48+ git clone https://github.com/ReturnInfinity/BareMetal.git $setup_args
49+ git clone https://github.com/ReturnInfinity/BareMetal-Monitor.git $setup_args
50+ git clone https://github.com/ReturnInfinity/BMFS.git $setup_args
51+ git clone https://github.com/ReturnInfinity/BareMetal-Demo.git $setup_args
4352 cd ..
4453 echo " OK"
4554
@@ -54,7 +63,7 @@ function baremetal_setup {
5463 cd ..
5564 echo " OK"
5665 else
57- echo " Skipping UEFI firmware download due to missing mtools..."
66+ echo -n " Skipping UEFI firmware download due to missing mtools..."
5867 fi
5968
6069 echo -n " Preparing dependancies... "
@@ -266,6 +275,7 @@ function baremetal_run {
266275
267276 # Video
268277 -device VGA,edid=on,xres=1024,yres=768
278+
269279 # Network configuration. Use one controller.
270280 -netdev socket,id=testnet1,listen=:1234
271281 # -netdev socket,id=testnet2,listen=:1235
@@ -338,6 +348,7 @@ function baremetal_run-uefi {
338348
339349 # Video
340350 -device VGA,edid=on,xres=1024,yres=768
351+
341352 # Network
342353 -netdev socket,id=testnet,listen=:1234
343354 # On a second machine uncomment the line below, comment the line above, and change the mac
@@ -519,5 +530,7 @@ elif [ $# -eq 2 ]; then
519530 baremetal_build $2
520531 elif [ " $1 " == " install" ]; then
521532 baremetal_install $2
533+ elif [ " $1 " == " setup" ]; then
534+ baremetal_setup $2
522535 fi
523536fi
0 commit comments