Commit 9a92f8e
committed
odroidxu4: fix u-boot build on trixie (GCC 14 implicit-decl errors)
CI "Build All Artifacts" failed uboot-odroidxu4-current on the trixie host:
drivers/mmc/mmc_boot.c:120:13: error: implicit declaration of function
'mmc_rst_n_func_status' [-Wimplicit-function-declaration]
GCC 14 promotes -Wimplicit-function-declaration (plus -Wimplicit-int and
-Wincompatible-pointer-types) from warning to hard error by default. This
2017-era hardkernel u-boot (odroidxu4-v2017.05) predates that and trips on it;
it built fine on noble/GCC 13. The SWIG/pylibfdt break is unrelated here and
already handled by the board's fix_build_for_recent_host-side_libfdt +
fix-compilation-on-noble (distutils->setuptools) patches.
Add a post_config_uboot_target hook that appends the three -Wno-error= flags to
uboot_cflags_array (same mechanism as rockchip-rv1106's GCC-downgrade hook). The
missing prototypes are cosmetic - the functions are defined at link time - so
downgrading to warnings is safe and keeps the known-good hardkernel boot chain.
Signed-off-by: Igor Pecovnik <igor@armbian.com>1 parent c95a417 commit 9a92f8e
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
55 | 69 | | |
56 | 70 | | |
57 | 71 | | |
| |||
0 commit comments