All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Yann Sionneau <ysionneau@kalray.eu>
Cc: Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>
Subject: Re: [PATCH 1/1] Use target CPP to pre-process dts as supported flag checks are done on target toolchain
Date: Tue, 21 Dec 2021 19:30:06 -0400	[thread overview]
Message-ID: <CAL_JsqJPxPR5QGKDy8CVrph8ScfNJ0Bu29XmrEGxN1d9Zf6WbQ@mail.gmail.com> (raw)
In-Reply-To: <20211220162925.14441-2-ysionneau@kalray.eu>

On Mon, Dec 20, 2021 at 12:29 PM Yann Sionneau <ysionneau@kalray.eu> wrote:
>
> If some flag is not supported by host toolchain but is supported by target toolchain, then
> using host toolchain will fail here because the checks are only done on target toolchain.
>
> Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
> ---
>  scripts/Makefile.lib | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
> index 94133708889d..1d11b7a23957 100644
> --- a/scripts/Makefile.lib
> +++ b/scripts/Makefile.lib
> @@ -316,7 +316,7 @@ $(obj)/%.dtb.S: $(obj)/%.dtb FORCE
>         $(call if_changed,dt_S_dtb)
>
>  quiet_cmd_dtc = DTC     $@
> -cmd_dtc = $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
> +cmd_dtc = $(CC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \

The host toolchain is used so that we don't have to have cross
compiler for every last arch.

Rob

  parent reply	other threads:[~2021-12-21 23:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20 16:29 [PATCH 0/1] Use target CPP to pre-process dts as supported flag checks are done on target toolchain Yann Sionneau
2021-12-20 16:29 ` [PATCH 1/1] " Yann Sionneau
2021-12-21 23:10   ` Masahiro Yamada
2021-12-21 23:30   ` Rob Herring [this message]
2021-12-21 23:08 ` [PATCH 0/1] " 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=CAL_JsqJPxPR5QGKDy8CVrph8ScfNJ0Bu29XmrEGxN1d9Zf6WbQ@mail.gmail.com \
    --to=robh@kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=ysionneau@kalray.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.