Files
Zag/build/menuconfig
T
Loïc Grégoire 9e065ee023 initial commit
2026-03-21 22:47:06 -04:00

24 lines
442 B
Bash
Executable File

#!/bin/bash
frontend="${FRONTEND:-kconfig-nconf}"
has_kconfig_frontends=true
if ! command -v kconfig-mconf &> /dev/null
then
has_kconfig_frontends=false
fi
if [ "$has_kconfig_frontends" = false ]; then
if ! command -v python3 -m menuconfig -h &> /dev/null
then
echo "No Kconfig frontend found. Please install kconfig-frontends or python3-kconfiglib"
exit 1
fi
python3 -m menuconfig
else
$frontend Kconfig
fi