From: Masahiro Yamada Date: Sat, 22 Jul 2023 04:48:04 +0000 (+0900) Subject: kbuild: rpm-pkg: build the kernel in-place for rpm-pkg X-Git-Tag: v6.6.17~3988^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6db9ced4641fab2710e83c4d703e9ad60dd3ccf5;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/scripts/Makefile.package b/scripts/Makefile.package index be9602f..bf2da97f 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