diff options
Diffstat (limited to 'extra/i2c_pseudo/check_stream_open.sh')
-rwxr-xr-x | extra/i2c_pseudo/check_stream_open.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/extra/i2c_pseudo/check_stream_open.sh b/extra/i2c_pseudo/check_stream_open.sh deleted file mode 100755 index da802cb282..0000000000 --- a/extra/i2c_pseudo/check_stream_open.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. -# -# This checks whether stream_open symbol is available from the target kernel. -# -# Output meanings: -# -1 : stream_open is not available -# 0 : unknown whether or not stream_open is available -# 1 : stream_open is available - -symbols="$(< "/lib/modules/$(uname -r)/build/Module.symvers" \ - awk '{print $2}' | grep -E '^(nonseekable_open|stream_open)$')" - -if echo "${symbols}" | grep -q '^stream_open$'; then - echo 1 -elif echo "${symbols}" | grep -q '^nonseekable_open$'; then - echo -1 -else - echo 0 -fi |