file output redirection

file output redirection

xjedlins

    Aug 24, 2005#1

    I try tu use UEStudio with WinAVR and try to modify compiler config. I need to use for example this command:

    avr-objdump -S $T > $Tn.lst

    avr-objdump dont have option for direct file output, it id needed to redirect his stdout to file, but this command dont work, avr-objdump recognises > and $Tn.lst as input parametes

    generated makefile looks like this:

    Code: Select all

    ##### BUILD ####################################################################
    
    ALL: $(FG00)
    	avr-gcc -g -O -mmcu=atmega128 -Wl,-Map,aaa.map -o aaa.out $(FG00) 
    	avr-objcopy -j .text -j .data -O ihex aaa.out aaa.hex
    	avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O ihex aaa.out aaa_eeprom.hex
    	avr-objdump -S aaa.out > aaa.lst
    
    aaa.lst: $(FG00)
    	avr-gcc -g -O -mmcu=atmega128 -Wl,-Map,aaa.map -o aaa.out $(FG00) 
    	avr-objcopy -j .text -j .data -O ihex aaa.out aaa.hex
    	avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O ihex aaa.out aaa_eeprom.hex
    	avr-objdump -S aaa.out > aaa.lst
    
    
    ##### COMMANDS #################################################################
    
    when I run make on this makefile from cmd line, all is ok

    xjedlins
    xjedlins

      Sep 10, 2005#2

      Problem was solved: I modified objdump.c from binutils, added option for output to file instead stdout.