Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6803031rwr; Tue, 25 Apr 2023 04:10:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZuLzjb9xMfiJbp3E8iE1ujiKEYeRBAKqzXvaoBaWaTKaNO1ulwgv1XS8gllC0rkgF0Xe6b X-Received: by 2002:a17:903:42c6:b0:1a1:97b5:c63e with SMTP id jy6-20020a17090342c600b001a197b5c63emr15483146plb.38.1682421006297; Tue, 25 Apr 2023 04:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682421006; cv=none; d=google.com; s=arc-20160816; b=X46r4lxBDqp4gOt/j/PO7ZPySZFciSbhgxjbCBt7ilEqCiBD4rDFajST8inofst0Ku oG7LkQxaXbmvIvlqTIodVreNKPWH3scHTKf8pdFENT//Nu/4t1lkpL6bxF1ZtbsOPVJi Mv4tr5UAiDlTYXySxhhjkk4187UqHSltEt4r7aCX4cn2nVxpK16s7tY4dd9i2hfG+2PV YdrYIGcAVWdv4xeh9RxF4CGNv2vl5Hy7xm/YjeFdMif8Pfd5SE+YJA7NL4VSlDHwVpzt iYIMH3QhRZCbhQMtFlL6Wa14ccP679D7Ylk6w4mVK/WhRlL2iQtI5km+k+c/h4fk7TYy F2QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UIOaXoqRVO6uhWcJCQYpfqrm29mdQeWrEaH9ku8V/Dk=; b=I4HDoXCd3aMclHqQXrYfkiRABQa/fn59fBgDH0xIilNlAPF2bi6OoTw51kcqJ3Kvlg Po51LKSk75xUV7dyIl1hQH3twpPAdckPEtUjB4MxRHhzbU8ksTW2xrz6weKJcOfU6WkM MXuG9g8pV0vMYygmE51MT77z8kmcNcYYlWVeKUEE05alK1FLcRb82L/5bJZjEVjftsqS 58fDFl0nz45CPmh8P8M2zW822NY4KtMvBYDVc7Iv99KLq4zBTRUlWrVXkIz20hfcoVfC DHIUqmG+PPpaiyTA8wMP6huiV5QLbkOc9YySW7MEr/n4AAgkJbUIQMVcl4ogjgBXhesq iZ2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Sog/inqY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a170902d58200b001a69cb5f7besi13353209plh.525.2023.04.25.04.09.52; Tue, 25 Apr 2023 04:10:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Sog/inqY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233554AbjDYLJo (ORCPT + 99 others); Tue, 25 Apr 2023 07:09:44 -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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- 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} \ -- 2.37.2