summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/path.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2015-07-20 13:49:42 +1000
committerChris Johns <chrisj@rtems.org>2015-07-21 16:56:53 +1000
commit7385feb2748b9b722a41b23f908daa6f40725bad (patch)
tree02c78ffb40d0ec8ff12a217482e290367eceb0ce /source-builder/sb/path.py
parentrtems4.11: OpenMP support for ARM, PowerPC, SPARC (diff)
downloadrtems-source-builder-7385feb2748b9b722a41b23f908daa6f40725bad.tar.bz2
Canandian Cross Compiling and RTEMS 3rd party package building Fixes.
The change fixes installing for RTEMS 3rd Party packages where the RSB considered them Canadian Cross Compiling (Cxc). Fixing the Cxc issue broke real Cxc builds. The change corrects the issue of macros being changed in the Cxc and the prep data not being udpated. The configuration is loaded again after the updated macros. The macros are also copied and restored to ensure a clean stable base. The change also introduces --rtems-tools and --rtems-bsp to align the command line with the waf configure process or RTEMS application.
Diffstat (limited to 'source-builder/sb/path.py')
-rw-r--r--source-builder/sb/path.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/source-builder/sb/path.py b/source-builder/sb/path.py
index 824b8f5..df76634 100644
--- a/source-builder/sb/path.py
+++ b/source-builder/sb/path.py
@@ -201,7 +201,11 @@ def copy_tree(src, dst):
if not os.path.isdir(hdst):
if trace:
print ' mkdir: %s' % (hdst)
- os.makedirs(hdst)
+ try:
+ os.makedirs(hdst)
+ except OSError, why:
+ raise error.general('copying tree: cannot create target directory %s: %s' % \
+ (hdst, str(why)))
for name in names:
srcname = host(os.path.join(hsrc, name))