-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from nashif/cmake_anas5
More cmake related changes
- Loading branch information
Showing
12 changed files
with
57 additions
and
43 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
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,8 +1,7 @@ | ||
zephyr_library() | ||
zephyr_library_sources(${CMAKE_CURRENT_SOURCE_DIR}/pinmux.c) | ||
target_link_libraries(boards__x86__arduino_101 zephyr drivers__pinmux) | ||
target_include_directories(boards__x86__arduino_101 PRIVATE | ||
${PROJECT_SOURCE_DIR}/include | ||
zephyr_library_sources(pinmux.c) | ||
|
||
|
||
zephyr_library_include_directories(PRIVATE | ||
${PROJECT_SOURCE_DIR}/drivers | ||
${PROJECT_SOURCE_DIR}/drivers/pinmux | ||
) |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
zephyr_sources(pinmux.c) | ||
zephyr_library_include_directories(PRIVATE ${PROJECT_SOURCE_DIR}/drivers) |
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,12 @@ | ||
zephyr_library() | ||
|
||
target_sources_if_kconfig(drivers__console PRIVATE uart_console.c) | ||
target_sources_if_kconfig(drivers__console PRIVATE ram_console.c) | ||
target_sources_if_kconfig(drivers__console PRIVATE rtt_console.c) | ||
target_sources_if_kconfig(drivers__console PRIVATE ipm_console_receiver.c) | ||
target_sources_if_kconfig(drivers__console PRIVATE ipm_console_sender.c) | ||
target_sources_if_kconfig(drivers__console PRIVATE uart_pipe.c) | ||
target_sources_if_kconfig(drivers__console PRIVATE telnet_console.c) | ||
target_sources_if_kconfig(drivers__console PRIVATE xtensa_sim_console.c) | ||
zephyr_library_sources_if_kconfig(uart_console.c) | ||
zephyr_library_sources_if_kconfig(ram_console.c) | ||
zephyr_library_sources_if_kconfig(rtt_console.c) | ||
zephyr_library_sources_if_kconfig(ipm_console_receiver.c) | ||
zephyr_library_sources_if_kconfig(ipm_console_sender.c) | ||
zephyr_library_sources_if_kconfig(uart_pipe.c) | ||
zephyr_library_sources_if_kconfig(telnet_console.c) | ||
zephyr_library_sources_if_kconfig(xtensa_sim_console.c) | ||
|
||
target_link_libraries(drivers__console drivers) | ||
zephyr_library_link_libraries(drivers) |
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,17 +1,18 @@ | ||
zephyr_library() | ||
target_link_libraries(drivers__serial drivers) | ||
|
||
target_sources_if_kconfig(drivers__serial PRIVATE uart_ns16550.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_mcux.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_mcux_lpuart.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_stellaris.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_nsim.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_atmel_sam3.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_sam.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_qmsi.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_stm32.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_nrf5.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_altera_jtag.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_cc32.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_cmsdk_apb.c) | ||
target_sources_if_kconfig(drivers__serial PRIVATE uart_riscv_qemu.c) | ||
zephyr_library_link_libraries(drivers) | ||
|
||
zephyr_library_sources_if_kconfig(uart_ns16550.c) | ||
zephyr_library_sources_if_kconfig(uart_mcux.c) | ||
zephyr_library_sources_if_kconfig(uart_mcux_lpuart.c) | ||
zephyr_library_sources_if_kconfig(uart_stellaris.c) | ||
zephyr_library_sources_if_kconfig(uart_nsim.c) | ||
zephyr_library_sources_if_kconfig(uart_atmel_sam3.c) | ||
zephyr_library_sources_if_kconfig(uart_sam.c) | ||
zephyr_library_sources_if_kconfig(uart_qmsi.c) | ||
zephyr_library_sources_if_kconfig(uart_stm32.c) | ||
zephyr_library_sources_if_kconfig(uart_nrf5.c) | ||
zephyr_library_sources_if_kconfig(uart_altera_jtag.c) | ||
zephyr_library_sources_if_kconfig(uart_cc32.c) | ||
zephyr_library_sources_if_kconfig(uart_cmsdk_apb.c) | ||
zephyr_library_sources_if_kconfig(uart_riscv_qemu.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
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
zephyr_sources_ifdef(CONFIG_CONSOLE_GETCHAR getchar.c) | ||
zephyr_sources_ifdef(CONFIG_CONSOLE_GETLINE getline.c) |