ART: Fix Android.cpplint.mk to use scan art/ directory
Currently Android.cpplint.mk doesn't set LOCAL_PATH variable but assumes
that it is initialized properly (see comments before initializing
ART_CPPLINT_SRC variable). Change https://r.android.com/1711019 moved
one of the includes in art/Android.mk file up, before include
Android.cpplint.mk which modified this variable, so currently
'm cpplint-art' call only scans source files in tools/veridex folder
Test: m cpplint-art and m cpplint-art-all
Change-Id: Ic948e029a4365fc49b8ffeb1e67b47ac0dbee182
diff --git a/build/Android.cpplint.mk b/build/Android.cpplint.mk
index af446ff..ce68214 100644
--- a/build/Android.cpplint.mk
+++ b/build/Android.cpplint.mk
@@ -16,6 +16,9 @@
include art/build/Android.common_build.mk
+# We need to be in art directory to properly initialize ART_CPPLINT_SRC variable.
+LOCAL_PATH := $(art_path)
+
# Use upstream cpplint (toolpath from .repo/manifests/GLOBAL-PREUPLOAD.cfg).
ART_CPPLINT := external/google-styleguide/cpplint/cpplint.py