Files
pmaports-rtwo/device/testing/mt6735-bootshim/0001-Use-LLD-to-link.patch
T
Jens Reidel 2f017acbb2 mt6735-bootshim: Use LLD to link
We're building in cross-native, but binutils LD cannot link for ARM on
x86. LLD is already in makedepends, just use it to be able to cross
compile natively.

Signed-off-by: Jens Reidel <adrian@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7438>
2025-12-03 19:59:22 +00:00

26 lines
608 B
Diff

From 484711c80578ed4da6bf043e75481fa0ed004342 Mon Sep 17 00:00:00 2001
From: Jens Reidel <adrian@postmarketos.org>
Date: Fri, 28 Nov 2025 09:55:46 +0100
Subject: [PATCH] Use LLD to link
Signed-off-by: Jens Reidel <adrian@postmarketos.org>
---
SConstruct | 1 +
1 file changed, 1 insertion(+)
diff --git a/SConstruct b/SConstruct
index ecf6d1d..ae1fbe2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -6,6 +6,7 @@ env = Environment(
tools = ["clang", "link"],
LINKFLAGS=[
"--target=arm-none-eabi",
+ "-fuse-ld=lld",
"-mcpu=cortex-a53",
"-nostdlib",
"-DAARCH64_BASE=$aarch64_base",
--
2.52.0