Skip to content

Commit

Permalink
add support for argument passing and give examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kost committed Jan 16, 2020
1 parent ea39a37 commit 79e795a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You just need to start wrap.sh:
```
git clone https://github.com/dok3r/ulx3s-saxonsoc.git
cd ulx3s-saxonsoc
./wrap.sh FPGA_SIZE=85 SDRAM_SIZE=32
./wrap.sh -e FPGA_SIZE=85 -e SDRAM_SIZE=32 -e DIST_OUT=/dist/ulx3s-85-32
```

make will output bit and other files in $HOME/dist
Expand All @@ -18,13 +18,19 @@ make will output bit and other files in $HOME/dist

If you just need build environment:
```
docker run -it --user 1000 -v $HOME/fpga:/fpga -v $HOME/dist:/dist -v `pwd`/scripts:/scripts dok3r/ulx3s-saxonsoc
docker run -it --user 1000 dok3r/ulx3s-saxonsoc
```

Of course, you can always run build script inside docker:
```
docker run -it --user 1000 -v $HOME/dist:/dist -v `pwd`/scripts:/scripts dok3r/ulx3s-saxonsoc
/scripts/build.sh
```

If you need more dirs to be available:
```
docker run -it --user 1000 -v $HOME/fpga:/fpga -v $HOME/dist:/dist -v `pwd`/scripts:/scripts dok3r/ulx3s-saxonsoc
```



2 changes: 1 addition & 1 deletion wrap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

docker run --rm -it --user 1000 -v $HOME/fpga:/fpga -v $HOME/dist:/dist -v `pwd`/scripts:/scripts dok3r/ulx3s-saxonsoc /scripts/build.sh
docker run --rm -it --user 1000 "$@" -v $HOME/fpga:/fpga -v $HOME/dist:/dist -v `pwd`/scripts:/scripts dok3r/ulx3s-saxonsoc /scripts/build.sh

0 comments on commit 79e795a

Please sign in to comment.