Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jean-Paul Smets
slapos
Commits
83be4842
Commit
83be4842
authored
Sep 30, 2015
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nayuos: Add instance.cfg file.
parent
92d70ec1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
0 deletions
+69
-0
instance.cfg
instance.cfg
+69
-0
No files found.
instance.cfg
0 → 100644
View file @
83be4842
[buildout]
parts =
parameters
get-chromium-sources
build-chromiumos
# eggs given by software.cfg
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
#################################### Tools, sources getter ##################################
[clone-depot-tools]
# needed for the "repo" command (to download many git repositories)
recipe = slapos.recipe.build:gitclone
repository = https://chromium.googlesource.com/chromium/tools/depot_tools.git
branch = master
[depot-tools]
export-path =
export PATH=${clone-depot-tools:location}:"$PATH";
[build-commands]
env =
${depot-tools:export-path}
cd ${get-chromium-sources:location};
############################################################################################
[parameters]
# for use of the "parameters" XML configuration given from the
# webrunner interface
# if needed, .serialized => json (more complex structures are OK, but need another
# jinja template for reading the content of the parameters)
recipe = slapos.cookbook:slapconfiguration
computer = ${slap_connection:computer_id}
partition = ${slap_connection:partition_id}
url = ${slap_connection:server_url}
key = ${slap_connection:key_file}
cert = ${slap_connection:cert_file}
[get-chromium-sources]
recipe = plone.recipe.command
stop-on-error = true
location = ${clone-depot-tools:location}/../chromiumos
command =
echo "getting Chromium OS sources..."
${depot-tools:export-path}
mkdir ${:location}
cd ${:location}
repo init -u https://chromium.googlesource.com/chromiumos/manifest.git -b ${parameters:configuration.branch}
repo sync
update-command =
${depot-tools:export-path}
cd ${:location}
repo sync
[build-chromiumos]
recipe = plone.recipe.command
stop-on-error = true
command =
${build-commands:env}
# cros_sdk --delete
echo "building packages for Chromium OS..."
cros_sdk -- ./build_packages --board=${parameters:configuration.board}
&& cros_sdk -- ./build_image --board=${parameters:configuration.board}
&& touch $(pwd)/${parameters:configuration.board}.img
&& cros flash --board=${parameters:configuration.board} file://$(pwd)/${parameters:configuration.board}.img
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment