mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
Merge pull request #32 from sphinxc0re/patch-1
Updated example file in init.sh
This commit is contained in:
commit
6ee00c0a2b
|
@ -14,7 +14,7 @@ A crate that helps you make GBA games
|
|||
|
||||
This crate requires a fair amount of special setup. All of the steps are
|
||||
detailed for you [in the 0th chapter of the
|
||||
book](https://rust-console.github.io/gba/ch00/index.html) that goes with this
|
||||
book](https://rust-console.github.io/gba/00-introduction/03-development-setup.html) that goes with this
|
||||
crate.
|
||||
|
||||
If you've done the global setup once before and just want to get a new project
|
||||
|
|
9
init.sh
9
init.sh
|
@ -30,12 +30,15 @@ mv linker.ld $APP_NAME/linker.ld
|
|||
|
||||
# substitute cargo main file with a new basic one
|
||||
rm -rf $APP_NAME/src/main.rs
|
||||
wget https://raw.githubusercontent.com/rust-console/gba/master/examples/hello1.rs
|
||||
mv hello1.rs $APP_NAME/src/main.rs
|
||||
wget https://raw.githubusercontent.com/rust-console/gba/master/examples/hello_world.rs
|
||||
mv hello_world.rs $APP_NAME/src/main.rs
|
||||
|
||||
# precreate target directory for crt0.o file
|
||||
mkdir $APP_NAME/target
|
||||
|
||||
# setup make file
|
||||
echo -e "CRT_FILE=$(echo $CRT_LOCAL)
|
||||
CRT_OUTPUT=crt0.o
|
||||
CRT_OUTPUT=target/crt0.o
|
||||
PROJECT_NAME=$(echo $APP_NAME)
|
||||
TARGET=$(echo $TARGET)
|
||||
THUMB_TARGET=$(echo $TARGET).json
|
||||
|
|
Loading…
Reference in a new issue