build: Fix cros_config and static boolean

These two variables are defined as boolean and yet were being compared
to string. This was disabling all cros_config conditional compilation.

Once enabled, further failures were revealed: some code needs
-std=gnu99. I also added some explicit imports for linux/limits.h so
that future compatibility issues will be less common.

Finally, tests/ was completely broken and fixing it would have required
adding DTC support to Meson (since the test DTS file would have to be
compiled). We're about to delete all of this so I just deleted the test
instead.

BUG=none
TEST=emerge-grunt mosys
BRANCH=none

Change-Id: Ia69771ce2079f9bed26914e150c67f0295101d09
Reviewed-on: https://chromium-review.googlesource.com/1015654
Commit-Ready: Nick Sanders <nsanders@chromium.org>
Tested-by: Jason Clinton <jclinton@chromium.org>
Tested-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-by: Alec Thilenius <athilenius@google.com>
Reviewed-by: Raul E Rangel <rrangel@chromium.org>
10 files changed