You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/include
Petr Štetiar cbbef976e2 build: dtc: Disable noisy warnings by default
While helping with review and build testing of a few 4.19 pull requests,
I've noticed, that dtc compiler in OpenWrt uses different options then
upstream kernel, which is leading to a very noisy output[1]. It wouldn't
be that bad per se, but a lot of such warnings aren't easily fixable so
I think, that we should follow what upstream does and simply ignore^W
silence those noisy warnings.

So this patch tries to syncs dtc compiler flags with upstream kernel
till version 4.19.13, disabling those warnings as they were added in
upstream kernel:

 v4.6-rc1-2-gbc55398 dtc: turn off dtc unit address warnings by default

  The newly added dtc warning to check DT unit-address without reg
  property and vice-versa generates lots of warnings. Turn off the check
  unless building with W=1 or W=2.

 v4.11-rc2-11-g8654cb8 dtc: update warning settings for new bus and node/property

  dtc gained new warnings checking PCI and simple buses, unit address
  formatting, and stricter node and property name checking. Disable the
  new dtc warnings by default as there are 1000s. As before, warnings are
  enabled with W=1 or W=2. The strict node and property name checks are a
  bit subjective, so they are only enabled for W=2.

 v4.16-rc3-9-g4fd98e3 scripts: turn off some new dtc warnings by default

  The latest dtc update adds some new noisy warnings, so turn them off by
  default. Disable 'avoid_unnecessary_addr_size' and 'alias_paths'. They
  can be re-enabled by building with 'W=1'.

 v4.17-rc1-27-g74656b6 kbuild: disable new dtc graph and unit-address warnings

  dtc gained some new warnings for OF graphs and unique unit addresses,
  but they are currently much too noisy. So turn off
  'graph_child_address', 'graph_port', and 'unique_unit_address' warnings
  by default. They can be enabled by building dtbs with W=1.

Build tested on imx6 and ath79 with 4.14 and 4.19.

1. https://github.com/openwrt/openwrt/pull/1694#issuecomment-450864335

Signed-off-by: Petr Štetiar <ynezz@true.cz>
5 years ago
..
site include/site: add powerpc64 config 7 years ago
autotools.mk treewide: fix build depends to refer to source package names 6 years ago
cmake.mk build: use CMAKE_SOURCE_SUBDIR variable to cmake.mk 6 years ago
debug.mk include: remove trailing whitespaces 9 years ago
depends.mk build: add missing wildcard for ignoring .pkgdir in dependency checks 7 years ago
device_table.txt image: ensure that /dev/console exist in rootfs images 11 years ago
download.mk download.mk: enable DownloadMethod/github_archive 6 years ago
feeds.mk build: add ABI_VERSION to binary package names 5 years ago
hardened-ld-pie.specs build: add hardened builds with PIE (ASLR) support 6 years ago
hardening.mk build: fix ASLR for LTO packages 6 years ago
host-build.mk build: do not override CCACHE_DIR when ccache is disabled 6 years ago
image-commands.mk build: add a script for generating Linksys factory images 5 years ago
image-legacy.mk image: fix ar71xx legacy images 7 years ago
image.mk build: dtc: Disable noisy warnings by default 5 years ago
kernel-build.mk include/kernel-build.mk: fix kernel rebuild on backport patch changes 6 years ago
kernel-defaults.mk kernel: fix downloading rcX releases 6 years ago
kernel-version.mk kernel: bump 4.14 to 4.14.95 5 years ago
kernel.mk build: fix build dependency of kmod .ipk with version filtered files 6 years ago
netfilter.mk netfilter: Add fib support for nftables 6 years ago
nls.mk treewide: fix build depends to refer to source package names 6 years ago
package-bin.mk build: use if-then to avoid non-zero return codes in bin/ packaging code 7 years ago
package-defaults.mk include/package-defaults.mk: fix default Build/Prepare with empty ./src 6 years ago
package-dumpinfo.mk build: expose ABI version in .packageauxvars 5 years ago
package-ipkg.mk build: formatting fixes for per-provide ABI_VERSION suffixes 5 years ago
package-seccomp.mk include: add a seccomp filter install wrapper 9 years ago
package.mk build: do not override CCACHE_DIR when ccache is disabled 6 years ago
prereq-build.mk build: remove GNU time dependency 6 years ago
prereq.mk include: extend SetupHostCommand macro to accept more arguments 6 years ago
quilt.mk kernel: split patches folder up into backport, pending and hack folders 7 years ago
rootfs.mk include/rootfs.mk: remove boot directory 6 years ago
scan.awk build: propagate override information to .packageinfo 9 years ago
scan.mk build: fix target metadata scan dependencies 6 years ago
scons.mk build: use CXXFLAGS if defined 8 years ago
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 7 years ago
subdir.mk build: remove GNU time dependency 6 years ago
target.mk hostapd: add basic variant 6 years ago
toolchain-build.mk toolchain: Include hardening.mk for toolchain build 5 years ago
toplevel.mk build: rename .packagesubdirs to .packageauxvars 5 years ago
u-boot.mk u-boot.mk: Fix building of recent U-Boot sources 5 years ago
uclibc++.mk toolchain: eliminate the INSTALL_LIBSTDCPP config symbol and make c++ support mandatory - fixes recursive config symbol dependency issues 11 years ago
unpack.mk build: unzip: perform operations quietly 7 years ago
verbose.mk include/verbose.mk: Add sc to failure message 6 years ago
version.mk base-files: fix HOME_URL replace 6 years ago