From c23fa925020a89a49cafe10fab41c775a2b76604 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Sat, 24 Feb 2024 12:02:01 +0100 Subject: [PATCH] khadas-vim3: u-boot v2024.01: enable more compression, kaslr, and led config options via hook --- config/boards/khadas-vim3.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/boards/khadas-vim3.conf b/config/boards/khadas-vim3.conf index 27a058a18..0158e10a0 100644 --- a/config/boards/khadas-vim3.conf +++ b/config/boards/khadas-vim3.conf @@ -40,3 +40,16 @@ function post_uboot_custom_postprocess__khadas_vim3_uboot() { display_alert "Signing u-boot FIP" "${BOARD}" "info" uboot_g12_postprocess "${SRC}"/cache/sources/amlogic-boot-fip/khadas-vim3 g12b } + +# Enable extra u-boot .config options, this way we avoid patching defconfig +function post_config_uboot_target__extra_configs_for_khadas_vim3() { + display_alert "u-boot for ${BOARD}" "u-boot: enable more compression support" "info" + run_host_command_logged scripts/config --enable CONFIG_LZO + run_host_command_logged scripts/config --enable CONFIG_BZIP2 + run_host_command_logged scripts/config --enable CONFIG_ZSTD + display_alert "u-boot for ${BOARD}" "u-boot: enable kaslrseed support" "info" + run_host_command_logged scripts/config --enable CONFIG_CMD_KASLRSEED + display_alert "u-boot for ${BOARD}" "u-boot: enable gpio LED support" "info" + run_host_command_logged scripts/config --enable CONFIG_LED + run_host_command_logged scripts/config --enable CONFIG_LED_GPIO +}