mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 14:47:35 +08:00
b0a73b5144
There is a platform, NixOS Linux, on which '/bin/bash' is not available. This commit changes the interpreter to '/usr/bin/env bash' in some scripts essential to firmware building.
21 lines
482 B
Bash
Executable File
21 lines
482 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
echo "DEBUG: kconfiglib kconfig-conf wrapper, arguments: ${@}"
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
export APPSDIR="`pwd`/../apps"
|
|
export CONFIG_ARCH_BOARD_CUSTOM=y
|
|
|
|
if [ "command -v python3" ]; then
|
|
PYTHON_EXECUTABLE=python3
|
|
else
|
|
PYTHON_EXECUTABLE=python
|
|
fi
|
|
|
|
if [ "${1}" = "--olddefconfig" ]; then
|
|
PYTHONPATH=${DIR} ${PYTHON_EXECUTABLE} ${DIR}/olddefconfig.py > /dev/null
|
|
else
|
|
echo "ERROR: ${@} unsupported"
|
|
exit 1
|
|
fi
|