Subversion Repositories DevTools

Rev

Rev 5757 | Rev 6177 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5757 Rev 5858
Line 364... Line 364...
364
#   Program Loader processing
364
#   Program Loader processing
365
#   Args:   $1 Path to the exe
365
#   Args:   $1 Path to the exe
366
#           $2 Path to the ProgLoader
366
#           $2 Path to the ProgLoader
367
#
367
#
368
#   The process
368
#   The process
369
#       Remove 1st line from the executable
369
#       Remove last line from the executable (S9 Entry Point and Termination)
370
#       Remove the last 2 lines from the ProgLoader
370
#       Remove the first line from the ProgLoader (S0 Header)
371
#       Concatenate the exe + progloader to the original file name
371
#       Concatenate the exe + progloader to the original file name
372
#
372
#
373
define  LD_IAR_PROCESS
373
define  LD_IAR_PROCESS
374
    $(XX_PRE) $(echo) "[$@]Process Program Loader .." ;\
374
    $(XX_PRE) $(echo) "[$@]Process Program Loader .." ;\
375
    sed '-e$$d' $1 >$1.ed ;\
375
    sed '-e$$d' $1 >$1.ed ;\
376
    sed '-e1,2d' $2 >$2.ed ;\
376
    sed '-e1d' $2 >$2.ed ;\
377
    rm -f $1.keep ;\
377
    rm -f $1.keep ;\
378
    mv $1 $1.keep ;\
378
    mv $1 $1.keep ;\
379
    cat $1.ed $2.ed >$1   ;\
379
    cat $1.ed $2.ed >$1   ;\
380
    rm $1.ed $2.ed
380
    rm $1.ed $2.ed
381
endef
381
endef