Skip to content

Commit

Permalink
tutorial: clean build folder before building nemu
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyself committed Aug 21, 2024
1 parent 00f9da8 commit 1fc063b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tutorial/p5-xs-gem5/0-gem5_prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,17 @@ build_nemu_diff() {
git submodule update --init $NEMU_HOME && \
pushd $NEMU_HOME && \
( (stat build/riscv64-nemu-interpreter-so && \
mv build/riscv64-nemu-interpreter-so build/riscv64-nemu-interpreter-so.bak) \
mv build/riscv64-nemu-interpreter-so riscv64-nemu-interpreter-so.bak) \
|| true) && \
( (stat .config && \
mv .config .config.bak) \
|| true) && \
make clean && \
make riscv64-gem5-ref_defconfig && \
make -j `nproc` && \
mv build/riscv64-nemu-interpreter-so build/riscv64-nemu-gem5-ref-so && \
( (stat build/riscv64-nemu-interpreter-so.bak && \
mv build/riscv64-nemu-interpreter-so.bak build/riscv64-nemu-interpreter-so) \
( (stat riscv64-nemu-interpreter-so.bak && \
mv riscv64-nemu-interpreter-so.bak build/riscv64-nemu-interpreter-so) \
|| true) && \
( (stat .config.bak && \
mv .config.bak .config) \
Expand Down

0 comments on commit 1fc063b

Please sign in to comment.