From patchwork Sat Jul 22 04:48:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13322783 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F90EEB64DA for ; Sat, 22 Jul 2023 04:50:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbjGVEuZ (ORCPT ); Sat, 22 Jul 2023 00:50:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231172AbjGVEtp (ORCPT ); Sat, 22 Jul 2023 00:49:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFC1F4683; Fri, 21 Jul 2023 21:48:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7595B60A4E; Sat, 22 Jul 2023 04:48:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC532C433C7; Sat, 22 Jul 2023 04:48:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690001319; bh=lUV+hV9+Om7+zu7Ta7+cYxJn7GpO7yeT62vr+Z7xZLI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GYOnQB7LGmg6UQ7ATyc5uftAZKL+fpYqV41VkuWTsdYUh9V2Mc7FxbzKtA/qVshgI B3ljmZn6jRLhZ/XlfMVWcYSVyx2o5c4qTd9N32cQuV9I95ed+8u6FykKZKkihv+8S6 AYsfV0td7uVd0VezHUy/wmq5BI65RhVxFGBXZJY8NZSU97cO9PqrybHCsK7Ms3rfO6 wOPj5b9smmmlz0svNP8y/BOXJvoeA68U/0wCoRJJkH6N5jEfuXq8uaWsMnebmXyR99 jJ8FDBInwRkw6In4widAxuK9TPsse2RTjzZMQ53eYai5ZmlF7H6dC0AWrYfY5QHvZk 4p8u/5ySS1Uwg== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier Subject: [PATCH 17/19] kbuild: rpm-pkg: build the kernel in-place for rpm-pkg Date: Sat, 22 Jul 2023 13:48:04 +0900 Message-Id: <20230722044806.3867434-17-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230722044806.3867434-1-masahiroy@kernel.org> References: <20230722044806.3867434-1-masahiroy@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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 --- scripts/Makefile.package | 1 + 1 file changed, 1 insertion(+) 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