mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-27 13:58:20 +00:00
24 lines
442 B
Bash
Executable File
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
|