kbuild: factor out genksyms command from cmd_gensymtypes_{c,S}
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 5 Apr 2022 11:33:49 +0000 (20:33 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 6 Apr 2022 10:27:51 +0000 (19:27 +0900)
commitf43e31d5cb7859189a8be5699f4347e07b07c1df
tree6b716546fb3b03a8e98f5a2af82f3f561f13a3d0
parentcab802b7b8c9eea6fe30161dab77a05d20d76195
kbuild: factor out genksyms command from cmd_gensymtypes_{c,S}

The genksyms command part in cmd_gensymtypes_{c,S} is duplicated.
Factor it out into the 'genksyms' macro.

For the readability, I slightly refactor the arguments to genksyms.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/Makefile.build