mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 06:01:35 +08:00
cmake nuttx use wrapper script to call "make olddefconfig"
- this is a workaround for PATH variables that exceed the maximum cmake custom command length
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#! /bin/bash
|
||||
|
||||
echo "DEBUG: kconfiglib kconfig-tweak wrapper, arguments: ${@}"
|
||||
#echo "DEBUG: kconfiglib kconfig-tweak wrapper, arguments: ${@}"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
export APPSDIR="`pwd`/../apps"
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#! /bin/bash
|
||||
|
||||
NUTTX_DIR=${1}
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
# update PATH to include kconfiglib scripts
|
||||
export PATH=${DIR}:${PATH}
|
||||
|
||||
make --no-print-directory --silent -C ${NUTTX_DIR} CONFIG_ARCH_BOARD_CUSTOM=y CONFIG_APPS_DIR="../apps" olddefconfig > nuttx_olddefconfig.log
|
||||
Reference in New Issue
Block a user