@@ -219,6 +219,11 @@ def options(opt):
219219 opt .add_option ('--reboot_on_bt_crash' , action = 'store_true' , help = 'Forces a BT '
220220 'chip crash to immediately force a system reboot instead of just cycling airplane mode. '
221221 'This makes it easier for us to actually get crash info' )
222+ opt .add_option ('--enable-menu-wrap' , action = 'store_true' , help = 'Enable the scroll wrap around behavior on firmware apps menus' )
223+ opt .add_option ('--enable-menu-vibe-on-blocked' , action = 'store_true' , help =
224+ 'Enable the vibe behavior when blocked at the top or bottom menu item on firmware apps menus.'
225+ 'If enabled, this setting will override the \' --enable-menu-vibe-on-wrap\' and set it to false.' )
226+ opt .add_option ('--enable-menu-vibe-on-wrap' , action = 'store_true' , help = 'Enable the vibe behavior when wrapping around on firmware apps menus' )
222227
223228
224229def handle_configure_options (conf ):
@@ -384,6 +389,16 @@ def handle_configure_options(conf):
384389
385390 if not conf .options .no_pulse_everywhere :
386391 conf .env .append_value ('DEFINES' , 'PULSE_EVERYWHERE=1' )
392+
393+ if conf .options .enable_menu_wrap :
394+ print ("Enabling wrapping behavior of MenuLayer in firmware apps" )
395+ conf .env .append_value ('DEFINES' , 'FW_APPS_MENUS_WRAP' )
396+ if conf .options .enable_menu_vibe_on_blocked :
397+ print ("Enabling vibe on blocked behavior of MenuLayer in firmware apps" )
398+ conf .env .append_value ('DEFINES' , 'FW_APPS_MENUS_VIBE_ON_BLOCKED' )
399+ elif conf .options .enable_menu_vibe_on_wrap :
400+ print ("Enabling vibe on wrap around behavior of MenuLayer in firmware apps" )
401+ conf .env .append_value ('DEFINES' , 'FW_APPS_MENUS_VIBE_ON_WRAP' )
387402
388403def _create_cm0_env (conf ):
389404 prev_env = conf .env
0 commit comments