diff --git a/config/boards/khadas-vim3.conf b/config/boards/khadas-vim3.conf index 27a058a185..0158e10a08 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 +}