@ -37,58 +37,6 @@ if("${Deprecated_FIND_COMPONENTS}" STREQUAL "")
@@ -37,58 +37,6 @@ if("${Deprecated_FIND_COMPONENTS}" STREQUAL "")
message ( WARNING "find_package(Deprecated) missing required COMPONENTS keyword" )
endif ( )
if ( "CROSS_COMPILE" IN_LIST Deprecated_FIND_COMPONENTS )
list ( REMOVE_ITEM Deprecated_FIND_COMPONENTS CROSS_COMPILE )
# T h i s c o d e w a s d e p r e c a t e d a f t e r Z e p h y r v 3 . 1 . 0
if ( NOT DEFINED ZEPHYR_TOOLCHAIN_VARIANT )
set ( ZEPHYR_TOOLCHAIN_VARIANT $ENV{ ZEPHYR_TOOLCHAIN_VARIANT } )
endif ( )
if ( NOT ZEPHYR_TOOLCHAIN_VARIANT AND
( C R O S S _ C O M P I L E OR ( DEFINED ENV{CROSS_COMPILE} ) ) )
set ( ZEPHYR_TOOLCHAIN_VARIANT cross-compile CACHE STRING "Zephyr toolchain variant" FORCE )
message ( DEPRECATION "Setting CROSS_COMPILE without setting ZEPHYR_TOOLCHAIN_VARIANT is deprecated."
" P l e a s e s e t Z E P H Y R _ T O O L C H A I N _ V A R I A N T t o ' c r o s s - c o m p i l e ' "
)
endif ( )
endif ( )
if ( "SPARSE" IN_LIST Deprecated_FIND_COMPONENTS )
list ( REMOVE_ITEM Deprecated_FIND_COMPONENTS SPARSE )
# T h i s c o d e w a s d e p r e c a t e d a f t e r Z e p h y r v 3 . 2 . 0
if ( SPARSE )
message ( DEPRECATION
" S e t t i n g S P A R S E = ' $ { S P A R S E } ' i s d e p r e c a t e d . "
" P l e a s e s e t Z E P H Y R _ S C A _ V A R I A N T t o ' s p a r s e ' "
)
if ( "${SPARSE}" STREQUAL "y" )
set_ifndef ( ZEPHYR_SCA_VARIANT sparse )
endif ( )
endif ( )
endif ( )
if ( "SOURCES" IN_LIST Deprecated_FIND_COMPONENTS )
list ( REMOVE_ITEM Deprecated_FIND_COMPONENTS SOURCES )
if ( SOURCES )
message ( DEPRECATION
" S e t t i n g S O U R C E S p r i o r t o c a l l i n g find_package ( ) f o r u n i t t e s t s i s d e p r e c a t e d . "
" T o a d d s o u r c e s a f t e r find_package ( ) u s e : \ n "
" target_sources ( testbinary PRIVATE <source-file.c> ) " )
endif ( )
endif ( )
if ( "PYTHON_PREFER" IN_LIST Deprecated_FIND_COMPONENTS )
# T h i s c o d e w a s d e p r e c a t e d a f t e r Z e p h y r v 3 . 4 . 0
list ( REMOVE_ITEM Deprecated_FIND_COMPONENTS PYTHON_PREFER )
if ( DEFINED PYTHON_PREFER )
message ( DEPRECATION "'PYTHON_PREFER' variable is deprecated. Please use "
" P y t h o n 3 _ E X E C U T A B L E i n s t e a d . " )
if ( NOT DEFINED Python3_EXECUTABLE )
set ( Python3_EXECUTABLE ${ PYTHON_PREFER } )
endif ( )
endif ( )
endif ( )
if ( "toolchain_ld_base" IN_LIST Deprecated_FIND_COMPONENTS )
# T h i s c o d e w a s d e p r e c a t e d a f t e r Z e p h y r v 4 . 0 . 0
list ( REMOVE_ITEM Deprecated_FIND_COMPONENTS toolchain_ld_base )
@ -142,23 +90,5 @@ if(NOT "${Deprecated_FIND_COMPONENTS}" STREQUAL "")
@@ -142,23 +90,5 @@ if(NOT "${Deprecated_FIND_COMPONENTS}" STREQUAL "")
" $ { D e p r e c a t e d _ F I N D _ C O M P O N E N T S } " )
endif ( )
if ( "SEARCHED_LINKER_SCRIPT" IN_LIST Deprecated_FIND_COMPONENTS )
# T h i s c o d e w a s d e p r e c a t e d a f t e r Z e p h y r v 3 . 5 . 0
list ( REMOVE_ITEM Deprecated_FIND_COMPONENTS SEARCHED_LINKER_SCRIPT )
# T r y a b o a r d s p e c i f i c l i n k e r f i l e
set ( LINKER_SCRIPT ${ BOARD_DIR } /linker.ld )
if ( NOT EXISTS ${ LINKER_SCRIPT } )
# I f n o t a v a i l a b l e , t r y a n S o C s p e c i f i c l i n k e r f i l e
set ( LINKER_SCRIPT ${ SOC_FULL_DIR } /linker.ld )
endif ( )
message ( DEPRECATION
" P r e - d e f i n e d ` l i n k e r . l d ` s c r i p t i s d e p r e c a t e d . P l e a s e s e t "
" B O A R D _ L I N K E R _ S C R I P T o r S O C _ L I N K E R _ S C R I P T t o p o i n t t o $ { L I N K E R _ S C R I P T } "
" o r o n e o f t h e Z e p h y r p r o v i d e d c o m m o n l i n k e r s c r i p t s f o r t h e $ { A R C H } "
" a r c h i t e c t u r e . "
)
endif ( )
set ( Deprecated_FOUND True )
set ( DEPRECATED_FOUND True )