[oe] [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS = linux-gnuspe for e500

Marcin Juszkiewicz marcin at juszkiewicz.com.pl
Mon Aug 31 11:33:19 UTC 2009


What about using MACHINE_FEATURES (or CPU_FEATURES) for things like eabi/spe?

TARGET_OS = "linux-"
if ARCH in [ppc,powerpc] and MACHINE_FEATURES.find('spe') then

  if LIBC=uclibc then
    TARGET_OS += "uclibc"
  fi

  TARGET_OS += "gnuspe"
fi

Same for adding eabi:

TARGET_OS = "linux-"
if ARCH in [arm,armeb] and MACHINE_FEATURES.find('eabi') then

  if LIBC=uclibc then
    TARGET_OS += "uclibc"
  fi

  TARGET_OS += "gnueabi"
fi

spe/eabi can be added to MACHINE_FEATURES in conf/machine/include/tune-* files 
and distros can choose do they support it or not by DISTRO_FEATURES (examples 
needs to be changed then to use COMBINED_FEATURES variable). This way no one 
has to change XY files just because he has new board with ppc500v2 core, we do 
not have to remember about armv4 devices which are not capable of EABI with 
gcc 4.3.x and older (but if they will support EABI in future we just change 
tune-strongarm.inc file).

Regards, 
-- 
JID:      hrw at jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz






More information about the Openembedded-devel mailing list