kbuild: rpm-pkg: refactor *rpm-pkg targets
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Jul 2023 04:48:05 +0000 (13:48 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 24 Jul 2023 15:59:33 +0000 (00:59 +0900)
commit37477496d6aa91248184238a95b59b7d91d46921
tree2d593d9413a28d28ff9529b23931ad962b78c18d
parent6db9ced4641fab2710e83c4d703e9ad60dd3ccf5
kbuild: rpm-pkg: refactor *rpm-pkg targets

Merge the similar build targets.

Also, make the output location consistent.

Previously, source packages were created in the build directory,
while binary packages under ~/rpmbuild/RPMS/.

Now, Kbuild creates the rpmbuild/ directory in the build directory,
and saves all packages under it.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.package
scripts/package/mkspec