summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/setbuilder.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2015-01-18 11:24:11 +1100
committerChris Johns <chrisj@rtems.org>2015-01-18 11:24:11 +1100
commit3963ac4aaef67cf51deefff558325d98fdeef2b0 (patch)
tree4bd35223345791626b00dafe76d79d9c5e9a58de /source-builder/sb/setbuilder.py
parentProvide flags and include paths for the host when building a Cxc. (diff)
downloadrtems-source-builder-3963ac4aaef67cf51deefff558325d98fdeef2b0.tar.bz2
Detect a Cxc build from the options and automatically disabled installing.
This is similar to always providing --no-install on the command when building a Cxc package.
Diffstat (limited to 'source-builder/sb/setbuilder.py')
-rw-r--r--source-builder/sb/setbuilder.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/source-builder/sb/setbuilder.py b/source-builder/sb/setbuilder.py
index 1cdb094..34fe8b8 100644
--- a/source-builder/sb/setbuilder.py
+++ b/source-builder/sb/setbuilder.py
@@ -458,8 +458,10 @@ def run():
deps = None
if not list_bset_cfg_files(opts, configs):
prefix = opts.defaults.expand('%{_prefix}')
- if not opts.dry_run() and not opts.no_install() and \
- not path.ispathwritable(prefix):
+ if not opts.dry_run() and \
+ not not opts.canadian_cross() and \
+ not opts.no_install() and \
+ not path.ispathwritable(prefix):
raise error.general('prefix is not writable: %s' % (path.host(prefix)))
for bset in opts.params():
setbuilder_error = True