Files
Arch-R/tools/check_kernel_config
T
Douglas Teles 2d0a76b94a ArchR v2.0-rc3 — first official release-candidate
Kernel 6.12 LTS · Mesa 26.0.5 Panfrost · CMA 96 MB · zlib-ng 2.2.4
CPU turbo 1.5 GHz (vdd_arm 1.45 V) · GPU 650 MHz @ 1.150 V · mali_kbase PM patch
43 motherboard revisions covered · two image variants with hardware auto-detect
PortMaster pre-installed · MESA_GLTHREAD whitelist · RetroAchievements
Tailscale / WireGuard / ZeroTier · Syncthing + rclone · Samba

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 14:36:32 -03:00

39 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
. config/options linux
${SCRIPTS}/unpack linux
if [ -f "${DISTRO_DIR}/${DISTRO}/kernel_options" ]; then
while read OPTION; do
[ -z "$OPTION" -o -n "$(echo "$OPTION" | grep '^#')" ] && continue
if [ "${OPTION##*=}" == "m" ]; then
echo "[m] ${OPTION%%=*}"
$PKG_BUILD/scripts/config --file $PKG_KERNEL_CFG_FILE --module ${OPTION%%=*}
fi
if [ "${OPTION##*=}" == "y" ]; then
echo "[y] ${OPTION%%=*}"
$PKG_BUILD/scripts/config --file $PKG_KERNEL_CFG_FILE --enable ${OPTION%%=*}
fi
if [ "${OPTION##*=}" == "n" ]; then
echo "[n] ${OPTION%%=*}"
$PKG_BUILD/scripts/config --file $PKG_KERNEL_CFG_FILE --disable ${OPTION%%=*}
fi
# must be a string if it contains double quotes
if [ -n "$(echo ${OPTION##*=} | grep '"')" ]; then
echo "[${OPTION##*=}] ${OPTION%%=*}"
$PKG_BUILD/scripts/config --file $PKG_KERNEL_CFG_FILE --set-str ${OPTION%%=*} $(echo ${OPTION##*=} | tr -d '"')
fi
done <${DISTRO_DIR}/${DISTRO}/kernel_options
else
echo "kernel options file doesn't exist: ${DISTRO_DIR}/${DISTRO}/kernel_options"
fi