]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools: ynl-gen: allow uapi headers in sub-dirs
authorJakub Kicinski <kuba@kernel.org>
Wed, 13 Nov 2024 19:32:38 +0000 (11:32 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Nov 2024 02:38:07 +0000 (18:38 -0800)
commit6204656478bec37a3c801cbd6a451e085bbaca41
treecef0421a5f39338671795afc83a24aca5762acfa
parent5bf99baefb3ebebb13128ebfe58ebc6add5afd43
tools: ynl-gen: allow uapi headers in sub-dirs

Binder places its headers under include/uapi/linux/android/
Make sure replace / with _ in the uAPI header guard, the c_upper()
is more strict and only converts - to _. This is likely a good
constraint to have, to enforce sane naming in enums etc.
But paths may include /.

Signed-off-by: Li Li <dualli@google.com>
Link: https://patch.msgid.link/20241113193239.2113577-2-dualli@chromium.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ynl-gen-c.py