Commit e624ccb
committed
odroidc1: fix u-boot build on trixie (GCC 14 promoted-to-error warnings)
CI "Build All Artifacts" fails uboot-odroidc1-current on the trixie host. The
2011-era hardkernel Amlogic u-boot (odroidc-v2011.03) hits a pile of warnings
that GCC 14 now treats as hard errors by default:
board.c:30: -Wint-conversion (pointer from integer)
board.c:512: implicit declaration of 'get_dev_by_name'
board.c:739: implicit declaration of 'vpu_probe'
bootm.c:281: implicit declaration of 'amlogic_gpio_direction_output'
gpio.c:332/333: implicit declaration of 'malloc' / 'free'
gpio.c:850+: -Wincompatible-pointer-types (function pointer mismatches)
It built on noble/GCC 13. Add a post_config_uboot_target hook that appends the
four -Wno-error= flags to uboot_cflags_array (same mechanism as the odroidxu4
and rockchip-rv1106 GCC-downgrade hooks), including -Wno-error=int-conversion
for the pervasive pointer<->integer cases. ARCH=armhf, so int and pointer are
the same width and those conversions are benign; the implicit-decl symbols
resolve at link time. Keeps the known-good hardkernel boot chain unchanged.
Signed-off-by: Igor Pecovnik <igor@armbian.com>1 parent a0e9e38 commit e624ccb
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments