mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
uboot: Treat warnings as errors
To treat warnings as errors, enable Werror in CFLAGS. sysupgrade-helper will compile separately only for 64 bit target, since it has architecture specific registers which throws warning on 32 bit compilation. For 32 bit target sysupgrade tools will compile as part of uboot-2016 and installed to target. Change-Id: I2f9bc0610d1738c17b294ddd79a9cadd2eb2f6b0 Signed-off-by: Sanjeev N <nsanjeev@codeaurora.org>
This commit is contained in:
parent
061fe73963
commit
317523ea76
1 changed files with 1 additions and 15 deletions
16
Makefile
16
Makefile
|
|
@ -358,7 +358,7 @@ KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__
|
||||||
|
|
||||||
KBUILD_CFLAGS := -Wall -Wstrict-prototypes \
|
KBUILD_CFLAGS := -Wall -Wstrict-prototypes \
|
||||||
-Wno-format-security \
|
-Wno-format-security \
|
||||||
-fno-builtin -ffreestanding
|
-fno-builtin -ffreestanding -Werror
|
||||||
KBUILD_AFLAGS := -D__ASSEMBLY__
|
KBUILD_AFLAGS := -D__ASSEMBLY__
|
||||||
|
|
||||||
# Read UBOOTRELEASE from include/config/uboot.release (if it exists)
|
# Read UBOOTRELEASE from include/config/uboot.release (if it exists)
|
||||||
|
|
@ -576,20 +576,6 @@ KBUILD_CFLAGS += $(call cc-option,-fstack-protector)
|
||||||
endif
|
endif
|
||||||
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)
|
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)
|
||||||
|
|
||||||
#FIXME: Added to avoid the warning from sysupgrade-helper
|
|
||||||
#To be modified once the config is fixed
|
|
||||||
ifdef CONFIG_ARCH_IPQ807x
|
|
||||||
KBUILD_CFLAGS += -Werror
|
|
||||||
endif
|
|
||||||
ifdef CONFIG_ARCH_IPQ40xx
|
|
||||||
KBUILD_CFLAGS += -Werror
|
|
||||||
endif
|
|
||||||
ifdef CONFIG_ARCH_IPQ806x
|
|
||||||
KBUILD_CFLAGS += -Werror
|
|
||||||
endif
|
|
||||||
ifdef CONFIG_ARCH_IPQ6018
|
|
||||||
KBUILD_CFLAGS += -Werror
|
|
||||||
endif
|
|
||||||
KBUILD_CFLAGS += -g
|
KBUILD_CFLAGS += -g
|
||||||
# $(KBUILD_AFLAGS) sets -g, which causes gcc to pass a suitable -g<format>
|
# $(KBUILD_AFLAGS) sets -g, which causes gcc to pass a suitable -g<format>
|
||||||
# option to the assembler.
|
# option to the assembler.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue