@ -38,6 +38,7 @@ include(CheckCXXCompilerFlag)
@@ -38,6 +38,7 @@ include(CheckCXXCompilerFlag)
# 7 . 1 l l e x t _ * c o n f i g u r a t i o n f u n c t i o n s
# 7 . 2 a d d _ l l e x t _ * b u i l d c o n t r o l f u n c t i o n s
# 7 . 3 l l e x t h e l p e r f u n c t i o n s
# 8 . S c r i p t m o d e h a n d l i n g
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# 1 . Z e p h y r - a w a r e e x t e n s i o n s
@ -5759,3 +5760,38 @@ function(llext_filter_zephyr_flags filter flags outvar)
@@ -5759,3 +5760,38 @@ function(llext_filter_zephyr_flags filter flags outvar)
set ( ${ outvar } ${ zephyr_filtered_flags } PARENT_SCOPE )
endfunction ( )
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# 8 . S c r i p t m o d e h a n d l i n g
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# C e r t a i n f e a t u r e s a r e n o t a v a i l a b l e w h e n C M a k e i s u s e d i n s c r i p t m o d e .
# F o r e x a m p l e c u s t o m t a r g e t s , a n d t h u s f e a t u r e s r e l a t e d t o c u s t o m t a r g e t s , s u c h
# a s t a r g e t p r o p e r t i e s a r e n o t a v a i l a b l e i n s c r i p t m o d e .
#
# T h i s s e c t i o n d e f i n e s b e h a v i o r f o r f u n c t i o n s w h o s e d e f a u l t i m p l e m e n t a t i o n d o e s
# n o t w o r k c o r r e c t l y i n s c r i p t m o d e .
#
# T h e s c r i p t m o d e f u n c t i o n c a n b e a s i m p l e s t u b o r a m o r e c o m p l e x s o l u t i o n
# d e p e n d i n g o n t h e e x a c t u s e o f t h e f u n c t i o n i n s c r i p t m o d e .
#
# C u r r e n t Z e p h y r C M a k e s c r i p t s w h i c h i n c l u d e s ` e x t e n s i o n s . c m a k e ` i n s c r i p t m o d e
# a r e : p a c k a g e _ h e l p e r . c m a k e , v e r i f y - t o o l c h a i n . c m a k e
#
if ( CMAKE_SCRIPT_MODE_FILE )
# a d d _ c u s t o m _ t a r g e t a n d s e t _ t a r g e t _ p r o p e r t i e s a r e n o t s u p p o r t e d i n s c r i p t m o d e .
# H o w e v e r , Z e p h y r C M a k e f u n c t i o n s l i k e ` zephyr_get ( ) ` , ` zephyr_create_scope ( ) ` ,
# l l e x t f u n c t i o n s c r e a t e s o r r e l i e s o n c u s t o m C M a k e t a r g e t s .
function ( add_custom_target )
# T h i s s i l e n c e t h e e r r o r : ' a d d _ c u s t o m _ t a r g e t c o m m a n d i s n o t s c r i p t a b l e '
endfunction ( )
function ( set_target_properties )
# T h i s s i l e n c e t h e e r r o r : ' s e t _ t a r g e t _ p r o p e r t i e s c o m m a n d i s n o t s c r i p t a b l e '
endfunction ( )
function ( zephyr_set variable )
# T h i s s i l e n c e t h e e r r o r : zephyr_set ( ... SCOPE <scope> ) d o e s n ' t e x i s t s .
endfunction ( )
endif ( )