From 49eeba339a54611c6ffbb64e42fb570621e68660 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Wed, 11 Feb 2026 07:54:41 +0100 Subject: [PATCH] Move smallblock cmake code to subdirectory --- CMakeLists.txt | 10 ++-------- openair1/PHY/CODING/CMakeLists.txt | 1 + openair1/PHY/CODING/nrSmallBlock/CMakeLists.txt | 1 + 3 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 openair1/PHY/CODING/nrSmallBlock/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ca8d55995..8d3c9e5390 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -780,10 +780,6 @@ include_directories(${NFAPI_USER_DIR}) # Layer 1 ############################# -set(PHY_SMALLBLOCKSRC - ${OPENAIR1_DIR}/PHY/CODING/nrSmallBlock/encodeSmallBlock.c - ${OPENAIR1_DIR}/PHY/CODING/nrSmallBlock/decodeSmallBlock.c -) set(PHY_TURBOIF ${OPENAIR1_DIR}/PHY/CODING/coding_load.c ) @@ -962,7 +958,6 @@ set(PHY_SRC_UE ${OPENAIR1_DIR}/PHY/TOOLS/dB_routines.c ${OPENAIR1_DIR}/PHY/TOOLS/sqrt.c ${OPENAIR1_DIR}/PHY/TOOLS/oai_arith_operations.c - ${PHY_SMALLBLOCKSRC} ${PHY_NRLDPC_CODINGIF} ${OPENAIR1_DIR}/PHY/NR_TRANSPORT/pucch_rx.c ${OPENAIR1_DIR}/PHY/NR_TRANSPORT/srs_rx.c @@ -1012,7 +1007,6 @@ set(PHY_SRC_UE ${OPENAIR1_DIR}/PHY/TOOLS/sqrt.c ${OPENAIR1_DIR}/PHY/TOOLS/oai_arith_operations.c ${OPENAIR1_DIR}/PHY/INIT/nr_init_ue.c - ${PHY_SMALLBLOCKSRC} ${PHY_NRLDPC_CODINGIF} ) @@ -1046,14 +1040,14 @@ add_library(PHY_NR_COMMON ${PHY_NR_SRC_COMMON}) target_link_libraries(PHY_NR_COMMON PUBLIC UTIL) add_library(PHY_NR ${PHY_NR_SRC}) -target_link_libraries(PHY_NR nr_phy_common nr_common nr_fapi_p5 polar) +target_link_libraries(PHY_NR nr_phy_common nr_common nr_fapi_p5 polar smallblock) add_library(PHY_NR_NO_AVX_256 ${PHY_NR_SRC}) target_link_libraries(PHY_NR_NO_AVX_256 nr_phy_common nr_common) target_compile_definitions(PHY_NR_NO_AVX_256 PUBLIC USE_128BIT) add_library(PHY_NR_UE ${PHY_NR_UE_SRC}) -target_link_libraries(PHY_NR_UE PRIVATE asn1_nr_rrc_hdrs nr_phy_common nr_common UTIL polar) +target_link_libraries(PHY_NR_UE PRIVATE asn1_nr_rrc_hdrs nr_phy_common nr_common UTIL polar smallblock) add_library(PHY_RU ${PHY_SRC_RU}) target_link_libraries(PHY_RU PRIVATE asn1_lte_rrc_hdrs UTIL) diff --git a/openair1/PHY/CODING/CMakeLists.txt b/openair1/PHY/CODING/CMakeLists.txt index 8c3108910b..cdfbbf6f6f 100644 --- a/openair1/PHY/CODING/CMakeLists.txt +++ b/openair1/PHY/CODING/CMakeLists.txt @@ -71,3 +71,4 @@ add_library(crc_byte OBJECT crc_byte.c) add_subdirectory(nrLDPC_coding) add_subdirectory(nrLDPC_decoder) add_subdirectory(nrPolar_tools) +add_subdirectory(nrSmallBlock) diff --git a/openair1/PHY/CODING/nrSmallBlock/CMakeLists.txt b/openair1/PHY/CODING/nrSmallBlock/CMakeLists.txt new file mode 100644 index 0000000000..63f0361c74 --- /dev/null +++ b/openair1/PHY/CODING/nrSmallBlock/CMakeLists.txt @@ -0,0 +1 @@ +add_library(smallblock STATIC encodeSmallBlock.c decodeSmallBlock.c)