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:
parent
a5879f56f4
commit
90c60fc372
2
configure
vendored
2
configure
vendored
@ -294,7 +294,7 @@ for i in "$@"; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Detect architecture and force no isal if non x86 archtecture
|
# Detect architecture and force no isal if non x86 archtecture
|
||||||
arch=$(uname -i)
|
arch=$(uname -m)
|
||||||
if [[ $arch != x86_64* ]]; then
|
if [[ $arch != x86_64* ]]; then
|
||||||
echo "Notice: ISAL auto-disabled due to CPU incompatiblity."
|
echo "Notice: ISAL auto-disabled due to CPU incompatiblity."
|
||||||
CONFIG[ISAL]=n
|
CONFIG[ISAL]=n
|
||||||
|
Loading…
Reference in New Issue
Block a user