mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
There is a problem with the current PACKAGE_EXTRA_ARCHS implementation since its impossible to control which extra architectures sort higher than TARGET_ARCH and which sort lower. In the x86 case for example, TARGET_ARCH might be "i586", i486 should be lower than this and i686 should be higher. There are also complications where its easy to inject duplicate entries into the variable. I tried various versions of this patch and concluded that it was simplest just to force the tune files to include TARGET_ARCH in the list in the right place if they're planning to customise it themselves. Other approaches with appends and prepends just complicated the code for no good reason. The TARGET_ARCH definitions should also move to the tune files but I'll leave this for a separate patch. (From OE-Core rev: d492ebf8b1801da99c679f465be98ce54fd3061a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 lines
628 B
PHP
14 lines
628 B
PHP
# Instead of using -mfpu=vfp[2] we can use -mfpu=neon to make use of gcc intrinsics[1] and vectorize loops with -ftree-vectorize[3]
|
|
# [1] http://gcc.gnu.org/onlinedocs/gcc/ARM-NEON-Intrinsics.html
|
|
# [2] http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
|
|
# [3] https://support.codesourcery.com/GNUToolchain/kbentry29
|
|
|
|
TARGET_CC_ARCH = "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-tree-vectorize"
|
|
|
|
# Other potentially useful options
|
|
#-ftree-vectorize -ffast-math -fno-omit-frame-pointer
|
|
|
|
FEED_ARCH = "armv7a"
|
|
BASE_PACKAGE_ARCH = "armv7a"
|
|
PACKAGE_EXTRA_ARCHS = "arm armv4 armv4t armv5te armv6 armv7 armv7a"
|