From patchwork Tue Apr 25 11:08:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13223210 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 B0772C6FD18 for ; Tue, 25 Apr 2023 11:09:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233793AbjDYLJn (ORCPT ); Tue, 25 Apr 2023 07:09:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233757AbjDYLJl (ORCPT ); Tue, 25 Apr 2023 07:09:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FE7213C02; Tue, 25 Apr 2023 04:09:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8B231625BA; Tue, 25 Apr 2023 11:09:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4166C433D2; Tue, 25 Apr 2023 11:09:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682420946; bh=N4A+e7aLAiSuJq881XsSCZo2/DplqwGz+n84VQ38/kI=; h=From:To:Cc:Subject:Date:From; b=Sog/inqYhQTSG97VMlyPM5aKoUIjyAcaG9ZnvHtKbYeDu44/tEcNceC1WAMCoBK6S f+4A69b2XzPYfS2s4kVciAIDF3OJ3DOuw6VWkh1X1R8ZiULxEJGV1R4vQFyr7N05ZJ SKR6bItnzPNR+c4zXLJIjYdPXk9djpUN1WxRyXEcSK5FAjTl5MRRdT5bIoIb3DFFCF iiluVPYr1igFX/gaCPYLyVUli+zMAHwQOarpfQXrZ4DN8A3v0ZgbyE/3VI5/8Lk9B+ L891ZgKUf6c0XQgQRdeHL039LN8T6T6aLZiTycmx47mM6ZjmfBsymU3yOQvMqsa9rL EyUthH2BStZXA== 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] kbuild: deb-pkg: specify targets in debian/rules as .PHONY Date: Tue, 25 Apr 2023 20:08:59 +0900 Message-Id: <20230425110859.1757001-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org If a file with the same name exists, the target is not run. For example, the following command fails. $ make O=build-arch bindeb-pkg [ snip ] sed: can't read modules.order: No such file or directory make[6]: *** [../Makefile:1577: __modinst_pre] Error 2 make[5]: *** [../scripts/Makefile.package:150: intdeb-pkg] Error 2 make[4]: *** [../Makefile:1657: intdeb-pkg] Error 2 make[3]: *** [debian/rules:14: binary-arch] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 make[2]: *** [../scripts/Makefile.package:139: bindeb-pkg] Error 2 Signed-off-by: Masahiro Yamada Reviewed-by: Nathan Chancellor --- scripts/package/mkdebian | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index a4c2c2276223..b6cb95473548 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -269,6 +269,8 @@ cat < debian/rules srctree ?= . KERNELRELEASE = ${KERNELRELEASE} +.PHONY: clean build build-arch build-indep binary binary-arch binary-indep + build-indep: build-arch: \$(MAKE) -f \$(srctree)/Makefile ARCH=${ARCH} \