Ignore:
Timestamp:
Jul 8, 2015, 3:57:15 PM (10 years ago)
Author:
alain
Message:

Modify all applications to support two new rules:
1) introduce a local Makefile for each application.
2) change "application.elf" name to "application/appli.elf" name in the application.py" file.
Introduce the shell application.

Location:
soft/giet_vm/applications/gameoflife
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/gameoflife/gameoflife.py

    r504 r589  
    44
    55##################################################################################
    6 #   file   : gameoflife.py  (for the gameoflife application)
     6#   file   : gameoflife.py 
    77#   date   : february 2015
    88#   author : Alain Greiner
     
    2626##################################################################################
    2727
    28 ##########################
    29 def gameoflife( mapping ):
     28######################
     29def extend( mapping ):
    3030
    3131    x_size    = mapping.x_size
     
    5454    mapping.addVseg( vspace, 'gol_data', data_base , data_size,
    5555                     'C_WU', vtype = 'ELF', x = 0, y = 0, pseg = 'RAM',
    56                      binpath = 'build/gameoflife/gameoflife.elf',
     56                     binpath = 'build/gameoflife/appli.elf',
    5757                     local = False , big = True )
    5858
     
    7878                                 code_base , code_size,
    7979                                 'CXWU', vtype = 'ELF', x = x, y = y, pseg = 'RAM',
    80                                  binpath = 'build/gameoflife/gameoflife.elf',
     80                                 binpath = 'build/gameoflife/appli.elf',
    8181                                 local = True )
    8282
     
    118118if __name__ == '__main__':
    119119
    120     vspace = gameoflife( Mapping( 'test', 2, 2, 4 ) )
     120    vspace = extend( Mapping( 'test', 2, 2, 4 ) )
    121121    print vspace.xml()
    122122
Note: See TracChangeset for help on using the changeset viewer.