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

Driver reorganize #50

Merged
merged 2 commits into from
Aug 16, 2024
Merged

Driver reorganize #50

merged 2 commits into from
Aug 16, 2024

Conversation

yashi
Copy link
Member

@yashi yashi commented Aug 16, 2024

This commit moves drivers up to the top directory in order to remove build warnings.

To eliminate the "No SOURCES given to Zephyr library" warning
displayed during the CMake run, we need to use the
zephyr_library_amend() macro. However, this macro is only effective
when the Zephyr driver hierarchy is followed.

Moving zephyr/drivers to the top level achieves this.

Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
@yashi yashi requested a review from sasataku as a code owner August 16, 2024 08:25
Replace zephyr_library() with zephyr_library_amend() to silent a build
warning like the following:

    CMake Warning at .../scsat1-fsw/workspace/zephyr/CMakeLists.txt:915 (message):
      No SOURCES given to Zephyr library: drivers__pwm

      Excluding target from build.

    CMake Warning at .../scsat1-fsw/workspace/zephyr/CMakeLists.txt:915 (message):
      No SOURCES given to Zephyr library: drivers__spi

      Excluding target from build.

This commit does not include drivers/misc. zephyr/driver/misc doesn't
call zephyr_library(). Thus, "No SOURCES" warning will not be
generated.

Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
@yashi yashi force-pushed the driver-reorganize branch from ab6fa19 to 69caa98 Compare August 16, 2024 08:28
Copy link
Member

@sasataku sasataku left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM.

@sasataku sasataku merged commit 2416ac3 into spacecubics:main Aug 16, 2024
17 checks passed
@yashi yashi deleted the driver-reorganize branch August 16, 2024 10:17
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