From 92656724f5dd389bedfcbc660a4669b31cc435eb Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 26 Mar 2021 15:53:38 +0800 Subject: [PATCH] add minimal image as a build option --- buildpush.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildpush.sh b/buildpush.sh index 8dc3066c2..69590ceff 100755 --- a/buildpush.sh +++ b/buildpush.sh @@ -12,6 +12,7 @@ LOADER_IMAGE=target/riscv32imac-unknown-none-elf/release/loader.bin CSR_CSV=../betrusted-soc/build/csr.csv.1 USE_IDENTITY=0 USE_NIGHTLY= +IMAGE=hw-image POSITIONAL=() while [[ $# -gt 0 ]] @@ -50,6 +51,10 @@ do USE_NIGHTLY=+nightly shift ;; + -m|--minimal) + IMAGE=minimal + shift + ;; -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 "Alternatively, using --copy-to 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. :-/ #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... rsync -a --no-times --checksum ../betrusted-soc/build/software/soc.svd svd2utra/examples/soc.svd