kbuild: deb-pkg: split debian/rules
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 1 Aug 2023 12:19:26 +0000 (21:19 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 7 Aug 2023 16:08:54 +0000 (01:08 +0900)
commitd9287ea8ffc9be2ab4c81c32e1ca54478425ba38
tree8f5070cc4659590ae96b133593ca1fd3df5820c5
parent4b970e436523ed34da4ced74ad2b81e5a4f573f2
kbuild: deb-pkg: split debian/rules

debian/rules is generated by shell, but the escape sequence (\$) is
unreadable.

debian/rules embeds only two variables (ARCH and KERNELRELEASE).

Split them out to debian/rules.vars, and check-in the rest of Makefile
code to scripts/package/debian/rules.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/package/debian/rules [new file with mode: 0755]
scripts/package/mkdebian