diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-07-22 13:48:01 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-07-25 00:59:33 +0900 |
commit | 2a291fc315b6aec2f209aa44da90515ddd4f89d0 (patch) | |
tree | 70c72e9defe482b28514c01fd1591e9922e3f3f2 /scripts/Makefile.package | |
parent | b537925fdd689ca33b6d9eed4569bc625550b3ef (diff) | |
download | linux-2a291fc315b6aec2f209aa44da90515ddd4f89d0.tar.gz linux-2a291fc315b6aec2f209aa44da90515ddd4f89d0.tar.bz2 linux-2a291fc315b6aec2f209aa44da90515ddd4f89d0.zip |
kbuild: rpm-pkg: introduce %{with_devel} switch to select devel package
scripts/package/mkspec preprocesses the spec file by sed, but it is
unreadable. This commit removes the last portion of the sed scripting.
Remove the $S$M prefixes from the conditionally generated lines.
Instead, surround the code with %if %{with_devel} ... %endif.
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 8373644a0473..c36ae03d6002 100644 --- a/scripts/Makefile.package +++ b/scripts/Makefile.package @@ -89,7 +89,7 @@ binrpm-pkg: $(CONFIG_SHELL) $(MKSPEC) prebuilt > $(objtree)/binkernel.spec +rpmbuild $(RPMOPTS) --define "_builddir $(objtree)" --target \ $(UTS_MACHINE)-linux -bb $(objtree)/binkernel.spec \ - --build-in-place --noprep --define='_smp_mflags %{nil}' \ + --build-in-place --noprep --define='_smp_mflags %{nil}' --without devel \ --define='make $(MAKE)' # deb-pkg srcdeb-pkg bindeb-pkg |