diff options
author | Christian Cunningham <cc@localhost> | 2022-08-20 23:15:52 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-08-20 23:15:52 -0700 |
commit | cf016f0c8b28c7198ae6adf3e6c88c61b91b07d0 (patch) | |
tree | 477a223ac08951618cc5b9948d42140636f43136 /Makefile | |
parent | b34903977707ad344c53f3e1367063b0bb944176 (diff) |
Debug output
TODO: Add more debugging output
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -20,11 +20,14 @@ COMPILER_ARGS=--target=$(TARGET) $(FEATURES) --release RUSTC_CMD=cargo rustc $(COMPILER_ARGS) export LINKER_FILE -.PHONY: build doc clean run +.PHONY: build doc clean run debug run-debug build: @RUSTFLAGS="$(RUSTFLAGS_PEDANTIC)" $(RUSTC_CMD) +debug: + @RUSTFLAGS="$(RUSTFLAGS_PEDANTIC)" $(RUSTC_CMD) --features verbose + doc: @RUSTFLAGS="$(RUSTFLAGS_PEDANTIC)" cargo doc $(COMPILER_ARGS) @@ -34,6 +37,9 @@ clean: run: build @qemu-system-arm -cpu cortex-a7 -m 1G -kernel target/armv7a-none-eabi/release/kernel -machine raspi2b -serial mon:stdio -nographic +run-debug: debug + @qemu-system-arm -cpu cortex-a7 -m 1G -kernel target/armv7a-none-eabi/release/kernel -machine raspi2b -serial mon:stdio -nographic + init: rustup target install $(TARGET) rustup target add $(TARGET) |