From: Nathan Chancellor <nathan@kernel.org>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
Nick Desaulniers <ndesaulniers@google.com>,
Nicolas Schier <nicolas@fjasle.eu>
Subject: Re: [PATCH] kbuild: deb-pkg: specify targets in debian/rules as .PHONY
Date: Tue, 25 Apr 2023 11:08:02 -0700 [thread overview]
Message-ID: <20230425180802.GA2881732@dev-arch.thelio-3990X> (raw)
In-Reply-To: <20230425110859.1757001-1-masahiroy@kernel.org>
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
>
next prev parent reply other threads:[~2023-04-25 18:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-25 11:08 Masahiro Yamada
2023-04-25 18:08 ` Nathan Chancellor [this message]
2023-04-26 14:12 ` Masahiro Yamada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230425180802.GA2881732@dev-arch.thelio-3990X \
--to=nathan@kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=ndesaulniers@google.com \
--cc=nicolas@fjasle.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®