Some archs (like arm or s390) already set an appropriate architecture,
so don't override it for those cases.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
disable_lex=""
disable_pmem="no"
disable_native="no"
disable_lex=""
disable_pmem="no"
disable_native="no"
prefix=/usr/local
# parse options
prefix=/usr/local
# parse options
if compile_prog "-march=armv8-a+crc+crypto" "" ""; then
march_armv8_a_crc_crypto="yes"
CFLAGS="$CFLAGS -march=armv8-a+crc+crypto -DARCH_HAVE_CRC_CRYPTO"
if compile_prog "-march=armv8-a+crc+crypto" "" ""; then
march_armv8_a_crc_crypto="yes"
CFLAGS="$CFLAGS -march=armv8-a+crc+crypto -DARCH_HAVE_CRC_CRYPTO"
fi
fi
print_config "march_armv8_a_crc_crypto" "$march_armv8_a_crc_crypto"
fi
fi
print_config "march_armv8_a_crc_crypto" "$march_armv8_a_crc_crypto"
if test "$s390_z196_facilities" = "yes" ; then
output_sym "CONFIG_S390_Z196_FACILITIES"
CFLAGS="$CFLAGS -march=z9-109"
if test "$s390_z196_facilities" = "yes" ; then
output_sym "CONFIG_S390_Z196_FACILITIES"
CFLAGS="$CFLAGS -march=z9-109"
fi
if test "$gfapi" = "yes" ; then
output_sym "CONFIG_GFAPI"
fi
if test "$gfapi" = "yes" ; then
output_sym "CONFIG_GFAPI"
if test "$mkdir_two" = "yes" ; then
output_sym "CONFIG_HAVE_MKDIR_TWO"
fi
if test "$mkdir_two" = "yes" ; then
output_sym "CONFIG_HAVE_MKDIR_TWO"
fi
-if test "$build_native" = "yes" ; then
+if test "$march_set" = "no" && test "$build_native" = "yes" ; then
output_sym "CONFIG_BUILD_NATIVE"
fi
output_sym "CONFIG_BUILD_NATIVE"
fi