Require asm/hwcap.h for testing
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
d85277c62e
commit
ab0cff5b4e
1 changed files with 7 additions and 2 deletions
|
@ -4341,8 +4341,13 @@ component_build_aes_aesce_armcc () {
|
|||
|
||||
support_build_sha_armce() {
|
||||
# clang >= 4 is required to build with SHA extensions
|
||||
ver="$(clang --version|grep version|sed -E 's#.*version ([0-9]+).*#\1#')"
|
||||
[ "${ver}" -ge 4 ]
|
||||
clang_ver="$(clang --version|grep version|sed -E 's#.*version ([0-9]+).*#\1#')"
|
||||
|
||||
# we need asm/hwcap.h available for runtime detection
|
||||
echo '#include <asm/hwcap.h>' | clang -E - >/dev/null 2>&1
|
||||
have_hwcap=$?
|
||||
|
||||
[[ "${clang_ver}" -ge 4 && "${have_hwcap}" -eq 0 ]]
|
||||
}
|
||||
|
||||
component_build_sha_armce () {
|
||||
|
|
Loading…
Reference in a new issue