summaryrefslogtreecommitdiff
path: root/specs/build
diff options
context:
space:
mode:
authorDoug Anderson <dianders@google.com>2011-01-18 13:46:07 -0800
committerDoug Anderson <dianders@google.com>2011-01-18 13:46:07 -0800
commitf0c73957b12ad3e62393e26eb5a865d9698d9bd0 (patch)
treeac14e49da8d02df2557d765b240dcf19ef589db4 /specs/build
parentbf34536222a0d9e9d2ab2ed5713a62c76cca7fa5 (diff)
downloadchromite-f0c73957b12ad3e62393e26eb5a865d9698d9bd0.tar.gz
WIP Chromite supporting "LEGACY" mode, as requested by Anush.
This version of chromite supports the following features: 1. Can be run from inside or outside the chroot. 2. CWD can be anything when chromite is run. 3. Current commands are build, clean, distclean, ebuild, emerge, equery, portageq, shell, workon. 4. Build spec files can be named on command line using any substring. 5. Build commands can be named on command line using any prefix. 6. Menu driven for easy discovery. 7. Chroot specs can be specified for any command with --chroot, which must be the first thing on the command line (so it's not interpreted as the arg to sub commands). By default, the 'chroot.spec' is used. See http://codereview.chromium.org/6005004 for history. This is a separate CL, since Anush has requested this be checked into the new 'chromite' repo. This CL has the minor change that a few paths are adapted to chromite's new location. Future checkins will: - Add wrapper scripts for inside and outside the chroot so that we can put chromite in the path - Add more unit tests - Address some of the TODOs in the file. BUG=chromium-os:10556 TEST=Ran chromite_unittest.py; played w/ various commands. Review URL: http://codereview.chromium.org/6308007 Change-Id: I6b238622f0b4843f55d5f74cf64d1506291872cc
Diffstat (limited to 'specs/build')
-rw-r--r--specs/build/_defaults39
-rw-r--r--specs/build/tegra2_seaboard.spec10
-rw-r--r--specs/build/x86-agz.spec10
-rw-r--r--specs/build/x86-dogfood.spec10
-rw-r--r--specs/build/x86-generic.spec10
-rw-r--r--specs/build/x86-mario.spec10
-rw-r--r--specs/build/x86-pineview.spec10
7 files changed, 99 insertions, 0 deletions
diff --git a/specs/build/_defaults b/specs/build/_defaults
new file mode 100644
index 000000000..0dc588a63
--- /dev/null
+++ b/specs/build/_defaults
@@ -0,0 +1,39 @@
+# This spec is used to prime the ConfigParser before reading any build specs.
+#
+# It can be thought of as the "superclass" of all build specs.
+#
+# It can refer to $(name)s to get the name of the build spec without the
+# ".spec" suffix (AKA the subclass's name).
+#
+# Use RFC 822 format
+
+
+[BUILD]
+
+# The target name that will be passed to various commands.
+#
+# Could be a board (in legacy mode), or a portage profile in the future.
+#
+# DEFAULT: the name of the subclass spec file, without the suffix
+target: %(name)s
+
+# Flags to pass to setup_board (other than --board). Note that setup_board is
+# only called once per board, unless you use "chromite clean" to clean your
+# board out.
+#
+# DEFAULT: nothing
+setup_board_flags:
+
+# Flags to pass to build_packages (other than --board).
+#
+# DEFAULT: nothing
+#build_packages_flags: --oldchromebinary
+build_packages_flags:
+
+
+[IMAGE]
+
+# Flags to pass to build_image (other than --board)
+#
+# DEFAULT: nothing
+build_image_flags:
diff --git a/specs/build/tegra2_seaboard.spec b/specs/build/tegra2_seaboard.spec
new file mode 100644
index 000000000..525cb1b58
--- /dev/null
+++ b/specs/build/tegra2_seaboard.spec
@@ -0,0 +1,10 @@
+# Build spec file.
+
+[BUILD]
+
+# We use defaults. See "_defaults" for details.
+
+[IMAGE]
+
+# We use defaults. See "_defaults" for details.
+
diff --git a/specs/build/x86-agz.spec b/specs/build/x86-agz.spec
new file mode 100644
index 000000000..525cb1b58
--- /dev/null
+++ b/specs/build/x86-agz.spec
@@ -0,0 +1,10 @@
+# Build spec file.
+
+[BUILD]
+
+# We use defaults. See "_defaults" for details.
+
+[IMAGE]
+
+# We use defaults. See "_defaults" for details.
+
diff --git a/specs/build/x86-dogfood.spec b/specs/build/x86-dogfood.spec
new file mode 100644
index 000000000..525cb1b58
--- /dev/null
+++ b/specs/build/x86-dogfood.spec
@@ -0,0 +1,10 @@
+# Build spec file.
+
+[BUILD]
+
+# We use defaults. See "_defaults" for details.
+
+[IMAGE]
+
+# We use defaults. See "_defaults" for details.
+
diff --git a/specs/build/x86-generic.spec b/specs/build/x86-generic.spec
new file mode 100644
index 000000000..525cb1b58
--- /dev/null
+++ b/specs/build/x86-generic.spec
@@ -0,0 +1,10 @@
+# Build spec file.
+
+[BUILD]
+
+# We use defaults. See "_defaults" for details.
+
+[IMAGE]
+
+# We use defaults. See "_defaults" for details.
+
diff --git a/specs/build/x86-mario.spec b/specs/build/x86-mario.spec
new file mode 100644
index 000000000..525cb1b58
--- /dev/null
+++ b/specs/build/x86-mario.spec
@@ -0,0 +1,10 @@
+# Build spec file.
+
+[BUILD]
+
+# We use defaults. See "_defaults" for details.
+
+[IMAGE]
+
+# We use defaults. See "_defaults" for details.
+
diff --git a/specs/build/x86-pineview.spec b/specs/build/x86-pineview.spec
new file mode 100644
index 000000000..525cb1b58
--- /dev/null
+++ b/specs/build/x86-pineview.spec
@@ -0,0 +1,10 @@
+# Build spec file.
+
+[BUILD]
+
+# We use defaults. See "_defaults" for details.
+
+[IMAGE]
+
+# We use defaults. See "_defaults" for details.
+