Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for looking into PICO_BOARD_HEADER_DIRS custom board header #123

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

shalxmva
Copy link

Hi, i want to add support to reading custom headers boards by using the variable PICO_BOARD_HEADER_DIRS set at CMakeLists.txt (currently only one folder is being set at the variable). The reason is because there are people creating custom boards with custom flash chips.

Also our project is setting the project name using a CMake variable.

So any review is welcome to make this change more robust.

Thanks in advance!

src/commands/launchTargetPath.mts Outdated Show resolved Hide resolved
src/commands/switchBoard.mts Outdated Show resolved Hide resolved
src/commands/switchBoard.mts Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to merge this change - just a couple of whitespace issues which I'll fixup

Copy link
Author

@shalxmva shalxmva Dec 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added support to that variable as a path list,
If you add spaces at the end of the value, single quote characters are added at start and at the end.
This change will make this feature more robust.

@shalxmva shalxmva requested a review from will-v-pi December 27, 2024 04:19
Copy link
Collaborator

@will-v-pi will-v-pi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - if you could revert the changes to src/commands/launchTargetPath.mts so this just includes the board header dir changes, then I'm happy to merge this

@shalxmva shalxmva force-pushed the custom_header_dir branch 2 times, most recently from a0faaf8 to 0880a4e Compare January 6, 2025 17:20
shalxmva and others added 2 commits January 6, 2025 11:26
files

Add Use CMAKE_PROJECT_NAME from CMakeCache.txt when getting the project
name
@shalxmva shalxmva requested a review from will-v-pi January 6, 2025 17:29
@shalxmva
Copy link
Author

shalxmva commented Jan 6, 2025

Thanks - if you could revert the changes to src/commands/launchTargetPath.mts so this just includes the board header dir changes, then I'm happy to merge this

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants