Invert no_hwcap variable

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-10-13 16:06:55 +01:00
parent 768bc143ad
commit 37801d714b

View file

@ -4344,9 +4344,9 @@ support_build_sha_armce() {
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 && no_hwcap=0 || no_hwcap=1
echo '#include <asm/hwcap.h>' | clang -E - >/dev/null 2>&1 && have_hwcap=1 || have_hwcap=0
[[ "${clang_ver}" -ge 4 && "${no_hwcap}" -eq 0 ]]
[[ "${clang_ver}" -ge 4 && "${have_hwcap}" -eq 1 ]]
}
component_build_sha_armce () {