summaryrefslogtreecommitdiffstats
path: root/Documentation/features
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2022-12-04 20:18:46 +0800
committerJonathan Corbet <corbet@lwn.net>2022-12-05 02:50:12 -0700
commit7b5a5242fd0d57900607ae83602c3f30342a596f (patch)
treeb4369cac036429e695a912ef1aa9a679f36845cd /Documentation/features
parent8067a32512d7c3747efcbca843c2433f572a4ee5 (diff)
downloadlinux-stable-7b5a5242fd0d57900607ae83602c3f30342a596f.tar.gz
linux-stable-7b5a5242fd0d57900607ae83602c3f30342a596f.tar.bz2
linux-stable-7b5a5242fd0d57900607ae83602c3f30342a596f.zip
Documentation/features-refresh.sh: Only sed the beginning "arch" of ARCH_DIR
It should only sed the beginning "arch" of ARCH_DIR in features-refresh.sh, otherwise loongarch is recognized as loong, that is not what we want. Fixes: be99f610a110 ("Documentation/features: Add script that refreshes the arch support status files in place") Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Link: https://lore.kernel.org/r/1670156327-9631-2-git-send-email-yangtiezhu@loongson.cn Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/features')
-rwxr-xr-xDocumentation/features/scripts/features-refresh.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/features/scripts/features-refresh.sh b/Documentation/features/scripts/features-refresh.sh
index 9e72d38a0720..c2288124e94a 100755
--- a/Documentation/features/scripts/features-refresh.sh
+++ b/Documentation/features/scripts/features-refresh.sh
@@ -60,7 +60,7 @@ for F_FILE in Documentation/features/*/*/arch-support.txt; do
echo " | arch |status|" >> $T_FILE
echo " -----------------------" >> $T_FILE
for ARCH_DIR in arch/*/; do
- ARCH=$(echo $ARCH_DIR | sed -e 's/arch//g' | sed -e 's/\///g')
+ ARCH=$(echo $ARCH_DIR | sed -e 's/^arch//g' | sed -e 's/\///g')
K_FILES=$(find $ARCH_DIR -name "Kconfig*")
K_GREP=$(grep "$K" $K_FILES)
#