Changeset 54257ba in mainline


Ignore:
Timestamp:
2005-12-07T16:59:37Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
940cac0
Parents:
45ab770
Message:

Added compile tag to build system.

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • kernel.config

    r45ab770 r54257ba  
    99@ "sparc64" Sun UltraSPARC
    1010! ARCH (choice)
     11
     12% SHELLCMD TAG tools/buildtag $ARCH
    1113
    1214# IA32 Compiler
  • tools/config.py

    r45ab770 r54257ba  
    310310            if cmd == 'saveas':
    311311                outf.write('%s = %s\n' % (args[1],defaults[args[0]]))
    312                
     312            elif cmd == 'shellcmd':
     313                varname = args[0]
     314                args = args[1:]
     315                for i,arg in enumerate(args):
     316                    if arg.startswith('$'):
     317                        args[i] = defaults[arg[1:]]
     318
     319                subc = os.popen(' '.join(args),'r')
     320                data = subc.read().strip()
     321                if subc.close():
     322                    raise RuntimeError('Error running: %s' % ' '.join(args))
     323                outf.write('%s = %s\n' % (varname,data))
    313324            continue
    314325           
Note: See TracChangeset for help on using the changeset viewer.