On (31/08/09 13:33), Marcin Juszkiewicz wrote: > 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). Attached implementation is based on this suggestion. I have not done wholesale change to distro confs only for micro and minimal. I tested this patch with for targ in `ls openembedded/conf/machine/*.conf|cut -d '/' -f 4|cut -d '.' -f 1`; do echo -n "$targ "; MACHINE=$targ DISTRO=minimal bitbake -e |grep TARGET_OS=\"; done and all machine confs were giving correct values for TARGET_OS also I repeated same test with DISTRO=minimal-uclibc Comments ? Thanks -Khem