file output redirection

Building, compiling, or debugging issues

file output redirection

Postby xjedlins » Wed Aug 24, 2005 8:24 am

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
 

Re: file output redirection

Postby xjedlins » Sat Sep 10, 2005 10:02 am

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


Return to Build / Compile / Debug