mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
refactor paths to use xpack instead of sifive toolchain
This commit is contained in:
parent
ecf2cf2a7e
commit
e86f69d5a9
1 changed files with 6 additions and 5 deletions
|
|
@ -36,8 +36,9 @@ declare -a Crates=(
|
||||||
if [ -e "$HOME/.cargo/env" ]; then
|
if [ -e "$HOME/.cargo/env" ]; then
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
fi
|
fi
|
||||||
RISCV_TOOLS=/opt/riscv64-unknown-elf
|
# Now using xpack tools installed in standard path
|
||||||
export PATH=$RISCV_TOOLS/bin:$PATH
|
#RISCV_TOOLS=/opt/riscv64-unknown-elf
|
||||||
|
#export PATH=$RISCV_TOOLS/bin:$PATH
|
||||||
|
|
||||||
env | sort > env.txt
|
env | sort > env.txt
|
||||||
|
|
||||||
|
|
@ -56,11 +57,11 @@ cargo xtask app-image ball repl vault
|
||||||
echo "===== ANALYZING at $(date) ====="
|
echo "===== ANALYZING at $(date) ====="
|
||||||
for val in ${Crates[@]}; do
|
for val in ${Crates[@]}; do
|
||||||
# dump the header summary
|
# dump the header summary
|
||||||
riscv64-unknown-elf-objdump -h target/riscv32imac-unknown-xous-elf/release/$val > reports/$val.txt
|
riscv-none-elf-objdump -h target/riscv32imac-unknown-xous-elf/release/$val > reports/$val.txt
|
||||||
# dump the sorted list of objects
|
# dump the sorted list of objects
|
||||||
riscv64-unknown-elf-nm -r --size-sort --print-size target/riscv32imac-unknown-xous-elf/release/$val | rustfilt >> reports/$val.txt
|
riscv-none-elf-nm -r --size-sort --print-size target/riscv32imac-unknown-xous-elf/release/$val | rustfilt >> reports/$val.txt
|
||||||
# dump the disassembly
|
# dump the disassembly
|
||||||
riscv64-unknown-elf-objdump -S -d target/riscv32imac-unknown-xous-elf/release/$val | rustfilt > reports/$val.list
|
riscv-none-elf-objdump -S -d target/riscv32imac-unknown-xous-elf/release/$val | rustfilt > reports/$val.list
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue