| # Small script that visualizes the kernel feature support status |
| # (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/')} |
| echo "# Kernel feature support matrix of the '$ARCH' architecture:" |
| for F in */*/arch-support.txt; do |
| SUBSYS=$(echo $F | cut -d/ -f1) |
| N=$(grep -h "^# Feature name:" $F | cut -c25-) |
| C=$(grep -h "^# Kconfig:" $F | cut -c25-) |
| D=$(grep -h "^# description:" $F | cut -c25-) |
| S=$(grep -hw $ARCH $F | cut -d\| -f3) |
| printf "%10s/%-22s:%s| %35s # %s\n" "$SUBSYS" "$N" "$S" "$C" "$D" |