first commit
This commit is contained in:
28
external/patch/atf/atf-sunxi64/enable-a53-errata-workaround.patch.disabled
vendored
Normal file
28
external/patch/atf/atf-sunxi64/enable-a53-errata-workaround.patch.disabled
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
From 3efb52570e581d79f6e451ef88933423a61a9b55 Mon Sep 17 00:00:00 2001
|
||||
From: Andre Przywara <andre.przywara@arm.com>
|
||||
Date: Mon, 27 Mar 2017 21:56:08 +0100
|
||||
Subject: [PATCH] Makefile: (re-)enable A53 errata workaround
|
||||
|
||||
The --fix-cortex-a53-843418 option to the linker was disabled before to
|
||||
also support older toolchains which don't know of this option.
|
||||
To not loose the bugfix for more recent toolchains introduce a feature
|
||||
check, which enables the option if the linker knows about it.
|
||||
|
||||
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
|
||||
---
|
||||
Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index f96e2cb37..87c307ded 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -234,7 +234,7 @@ CFLAGS += -nostdinc -pedantic -ffreestanding -Wall \
|
||||
CFLAGS += -ffunction-sections -fdata-sections
|
||||
LDFLAGS += --fatal-warnings -O1
|
||||
LDFLAGS += --gc-sections
|
||||
-#LDFLAGS += --fix-cortex-a53-843419
|
||||
+LDFLAGS += $(if $(shell $(LD) -v --fix-cortex-a53-843419 > /dev/null 2>&1 && echo 1),--fix-cortex-a53-843419)
|
||||
|
||||
|
||||
CC := ${CROSS_COMPILE}gcc
|
||||
Reference in New Issue
Block a user