diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-03-15 16:50:17 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-03-16 14:45:56 +0100 |
commit | 81f59a26f3d59c6aeb137b7b5546848779222c65 (patch) | |
tree | c07af94f4b43b39cc988931dac817c2d12c0dc93 /scripts/Makefile.package | |
parent | kbuild: deb-pkg: use dh_listpackages to know enabled packages (diff) | |
download | linux-81f59a26f3d59c6aeb137b7b5546848779222c65.tar.xz linux-81f59a26f3d59c6aeb137b7b5546848779222c65.zip |
kbuild: rpm-pkg: move source components to rpmbuild/SOURCES
Prepare to add more files to the source RPM.
Also, fix the build error when KCONFIG_CONFIG is set:
error: Bad file: ./.config: No such file or directory
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/Makefile.package')
-rw-r--r-- | scripts/Makefile.package | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.package b/scripts/Makefile.package index b941e6341b36..a0355bdeebff 100644 --- a/scripts/Makefile.package +++ b/scripts/Makefile.package @@ -89,7 +89,7 @@ PHONY += srcrpm-pkg srcrpm-pkg: linux.tar.gz $(CONFIG_SHELL) $(MKSPEC) >$(objtree)/kernel.spec +rpmbuild $(RPMOPTS) --target $(UTS_MACHINE)-linux -bs kernel.spec \ - --define='_smp_mflags %{nil}' --define='_sourcedir .' --define='_srcrpmdir .' + --define='_smp_mflags %{nil}' --define='_sourcedir rpmbuild/SOURCES' --define='_srcrpmdir .' # binrpm-pkg # --------------------------------------------------------------------------- |