Skip to content

Fix/samples/cmakelists #31

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

Merged
merged 2 commits into from
Aug 17, 2022
Merged

Fix/samples/cmakelists #31

merged 2 commits into from
Aug 17, 2022

Conversation

DhruvaG2000
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@szczys szczys left a comment

Choose a reason for hiding this comment

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

Wow! This is great work. I'm really interested to hear how you got the $ZEPHYR_BASE part of this to work since I don't see it set in my ENV.

Compilation works worked for me after I tweaked directory names, I suggest the following changes should be included in this PR:

  • The directories in the variants folder should be renamed to all lower-case
  • CMakeLists.c files in all samples should be changed to match changes made in this PR (hello-arduino)

This is a giant improvement, nice job!

@beriberikix
Copy link
Collaborator

Is this ready for review? If so, let's take it out of draft!

@DhruvaG2000
Copy link
Collaborator Author

DhruvaG2000 commented Aug 14, 2022

Is this ready for review? If so, let's take it out of draft!

I am not able to rename all the folder names for some reason, just some issue with windows or something I guess...

Other than that all the CMake changes are done, only renaming is left

@DhruvaG2000
Copy link
Collaborator Author

Have to make all the folder names from caps to small case

@DhruvaG2000 DhruvaG2000 marked this pull request as ready for review August 15, 2022 16:21
@DhruvaG2000 DhruvaG2000 requested a review from szczys August 15, 2022 17:17
@DhruvaG2000 DhruvaG2000 force-pushed the fix/samples/Cmakelists branch 4 times, most recently from 31022f0 to efe2208 Compare August 16, 2022 16:06
Cmakelists was unable to previously find the overlay path that was board specific
This path had to be hardcoded into each sample for each different board.
Now, with the help of BOARD variable we can automatically find the overlay path using cmake.
adapt to the new changes in cmakelists that uses the BOARD variable that expands to the small case
of the board in use.

Signed-off-by: Dhruva Gole <goledhruva@gmail.com>
@DhruvaG2000 DhruvaG2000 force-pushed the fix/samples/Cmakelists branch from efe2208 to 629c690 Compare August 16, 2022 16:11
Copy link
Collaborator

@szczys szczys left a comment

Choose a reason for hiding this comment

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

LGTM!

@szczys szczys mentioned this pull request Aug 16, 2022
@DhruvaG2000
Copy link
Collaborator Author

Merging to dev since I have @szczys approval!

@DhruvaG2000 DhruvaG2000 merged commit df157bd into dev Aug 17, 2022
@DhruvaG2000 DhruvaG2000 deleted the fix/samples/Cmakelists branch August 31, 2022 12:37
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.

3 participants