Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.cmmi
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.recipe.cmmi
Commits
ac98f875
Commit
ac98f875
authored
Oct 09, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
3e54ec0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
slapos/recipe/cmmi/README.txt
slapos/recipe/cmmi/README.txt
+5
-7
slapos/recipe/cmmi/__init__.py
slapos/recipe/cmmi/__init__.py
+8
-4
No files found.
slapos/recipe/cmmi/README.txt
View file @
ac98f875
...
...
@@ -62,15 +62,13 @@ Supported options
``make-options``
Extra ``KEY=VALUE`` options included in the invocation of the ``make``
program
. Multiple options can be given on separate lines to increas
e
readability.
program
for the build phase. Multiple options can be given on separat
e
lines to increase
readability.
``make-
target
s``
``make-
install-option
s``
Targets for the ``make`` command. Defaults to 'install'
which will be enough to install most software packages. You only
need to use this if you want to build alternate targets. Each
target must be given on a separate line.
Used instead of ``make-options`` for installation phase.
Defaults to 'install' + ``make-options``.
``configure-command``
...
...
slapos/recipe/cmmi/__init__.py
View file @
ac98f875
...
...
@@ -260,8 +260,12 @@ class Recipe(object):
return
parts
make_cmd
=
self
.
options
.
get
(
'make-binary'
,
'make'
).
strip
()
make_options
=
' '
.
join
(
self
.
options
.
get
(
'make-options'
,
''
).
split
())
make_targets
=
' '
.
join
(
self
.
options
.
get
(
'make-targets'
,
'install'
).
split
())
make_options
=
self
.
options
.
get
(
'make-options'
,
''
).
split
()
try
:
install_options
=
self
.
options
[
'make-install-options'
].
split
()
except
KeyError
:
install_options
=
make_options
+
\
self
.
options
.
get
(
'make-targets'
,
'install'
).
split
()
configure_options
=
self
.
options
.
get
(
'configure-options'
,
''
).
split
()
configure_cmd
=
self
.
options
.
get
(
'configure-command'
,
''
).
strip
()
...
...
@@ -351,14 +355,14 @@ class Recipe(object):
log
.
info
(
'Executing pre-build'
)
self
.
run
(
pre_build_cmd
)
self
.
run
((
'%s %s'
%
(
make_cmd
,
make_options
))
%
self
.
options
)
self
.
run
((
'%s %s'
%
(
make_cmd
,
' '
.
join
(
make_options
)
))
%
self
.
options
)
pre_install_cmd
=
self
.
options
.
get
(
'pre-install'
,
''
).
strip
()
%
self
.
options
if
pre_install_cmd
!=
''
:
log
.
info
(
'Executing pre-install'
)
self
.
run
(
pre_install_cmd
)
self
.
run
((
'%s %s
%s'
%
(
make_cmd
,
make_options
,
make_targets
))
%
self
.
options
)
self
.
run
((
'%s %s
'
%
(
make_cmd
,
' '
.
join
(
make_install_options
)
))
%
self
.
options
)
if
'post-make-hook'
in
self
.
options
and
len
(
self
.
options
[
'post-make-hook'
].
strip
())
>
0
:
log
.
info
(
'Executing post-make-hook'
)
...
...
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