Comments (3)
This is the Makefile.toml
I'm using right now.
[config]
skip_core_tasks = true
[env]
CARGO_MAKE_RUST_TARGET = "thumbv4-none-agb"
[tasks.default]
alias = "build"
workspace = false
[tasks.build]
command = "cargo"
args = ["xbuild", "--target", "${CARGO_MAKE_RUST_TARGET}.json"]
workspace = false
[tasks.release]
dependencies = ["release-step1", "release-step2", "release-step3"]
workspace = false
[tasks.release-step1]
command = "cargo"
args = ["xbuild", "--release", "--target", "${CARGO_MAKE_RUST_TARGET}.json"]
[tasks.release-step2]
command = "arm-none-eabi-objcopy"
args = ["-O", "binary", "target\\${CARGO_MAKE_RUST_TARGET}\\release\\finisterre", "target\\${CARGO_MAKE_RUST_TARGET}\\release\\finisterre.gba"]
[tasks.release-step3]
command = "gbafix"
args = ["target\\${CARGO_MAKE_RUST_TARGET}\\release\\finisterre.gba"]
[tasks.run]
dependencies = ["build"]
command = "C:\\mGBA\\mGBA.exe"
args = ["target\\${CARGO_MAKE_RUST_TARGET}\\debug\\finisterre"]
workspace = false
Caveats:
- I don't have a step for
crt0.s
, which I could probably stand to add. - The
run
task is specific to my machine. - Because I have a Cargo workspace rather than a single crate I can't use the
CARGO_MAKE_CRATE_FS_NAME
variable; feel free to replace the hardcodedfinisterre
in your own code.
from gba.
Got a makefile into the lokathor branch, so normal builds can be done with cargo make
now, including the full workflow of making the target directory, assembling, xbuild, objcopy, and gbafix.
at the moment it doesn't know how to get devkitpro automatically on its own, which would be the final big improvement for it.
from gba.
this is all in master now
from gba.
Related Issues (20)
- The API for integer `with_*` in MMIO type definitions expects pre-shifted values. HOT 1
- how to handle multi-mode addresses? HOT 2
- examples shouldn't use vcount spinning HOT 1
- investigate what registers are available for inline-asm trashing HOT 1
- Many vblank irqs sent per frame HOT 17
- Incorrect example code in docs for art::CGA_8X8_THICK HOT 1
- update voladdress dep to 1.0
- `asm!` and `global_asm!` moved to `core::arch` HOT 2
- High registers (r8+) cannot be used HOT 1
- Add support for MultiPlay communcation HOT 7
- memclr4 and memclr8 incorrect docs
- ROM not working after objcopy + gbafix HOT 3
- docs: explain that extern C fn doesn't mean actually C code
- document vram access patterns
- [Suggestion] Make voladdress and bitfrob workplace inherited HOT 1
- question about arm7 binaries on debug HOT 17
- License header for linker_scripts/mono_boot.ld? HOT 2
- Consider depending on `fixed` crate for fixed point, instead of reimplementing HOT 3
- mGBA debug logging allows data race from safe code. HOT 3
- Linker errors on newer nightly Rust builds HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gba.