kbuild: rpm-pkg: do not hard-code $MAKE in spec file
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Jul 2023 04:47:50 +0000 (13:47 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 24 Jul 2023 15:59:32 +0000 (00:59 +0900)
commit192868258d2c9eb421228e4d65c4b09b838e7d93
tree311a50bb8eb31afb5dfc7934030ddc6bb6582260
parent61eca933d0a63f0889df604df6bb38938f3c7cad
kbuild: rpm-pkg: do not hard-code $MAKE in spec file

Currently, $MAKE will expand to the GNU Make program that created the
source RPM. This is problematic if you carry it to a different build
host to run 'rpmbuild' there.

Consider this command:

  $ /path/to/my/custom/make srcrpm-pkg

The spec file in the SRPM will record '/path/to/my/custom/make', which
exists only on that build environment.

To create a portable SRPM, the spec file should avoid hard-coding $MAKE.

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