-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: Replace zephyr_library with zephyr_library_amend
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>
- Loading branch information
Showing
4 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Copyright (c) 2023 Space Cubics, LLC. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
zephyr_library() | ||
zephyr_library_amend() | ||
|
||
zephyr_library_sources_ifdef(CONFIG_CAN_SCCAN can_sccan.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Copyright (c) 2023 Space Cubics, LLC. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
zephyr_library() | ||
zephyr_library_amend() | ||
|
||
zephyr_library_sources_ifdef(CONFIG_I2C_SC i2c_sc.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Copyright (c) 2023 Space Cubics, LLC. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
zephyr_library() | ||
zephyr_library_amend() | ||
|
||
zephyr_library_sources_ifdef(CONFIG_PWM_SC pwm_sc.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
zephyr_library() | ||
zephyr_library_amend() | ||
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers/spi) | ||
zephyr_library_sources_ifdef(CONFIG_SPI_SC_QSPI spi_sc.c) |