mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 07:44:21 +08:00
ca90857779
Add support for the same output format as the bash script, and use its implementation instead of the previous one. I opted to do such patch in order to have a single script responsible for parsing Documentation/features and produce different outputs. As someone may rely on the past format, which is easy to parse it, get_feat.pl now gains a new command with the same output format as the previous script. As a side effect, the perl script is a lot faster, as it reads each file only once, instead of parsing files several times via a for command and grep commands inside it. This patch also changes the features list order to be case-insensitive, in order to better match the output of the existing script. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/a97f49677805ad4e6b982d02c0db8c9dfbbd20a6.1606748711.git.mchehab+huawei@kernel.org Signed-off-by: Jonathan Corbet <corbet@lwn.net>
12 lines
334 B
Bash
Executable File
12 lines
334 B
Bash
Executable File
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Small script that visualizes the kernel feature support status
|
|
# of an architecture.
|
|
#
|
|
# (If no arguments are given then it will print the host architecture's status.)
|
|
#
|
|
|
|
ARCH=${1:-$(uname -m | sed 's/x86_64/x86/' | sed 's/i386/x86/')}
|
|
|
|
$(dirname $0)/../../scripts/get_feat.pl list --arch $ARCH
|