]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools: ynl: lift an assumption about spec file name
authorPaolo Abeni <pabeni@redhat.com>
Tue, 20 Aug 2024 15:12:22 +0000 (17:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Aug 2024 00:56:06 +0000 (17:56 -0700)
commitf32c821ae0198cf43181711efb18376b2eb6a1cb
tree23eab6ad1b708a5da2a3f6477c0cfc50ec9e4835
parentf2e9b5caac5b4b987960c02623f64e4abd266294
tools: ynl: lift an assumption about spec file name

Currently the parsing code generator assumes that the yaml
specification file name and the main 'name' attribute carried
inside correspond, that is the field is the c-name representation
of the file basename.

The above assumption held true within the current tree, but will be
hopefully broken soon by the upcoming net shaper specification.
Additionally, it makes the field 'name' itself useless.

Lift the assumption, always computing the generated include file
name from the generated c file name.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Link: https://patch.msgid.link/24da5a3596d814beeb12bd7139a6b4f89756cc19.1724165948.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ynl-gen-c.py