In file https://github.com/stratum/stratum/blob/f1fee6edf1c7f5841ae7896d438f8f8f5d3669bd/stratum/hal/bin/barefoot/build-bf-kernel-mods.sh the below line has syntax error, because of this build is failing, KERNEL_VERSION="$(awk 'match($0, /CONFIG_BUILD_SALT="([^"]+)"/, a) {print a[1]}' $KERNEL_HEADERS_PATH/.config)"