summaryrefslogtreecommitdiff
path: root/arch/powerpc/Kbuild
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2018-10-10 08:13:06 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-10-18 16:56:17 +0300
commit23ad1a2700725d46ee7760920974c68be81ab82d (patch)
treee5811bfce079b051dd6a4189cf78a44b93d412cf /arch/powerpc/Kbuild
parentc47ca98d32a22a412ddbc69916cf62bdcdfa1a4e (diff)
downloadlinux-23ad1a2700725d46ee7760920974c68be81ab82d.tar.xz
powerpc: Add -Werror at arch/powerpc level
Back when I added -Werror in commit ba55bd74360e ("powerpc: Add configurable -Werror for arch/powerpc") I did it by adding it to most of the arch Makefiles. At the time we excluded math-emu, because apparently it didn't build cleanly. But that seems to have been fixed somewhere in the interim. So move the -Werror addition to the top-level of the arch, this saves us from repeating it in every Makefile and means we won't forget to add it to any new sub-dirs. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/Kbuild')
-rw-r--r--arch/powerpc/Kbuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/Kbuild b/arch/powerpc/Kbuild
index 690a498da050..1625a06802ca 100644
--- a/arch/powerpc/Kbuild
+++ b/arch/powerpc/Kbuild
@@ -1,3 +1,5 @@
+subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
+
obj-y += kernel/
obj-y += mm/
obj-y += lib/