Skip to content

libnvme: move accessor generator to tools/generator/#3189

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:reorganize-generator-layout
Mar 17, 2026
Merged

libnvme: move accessor generator to tools/generator/#3189
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:reorganize-generator-layout

Conversation

@martin-belanger
Copy link
Copy Markdown

The code generator (generate-accessors.c, update-accessors.sh, and supporting files) does not belong alongside the library source in src/nvme/. Move it to tools/generator/ to make clear it is developer tooling rather than library code.

While at it:

  • Move accessors.ld from src/nvme/ to src/, alongside the other version scripts (libnvme.ld, libnvmf.ld). src/meson.build now picks it up directly via meson.current_source_dir(), so no cross-directory variable passing is needed.
  • Eliminate src/nvme/meson.build; its generator build rules move to tools/generator/meson.build.
  • Add a banner to the generated accessors.ld (SPDX, copyright, ASCII logo, and regeneration instructions) matching the banners already present in accessors.c and accessors.h.

The generated files (accessors.c, accessors.h) remain in src/nvme/ where the compiler expects them.

The code generator (generate-accessors.c, update-accessors.sh, and
supporting files) does not belong alongside the library source in
src/nvme/. Move it to tools/generator/ to make clear it is developer
tooling rather than library code.

While at it:
- Move accessors.ld from src/nvme/ to src/, alongside the other
  version scripts (libnvme.ld, libnvmf.ld). src/meson.build now
  picks it up directly via meson.current_source_dir(), so no
  cross-directory variable passing is needed.
- Eliminate src/nvme/meson.build; its generator build rules move
  to tools/generator/meson.build.
- Add a banner to the generated accessors.ld (SPDX, copyright,
  ASCII logo, and regeneration instructions) matching the banners
  already present in accessors.c and accessors.h.

The generated files (accessors.c, accessors.h) remain in src/nvme/
where the compiler expects them.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
@igaw igaw merged commit 74d11e2 into linux-nvme:master Mar 17, 2026
27 of 28 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Mar 17, 2026

Thanks!

@martin-belanger martin-belanger deleted the reorganize-generator-layout branch March 17, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants