Changeset defab83 in examples-v2


Ignore:
Timestamp:
Nov 22, 2013, 10:08:24 PM (5 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, 286403d7a3d0e521179e677c0d2fd7549c9ceab4
Children:
f3ff072
Parents:
b9cf40d
git-author:
Gedare Bloom <gedare@…> (11/22/13 22:08:24)
git-committer:
Gedare Bloom <gedare@…> (12/12/13 19:55:54)
Message:

filesystem: Update wscript. compiles now to make it better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • filesystem/fat_ramdisk/wscript

    rb9cf40d rdefab83  
    77
    88import rtems_waf.rtems as rtems
     9import os
     10version = "1.0.0"
    911
    10 version = "1.0.0"
     12## TODO: Move this somewhere more general
     13from waflib.Task import Task
     14from waflib.TaskGen import extension
     15
     16class bin2c(Task):
     17  run_str = 'rtems-bin2c ${SRC} ${TGT[0].abspath()} && touch ${TGT[1].abspath()}'
     18  ext_out = ['.h']
     19
     20@extension('FilesystemImage')
     21def process_tarfs(self, node):
     22  c_node = node.change_ext('.c')
     23  h_node = node.change_ext('.h')
     24  self.create_task('bin2c', node, [c_node, h_node])
     25  self.source.append(c_node)
    1126
    1227def build(bld):
     
    2338    bld.includes = ['.']
    2439    bld.defines = ['PACKAGE_VERSION="' + version + '"']
    25 
    26     generate_fs = 'cd rootfs ; tar cf ../FilesystemImage .'
    27     generate_fs = generate_fs + ' ; cd .. ; '
    28     generate_fs = generate_fs + 'rtems-bin2c FilesystemImage FilesystemImage'
    29     bld(rule=generate_fs,
    30         source='rootfs/shell-init',
    31         target=['FilesystemImage.c','FilesystemImage.h'])
     40    bld(rule='tar -C ' + bld.path.find_dir('rootfs').abspath() + \
     41              ' -cf ${TGT} .',
     42        target='FilesystemImage')
    3243
    3344    bld(features = 'c cprogram',
     
    3647        defines = bld.defines,
    3748        cflags = cflags,
    38         source = ['init.c', 'FilesystemImage.c', 'FilesystemImage.h'])
     49        source = 'init.c FilesystemImage')
    3950
Note: See TracChangeset for help on using the changeset viewer.