2022-02-18 00:32:27 +01:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
include(${ZEPHYR_BASE}/cmake/compiler/xcc/target.cmake)
|
2024-05-17 14:53:06 +02:00
|
|
|
|
|
|
|
# Flags not supported by llext linker
|
|
|
|
# (regexps are supported and match whole word)
|
|
|
|
set(LLEXT_REMOVE_FLAGS
|
|
|
|
-fno-pic
|
|
|
|
-fno-pie
|
|
|
|
-ffunction-sections
|
|
|
|
-fdata-sections
|
|
|
|
-g.*
|
|
|
|
-Os
|
|
|
|
-mcpu=.*
|
|
|
|
)
|
|
|
|
|
|
|
|
# Flags to be added to llext code compilation
|
|
|
|
set(LLEXT_APPEND_FLAGS
|
|
|
|
-fPIC
|
|
|
|
-nostdlib
|
|
|
|
-nodefaultlibs
|
|
|
|
)
|