From f46a5a5c2dbe15521ddb3feb182183b680756dbf Mon Sep 17 00:00:00 2001 From: Corey Vixie Date: Sun, 29 Mar 2020 12:54:11 -0700 Subject: [PATCH] Fix paths, better instructions --- README.md | 9 +++++++-- bootstrap.sh | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 27f2efc..82e8e0b 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,13 @@ Because the driver is made to target an ARM device, it must be cross-compiled. T To start: ```sh -$ vagrant up && vagrant rsync && vagrant ssh -$ cd /vagrant/st7701s/ && cargo build --target=armv7-unknown-linux-gnueabihf && scp target/armv7-unknown-linux-gnueabihf/debug/st7701s debian@beaglebone.local:~ +vagrant up && vagrant rsync && vagrant ssh +``` + +To build and copy: + +```sh +cd /vagrant/ && cargo build --target=armv7-unknown-linux-gnueabihf && scp target/armv7-unknown-linux-gnueabihf/debug/st7701s debian@beaglebone.local:~ ``` Remember, you can run `vagrant rsync-auto` in another shell to continually sync changes for "live" development. diff --git a/bootstrap.sh b/bootstrap.sh index 0f412fb..457e129 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -4,5 +4,5 @@ export DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install curl gcc vim git device-tree-compiler g++-arm-linux-gnueabihf echo 'curl https://sh.rustup.rs -sSf | sh -s -- -y;' | su vagrant -cd /vagrant/st7701s +cd /vagrant/ /home/vagrant/.cargo/bin/rustup target add armv7-unknown-linux-gnueabihf