Fix bogusly declared WERRORs in kernel build
Many arm kernel configs bogusly specified WERROR=-Werror. There's no reason for this because the default is that and there's no reason to override. These date from a time when we needed to add additional warning->error suppression. They are obsolete and were cut and paste propagated from file to file. Comment out all the WERROR=.... lines in powerpc. They aren't bogus, but were appropriate for the old defaults for gcc4.2.1. Now that we've made the policy decision to suppress -Werror by default on these platforms, it is appropriate to comment these out. People wishing to fix these errors can still un-comment them out, or say WERROR=-Werror on the command line. Fix two instances (cut and paste propagation) of hard-coded -Werror in x86 code. Replace with ${WERROR} instead. This is a no-op change except for people who build WERROR=-Wno-error :). This should fix tinderbox / CI breakage.
This commit is contained in:
parent
3eeebb94f1
commit
7d65d42046
@ -23,7 +23,6 @@ include "std.armv7"
|
||||
include "../annapurna/alpine/std.alpine"
|
||||
|
||||
makeoptions MODULES_OVERRIDE=""
|
||||
makeoptions WERROR="-Werror"
|
||||
|
||||
options SCHED_4BSD # 4BSD scheduler
|
||||
options SMP # Enable multiple cores
|
||||
|
@ -11,7 +11,6 @@ ident ARMADA38X
|
||||
|
||||
options SOC_MV_ARMADA38X
|
||||
|
||||
makeoptions WERROR="-Werror"
|
||||
makeoptions MODULES_EXTRA="dtb/mv"
|
||||
|
||||
#options MD_ROOT
|
||||
|
@ -27,8 +27,6 @@ include "../mv/armadaxp/std.mv78x60"
|
||||
|
||||
options SOC_MV_ARMADAXP
|
||||
|
||||
makeoptions WERROR="-Werror"
|
||||
|
||||
options SCHED_ULE # ULE scheduler
|
||||
options SMP # Enable multiple cores
|
||||
|
||||
|
@ -10,8 +10,6 @@ include "../mv/discovery/std.db78xxx"
|
||||
|
||||
options SOC_MV_DISCOVERY
|
||||
|
||||
makeoptions WERROR="-Werror"
|
||||
|
||||
options SCHED_4BSD # 4BSD scheduler
|
||||
options INET # InterNETworking
|
||||
options INET6 # IPv6 communications protocols
|
||||
|
@ -10,8 +10,6 @@ include "../mv/orion/std.db88f5xxx"
|
||||
|
||||
options SOC_MV_ORION
|
||||
|
||||
makeoptions WERROR="-Werror"
|
||||
|
||||
options SCHED_4BSD # 4BSD scheduler
|
||||
options INET # InterNETworking
|
||||
options INET6 # IPv6 communications protocols
|
||||
|
@ -10,8 +10,6 @@ include "../mv/kirkwood/std.db88f6xxx"
|
||||
|
||||
options SOC_MV_KIRKWOOD
|
||||
|
||||
makeoptions WERROR="-Werror"
|
||||
|
||||
options SCHED_4BSD # 4BSD scheduler
|
||||
options INET # InterNETworking
|
||||
options INET6 # IPv6 communications protocols
|
||||
|
@ -16,7 +16,6 @@ makeoptions FDT_DTS_FILE=wzr2-g300n.dts
|
||||
makeoptions MODULES_OVERRIDE=""
|
||||
|
||||
#makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
|
||||
makeoptions WERROR="-Werror"
|
||||
|
||||
options SCHED_4BSD # 4BSD scheduler
|
||||
options INET # InterNETworking
|
||||
|
@ -11,8 +11,6 @@ include "../mv/kirkwood/std.db88f6xxx"
|
||||
|
||||
options SOC_MV_KIRKWOOD
|
||||
|
||||
makeoptions WERROR="-Werror"
|
||||
|
||||
options HZ=1000
|
||||
options SCHED_4BSD # 4BSD scheduler
|
||||
options INET # InterNETworking
|
||||
|
@ -24,8 +24,6 @@ include "../altera/socfpga/std.socfpga"
|
||||
|
||||
makeoptions MODULES_OVERRIDE=""
|
||||
|
||||
makeoptions WERROR="-Werror"
|
||||
|
||||
options SCHED_ULE # ULE scheduler
|
||||
options PLATFORM # Platform based SoC
|
||||
options SMP # Enable multiple cores
|
||||
|
@ -10,8 +10,6 @@ include "../mv/orion/std.ts7800"
|
||||
|
||||
options SOC_MV_ORION
|
||||
|
||||
makeoptions WERROR="-Werror"
|
||||
|
||||
options SCHED_4BSD # 4BSD scheduler
|
||||
options INET # InterNETworking
|
||||
options INET6 # IPv6 communications protocols
|
||||
|
@ -22,8 +22,6 @@ ident VYBRID
|
||||
include "std.armv7"
|
||||
include "../freescale/vybrid/std.vybrid"
|
||||
|
||||
makeoptions WERROR="-Werror"
|
||||
|
||||
options SCHED_4BSD # 4BSD scheduler
|
||||
options PLATFORM # Platform based SoC
|
||||
#options SMP # Enable multiple cores
|
||||
|
@ -50,7 +50,7 @@ linux32_assym.h optional compat_linux32 \
|
||||
#
|
||||
linux32_locore.o optional compat_linux32 \
|
||||
dependency "linux32_assym.h $S/amd64/linux32/linux32_locore.asm" \
|
||||
compile-with "${CC} -x assembler-with-cpp -DLOCORE -m32 -shared -s -pipe -I. -I$S -Werror -Wall -fPIC -fno-common -nostdinc -nostdlib -Wl,-T$S/amd64/linux32/linux32_vdso.lds.s -Wl,-soname=linux32_vdso.so,--eh-frame-hdr,-warn-common ${.IMPSRC} -o ${.TARGET}" \
|
||||
compile-with "${CC} -x assembler-with-cpp -DLOCORE -m32 -shared -s -pipe -I. -I$S ${WERROR} -Wall -fPIC -fno-common -nostdinc -nostdlib -Wl,-T$S/amd64/linux32/linux32_vdso.lds.s -Wl,-soname=linux32_vdso.so,--eh-frame-hdr,-warn-common ${.IMPSRC} -o ${.TARGET}" \
|
||||
no-obj no-implicit-rule \
|
||||
clean "linux32_locore.o"
|
||||
#
|
||||
|
@ -37,7 +37,7 @@ linux_assym.h optional compat_linux \
|
||||
#
|
||||
linux_locore.o optional compat_linux \
|
||||
dependency "linux_assym.h $S/i386/linux/linux_locore.asm" \
|
||||
compile-with "${CC} -x assembler-with-cpp -DLOCORE -shared -s -pipe -I. -I$S -Werror -Wall -fPIC -fno-common -nostdinc -nostdlib -Wl,-T$S/i386/linux/linux_vdso.lds.s -Wl,-soname=linux_vdso.so,--eh-frame-hdr,-warn-common ${.IMPSRC} -o ${.TARGET}" \
|
||||
compile-with "${CC} -x assembler-with-cpp -DLOCORE -shared -s -pipe -I. -I$S ${WERROR} -Wall -fPIC -fno-common -nostdinc -nostdlib -Wl,-T$S/i386/linux/linux_vdso.lds.s -Wl,-soname=linux_vdso.so,--eh-frame-hdr,-warn-common ${.IMPSRC} -o ${.TARGET}" \
|
||||
no-obj no-implicit-rule \
|
||||
clean "linux_locore.o"
|
||||
#
|
||||
|
@ -13,7 +13,6 @@ machine powerpc powerpc
|
||||
include "dpaa/config.dpaa"
|
||||
makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
|
||||
makeoptions WITH_CTF=1
|
||||
makeoptions WERROR="-Werror -Wno-format -Wno-redundant-decls"
|
||||
|
||||
options FPU_EMU
|
||||
|
||||
|
@ -13,7 +13,6 @@ machine powerpc powerpcspe
|
||||
include "dpaa/config.dpaa"
|
||||
makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
|
||||
makeoptions WITH_CTF=1
|
||||
makeoptions WERROR="-Werror -Wno-format -Wno-redundant-decls"
|
||||
|
||||
options FPU_EMU
|
||||
options MAXCPU=2
|
||||
|
@ -14,7 +14,7 @@ machine powerpc powerpc64
|
||||
include "dpaa/config.dpaa"
|
||||
makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
|
||||
makeoptions WITH_CTF=1
|
||||
makeoptions WERROR="-Werror -Wno-format -Wno-redundant-decls"
|
||||
#makeoptions WERROR="-Werror -Wno-format -Wno-redundant-decls"
|
||||
|
||||
options FPU_EMU
|
||||
|
||||
|
@ -12,7 +12,7 @@ cpu BOOKE_E500
|
||||
|
||||
machine powerpc powerpc
|
||||
#makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
|
||||
makeoptions WERROR="-Werror -Wno-format -Wno-redundant-decls"
|
||||
#makeoptions WERROR="-Werror -Wno-format -Wno-redundant-decls"
|
||||
makeoptions NO_MODULES=yes
|
||||
|
||||
# Platform support
|
||||
|
Loading…
x
Reference in New Issue
Block a user