Skip to content

Commit

Permalink
Updated fast-setup to export KEYSTONE_SDK_DIR, better messages, and s…
Browse files Browse the repository at this point in the history
…et shallow mode for some submodules (#118)
  • Loading branch information
dkohlbre committed Sep 11, 2019
1 parent c011d1b commit 0e42aa3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ image:
$(MAKE) -C hifive-work/buildroot_initramfs
$(MAKE) -f hifive.mk

run-tests: $(hifive)
run-tests: hifive
./tests/tests/vault.sh
$(MAKE) -C hifive-work/buildroot_initramfs
$(MAKE) -f hifive.mk
Expand Down
8 changes: 8 additions & 0 deletions fast-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,18 @@ else
echo "Toolchain has been installed in $RISCV"
fi

echo "Updating and cloning submodules, this may take a long time"
git config submodule.riscv-gnu-toolchain.update none
git config -f .gitmodules submodule.riscv-linux.shallow true
git config -f .gitmodules submodule.riscv-qemu.shallow true
git config -f .gitmodules submodule.buildroot.shallow true

git submodule sync --recursive
git submodule update --init --recursive

# build tests in SDK
export KEYSTONE_SDK_DIR=$(pwd)/sdk
make -C sdk
./sdk/scripts/init.sh --runtime eyrie --force

echo "Keystone is fully setup! You can build everything and run the tests with 'make run-tests'"

0 comments on commit 0e42aa3

Please sign in to comment.