Message ID | 20230425110859.1757001-1-masahiroy@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3327974vqo; Tue, 25 Apr 2023 04:15:50 -0700 (PDT) X-Google-Smtp-Source: AKy350ZGYj+czJNBUhH7RgEQst8fJZoHO7rvQ2DTEOvEaP6/xUa6Qdmgt1Bbpyrw03Y03PBpoXzN X-Received: by 2002:a05:6a00:2da7:b0:625:ea57:389b with SMTP id fb39-20020a056a002da700b00625ea57389bmr22797669pfb.5.1682421349650; Tue, 25 Apr 2023 04:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682421349; cv=none; d=google.com; s=arc-20160816; b=J2OpX13GAdE9/Ev/2iDHtja6yGNtEgH4eYdJzUqkncZYZIkkS9q1GIuY6TimUK3EX7 NAV4PcXYHaUvYFhb68FlgusALSHm6B3O4sp4037XcTz8iZnxbOoubA5USQH1XKfY25h5 yz0M8ttPIOrz4sdrO3Md+hMbrjPNs7CLs//feuS6UvFR356oxwsi9Nqw32jtzDtqZKNp h2KFAdV8Q5uaDF7hyKA7u2Wd6ZnMxo1pM4pRV2gA7PhiRJ0xn+V+guYzFW5ksc+UcLdz gOJy8zOC2MJn0QfY8Hz23D+inXM16wzw2wtdSjT0iWpxtyoPrEqPa9AxfhghXAD6R9z4 9arA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020aa7990a000000b0062d7d3c6cadsi13582795pff.333.2023.04.25.04.15.36; Tue, 25 Apr 2023 04:15:49 -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 S233666AbjDYLJp (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Tue, 25 Apr 2023 07:09:45 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <masahiroy@kernel.org> To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada <masahiroy@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Nicolas Schier <nicolas@fjasle.eu> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764146648858168499?= X-GMAIL-MSGID: =?utf-8?q?1764146648858168499?= |
Series |
kbuild: deb-pkg: specify targets in debian/rules as .PHONY
|
|
Commit Message
Masahiro Yamada
April 25, 2023, 11:08 a.m. UTC
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 <masahiroy@kernel.org>
---
scripts/package/mkdebian | 2 ++
1 file changed, 2 insertions(+)
Comments
On Tue, Apr 25, 2023 at 08:08:59PM +0900, Masahiro Yamada wrote: > 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 <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> > --- > > 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 <<EOF > 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 >
On Wed, Apr 26, 2023 at 3:08 AM Nathan Chancellor <nathan@kernel.org> wrote: > > On Tue, Apr 25, 2023 at 08:08:59PM +0900, Masahiro Yamada wrote: > > 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 <masahiroy@kernel.org> > > Reviewed-by: Nathan Chancellor <nathan@kernel.org> Applied to linux-kbuild. > > > --- > > > > 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 <<EOF > 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 > >
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 <<EOF > 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} \