mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
![Mauro Carvalho Chehab](/assets/img/avatar_default.png)
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>
11 lines
334 B
Bash
Executable file
11 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
|