Skip to content

Conversation

@agansari
Copy link
Contributor

Allows boards to have a extra.cmake that allows for custom cmake commands.
We use the extra.cmake file to set EXTRA_DTC_FLAGS to suppress warnings on LPC SoC that have a single register address for all gpio ports.

Fixes #20748

@zephyrbot
Copy link

zephyrbot commented Nov 20, 2019

All checks are passing now.

Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages.

Copy link
Contributor

@ulfalizer ulfalizer left a comment

Choose a reason for hiding this comment

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

Wonder if there's some simpler way to fix it on the devicetree side, e.g. by leaving out the unit address, or refactoring in some other way.

@SebastianBoe
Copy link
Contributor

What's wrong with the board.cmake hook? Is it placed too early / too late ?

@agansari
Copy link
Contributor Author

What's wrong with the board.cmake hook? Is it placed too early / too late ?

It's too late, my first goto was board.cmake but device tree is ready compiled before EXTRA_DTC_FLAGS is set.

@agansari
Copy link
Contributor Author

@SebastianBoe @ulfalizer made the changes required, i still need to document pre_dt_board.cmake

@SebastianBoe
Copy link
Contributor

@agansari : This feedback has not been addressed:

We should not use env vars to communicate information between the build system and underlying scripts. CLI arguments should be used.

@agansari
Copy link
Contributor Author

@SebastianBoe @ulfalizer updated documentation and CLI based parameter passing

Copy link
Contributor

@dbkinder dbkinder left a comment

Choose a reason for hiding this comment

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

couple of grammar typos

Copy link
Contributor

@dbkinder dbkinder left a comment

Choose a reason for hiding this comment

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

+1 for doc changes, thanks!

@galak galak added this to the v2.2.0 milestone Jan 29, 2020
Copy link
Contributor

@galak galak left a comment

Choose a reason for hiding this comment

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

Can you look and see if we can move setting EXTRA_DTC_FLAGS in the SoC Cmake instead.

Also can you fixup the pylint error.

@agansari agansari force-pushed the warn_suppress branch 3 times, most recently from 4164de5 to 38069e5 Compare January 30, 2020 13:09
@agansari
Copy link
Contributor Author

@galak fixed pylint, please review again

This commit allows boards to have custom cmake parameters that are
loaded before device tree is processed.

Signed-off-by: Andrei Gansari <[email protected]>
LPC SoCs share the same register for all GPIO poarts. This leads us to a
device tree configuration that missmatches GPIO register address and
GPIO port identifier.

Signed-off-by: Andrei Gansari <[email protected]>
Pass arguments as command line from cmake to python. Extra DTC flags are
used later on to check errors in python.

Signed-off-by: Andrei Gansari <[email protected]>
Single-bus warning in python parsing of device tree is suppressed if
this is also suppresed in the device tree compiler.

Signed-off-by: Andrei Gansari <[email protected]>
Document pre_dt_board.cmake file usage.

Signed-off-by: Andrei Gansari <[email protected]>
@galak galak merged commit 820f2bf into zephyrproject-rtos:master Feb 5, 2020
@agansari agansari deleted the warn_suppress branch February 6, 2020 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build warnings on lpcxpresso54114_m0/m4 board

6 participants