diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-07-22 13:48:04 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-07-25 00:59:33 +0900 |
commit | 6db9ced4641fab2710e83c4d703e9ad60dd3ccf5 (patch) | |
tree | 50002b6ff14eba0a6d086d7663a9c70f888e56c0 /scripts/Makefile.package | |
parent | 975667d02d134f7b48d15ee7ff0d49e69a6774cf (diff) | |
download | lwn-6db9ced4641fab2710e83c4d703e9ad60dd3ccf5.tar.gz lwn-6db9ced4641fab2710e83c4d703e9ad60dd3ccf5.zip |
kbuild: rpm-pkg: build the kernel in-place for rpm-pkg
Currently, 'make rpm-pkg' always builds the kernel from the pristine
source tree in the ~/rpmbuild/BUILD/ directory.
Build the kernel incrementally just like 'make binrpm-pkg'.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/Makefile.package')
-rw-r--r-- | scripts/Makefile.package | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/Makefile.package b/scripts/Makefile.package index be9602fa98da..bf2da97f29d0 100644 --- a/scripts/Makefile.package +++ b/scripts/Makefile.package @@ -72,6 +72,7 @@ PHONY += rpm-pkg rpm-pkg: srpm = $(shell rpmspec --srpm --query --queryformat='%{name}-%{VERSION}-%{RELEASE}.src.rpm' kernel.spec) rpm-pkg: srcrpm-pkg +rpmbuild $(RPMOPTS) --target $(UTS_MACHINE)-linux -rb $(srpm) \ + --build-in-place --noprep \ --define='_smp_mflags %{nil}' --define='make $(MAKE)' # srcrpm-pkg |