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>
Tue, 13 Jun 2023 12:15:21 +0000 (14:15 +0200)
commitc05c0699d4798b02f8ee88159236142e08c0c4cd
tree4ad2889030374d16d08bf8f3e64f31e6da520f86
parent8d557d47445e027134811415899efd685db257da
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>
(cherry picked from commit 186b97590b9b2f47abc535c9df0687e00e60f78e)
include/u-boot.mk