Commit 33d53b04 authored by Lance Albertson's avatar Lance Albertson
Browse files

Add setting for EMERGE_DEFAULT_OPTS

parent e954f413
...@@ -10,4 +10,5 @@ class gentoo { ...@@ -10,4 +10,5 @@ class gentoo {
$gentoo_binhost = $gentoo::params::binhost $gentoo_binhost = $gentoo::params::binhost
$gentoo_portdir_overlay = $gentoo::params::portdir_overlay $gentoo_portdir_overlay = $gentoo::params::portdir_overlay
$gentoo_accept_license = $gentoo::params::accept_license $gentoo_accept_license = $gentoo::params::accept_license
$gentoo_emerge_opts = $gentoo::params::emerge_opts
} }
...@@ -42,4 +42,10 @@ class gentoo::params { ...@@ -42,4 +42,10 @@ class gentoo::params {
'' => '$ACCEPT_LICENSE', '' => '$ACCEPT_LICENSE',
default => "\$ACCEPT_LICENSE $gentoo_accept_license", default => "\$ACCEPT_LICENSE $gentoo_accept_license",
} }
# EMERGE_DEFAULT_OPTS
$emerge_opts = $gentoo_emerge_opts ? {
'' => undef,
default => $gentoo_emerge_opts,
}
} }
...@@ -19,6 +19,10 @@ ACCEPT_LICENSE="<%= gentoo_accept_license %>" ...@@ -19,6 +19,10 @@ ACCEPT_LICENSE="<%= gentoo_accept_license %>"
PORTAGE_BINHOST="<%= gentoo_binhost %>" PORTAGE_BINHOST="<%= gentoo_binhost %>"
<% end -%> <% end -%>
<% if gentoo_emerge_opts != nil -%>
EMERGE_DEFAULT_OPTS="<%= gentoo_emerge_opts %>"
<% end -%>
CHOST="<%= hardwaremodel %>-pc-linux-gnu" CHOST="<%= hardwaremodel %>-pc-linux-gnu"
CFLAGS="-O2 -pipe" CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}" CXXFLAGS="${CFLAGS}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment