nxp: imx93-atf: fix GCC header-guard build failure

GCC 14+ treats the mismatched TRDC header guard in imx-atf as a hard error
(-Werror=header-guard), so bl31.bin does not build on our pinned revision.

Fetch the upstream fix (e194a14) as a patch without bumping the ATF revision.
This commit is contained in:
Govind Singh committed 2026-06-05 10:43:06 +04:00
1 parent 4ed851c979
commit e678820fd5
1 file changed
+9
+9
View File
@@ -1,6 +1,7 @@
{
lib,
fetchgit,
fetchpatch,
stdenv,
buildPackages,
pkgsCross,
@@ -22,6 +23,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-a8F+Lf8pwML+tCwawS0N/mrSXWPmFhlUeOg0MCRK3VE=";
};
patches = [
(fetchpatch {
name = "imx93-trdc-header-guard.patch";
url = "https://github.com/nxp-imx/imx-atf/commit/e194a14ec55f13386babc80c90098874367ab3d6.patch";
sha256 = "sha256-uXRgeyFmxDww93nJe04aoOLml2R7IbABZLhywyYmePk=";
})
];
# Compiler dependencies
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ pkgsCross.aarch64-embedded.stdenv.cc ];