kbuild: rpm-pkg: remove unneeded '-f $srctree/Makefile' in spec file
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Jul 2023 04:47:49 +0000 (13:47 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 24 Jul 2023 15:59:32 +0000 (00:59 +0900)
This is unneeded because the Makefile in the output directory wraps
the top-level Makefile in the srctree.

Just run $MAKE irrespective of the build location.

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

index c9299f9..a83b17b 100755 (executable)
@@ -12,7 +12,6 @@
 # how we were called determines which rpms we build and how we build them
 if [ "$1" = prebuilt ]; then
        S=DEL
-       MAKE="$MAKE -f $srctree/Makefile"
 else
        S=