configure: update how CPU arch is determined

The -i option for uname is not portable, -m is a better choice.
Fixes #648

Signed-off-by: gila <jeffry.molanus@gmail.com>
Change-Id: I2287e652e8d3243df2bf101c1cfbdc6aedf643f1
Reviewed-on: https://review.gerrithub.io/c/443315 (master)
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447596
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
gila 2019-02-05 00:14:42 +01:00 committed by Darek Stojaczyk
parent a5879f56f4
commit 90c60fc372

2
configure vendored
View File

@ -294,7 +294,7 @@ for i in "$@"; do
done
# Detect architecture and force no isal if non x86 archtecture
arch=$(uname -i)
arch=$(uname -m)
if [[ $arch != x86_64* ]]; then
echo "Notice: ISAL auto-disabled due to CPU incompatiblity."
CONFIG[ISAL]=n