rk: add gcc-wrapper
Change-Id: Ie5025f30a747cd40e26eeb6ec939de28af899645 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
parent
60a5825e9c
commit
b1918f4c11
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
|
@ -389,6 +389,12 @@ PYTHON2 = python2
|
|||
PYTHON3 = python3
|
||||
CHECK = sparse
|
||||
|
||||
# Use the wrapper for the compiler. This wrapper scans for new
|
||||
# warnings and causes the build to stop upon encountering them.
|
||||
ifneq ($(wildcard $(srctree)/scripts/gcc-wrapper.py),)
|
||||
CC = $(srctree)/scripts/gcc-wrapper.py $(CROSS_COMPILE)gcc
|
||||
endif
|
||||
|
||||
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
|
||||
-Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF)
|
||||
NOSTDINC_FLAGS =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue