platformio / platformio-core

Your Gateway to Embedded Software Development Excellence :alien:
https://platformio.org
Apache License 2.0
7.83k stars 789 forks source link

Menuconfig ignores library Kconfig files #3702

Closed tuupola closed 3 years ago

tuupola commented 3 years ago

What kind of issue is this?


Configuration

Operating system: macOS Mojave 10.14.6 PlatformIO Version (platformio --version): PlatformIO, version 5.0.1

Description of problem

Menuconfig ignores library KConfig files unless the library is installed in components folder. Tested with esp-idf.

Steps to Reproduce

  1. $ pio lib install git@github.com:tuupola/hagl.git
  2. $ pio run -t menuconfig

Actual Results

Library config options are not shown.

Expected Results

Library config options should be shown.

Additional info

Workaround is to pass the --storage-dir option when installing the library.

$ pio lib  --storage-dir components install foo/bar

However this fails for future users running pio run because dependencies are downloaded into .pio/environment folder. Another workaround is to use a platformio.ini which abuses the environment name:

[platformio]
libdeps_dir = .

[env:components]
platform = espressif32
board = m5stack-grey
framework = espidf
lib_deps = foo/bar

Downside for this approach is that you can only only one environment and it has to be called components.

ivankravets commented 3 years ago

You can override a name of libdeps dir https://docs.platformio.org/en/latest/projectconf/section_platformio.html#libdeps-dir

So, did you try libdeps_dir = components?

ivankravets commented 3 years ago

Please reopen if you still need help

nicklasb commented 6 months ago

To update this one a little bit: I had to add "./" to run from the project library, and you need to add the folder first: pio pkg install --storage-dir ./components --library "robusto/robusto"