M Makefile => Makefile +1 -1
@@ 46,7 46,7 @@ src/devices/%/mod.rs: src/devices/%/mod.full.rs
@sed -i'' -e "1,7d" $@
@# Remove DEVICE_PERIPHERALS declaration and replace it with a reference
@# to the global version
- @sed -i'' -e '/^\#\[no_mangle\]/,+1cuse crate::devices::DEVICE_PERIPHERALS;' $@
+ @patch --no-backup-if-mismatch --quiet $@ patch/modrs.patch
@echo -e "\tGEN-VECTOR\t>macros/src/vector.rs"
@./gen-intr-lut.sh src/devices/*/interrupt.rs >macros/src/vector.rs
A patch/modrs.patch => patch/modrs.patch +5 -0
@@ 0,0 1,5 @@
+1337,1338c1337
+< #[no_mangle]
+< static mut DEVICE_PERIPHERALS: bool = false;
+---
+> use crate::devices::DEVICE_PERIPHERALS;