diff --git a/Justfile b/Justfile index 9e35867..1cd75f9 100644 --- a/Justfile +++ b/Justfile @@ -42,3 +42,7 @@ gdb: nm: # Build and print all symbols in the kernel cargo make nm + +expand: + # Run `cargo expand` on modules + cargo make expand -- nucleus diff --git a/nucleus/Makefile.toml b/nucleus/Makefile.toml index 9246985..6c7c246 100644 --- a/nucleus/Makefile.toml +++ b/nucleus/Makefile.toml @@ -7,6 +7,10 @@ env = { "TARGET_FEATURES" = "" } args = ["build", "--target=${TARGET_JSON}", "--release", "--features=${TARGET_FEATURES}"] +[tasks.expand] +env = { "TARGET_FEATURES" = "" } +args = ["expand", "--target=${TARGET_JSON}", "--release", "--features=${TARGET_FEATURES}"] + [tasks.test] env = { "TARGET_FEATURES" = "${QEMU_FEATURES}" } args = ["test", "--target=${TARGET_JSON}", "--features=${TARGET_FEATURES}"]