RFA: AVR: Support building AVR Linux targets

Message ID 521CD19D.3010202@redhat.com
State New
Headers show

Commit Message

Nick Clifton Aug. 27, 2013, 4:19 p.m.
Hi Joseph,
>>    C. Draw up another patch that restricts the AVR patterns in config.gcc to
>> -none and -elf.
> A and C - I think both changes should be applied.

OK - the patch for item A is already applied.  Here is a proposed patch 
for item C.  I have not applied the patch as obvious because I was not 
sure whether it was better to accept avr-*-elf or avr-*-elf*.  I went 
for the latter in case there were AVR ELF variants, but I defer to your 
superior knowledge.

OK to apply ?


2013-08-27  Nick Clifton  <nickc@redhat.com>

	* config.gcc (AVR): Restrict allowed targets to RTEMS, ELF and

  	    tm_file="${tm_file} ${cpu_type}/avrlibc.h"


Index: gcc/config.gcc
--- gcc/config.gcc	(revision 202021)
+++ gcc/config.gcc	(working copy)
@@ -995,7 +995,7 @@ 
  	extra_gcc_objs="driver-avr.o avr-devices.o"
  	extra_objs="avr-devices.o avr-log.o"
+avr-*-elf* | avr-*-none)
  	tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h dbxelf.h 
  	if test x${with_avrlibc} != xno; then