sanitycheck: allow deprecated APIs

sanitycheck is set up to error out on any compiler warnings.
However in the case of deprecated APIs, we may feel compelled
to still test them while they remain in-tree. Don't fail the
build if deprecated APIs are used during sanity runs.

Change-Id: Ic3196896689706d308117e693ab720713d67d698
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-07-28 09:31:56 -07:00
commit 12244a3a8e

View file

@ -595,7 +595,7 @@ class MakeGenerator:
""" """
MAKE_RULE_TMPL = """\t@echo sanity_test_{phase} {goal} >&2 MAKE_RULE_TMPL = """\t@echo sanity_test_{phase} {goal} >&2
\t$(MAKE) -C {directory} O={outdir} V={verb} EXTRA_CFLAGS="-Werror {cflags}" EXTRA_ASMFLAGS=-Wa,--fatal-warnings EXTRA_LDFLAGS=--fatal-warnings {args} >{logfile} 2>&1 \t$(MAKE) -C {directory} O={outdir} V={verb} EXTRA_CFLAGS="-Werror {cflags} -Wno-deprecated-declarations" EXTRA_ASMFLAGS=-Wa,--fatal-warnings EXTRA_LDFLAGS=--fatal-warnings {args} >{logfile} 2>&1
""" """
GOAL_FOOTER_TMPL = "\t@echo sanity_test_finished {goal} >&2\n\n" GOAL_FOOTER_TMPL = "\t@echo sanity_test_finished {goal} >&2\n\n"