Changeset eb6ff97 in rtems_waf


Ignore:
Timestamp:
Jun 16, 2016, 4:53:33 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
c161c8d
Parents:
1aef190
Message:

Fix the root_filesystem tar command on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtems.py

    r1aef190 reb6ff97  
    3737rtems_filters = None
    3838rtems_long_commands = False
     39
     40windows = os.name == 'nt'
    3941
    4042def options(opt):
     
    150152    else:
    151153        show_commands = 'no'
    152     if rtems_long_commands and os.name == 'nt':
     154    if rtems_long_commands and windows:
    153155        long_commands = 'yes'
    154156    else:
     
    534536
    535537def root_filesystem(bld, name, files, tar, obj):
     538    tar_rule = 'tar -cf ${TGT} --format=ustar -C ../.. $(echo "${SRC}" | sed -e \'s/\.\.\/\.\.\///\')'
     539    if windows:
     540        tar_rule = 'sh -c "%s"' % (tar_rule)
    536541    bld(name = name + '_tar',
    537542        target = tar,
    538543        source = files,
    539         rule = 'SDIR=$PWD && cd ../.. && tar --format=ustar -cf $SDIR/${TGT} $(echo "${SRC}" | sed -e "s/\.\.\/\.\.\///\")')
     544        rule = tar_rule)
    540545    bld.objects(name = name,
    541546                target = obj,
Note: See TracChangeset for help on using the changeset viewer.