Skip to content

[SUBISSUE #4] Add drivers/dummy/ Reference Driver, Out-of-Tree Build Verification, and Host Tests #253

Done

Description

@marcobuschini

Parent issue: #72

Scope

Implement a minimal reference driver under drivers/dummy/ and verify both in-tree and out-of-tree builds plus host unit testing:

  • drivers/dummy/ implements Kernel::DDK::Driver and exports DriverMetadata using static storage (no kmalloc/kfree).
  • Link drivers/dummy/ into kernel.elf / kernel.bin.
  • Verify compiling drivers/dummy/ from an external temporary directory using only MILO_DDK_DIR=build/ddk.
  • Add tests/host/ddk_dummy_test.cpp (snitch) exercising probe(), init(), shutdown(), and RAII resource cleanup against a mock Kernel::DDK::PlatformServices.

Acceptance Criteria

  • drivers/dummy/ builds and links in-tree and builds standalone out-of-tree against build/ddk/.
  • Host unit tests in tests/host/ddk_dummy_test.cpp pass under ASan/UBSan.
  • make format && make all && make quality passes with zero warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

subissue

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions