From: Caleb Connolly Date: Tue, 9 Jan 2024 11:51:09 +0000 (+0000) Subject: boot: add support for button commands X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=e761035b64235db8930eb15d2703dc3f43e99224;p=u-boot.git boot: add support for button commands With the relatively new button API in U-Boot, it's now much easier to model the common usecase of mapping arbitrary actions to different buttons during boot - for example entering fastboot mode, setting some additional kernel cmdline arguments, or booting with a custom recovery ramdisk, to name a few. Historically, this functionality has been implemented in board code, making it fixed for a given U-Boot binary and requiring the code be duplicated and modified for every board. Implement a generic abstraction to run an arbitrary command during boot when a specific button is pressed. The button -> command mapping is configured via environment variables with the following format: button_cmd_N_name=