# PX4 custom flight controller porting

**URL:** <https://discuss.px4.io/t/px4-custom-flight-controller-porting/37060>\
**Category:** PX4 Autopilot\
**Created:** [February 28, 2024, 9:59am UTC](https://discuss.px4.io/t/px4-custom-flight-controller-porting/37060 "2024-02-28T09:59:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prathapjaga](https://discuss.px4.io/user_avatar/discuss.px4.io/prathapjaga/32/15737_2.png) [@prathapjaga](https://discuss.px4.io/u/prathapjaga)\
**Post date:** [February 28, 2024, 9:59am UTC](https://discuss.px4.io/t/px4-custom-flight-controller-porting/37060/1 "2024-02-28T09:59:41Z")

</div>

hi, I am currently working with px4 custom board development, I got stuck with the final step of the [NuttX Board Porting Guide](https://docs.px4.io/main/en/hardware/porting_guide_nuttx.html#nuttx-board-porting-guide). I was done till this part.

> `"make manufacturer_my-target-v1 menuconfig"`

but it shows an error like this:

> `''CMake Error at platforms/nuttx/CMakeLists.txt:64 (message): NuttX custom board directory (../../../../boards/px4/fmu-v6c/nuttx-config) isn't in board directory."`

**please help me with it.**

---

<div class="post-metadata">

**Author:** ![Karukkuvel0Killis](https://discuss.px4.io/user_avatar/discuss.px4.io/karukkuvel0killis/32/18536_2.png) [@Karukkuvel0Killis](https://discuss.px4.io/u/Karukkuvel0Killis)\
**Post date:** [March 1, 2024, 11:05am UTC](https://discuss.px4.io/t/px4-custom-flight-controller-porting/37060/2 "2024-03-01T11:05:58Z")

</div>

I also faced same error but i fixed this by editing the def config files in the **custom\_manufacturer** (it may depend on what you have named the board under which manufacturer) folder to reflect the paths as same as your custom board in CONFIG\_ARCH\_BOARD\_CUSTOM\_DIR variable.

There will be two defconfig files in the nuttx folder, you have to change it both as I stated above. One will be under nuttx-config/bootloader other will be under nuttx-config/nsh of your custom board directory.

Hope this clears up everything.

Regards.  
DKR
