forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding all source files in a single, giant zephyr/CMakeLists.txt is inconvenient and does not scale. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
- Loading branch information
Showing
4 changed files
with
71 additions
and
31 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
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,12 +1,28 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
add_local_sources(sof | ||
set(common_files | ||
handler.c | ||
helper.c | ||
dai.c | ||
) | ||
|
||
is_zephyr(it_is) | ||
if(it_is) ### Zephyr ### | ||
|
||
zephyr_library_sources( | ||
${common_files} | ||
host-page-table.c | ||
) | ||
|
||
else() ### Not Zephyr ### | ||
|
||
add_local_sources(sof | ||
${common_files} | ||
) | ||
|
||
if (CONFIG_HOST_PTABLE) | ||
add_local_sources(sof | ||
host-page-table.c) | ||
endif() | ||
endif() | ||
|
||
endif() # Zephyr |
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,12 +1,36 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
add_local_sources(sof | ||
set(common_files | ||
dai.c | ||
handler.c | ||
helper.c | ||
logging.c | ||
notification.c | ||
) | ||
|
||
|
||
is_zephyr(it_is) | ||
if(it_is) ### Zephyr ### | ||
|
||
|
||
zephyr_library_sources( | ||
${common_files} | ||
) | ||
|
||
zephyr_library_sources_ifdef(CONFIG_AMS | ||
ams_helpers.c | ||
) | ||
|
||
|
||
else() ### Not Zephyr #### | ||
|
||
|
||
add_local_sources(sof | ||
${common_files} | ||
ams_helpers.c | ||
) | ||
|
||
target_include_directories(sof_options INTERFACE ${RIMAGE_TOP}/src/include) | ||
|
||
|
||
endif() # Zephyr |
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