mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add minimal image as a build option
This commit is contained in:
parent
850cd809b1
commit
92656724f5
1 changed files with 6 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ LOADER_IMAGE=target/riscv32imac-unknown-none-elf/release/loader.bin
|
||||||
CSR_CSV=../betrusted-soc/build/csr.csv.1
|
CSR_CSV=../betrusted-soc/build/csr.csv.1
|
||||||
USE_IDENTITY=0
|
USE_IDENTITY=0
|
||||||
USE_NIGHTLY=
|
USE_NIGHTLY=
|
||||||
|
IMAGE=hw-image
|
||||||
|
|
||||||
POSITIONAL=()
|
POSITIONAL=()
|
||||||
while [[ $# -gt 0 ]]
|
while [[ $# -gt 0 ]]
|
||||||
|
|
@ -50,6 +51,10 @@ do
|
||||||
USE_NIGHTLY=+nightly
|
USE_NIGHTLY=+nightly
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
-m|--minimal)
|
||||||
|
IMAGE=minimal
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
echo "$0 provisions betrusted. --kernel-skip skips the kernel, --fpga-skip skips the FPGA. --current-csr indicates to use the CSR for the new FPGA image to do the update (normally you want to use the one corresponding to the older, currently installed version)."
|
echo "$0 provisions betrusted. --kernel-skip skips the kernel, --fpga-skip skips the FPGA. --current-csr indicates to use the CSR for the new FPGA image to do the update (normally you want to use the one corresponding to the older, currently installed version)."
|
||||||
echo "Alternatively, using --copy-to <hostname> copies the files to a remote host and skips provisioning."
|
echo "Alternatively, using --copy-to <hostname> copies the files to a remote host and skips provisioning."
|
||||||
|
|
@ -73,7 +78,7 @@ DESTDIR=code/precursors
|
||||||
# full rebuild, and not just an incremental rebuild. :-/
|
# full rebuild, and not just an incremental rebuild. :-/
|
||||||
#touch services/log-server/src/main.rs # bump the build time in the log server
|
#touch services/log-server/src/main.rs # bump the build time in the log server
|
||||||
|
|
||||||
cargo $USE_NIGHTLY xtask hw-image ../betrusted-soc/build/software/soc.svd
|
cargo $USE_NIGHTLY xtask $IMAGE ../betrusted-soc/build/software/soc.svd
|
||||||
|
|
||||||
# only copy if changed, othrewise it seems to trigger extra build effort...
|
# only copy if changed, othrewise it seems to trigger extra build effort...
|
||||||
rsync -a --no-times --checksum ../betrusted-soc/build/software/soc.svd svd2utra/examples/soc.svd
|
rsync -a --no-times --checksum ../betrusted-soc/build/software/soc.svd svd2utra/examples/soc.svd
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue