summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/cr/cr/base/linux_chromeos.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/cr/cr/base/linux_chromeos.py b/tools/cr/cr/base/linux_chromeos.py
new file mode 100644
index 0000000..b0ca248
--- /dev/null
+++ b/tools/cr/cr/base/linux_chromeos.py
@@ -0,0 +1,30 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Linux Chrome OS platform."""
+
+import os
+
+import cr
+
+class LinuxChromeOSPlatform(cr.Platform):
+ """Platform for Linux Chrome OS target"""
+
+ ACTIVE = cr.Config.From(
+ CR_BINARY=os.path.join('{CR_BUILD_DIR}', '{CR_BUILD_TARGET}'),
+ CHROME_DEVEL_SANDBOX='/usr/local/sbin/chrome-devel-sandbox',
+ GYP_DEF_chromeos=1,
+ )
+
+ @property
+ def enabled(self):
+ return cr.Platform.System() == 'Linux'
+
+ @property
+ def priority(self):
+ return 2
+
+ @property
+ def paths(self):
+ return ['{GOMA_DIR}']