From: Masahiro Yamada Date: Mon, 14 Apr 2014 09:27:10 +0000 (+0900) Subject: kbuild: move extra gcc checks to scripts/Makefile.extrawarn X-Git-Tag: omap-for-v3.16/fixes-against-rc1~28^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a86fe3537350613c0181ce936884036a9695ceea;p=pandora-kernel.git 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 CC: Sam Ravnborg Signed-off-by: Michal Marek --- Reading git-diff-tree failed