From 0b1af95337e6dadc09fce734fdfe43f39cdf4230 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 16 Apr 2023 00:53:30 -0700 Subject: [PATCH] atf: ignore warnings emitted by newer compilers This commit is needed in order to get arm-trusted-firmware to build with recent gcc and binutils. --- src/platform/kevin/atf/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platform/kevin/atf/default.nix b/src/platform/kevin/atf/default.nix index c16adb6..fb83ae2 100644 --- a/src/platform/kevin/atf/default.nix +++ b/src/platform/kevin/atf/default.nix @@ -53,6 +53,12 @@ in # -F3 is needed in order to force the backport patches below to apply to an older atf patchFlags = [ "-p1" "-F3" ]; + # "error: ignoring attribute ... because it conflicts with previous ..." + NIX_CFLAGS_COMPILE = "-Wno-attributes"; + + # needed with binutils >= 2.39: https://developer.trustedfirmware.org/T996#11847 + NIX_CFLAGS_LINK = "-Wl,--no-warn-rwx-segment"; + patches = [ # backport from atf-2.3: "rockchip: Update BL31_BASE to 0x40000"