Files
PX4-Autopilot/platforms/nuttx/NuttX/tools/kconfig-tweak
T
Daniel Agar b35883f5d5 cmake nuttx use wrapper script to call "make olddefconfig"
- this is a workaround for PATH variables that exceed the maximum cmake custom command length
2019-03-24 17:58:41 -04:00

13 lines
392 B
Bash
Executable File

#! /bin/bash
#echo "DEBUG: kconfiglib kconfig-tweak wrapper, arguments: ${@}"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export APPSDIR="`pwd`/../apps"
# Example:
# kconfig-tweak --set-str CONFIG_APPS_DIR ../apps
# becomes
# python setconfig.py CONFIG_APPS_DIR=../apps
PYTHONPATH=${DIR} python ${DIR}/setconfig.py --kconfig=Kconfig ${2}=${3} > /dev/null