@@ -372,6 +372,8 @@ def parse_args():
372372 help = """Do not create a tar file of the installed firmware files under build-sof-staging.""" )
373373 parser .add_argument ("--version" , required = False , action = "store_true" ,
374374 help = "Prints version of this script." )
375+ parser .add_argument ("-m" , "--menuconfig" , required = False , action = "store_true" ,
376+ help = "Build menuconfig for target" )
375377
376378 args = parser .parse_args ()
377379
@@ -854,7 +856,10 @@ def build_platforms():
854856 PLAT_CONFIG = platform_dict ["PLAT_CONFIG" ]
855857 build_cmd = ["west" ]
856858 build_cmd += ["-v" ] * args .verbose
857- build_cmd += ["build" , "--build-dir" , platform_build_dir_name ]
859+ if args .menuconfig :
860+ build_cmd += ["build" , "-t" , "menuconfig" , "--build-dir" , platform_build_dir_name ]
861+ else :
862+ build_cmd += ["build" , "--build-dir" , platform_build_dir_name ]
858863 source_dir = pathlib .Path (SOF_TOP , "app" )
859864 build_cmd += ["--board" , PLAT_CONFIG , str (source_dir )]
860865 if args .pristine :
@@ -917,6 +922,10 @@ def build_platforms():
917922 else : # unknown failure
918923 raise cpe
919924
925+ # no output to display if building menuconfig
926+ if args .menuconfig :
927+ return
928+
920929 # reproducible-zephyr.ri is less useful now that show_installed_files() shows
921930 # checksums too. However: - it's still useful when only the .ri file is
922931 # available (no build logs for the other image), - it makes sure sof_ri_info.py
@@ -1307,6 +1316,8 @@ def main():
13071316
13081317 build_rimage ()
13091318 build_platforms ()
1319+ if args .menuconfig :
1320+ return
13101321 if not args .no_tarball :
13111322 create_tarball ()
13121323 show_installed_files ()
0 commit comments