spelling: configure

Part of #2256

* compatibility
* sourceable

Change-Id: I7d5edd8e81e01f45f76f775aa5320ca92023b132
Signed-off-by: Josh Soref <jsoref@gmail.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10399
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Josh Soref 2021-11-24 20:40:57 -05:00 committed by Tomasz Zawadzki
parent 6bbb11b16b
commit ff238359fe

6
configure vendored
View File

@ -115,7 +115,7 @@ function usage() {
}
# Load default values
# Convert config to sourcable configuration file
# Convert config to sourceable configuration file
sed -r 's/CONFIG_([[:alnum:]_]+)=(.*)/CONFIG[\1]=\2/g' $rootdir/CONFIG > $rootdir/CONFIG.sh
declare -A CONFIG
source $rootdir/CONFIG.sh
@ -526,7 +526,7 @@ if [[ "${CONFIG[IDXD]}" = "y" ]]; then
cpu_vendor=$(grep -i 'vendor' /proc/cpuinfo --max-count=1)
fi
if [[ "$cpu_vendor" != *"$intel"* ]]; then
echo "ERROR: IDXD cannot be used due to CPU incompatiblity."
echo "ERROR: IDXD cannot be used due to CPU incompatibility."
exit 1
fi
if [ -e /usr/include/accel-config/libaccel_config.h ]; then
@ -538,7 +538,7 @@ fi
# Detect architecture and force no ISA-L if non-x86 or non-aarch64 architecture
if [[ "${CONFIG[ISAL]}" = "y" ]]; then
if [[ $arch != x86_64* ]] && [[ $arch != aarch64* ]]; then
echo "ERROR: ISA-L cannot be used due to CPU incompatiblity."
echo "ERROR: ISA-L cannot be used due to CPU incompatibility."
exit 1
fi
fi