[OE-core] [PATCHv2][RFC] arch-armv7ve.inc: respect armv7a override as well

Phil Blundell pb at pbcl.net
Fri Jan 8 20:13:04 UTC 2016


On Fri, 2016-01-08 at 08:24 -0800, Andre McCurdy wrote:
> Maybe adding a generic "armv7" over-ride which can be enabled by all
> armv7 variants is a better option?

Maybe, but the time to consider that would be when we discover a
concrete place that it'd be useful. 

To be honest, having seen the existing overrides that you sent patches
for, there are very few cases where an override on _armv7a or any other
specific variant seems unambiguously like the right thing.  For example,
looking at the tree I happen to have lying around here:

- it seems that the valgrind ones have already been established as
spurious;

- the libav FULL_OPTIMIZATION thing also seems fairly spurious. 

- the overrides in gcc-configure-common are basically just trying to
translate TARGET_ARCH back into the appropriate -march flag for gcc, and
it seems faintly silly to require a separate override for every possible
arch setting.  It might be better for the tuning files to define a
specific variable with the -march string in, define CFLAGS in terms of
that, and then just teach gcc's configury to do --with-arch=${GCC_ARCH}
if it's defined.

- the ones in xf86-video-omapfb_git.bb seem to be using armv7a as a
proxy for "this is a particular omap chip" in order to trigger some or
other hack.  Since omapfb is fairly chip-specific anyway this is
probably ok, but it most likely doesn't want perpetuating.

Then there are things like the armv4/armv5 overrides in mailx which are
apparently workarounds for a bug in some or other version of gcc.  The
common thread through most of these seems to be that thumb1 support just
doesn't work very well in gcc and, given that thumb1 is something of a
minority interest nowadays, it's tempting to say that we should not even
try to support it any longer.  But if we did want to keep it around then
defining a specific "thumb1" override that would be set by all thumb1
arches seems like it would be the right short term fix.  In the long
term, clearly, the best plan would be for the folks who still care about
thumb1 to fix gcc.

So, overall, it rather seems to me that we should be trying to get rid
of the majority of these _armvNN overrides, rather than letting them
proliferate into armv7ve and whatever.

p.





More information about the Openembedded-core mailing list