67a1e8a552
Patch 0001-Make.defaults-don-t-override-ARCH-when-cross-compili.patch is refreshed to accommodate with conflicting upstream changes. Patch 0002-Revert-efilink-fix-build-with-gcc-4.8.patch is dropped as it is upstream as of commit 8b2da2c2247af28bd681a9c8e3231559964c80a6 ("Revert "efilink: fix build with gcc 4.8""). A new patch is needed to fix the build on mips64. While at it, fix the hash file to use the new spacing convention. Fixes: http://autobuild.buildroot.net/results/a9a7372615e3fbe4b8abda946706d1ccadf28931/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
61 lines
2.2 KiB
Diff
61 lines
2.2 KiB
Diff
From 2c0ad0d7547558be59ef10dd289e619373341704 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
Date: Thu, 21 Jul 2022 09:47:49 +0200
|
|
Subject: [PATCH] inc/efi*.h: also support __mips64 to recognize mips64
|
|
|
|
gcc built-in define for the MIPS64 architecture is __mips64, not
|
|
__mips64__, so the current condition did not match for gcc. See
|
|
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/mips/mips.h;h=47aac9d3d61245c4d3df5dbd0bbcd833190de7c3;hb=2d280e7eafc086e9df85f50ed1a6526d6a3a204d#l431
|
|
in the gcc source.
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
Upstream: https://sourceforge.net/p/gnu-efi/mailman/message/37683797/
|
|
---
|
|
inc/efi.h | 2 +-
|
|
inc/efilib.h | 2 +-
|
|
inc/efirtlib.h | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/inc/efi.h b/inc/efi.h
|
|
index 43c832e..b193932 100644
|
|
--- a/inc/efi.h
|
|
+++ b/inc/efi.h
|
|
@@ -48,7 +48,7 @@ Revision History
|
|
#include "aarch64/efibind.h"
|
|
#elif defined (_M_ARM) || defined(__arm__)
|
|
#include "arm/efibind.h"
|
|
-#elif defined (_M_MIPS64) || defined(__mips64__)
|
|
+#elif defined (_M_MIPS64) || defined(__mips64__) || defined(__mips64)
|
|
#include "mips64el/efibind.h"
|
|
#elif defined (__riscv) && __riscv_xlen == 64
|
|
#include "riscv64/efibind.h"
|
|
diff --git a/inc/efilib.h b/inc/efilib.h
|
|
index 9f748ad..a2b39b2 100644
|
|
--- a/inc/efilib.h
|
|
+++ b/inc/efilib.h
|
|
@@ -31,7 +31,7 @@ Revision History
|
|
#include "aarch64/efilibplat.h"
|
|
#elif defined (_M_ARM) || defined(__arm__)
|
|
#include "arm/efilibplat.h"
|
|
-#elif defined (_M_MIPS64) || defined(__mips64__)
|
|
+#elif defined (_M_MIPS64) || defined(__mips64__) || defined(__mips64)
|
|
#include "mips64el/efilibplat.h"
|
|
#elif defined (__riscv) && __riscv_xlen == 64
|
|
#include "riscv64/efilibplat.h"
|
|
diff --git a/inc/efirtlib.h b/inc/efirtlib.h
|
|
index 8643061..518859e 100644
|
|
--- a/inc/efirtlib.h
|
|
+++ b/inc/efirtlib.h
|
|
@@ -30,7 +30,7 @@ Revision History
|
|
#include "aarch64/efilibplat.h"
|
|
#elif defined (_M_ARM) || defined(__arm__)
|
|
#include "arm/efilibplat.h"
|
|
-#elif defined (_M_MIPS64) || defined(__mips64__)
|
|
+#elif defined (_M_MIPS64) || defined(__mips64__) || defined(__mips64)
|
|
#include "mips64el/efilibplat.h"
|
|
#elif defined (__riscv) && __riscv_xlen == 64
|
|
#include "riscv64/efilibplat.h"
|
|
--
|
|
2.36.1
|
|
|