]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: move extra gcc checks to scripts/Makefile.extrawarn
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Mon, 14 Apr 2014 09:27:10 +0000 (18:27 +0900)
committerMichal Marek <mmarek@suse.cz>
Wed, 16 Apr 2014 21:28:41 +0000 (23:28 +0200)
commit5dd267dd56e5879fb2a9942477117a512df08b30
tree7572e2131dc2c9e014c4c22302336c5812912393
parent55addf3150ef37e6b38d415547cc6f20b4d9aca1
kbuild: move extra gcc checks to scripts/Makefile.extrawarn

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>
CC: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Makefile
scripts/Makefile.build
scripts/Makefile.extrawarn [new file with mode: 0644]