]> git.ipfire.org Git - people/ms/u-boot.git/commit - Makefile
kbuild: move extra gcc checks to scripts/Makefile.extrawarn
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Tue, 5 Aug 2014 06:56:43 +0000 (15:56 +0900)
committerTom Rini <trini@ti.com>
Thu, 21 Aug 2014 16:01:11 +0000 (12:01 -0400)
commit6419e144924cf91f8f7c78e914247b02e34b2a89
tree90b917fbe085bf8c0c9117371544d2c731afdacc
parent368b4d2b49bbbf379d9334747fbbd2aaaafe4356
kbuild: move extra gcc checks to scripts/Makefile.extrawarn

This commit was imported from Linux Kernel:
commit a86fe353 written by me.

W=... provides extra gcc checks.

Having such code in scripts/Makefile.build results in the same flags
being added to KBUILD_CFLAGS multiple times becuase
scripts/Makefile.build is invoked every time Kbuild descends into
the subdirectories.

Since the top Makefile is already too cluttered, this commit moves
all of extra gcc check stuff to a new file scripts/Makefile.extrawarn,
which is included from the top Makefile.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Makefile
scripts/Makefile.build
scripts/Makefile.extrawarn [new file with mode: 0644]