Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tiezhu Yang and committed by
Jonathan Corbet
7b5a5242 8067a325

+1 -1
+1 -1
Documentation/features/scripts/features-refresh.sh
··· 60 60 echo " | arch |status|" >> $T_FILE 61 61 echo " -----------------------" >> $T_FILE 62 62 for ARCH_DIR in arch/*/; do 63 - ARCH=$(echo $ARCH_DIR | sed -e 's/arch//g' | sed -e 's/\///g') 63 + ARCH=$(echo $ARCH_DIR | sed -e 's/^arch//g' | sed -e 's/\///g') 64 64 K_FILES=$(find $ARCH_DIR -name "Kconfig*") 65 65 K_GREP=$(grep "$K" $K_FILES) 66 66 #