armbian-next: u-boot: downgrade more errors to warnings, so we can build some legacy u-boot's

This commit is contained in:
Ricardo Pardini 2023-01-30 13:54:36 +01:00
parent ba7487b1a1
commit ed98d21040
No known key found for this signature in database
GPG Key ID: 3D38CA12A66C5D02

View File

@ -145,7 +145,15 @@ function compile_uboot_target() {
# cflags will be passed both as CFLAGS, KCFLAGS, and both as make params and as env variables.
# @TODO make configurable/expandable
local uboot_cflags="-fdiagnostics-color=always -Wno-error=maybe-uninitialized -Wno-error=misleading-indentation"
local -a uboot_cflags_array=(
"-fdiagnostics-color=always" # color messages
"-Wno-error=maybe-uninitialized"
"-Wno-error=misleading-indentation" # patches have mismatching indentation
"-Wno-error=attributes" # for very old-uboots
"-Wno-error=address-of-packed-member" # for very old-uboots
"-Wno-error=array-parameter=" # very old uboots
)
local uboot_cflags="${uboot_cflags_array[*]}"
display_alert "${uboot_prefix}Compiling u-boot" "${version} ${target_make}" "info"
export if_error_detail_message="${uboot_prefix}Failed to build u-boot ${version} ${target_make}"