diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index f3db20e3b6..912395970f 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -1,2 +1,2 @@
[Hook Scripts]
-checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
+checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --config_xml tools/checkstyle.xml --sha ${PREUPLOAD_COMMIT}
diff --git a/tools/checkstyle.xml b/tools/checkstyle.xml
new file mode 100644
index 0000000000..0f4163d780
--- /dev/null
+++ b/tools/checkstyle.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+]>
+
+
+ &defaultModuleChecks;
+ &defaultCopyrightCheck;
+
+ &defaultJavadocChecks;
+ &defaultTreewalkerChecks;
+
+
+
+
+
+
diff --git a/tools/checkstyle_suppression.xml b/tools/checkstyle_suppression.xml
new file mode 100644
index 0000000000..799e750605
--- /dev/null
+++ b/tools/checkstyle_suppression.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/print_db.py b/tools/print_db.py
similarity index 100%
rename from print_db.py
rename to tools/print_db.py