aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-08-20 23:15:52 -0700
committerChristian Cunningham <cc@localhost>2022-08-20 23:15:52 -0700
commitcf016f0c8b28c7198ae6adf3e6c88c61b91b07d0 (patch)
tree477a223ac08951618cc5b9948d42140636f43136 /Makefile
parentb34903977707ad344c53f3e1367063b0bb944176 (diff)
Debug output
TODO: Add more debugging output
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f2e1fa6..0b54131 100644
--- a/Makefile
+++ b/Makefile
@@ -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)