check-reqs.eclass: stub out

This eclass checks things like free disk & total RAM on the build
system.  We've largely validated that ahead of time, and checking
this constantly when emerging packages just adds overhead because
portage runs these pkg_* steps serially before emerging anything.

BUG=None
TEST=CQ passes

Change-Id: I0e9362f5e176ee0c5d49617bf12758c1247e1dd3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/eclass-overlay/+/1872620
Reviewed-by: Chris McDonald <cjmcdonald@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass
new file mode 100644
index 0000000..d528244
--- /dev/null
+++ b/eclass/check-reqs.eclass
@@ -0,0 +1,16 @@
+# Copyright 1999-2019 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This is a stub eclass to disable these checks in CrOS.  We don't generally
+# care about these, or need to worry that the system is low on resources.
+#
+# We only provide stubs for the funcs that appear to be used in the tree rather
+# than every function the eclass exports.
+
+if [[ ! ${_CHECK_REQS_ECLASS_} ]]; then
+
+check-reqs_pkg_setup() { :; }
+check-reqs_pkg_pretend() { :; }
+
+_CHECK_REQS_ECLASS_=1
+fi