Skip to content

Commit 40d049f

Browse files
committed
openisa: Make openisa hal a zephyr_library
Stops leaking long source paths in build directories and makes them deterministic. When building samples/hello_world for rv32m1_vega_ri5cy, this changes the build directories from: build/ └── zephyr └── CMakeFiles └── zephyr.dir └── home └── maureen └── zephyrproject └── modules └── hal └── openisa └── vega_sdk_riscv └── devices └── RV32M1 └── drivers ├── fsl_clock.c.obj └── fsl_lpuart.c.obj to: build/ └── modules └── openisa └── lib..__modules__hal__openisa.a Signed-off-by: Maureen Helm <[email protected]>
1 parent 742d038 commit 40d049f

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if(CONFIG_VEGA_SDK_HAL)
2+
zephyr_library()
3+
endif()
4+
15
add_subdirectory_ifdef(
26
CONFIG_VEGA_SDK_HAL
37
vega_sdk_riscv
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
zephyr_include_directories(.)
22

3-
zephyr_sources(fsl_clock.c)
4-
zephyr_sources_ifdef(CONFIG_ENTROPY_RV32M1_TRNG fsl_trng.c)
5-
zephyr_sources_ifdef(CONFIG_HAS_RV32M1_CAU3_BLE fsl_cau3_ble.c)
6-
zephyr_sources_ifdef(CONFIG_I2C_RV32M1_LPI2C fsl_lpi2c.c)
7-
zephyr_sources_ifdef(CONFIG_PWM_RV32M1_TPM fsl_tpm.c)
8-
zephyr_sources_ifdef(CONFIG_SOC_FLASH_RV32M1 fsl_flash.c)
9-
zephyr_sources_ifdef(CONFIG_SPI_RV32M1_LPSPI fsl_lpspi.c)
10-
zephyr_sources_ifdef(CONFIG_UART_RV32M1_LPUART fsl_lpuart.c)
3+
zephyr_library_sources(fsl_clock.c)
4+
zephyr_library_sources_ifdef(CONFIG_ENTROPY_RV32M1_TRNG fsl_trng.c)
5+
zephyr_library_sources_ifdef(CONFIG_HAS_RV32M1_CAU3_BLE fsl_cau3_ble.c)
6+
zephyr_library_sources_ifdef(CONFIG_I2C_RV32M1_LPI2C fsl_lpi2c.c)
7+
zephyr_library_sources_ifdef(CONFIG_PWM_RV32M1_TPM fsl_tpm.c)
8+
zephyr_library_sources_ifdef(CONFIG_SOC_FLASH_RV32M1 fsl_flash.c)
9+
zephyr_library_sources_ifdef(CONFIG_SPI_RV32M1_LPSPI fsl_lpspi.c)
10+
zephyr_library_sources_ifdef(CONFIG_UART_RV32M1_LPUART fsl_lpuart.c)

vega_sdk_riscv/middleware/wireless/framework/XCVR/RV32M1/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
zephyr_sources(
3+
zephyr_library_sources(
44
cfgs_rv32m1/fsl_xcvr_ant_config.c
55
cfgs_rv32m1/fsl_xcvr_ble_config.c
66
cfgs_rv32m1/fsl_xcvr_common_config.c

0 commit comments

Comments
 (0)