@ -26,6 +26,8 @@ set(COMMON_KCONFIG_ENV_SETTINGS
R O M F S R O O T = $ { c o n f i g _ r o m f s _ r o o t }
R O M F S R O O T = $ { c o n f i g _ r o m f s _ r o o t }
)
)
set ( config_user_list )
if ( EXISTS ${ BOARD_DEFCONFIG } )
if ( EXISTS ${ BOARD_DEFCONFIG } )
# D e p e n d o n B O A R D _ D E F C O N F I G s o t h a t w e r e c o n f i g u r e o n c o n f i g c h a n g e
# D e p e n d o n B O A R D _ D E F C O N F I G s o t h a t w e r e c o n f i g u r e o n c o n f i g c h a n g e
@ -79,6 +81,17 @@ if(EXISTS ${BOARD_DEFCONFIG})
endif ( )
endif ( )
endif ( )
endif ( )
# F i n d v a r i a b l e n a m e
string ( REGEX MATCH "^CONFIG_USER[^=]+" Userspace ${ NameAndValue } )
if ( Userspace )
# F i n d t h e v a l u e
string ( REPLACE "${Name}=" "" Value ${ NameAndValue } )
string ( REPLACE "CONFIG_USER_" "" module ${ Name } )
string ( TOLOWER ${ module } module )
list ( APPEND config_user_list ${ module } )
endif ( )
# F i n d v a r i a b l e n a m e
# F i n d v a r i a b l e n a m e
string ( REGEX MATCH "^CONFIG_DRIVERS[^=]+" Drivers ${ NameAndValue } )
string ( REGEX MATCH "^CONFIG_DRIVERS[^=]+" Drivers ${ NameAndValue } )
@ -171,6 +184,16 @@ if(EXISTS ${BOARD_DEFCONFIG})
endforeach ( )
endforeach ( )
# P u t e v e r y m o d u l e n o t i n u s e r s p a c e a l s o t o k e r n e l l i s t
foreach ( modpath ${ config_module_list } )
get_filename_component ( module ${ modpath } NAME )
list ( FIND config_user_list ${ module } _index )
if ( ${ _index } EQUAL -1 )
list ( APPEND config_kernel_list ${ modpath } )
endif ( )
endforeach ( )
if ( PLATFORM )
if ( PLATFORM )
# s e t O S , a n d a p p e n d s p e c i f i c p l a t f o r m m o d u l e p a t h
# s e t O S , a n d a p p e n d s p e c i f i c p l a t f o r m m o d u l e p a t h
set ( PX4_PLATFORM ${ PLATFORM } CACHE STRING "PX4 board OS" FORCE )
set ( PX4_PLATFORM ${ PLATFORM } CACHE STRING "PX4 board OS" FORCE )
@ -336,6 +359,7 @@ if(EXISTS ${BOARD_DEFCONFIG})
list ( APPEND config_module_list ${ board_support_src_rel } /src )
list ( APPEND config_module_list ${ board_support_src_rel } /src )
set ( config_module_list ${ config_module_list } )
set ( config_module_list ${ config_module_list } )
set ( config_kernel_list ${ config_kernel_list } )
endif ( )
endif ( )