Changes from v2->v3: - Addressed minor mistakes (thanks Stefan) - Setup supported version checks for cargo, rustc and bindgen (thanks everyone who pointed it out / suggested it) - Fixed problem with bindgen failing if certain system headers where needed by defining an allowlist for headers instead of a blocklist for what we don't want (thanks Alex Bennée for reporting it) - Cleaned up bindgen target/dependendy definition in meson.build by removing unnecessary bits
Changes from v1->v2: - Create bindgen target first, then add commit for device (thanks Pierrick) - Create a special named generated.rs for each target as compilation would fail if more than one targets were defined. The generated.rs target names would clash. - Add more descriptive commit messages - Update MAINTAINERS - Cleanup patch order for better review, hopefully v2 was: <rust-pl011-rfc-v2.git.manos.pitsidiana...@linaro.org> v1 was: <cover.rust-pl011-rfc-v1.git.manos.pitsidiana...@linaro.org> Patches can be found online at https://gitlab.com/epilys/rust-for-qemu/-/tags Tag/refs: - rust-pl011-rfc-v3 - rust-pl011-rfc-v2 - rust-pl011-rfc-v1 Manos Pitsidianakis (5): build-sys: Add rust feature option rust: add bindgen step as a meson dependency rust: add PL011 device model DO NOT MERGE: add rustdoc build for gitlab pages DO NOT MERGE: replace TYPE_PL011 with x-pl011-rust in arm virt machine .gitlab-ci.d/buildtest.yml | 64 ++-- MAINTAINERS | 15 + configure | 11 + hw/arm/virt.c | 4 + meson.build | 71 ++++ meson_options.txt | 4 + rust/.cargo/config.toml | 2 + rust/.gitignore | 3 + rust/meson.build | 131 ++++++++ rust/pl011/.gitignore | 2 + rust/pl011/Cargo.lock | 120 +++++++ rust/pl011/Cargo.toml | 66 ++++ rust/pl011/README.md | 42 +++ rust/pl011/build.rs | 44 +++ rust/pl011/deny.toml | 57 ++++ rust/pl011/meson.build | 7 + rust/pl011/rustfmt.toml | 1 + rust/pl011/src/definitions.rs | 95 ++++++ rust/pl011/src/device.rs | 531 ++++++++++++++++++++++++++++++ rust/pl011/src/device_class.rs | 95 ++++++ rust/pl011/src/generated.rs | 5 + rust/pl011/src/lib.rs | 581 +++++++++++++++++++++++++++++++++ rust/pl011/src/memory_ops.rs | 38 +++ rust/rustfmt.toml | 7 + rust/wrapper.h | 39 +++ scripts/cargo_wrapper.py | 289 ++++++++++++++++ scripts/meson-buildoptions.sh | 6 + 27 files changed, 2311 insertions(+), 19 deletions(-) create mode 100644 rust/.cargo/config.toml create mode 100644 rust/.gitignore create mode 100644 rust/meson.build create mode 100644 rust/pl011/.gitignore create mode 100644 rust/pl011/Cargo.lock create mode 100644 rust/pl011/Cargo.toml create mode 100644 rust/pl011/README.md create mode 100644 rust/pl011/build.rs create mode 100644 rust/pl011/deny.toml create mode 100644 rust/pl011/meson.build create mode 120000 rust/pl011/rustfmt.toml create mode 100644 rust/pl011/src/definitions.rs create mode 100644 rust/pl011/src/device.rs create mode 100644 rust/pl011/src/device_class.rs create mode 100644 rust/pl011/src/generated.rs create mode 100644 rust/pl011/src/lib.rs create mode 100644 rust/pl011/src/memory_ops.rs create mode 100644 rust/rustfmt.toml create mode 100644 rust/wrapper.h create mode 100644 scripts/cargo_wrapper.py base-commit: 01782d6b294f95bcde334386f0aaac593cd28c0d -- γαῖα πυρί μιχθήτω