All of lore.kernel.org
 help / color / mirror / Atom feed
From: Masahiro Yamada <masahiroy@kernel.org>
To: u-boot@lists.denx.de
Subject: [PATCHv2 2/4] kbuild: Re-sync DTC flag logic with v4.17
Date: Wed, 26 Feb 2020 08:07:19 +0900	[thread overview]
Message-ID: <CAK7LNAQbsaWV8abUzQS-XWB+mi+0uxy5fLvFJ=XPAmEPDUs_-Q@mail.gmail.com> (raw)
In-Reply-To: <20200224175035.2239-2-trini@konsulko.com>

Hi Tom,


On Tue, Feb 25, 2020 at 2:50 AM Tom Rini <trini@konsulko.com> wrote:
>
> The way that we have been handling additional DTC warning flags hasn't
> matched the way the Linux Kernel does.  Resync this logic with v4.17.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>


If you entirely move DTC_FLAGS to scripts/Makefile.lib,
you can git rid of 'export DTC_FLAGS' from the top Makefile.


diff --git a/Makefile b/Makefile
index 66b72105c1..0b049e00d9 100644
--- a/Makefile
+++ b/Makefile
@@ -431,7 +431,7 @@ export ARCH CPU BOARD VENDOR SOC CPUDIR BOARDDIR
 export CONFIG_SHELL HOSTCC HOSTCFLAGS HOSTLDFLAGS CROSS_COMPILE AS LD CC
 export CPP AR NM LDR STRIP OBJCOPY OBJDUMP
 export MAKE LEX YACC AWK PERL PYTHON PYTHON2 PYTHON3
-export HOSTCXX HOSTCXXFLAGS CHECK CHECKFLAGS DTC DTC_FLAGS
+export HOSTCXX HOSTCXXFLAGS CHECK CHECKFLAGS DTC

 export KBUILD_CPPFLAGS NOSTDINC_FLAGS UBOOTINCLUDE OBJCOPYFLAGS LDFLAGS
 export KBUILD_CFLAGS KBUILD_AFLAGS




<snip>

> diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
> index 30f392fdfb08..bfb5851e9bfa 100644
> --- a/scripts/Makefile.lib
> +++ b/scripts/Makefile.lib
> @@ -274,6 +274,22 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \
>  # DTC
>  # ---------------------------------------------------------------------------
>

If you want to re-sync this hunk completely,
you can move

DTC ?= $(objtree)/scripts/dtc/dtc

here from the top Makefile. I leave it up to you.

(You need to get rid of 'export DTC' in that case)



I just noticed $(DTC) is no longer used in the top Makefile.
Hence, this patch.

http://patchwork.ozlabs.org/patch/1244561/


> +# Disable noisy checks by default
> +ifeq ($(findstring 1,$(KBUILD_ENABLE_EXTRA_GCC_CHECKS)),)
> +DTC_FLAGS += -Wno-unit_address_vs_reg \
> +       -Wno-unit_address_format \
> +       -Wno-avoid_unnecessary_addr_size \
> +       -Wno-alias_paths \
> +       -Wno-pci_device_reg
> +endif
> +
> +ifneq ($(findstring 2,$(KBUILD_ENABLE_EXTRA_GCC_CHECKS)),)
> +DTC_FLAGS += -Wnode_name_chars_strict \
> +       -Wproperty_name_chars_strict
> +endif
> +
> +DTC_FLAGS += $(DTC_FLAGS_$(basetarget))
> +
>  # Generate an assembly file to wrap the output of the device tree compiler
>  quiet_cmd_dt_S_dtb= DTB     $@
>  # Modified for U-Boot
> --
> 2.17.1
>


-- 
Best Regards
Masahiro Yamada

  reply	other threads:[~2020-02-25 23:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-24 17:50 [PATCHv2 1/4] kbuild: fixdep: Resync this with v4.17 Tom Rini
2020-02-24 17:50 ` [PATCHv2 2/4] kbuild: Re-sync DTC flag logic " Tom Rini
2020-02-25 23:07   ` Masahiro Yamada [this message]
2020-03-17 15:28   ` Tom Rini
2020-02-24 17:50 ` [PATCHv2 3/4] scripts/Makefile.lib: Restore PCI related warnings to DTC_FLAGS Tom Rini
2020-02-25 23:14   ` Masahiro Yamada
2020-03-17 15:28   ` Tom Rini
2020-02-24 17:50 ` [PATCHv2 4/4] scripts/Makefile.lib: Re-add -Wno-simple_bus_reg " Tom Rini
2020-02-25 23:16   ` Masahiro Yamada
2020-03-17 15:29   ` Tom Rini
2020-02-25 23:11 ` [PATCHv2 1/4] kbuild: fixdep: Resync this with v4.17 Masahiro Yamada
2020-03-17 15:28 ` Tom Rini

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='CAK7LNAQbsaWV8abUzQS-XWB+mi+0uxy5fLvFJ=XPAmEPDUs_-Q@mail.gmail.com' \
    --to=masahiroy@kernel.org \
    --cc=u-boot@lists.denx.de \
    /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.