File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,10 +62,16 @@ def build_kernel(config, tree_path):
6262 _run (['make' , '-C' , tree_path , 'defconfig' ])
6363
6464 # Apply extra kconfig fragments (space-separated list)
65- extra_kconfig = config .get ('build' , 'extra_kconfig' , fallback = None )
66- if extra_kconfig :
67- configs = extra_kconfig .split ()
68- _run (['scripts/kconfig/merge_config.sh' , '-m' , '.config' ] + configs ,
65+ extra_configs = []
66+ extra_configs += config .get ('build' , 'extra_kconfig' , fallback = "" ).split ()
67+ targets = config .get ('ksft' , 'target' , fallback = 'net' ).split ()
68+ for target in targets :
69+ one_config = f"tools/testing/selftests/{ target } /config"
70+ if os .path .exists (one_config ):
71+ extra_configs .append (one_config )
72+
73+ if extra_configs :
74+ _run (['scripts/kconfig/merge_config.sh' , '-m' , '.config' ] + extra_configs ,
6975 cwd = tree_path )
7076 _run (['make' , '-C' , tree_path , 'olddefconfig' ])
7177
You can’t perform that action at this time.
0 commit comments