diff options
author | Tom Rini <trini@konsulko.com> | 2020-02-14 15:41:21 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-02-15 09:28:10 -0500 |
commit | 44e086cae60b0d0edeccd12a9b972372fdb6cfca (patch) | |
tree | 9e37ac8346682e9aed73ac0c11225613818d7fe5 | |
parent | 40592c438f714e72a1cd4cf92a5ffdf93c3f00b8 (diff) | |
download | u-boot-WIP/kbuild-resync-v4.3.tar.gz |
kbuild: sync with Linux 4.3WIP/kbuild-resync-v4.3
Update some build scripts to match Linux 4.3. Commit-based syncing was
done so as to not break U-boot specific changes. This continues the
syncing process started previously in this series.
The commits imported from Linux (some with adjustments) are:
[1] commit 26ea6bb1fef06c686be771903ecab0518af5c2de
Author: Behan Webster <behanw@converseincode.com>
kbuild, LLVMLinux: Supress warnings unless W=1-3
[For all of the Kbuild changes within Linux]
Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
[For applying within U-Boot]
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | scripts/Makefile.extrawarn | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 1105c76be1..51ed28a56f 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -77,4 +77,13 @@ DTC_FLAGS += -Wno-pci_device_reg DTC_FLAGS += -Wno-avoid_unnecessary_addr_size DTC_FLAGS += -Wno-alias_paths +ifeq ($(cc-name),clang) +KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides) +KBUILD_CFLAGS += $(call cc-disable-warning, unused-value) +KBUILD_CFLAGS += $(call cc-disable-warning, format) +KBUILD_CFLAGS += $(call cc-disable-warning, unknown-warning-option) +KBUILD_CFLAGS += $(call cc-disable-warning, sign-compare) +KBUILD_CFLAGS += $(call cc-disable-warning, format-zero-length) +KBUILD_CFLAGS += $(call cc-disable-warning, uninitialized) +endif endif |