From aedf98bb75d2ce00f5be2f370605116f8950d54c Mon Sep 17 00:00:00 2001 From: Yuzhuo Liu Date: Tue, 31 Mar 2026 10:48:34 +0800 Subject: [PATCH] drivers: remove zephyr_library() to reduce build path length Remove zephyr_library() to reduce build path length. Signed-off-by: Yuzhuo Liu --- bee/drivers/adc/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/adc/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/adc/src/rtl_common/CMakeLists.txt | 2 -- bee/drivers/bluetooth/src/rtl_common/CMakeLists.txt | 2 -- bee/drivers/can/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/codec/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/codec/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/dma/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/dma/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/dma/src/rtl_common/CMakeLists.txt | 2 -- bee/drivers/gpio/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/gpio/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/gpio/src/rtl_common/CMakeLists.txt | 2 -- bee/drivers/i2c/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/i2c/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/i2c/src/rtl_common/CMakeLists.txt | 4 +--- bee/drivers/i2s/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/i2s/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/i2s/src/rtl_common/CMakeLists.txt | 4 +--- bee/drivers/ir/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/ir/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/ir/src/rtl_common/CMakeLists.txt | 4 +--- bee/drivers/keyscan/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/keyscan/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/keyscan/src/rtl_common/CMakeLists.txt | 4 +--- bee/drivers/nvic/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/nvic/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/pinmux/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/pinmux/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/qdec/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/qdec/src/rtl_common/CMakeLists.txt | 4 +--- bee/drivers/rcc/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/rcc/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/rtc/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/rtc/src/rtl87x2g/CMakeLists.txt | 3 +-- bee/drivers/rtc/src/rtl_common/CMakeLists.txt | 4 +--- bee/drivers/sdhc/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/spi/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/spi/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/spi/src/rtl_common/CMakeLists.txt | 4 +--- bee/drivers/spi3w/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/spi3w/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/spi3w/src/rtl_common/CMakeLists.txt | 4 +--- bee/drivers/tim/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/tim/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/tim/src/rtl_common/CMakeLists.txt | 2 -- bee/drivers/uart/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/uart/src/rtl87x2g/CMakeLists.txt | 2 -- bee/drivers/uart/src/rtl_common/CMakeLists.txt | 4 +--- bee/drivers/wdt/src/rtl8752h/CMakeLists.txt | 2 -- bee/drivers/wdt/src/rtl87x2g/CMakeLists.txt | 4 +--- bee/rtl8752h/osif/zephyr/CMakeLists.txt | 1 - bee/rtl87x2g/osif/zephyr/CMakeLists.txt | 1 - 53 files changed, 11 insertions(+), 114 deletions(-) diff --git a/bee/drivers/adc/src/rtl8752h/CMakeLists.txt b/bee/drivers/adc/src/rtl8752h/CMakeLists.txt index 3851562..0e0ad6b 100644 --- a/bee/drivers/adc/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/adc/src/rtl8752h/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_adc.c) zephyr_link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/libadc.a) diff --git a/bee/drivers/adc/src/rtl87x2g/CMakeLists.txt b/bee/drivers/adc/src/rtl87x2g/CMakeLists.txt index 086f0a9..50253af 100644 --- a/bee/drivers/adc/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/adc/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources_ifdef(CONFIG_REALTEK_ADC rtl87x2g_adc.c) diff --git a/bee/drivers/adc/src/rtl_common/CMakeLists.txt b/bee/drivers/adc/src/rtl_common/CMakeLists.txt index cca1302..e5d121d 100644 --- a/bee/drivers/adc/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/adc/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources_ifdef(CONFIG_REALTEK_ADC rtl_adc.c) \ No newline at end of file diff --git a/bee/drivers/bluetooth/src/rtl_common/CMakeLists.txt b/bee/drivers/bluetooth/src/rtl_common/CMakeLists.txt index 1e0aa3d..34ba224 100644 --- a/bee/drivers/bluetooth/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/bluetooth/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl_bt_hci.c) \ No newline at end of file diff --git a/bee/drivers/can/src/rtl87x2g/CMakeLists.txt b/bee/drivers/can/src/rtl87x2g/CMakeLists.txt index b7f6fe9..66153e1 100644 --- a/bee/drivers/can/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/can/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2025 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/librtl87x2g_can.a) diff --git a/bee/drivers/codec/src/rtl8752h/CMakeLists.txt b/bee/drivers/codec/src/rtl8752h/CMakeLists.txt index fcbd9e0..0674535 100644 --- a/bee/drivers/codec/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/codec/src/rtl8752h/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_codec.c) diff --git a/bee/drivers/codec/src/rtl87x2g/CMakeLists.txt b/bee/drivers/codec/src/rtl87x2g/CMakeLists.txt index 7794293..c774e92 100644 --- a/bee/drivers/codec/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/codec/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl_codec.c) diff --git a/bee/drivers/dma/src/rtl8752h/CMakeLists.txt b/bee/drivers/dma/src/rtl8752h/CMakeLists.txt index 0d940d5..6d1ceae 100644 --- a/bee/drivers/dma/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/dma/src/rtl8752h/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_gdma.c) diff --git a/bee/drivers/dma/src/rtl87x2g/CMakeLists.txt b/bee/drivers/dma/src/rtl87x2g/CMakeLists.txt index 6644532..6c2827a 100644 --- a/bee/drivers/dma/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/dma/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl87x2g_gdma.c) diff --git a/bee/drivers/dma/src/rtl_common/CMakeLists.txt b/bee/drivers/dma/src/rtl_common/CMakeLists.txt index cd3fec0..55bbbe1 100644 --- a/bee/drivers/dma/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/dma/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl_gdma.c) \ No newline at end of file diff --git a/bee/drivers/gpio/src/rtl8752h/CMakeLists.txt b/bee/drivers/gpio/src/rtl8752h/CMakeLists.txt index 9fcdd8f..3cce67e 100644 --- a/bee/drivers/gpio/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/gpio/src/rtl8752h/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_gpio.c) if (CONFIG_PM_DEVICE) diff --git a/bee/drivers/gpio/src/rtl87x2g/CMakeLists.txt b/bee/drivers/gpio/src/rtl87x2g/CMakeLists.txt index 4a6394c..dedcfbd 100644 --- a/bee/drivers/gpio/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/gpio/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl87x2g_gpio.c) diff --git a/bee/drivers/gpio/src/rtl_common/CMakeLists.txt b/bee/drivers/gpio/src/rtl_common/CMakeLists.txt index 5fd7c73..59dd626 100644 --- a/bee/drivers/gpio/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/gpio/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl_gpio.c) \ No newline at end of file diff --git a/bee/drivers/i2c/src/rtl8752h/CMakeLists.txt b/bee/drivers/i2c/src/rtl8752h/CMakeLists.txt index 61ed0c1..d03665a 100644 --- a/bee/drivers/i2c/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/i2c/src/rtl8752h/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_i2c.c) if (CONFIG_PM_DEVICE) diff --git a/bee/drivers/i2c/src/rtl87x2g/CMakeLists.txt b/bee/drivers/i2c/src/rtl87x2g/CMakeLists.txt index 6639362..27ad8cc 100644 --- a/bee/drivers/i2c/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/i2c/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl87x2g_i2c.c) diff --git a/bee/drivers/i2c/src/rtl_common/CMakeLists.txt b/bee/drivers/i2c/src/rtl_common/CMakeLists.txt index b5faaad..b40cd7f 100644 --- a/bee/drivers/i2c/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/i2c/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - -zephyr_library_sources(rtl_i2c.c) \ No newline at end of file +zephyr_library_sources(rtl_i2c.c) diff --git a/bee/drivers/i2s/src/rtl8752h/CMakeLists.txt b/bee/drivers/i2s/src/rtl8752h/CMakeLists.txt index ccfb92b..2318a56 100644 --- a/bee/drivers/i2s/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/i2s/src/rtl8752h/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_i2s.c) diff --git a/bee/drivers/i2s/src/rtl87x2g/CMakeLists.txt b/bee/drivers/i2s/src/rtl87x2g/CMakeLists.txt index 8745487..ef8f17a 100644 --- a/bee/drivers/i2s/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/i2s/src/rtl87x2g/CMakeLists.txt @@ -1,4 +1,2 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 - -zephyr_library() diff --git a/bee/drivers/i2s/src/rtl_common/CMakeLists.txt b/bee/drivers/i2s/src/rtl_common/CMakeLists.txt index 68ff979..3c07942 100644 --- a/bee/drivers/i2s/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/i2s/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - -zephyr_library_sources(rtl_i2s.c) \ No newline at end of file +zephyr_library_sources(rtl_i2s.c) diff --git a/bee/drivers/ir/src/rtl8752h/CMakeLists.txt b/bee/drivers/ir/src/rtl8752h/CMakeLists.txt index 7723335..638b7f0 100644 --- a/bee/drivers/ir/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/ir/src/rtl8752h/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_ir.c) if (CONFIG_PM_DEVICE) diff --git a/bee/drivers/ir/src/rtl87x2g/CMakeLists.txt b/bee/drivers/ir/src/rtl87x2g/CMakeLists.txt index c193d44..85b4480 100644 --- a/bee/drivers/ir/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/ir/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl87x2g_ir.c) diff --git a/bee/drivers/ir/src/rtl_common/CMakeLists.txt b/bee/drivers/ir/src/rtl_common/CMakeLists.txt index 39e8803..4c6ee41 100644 --- a/bee/drivers/ir/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/ir/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - -zephyr_library_sources(rtl_ir.c) \ No newline at end of file +zephyr_library_sources(rtl_ir.c) diff --git a/bee/drivers/keyscan/src/rtl8752h/CMakeLists.txt b/bee/drivers/keyscan/src/rtl8752h/CMakeLists.txt index a05c72a..a6dd594 100644 --- a/bee/drivers/keyscan/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/keyscan/src/rtl8752h/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_keyscan.c) if (CONFIG_PM_DEVICE) diff --git a/bee/drivers/keyscan/src/rtl87x2g/CMakeLists.txt b/bee/drivers/keyscan/src/rtl87x2g/CMakeLists.txt index 2503a36..ce53c2c 100644 --- a/bee/drivers/keyscan/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/keyscan/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl87x2g_keyscan.c) diff --git a/bee/drivers/keyscan/src/rtl_common/CMakeLists.txt b/bee/drivers/keyscan/src/rtl_common/CMakeLists.txt index a1183bc..927ab79 100644 --- a/bee/drivers/keyscan/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/keyscan/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - -zephyr_library_sources(rtl_keyscan.c) \ No newline at end of file +zephyr_library_sources(rtl_keyscan.c) diff --git a/bee/drivers/nvic/src/rtl8752h/CMakeLists.txt b/bee/drivers/nvic/src/rtl8752h/CMakeLists.txt index 15f654d..d2fb61d 100644 --- a/bee/drivers/nvic/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/nvic/src/rtl8752h/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_nvic.c) diff --git a/bee/drivers/nvic/src/rtl87x2g/CMakeLists.txt b/bee/drivers/nvic/src/rtl87x2g/CMakeLists.txt index a07015b..0f39934 100644 --- a/bee/drivers/nvic/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/nvic/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl_nvic.c) diff --git a/bee/drivers/pinmux/src/rtl8752h/CMakeLists.txt b/bee/drivers/pinmux/src/rtl8752h/CMakeLists.txt index 013853b..c8d00f6 100644 --- a/bee/drivers/pinmux/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/pinmux/src/rtl8752h/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_pinmux.c) diff --git a/bee/drivers/pinmux/src/rtl87x2g/CMakeLists.txt b/bee/drivers/pinmux/src/rtl87x2g/CMakeLists.txt index 2e9dd05..d8fd258 100644 --- a/bee/drivers/pinmux/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/pinmux/src/rtl87x2g/CMakeLists.txt @@ -1,7 +1,5 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl_pinmux.c) zephyr_code_relocate(FILES rtl_pinmux.c LOCATION ITCM) diff --git a/bee/drivers/qdec/src/rtl8752h/CMakeLists.txt b/bee/drivers/qdec/src/rtl8752h/CMakeLists.txt index b175b83..f95b78a 100644 --- a/bee/drivers/qdec/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/qdec/src/rtl8752h/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (c) 2025 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_qdec.c) if (CONFIG_PM_DEVICE) diff --git a/bee/drivers/qdec/src/rtl_common/CMakeLists.txt b/bee/drivers/qdec/src/rtl_common/CMakeLists.txt index 0dd1355..9dd9568 100644 --- a/bee/drivers/qdec/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/qdec/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - -zephyr_library_sources_ifdef(CONFIG_REALTEK_AON_QDEC rtl_aon_qdec.c) \ No newline at end of file +zephyr_library_sources_ifdef(CONFIG_REALTEK_AON_QDEC rtl_aon_qdec.c) diff --git a/bee/drivers/rcc/src/rtl8752h/CMakeLists.txt b/bee/drivers/rcc/src/rtl8752h/CMakeLists.txt index 110e228..44adb69 100644 --- a/bee/drivers/rcc/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/rcc/src/rtl8752h/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_rcc.c) diff --git a/bee/drivers/rcc/src/rtl87x2g/CMakeLists.txt b/bee/drivers/rcc/src/rtl87x2g/CMakeLists.txt index f3c468a..9b77aa0 100644 --- a/bee/drivers/rcc/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/rcc/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl_rcc.c) diff --git a/bee/drivers/rtc/src/rtl8752h/CMakeLists.txt b/bee/drivers/rtc/src/rtl8752h/CMakeLists.txt index 2ccc627..df3c249 100644 --- a/bee/drivers/rtc/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/rtc/src/rtl8752h/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_rtc.c) diff --git a/bee/drivers/rtc/src/rtl87x2g/CMakeLists.txt b/bee/drivers/rtc/src/rtl87x2g/CMakeLists.txt index 082dc8a..2a51bff 100644 --- a/bee/drivers/rtc/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/rtc/src/rtl87x2g/CMakeLists.txt @@ -1,5 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() -zephyr_library_sources(rtl87x2g_rtc.c) \ No newline at end of file +zephyr_library_sources(rtl87x2g_rtc.c) diff --git a/bee/drivers/rtc/src/rtl_common/CMakeLists.txt b/bee/drivers/rtc/src/rtl_common/CMakeLists.txt index fedc4a5..b052456 100644 --- a/bee/drivers/rtc/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/rtc/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - -zephyr_library_sources(rtl_rtc.c) \ No newline at end of file +zephyr_library_sources(rtl_rtc.c) diff --git a/bee/drivers/sdhc/src/rtl87x2g/CMakeLists.txt b/bee/drivers/sdhc/src/rtl87x2g/CMakeLists.txt index b251f94..7535153 100644 --- a/bee/drivers/sdhc/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/sdhc/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/libsd.a) diff --git a/bee/drivers/spi/src/rtl8752h/CMakeLists.txt b/bee/drivers/spi/src/rtl8752h/CMakeLists.txt index f0d519f..d219eb6 100644 --- a/bee/drivers/spi/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/spi/src/rtl8752h/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_spi.c) if (CONFIG_PM_DEVICE) diff --git a/bee/drivers/spi/src/rtl87x2g/CMakeLists.txt b/bee/drivers/spi/src/rtl87x2g/CMakeLists.txt index 93c3047..e94bea6 100644 --- a/bee/drivers/spi/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/spi/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl87x2g_spi.c) diff --git a/bee/drivers/spi/src/rtl_common/CMakeLists.txt b/bee/drivers/spi/src/rtl_common/CMakeLists.txt index ff98637..9402276 100644 --- a/bee/drivers/spi/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/spi/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - -zephyr_library_sources(rtl_spi.c) \ No newline at end of file +zephyr_library_sources(rtl_spi.c) diff --git a/bee/drivers/spi3w/src/rtl8752h/CMakeLists.txt b/bee/drivers/spi3w/src/rtl8752h/CMakeLists.txt index baedd91..2da4c0f 100644 --- a/bee/drivers/spi3w/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/spi3w/src/rtl8752h/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_3wire_spi.c) if (CONFIG_PM_DEVICE) diff --git a/bee/drivers/spi3w/src/rtl87x2g/CMakeLists.txt b/bee/drivers/spi3w/src/rtl87x2g/CMakeLists.txt index 7aefa08..629c9d8 100644 --- a/bee/drivers/spi3w/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/spi3w/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl87x2g_spi3w.c) diff --git a/bee/drivers/spi3w/src/rtl_common/CMakeLists.txt b/bee/drivers/spi3w/src/rtl_common/CMakeLists.txt index 90d0a4b..3a7e4c9 100644 --- a/bee/drivers/spi3w/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/spi3w/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - -zephyr_library_sources(rtl_spi3w.c) \ No newline at end of file +zephyr_library_sources(rtl_spi3w.c) diff --git a/bee/drivers/tim/src/rtl8752h/CMakeLists.txt b/bee/drivers/tim/src/rtl8752h/CMakeLists.txt index 27f67cd..0da18d5 100644 --- a/bee/drivers/tim/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/tim/src/rtl8752h/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - if(CONFIG_REALTEK_TIM) zephyr_library_sources(rtl876x_tim.c) endif() diff --git a/bee/drivers/tim/src/rtl87x2g/CMakeLists.txt b/bee/drivers/tim/src/rtl87x2g/CMakeLists.txt index f7fd2d8..74822a2 100644 --- a/bee/drivers/tim/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/tim/src/rtl87x2g/CMakeLists.txt @@ -1,7 +1,5 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources_ifdef(CONFIG_REALTEK_TIM rtl87x2g_tim.c) zephyr_library_sources_ifdef(CONFIG_REALTEK_ENHTIM rtl87x2g_enh_tim.c) diff --git a/bee/drivers/tim/src/rtl_common/CMakeLists.txt b/bee/drivers/tim/src/rtl_common/CMakeLists.txt index 67965ac..f67ce36 100644 --- a/bee/drivers/tim/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/tim/src/rtl_common/CMakeLists.txt @@ -1,7 +1,5 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources_ifdef(CONFIG_REALTEK_TIM rtl_tim.c) zephyr_library_sources_ifdef(CONFIG_REALTEK_ENHTIM rtl_enh_tim.c) diff --git a/bee/drivers/uart/src/rtl8752h/CMakeLists.txt b/bee/drivers/uart/src/rtl8752h/CMakeLists.txt index bac843c..2176a87 100644 --- a/bee/drivers/uart/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/uart/src/rtl8752h/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl876x_uart.c) if (CONFIG_PM_DEVICE) diff --git a/bee/drivers/uart/src/rtl87x2g/CMakeLists.txt b/bee/drivers/uart/src/rtl87x2g/CMakeLists.txt index 6cbd6a0..506c053 100644 --- a/bee/drivers/uart/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/uart/src/rtl87x2g/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources(rtl87x2g_uart.c) diff --git a/bee/drivers/uart/src/rtl_common/CMakeLists.txt b/bee/drivers/uart/src/rtl_common/CMakeLists.txt index 67b4276..479502b 100644 --- a/bee/drivers/uart/src/rtl_common/CMakeLists.txt +++ b/bee/drivers/uart/src/rtl_common/CMakeLists.txt @@ -1,6 +1,4 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - -zephyr_library_sources(rtl_uart.c) \ No newline at end of file +zephyr_library_sources(rtl_uart.c) diff --git a/bee/drivers/wdt/src/rtl8752h/CMakeLists.txt b/bee/drivers/wdt/src/rtl8752h/CMakeLists.txt index a337e6c..bde0dbc 100644 --- a/bee/drivers/wdt/src/rtl8752h/CMakeLists.txt +++ b/bee/drivers/wdt/src/rtl8752h/CMakeLists.txt @@ -1,7 +1,5 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources_ifdef(CONFIG_REALTEK_AON_WDT rtl876x_aon_wdg.c) zephyr_library_sources_ifdef(CONFIG_REALTEK_CORE_WDT rtl876x_wdg.c) diff --git a/bee/drivers/wdt/src/rtl87x2g/CMakeLists.txt b/bee/drivers/wdt/src/rtl87x2g/CMakeLists.txt index d509791..34448eb 100644 --- a/bee/drivers/wdt/src/rtl87x2g/CMakeLists.txt +++ b/bee/drivers/wdt/src/rtl87x2g/CMakeLists.txt @@ -1,7 +1,5 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() - zephyr_library_sources_ifdef(CONFIG_REALTEK_AON_WDT rtl87x2g_aon_wdt.c) -zephyr_library_sources_ifdef(CONFIG_REALTEK_CORE_WDT rtl87x2g_wdt.c) \ No newline at end of file +zephyr_library_sources_ifdef(CONFIG_REALTEK_CORE_WDT rtl87x2g_wdt.c) diff --git a/bee/rtl8752h/osif/zephyr/CMakeLists.txt b/bee/rtl8752h/osif/zephyr/CMakeLists.txt index 2c566e6..0a9c1e7 100644 --- a/bee/rtl8752h/osif/zephyr/CMakeLists.txt +++ b/bee/rtl8752h/osif/zephyr/CMakeLists.txt @@ -1,6 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -zephyr_library() zephyr_library_sources(osif_zephyr.c) zephyr_include_directories(${ZEPHYR_BASE}/arch/arm/include) # arch_kernel_init zephyr_include_directories(${ZEPHYR_BASE}/kernel/include) # z_idle_threads \ No newline at end of file diff --git a/bee/rtl87x2g/osif/zephyr/CMakeLists.txt b/bee/rtl87x2g/osif/zephyr/CMakeLists.txt index 30bffb9..187e61b 100644 --- a/bee/rtl87x2g/osif/zephyr/CMakeLists.txt +++ b/bee/rtl87x2g/osif/zephyr/CMakeLists.txt @@ -1,7 +1,6 @@ # Copyright (c) 2024 Realtek Semiconductor Corp. # SPDX-License-Identifier: Apache-2.0 -zephyr_library() zephyr_library_sources(osif_zephyr.c) zephyr_code_relocate(FILES osif_zephyr.c LOCATION ITCM) zephyr_include_directories(${ZEPHYR_BASE}/arch/arm/include) # arch_kernel_init