mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 18:43:34 +08:00
- cmake NuttX build wrapper compile in place instead of copying source tree to build directory
- slightly faster skipping necessary copying (depending on system)
- allows debugging in place
- easier to work directly in NuttX following official documentation
- simplifies overall build which should make it easier to resolve any remaining NuttX dependency issues in the build system
- the downside is switching back and forth between different builds always require rebuilding NuttX, but I think this is worth the improved developer experience
- also no longer builds px4io and bootloader in every single build, for most users these rarely change and we're wasting a lot of build time
20 lines
448 B
Bash
Executable File
20 lines
448 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"
|
|
|
|
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
|