# Problems with 'make menuconfig'

**URL:** <https://discuss.px4.io/t/problems-with-make-menuconfig/8225>\
**Category:** Uncategorized\
**Created:** [October 23, 2018, 8:39pm UTC](https://discuss.px4.io/t/problems-with-make-menuconfig/8225 "2018-10-23T20:39:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno\_Bagarini](https://discuss.px4.io/letter_avatar_proxy/v4/letter/b/9de053/32.png) [@Bruno\_Bagarini](https://discuss.px4.io/u/Bruno_Bagarini)\
**Post date:** [October 23, 2018, 8:39pm UTC](https://discuss.px4.io/t/problems-with-make-menuconfig/8225/1 "2018-10-23T20:39:11Z")

</div>

Hi guys, Bruno from Brazil here.

I’m newbie to PX4 and I’m trying to change some Nuttx configurations with make px4\_configuration menuconfig. But when I exit the Nuttx menuconfig the build stops due to this Fatal error: Path ‘nuttx-configs/px4\_configuration/nsh/defconfig’ does not exist in ‘HEAD’. Plese, could anyone here say what I am doing wrong?

Ps: I have already installed in my PC the kconfig-frontends in usr/local/bin and I already added this to $PATH.

---

<div class="post-metadata">

**Author:** ![Rossos](https://discuss.px4.io/user_avatar/discuss.px4.io/rossos/32/3500_2.png) [@Rossos](https://discuss.px4.io/u/Rossos)\
**Post date:** [October 24, 2018, 9:36am UTC](https://discuss.px4.io/t/problems-with-make-menuconfig/8225/2 "2018-10-24T09:36:44Z")

</div>

When I was messing with some custom hardware configs last week I was getting exactly the same error, that the “defconfig” does not exist in “HEAD”. This error popped up when I used the ./configure.sh inside the directories.  
The PX4 documented “make _board\_name_ menuconfig” doesn’t even build for me, just crashes, I don’t get to see the NuttX config UI.  
I’ve installed the PX4 dev env with the script provided in their dev sections. My other post is about not linking issues but I would like to hope it’s a separate issues.  
Replying so I get updates.

---

<div class="post-metadata">

**Author:** ![Bruno\_Bagarini](https://discuss.px4.io/letter_avatar_proxy/v4/letter/b/9de053/32.png) [@Bruno\_Bagarini](https://discuss.px4.io/u/Bruno_Bagarini)\
**Post date:** [October 24, 2018, 12:10pm UTC](https://discuss.px4.io/t/problems-with-make-menuconfig/8225/3 "2018-10-24T12:10:12Z")

</div>

Rossos, last night I tryed to use ./configure.sh before make menuconfig, just as a regular Nuttx build, but the script complains about something like “There is no Make.defs file in the specified path”.  
In my case, when I use make board\_name menuconfig, the menu appears to me and I am able to interact with it, but when I exit I have this output in my terminal:

\*\*\* End of the configuration.  
\*\*\* Execute ‘make’ to start the build or try ‘make help’.

nuttx-configs/px4nucleoF767ZI-v1/nsh/defconfig  
fatal: Path ‘nuttx-configs/px4nucleoF767ZI-v1/nsh/defconfig’ does not exist in ‘HEAD’  
Fix up Board Selection

After searching inside the project, I saw that this output is due to the script nuttx\_defconf\_tool.sh located in Firmware/platforms/nuttx/NuttX/tools. After some research, I discovered that HEAD variable belongs to Git and now I’m trying to find out how to modify it in order to avoid this Fatal Error.

---

<div class="post-metadata">

**Author:** ![Rossos](https://discuss.px4.io/user_avatar/discuss.px4.io/rossos/32/3500_2.png) [@Rossos](https://discuss.px4.io/u/Rossos)\
**Post date:** [October 24, 2018, 4:22pm UTC](https://discuss.px4.io/t/problems-with-make-menuconfig/8225/4 "2018-10-24T16:22:46Z")

</div>

I was also able to find these bash script:

rossos@abcxyz:/src/Firmware/platforms/nuttx$ NuttX/tools/nuttx\_defconf\_tool.sh  
Usage: NuttX/tools/nuttx\_defconf\_tool.sh   
rossos@abcxyz:/src/Firmware/platforms/nuttx$ NuttX/tools/nuttx\_defconf\_tool.sh nuttx-configs/px4-stm32f4ve/nsh/defconfig  
nuttx-configs/px4-stm32f4ve/nsh/defconfig  
fatal: Path ‘nuttx-configs/px4-stm32f4ve/nsh/defconfig’ does not exist in ‘HEAD’  
Fix up Board Selection

$ locate configure.sh  
/src/Firmware/platforms/nuttx/NuttX/apps/interpreters/ficl/configure.sh  
/src/Firmware/platforms/nuttx/NuttX/nuttx/tools/configure.sh

rossos@abcxyz:/src/Firmware/platforms/nuttx$ NuttX/tools/new\_nuttx\_px\_config.sh  
BASEDIR="/src/Firmware/platforms/nuttx/NuttX"  
NuttX/tools/new\_nuttx\_px\_config.sh: ERROR: Failed to determine BASEDIR: ‘$BASEDIR/cmake/posix/px4\_impl\_posix.cmake’ is not a regular file.

(paths have been shortened to start only at /src/Firmware)
