Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
25 lines
696 B
Bash
Executable File
25 lines
696 B
Bash
Executable File
#
|
|
# 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/')}
|
|
|
|
cd $(dirname $0)
|
|
echo "#"
|
|
echo "# Kernel feature support matrix of the '$ARCH' architecture:"
|
|
echo "#"
|
|
|
|
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"
|
|
done
|
|
|