Employs the same linkonce magic of sw_isr_table to fix the multiple definition of the symtab variables issue that I get in my application build that doesn't use `west`. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
16 lines
254 B
CMake
16 lines
254 B
CMake
# Copyright (c) 2024 Meta Platforms
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources(
|
|
symtab.c
|
|
)
|
|
|
|
add_library(symtab
|
|
symtab_stub.c
|
|
)
|
|
|
|
target_link_libraries(symtab zephyr_interface)
|
|
zephyr_library_link_libraries(symtab)
|