]> git.itanic.dy.fi Git - linux-stable/commitdiff
kbuild: make binrpm-pkg always produce kernel-devel package
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 1 Oct 2023 12:38:22 +0000 (21:38 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 18 Oct 2023 08:16:09 +0000 (17:16 +0900)
The generation of the kernel-devel package is disabled for binrpm-pkg
presumably because it was quite big (>= 200MB) and took a long time to
package.

Commit fe66b5d2ae72 ("kbuild: refactor kernel-devel RPM package and
linux-headers Deb package") reduced the package size to 12MB, and now
it is quick to build. It won't hurt to have binrpm-pkg generate it by
default.

If you want to skip the kernel-devel package generation, you can pass
RPMOPTS='--without devel':

  $ make binrpm-pkg RPMOPTS='--without devel'

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
scripts/Makefile.package

index 05b8c3e29aac9311fbdbdbd8f0439085894e1d40..3addd1c0b989a0e9acd91a57184fd0342b804fda 100644 (file)
@@ -94,8 +94,6 @@ rpm-pkg srcrpm-pkg binrpm-pkg: rpmbuild/SPECS/kernel.spec
        $(if $(filter a b, $(build-type)), \
                --target $(UTS_MACHINE)-linux --build-in-place --noprep --define='_smp_mflags %{nil}' \
                $$(rpm -q rpm >/dev/null 2>&1 || echo --nodeps)) \
-       $(if $(filter b, $(build-type)), \
-               --without devel) \
        $(RPMOPTS))
 
 # deb-pkg srcdeb-pkg bindeb-pkg