u-boot.mk: add support for config customization
authorPetr Štetiar <ynezz@true.cz>
Fri, 2 Jun 2023 11:54:20 +0000 (13:54 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sat, 10 Jun 2023 19:31:07 +0000 (21:31 +0200)
commit186b97590b9b2f47abc535c9df0687e00e60f78e
treea9c5d055b367acd3e38287c2c023932e3fd63a07
parent3df01b1aa40a8e783dbbebdbe6088a49aed186f8
u-boot.mk: add support for config customization

Make it possible to easily customize U-Boot config options via new
`UBOOT_CUSTOMIZE_CONFIG` variable, so we don't need to patch config
files or override config step with shell hackery.

This generic approach uses `config` CLI to tweak the .config as needed,
for example:

 UBOOT_CUSTOMIZE_CONFIG := \
--enable CMD_EFIDEBUG \
--enable CMD_BOOTMENU \
--enable AUTOBOOT \
--enable AUTOBOOT_MENU_SHOW \
--disable AUTOBOOT_KEYED \
--disable AUTOBOOT_USE_MENUKEY \
--disable BOOTMENU_DISABLE_UBOOT_CONSOLE \
--set-val BOOTDELAY 2

Signed-off-by: Petr Štetiar <ynezz@true.cz>
include/u-boot.mk