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>
This commit is contained in:
parent
a16a10b5aa
commit
2f017acbb2
2 changed files with 31 additions and 2 deletions
25
device/testing/mt6735-bootshim/0001-Use-LLD-to-link.patch
Normal file
25
device/testing/mt6735-bootshim/0001-Use-LLD-to-link.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
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
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
pkgname=mt6735-bootshim
|
||||
pkgver=0.0.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="MT6735 AArch64 boot shim"
|
||||
url="https://gitlab.com/mt6735-mainline/bootshim/"
|
||||
arch="noarch"
|
||||
|
|
@ -11,7 +11,10 @@ makedepends="clang lld scons"
|
|||
options="!check pmb:cross-native"
|
||||
|
||||
_commit="169b57cdf2ccbbe79dbca290b8ff789d0ca4e9b9"
|
||||
source="bootshim-$_commit.tar.gz::$url/-/archive/$_commit/bootshim-$_commit.tar.gz"
|
||||
source="
|
||||
bootshim-$_commit.tar.gz::$url/-/archive/$_commit/bootshim-$_commit.tar.gz
|
||||
0001-Use-LLD-to-link.patch
|
||||
"
|
||||
builddir="$srcdir/bootshim-$_commit"
|
||||
|
||||
build() {
|
||||
|
|
@ -26,4 +29,5 @@ package() {
|
|||
}
|
||||
sha512sums="
|
||||
ddb35ec7b387b275ea62ad275742dfa5b5514544788b9a5aaa9bd10241f52f253f1c789d1fd7da739ac6ca39eb0a306fc9509324b4d494263beabd877d2d7aa0 bootshim-169b57cdf2ccbbe79dbca290b8ff789d0ca4e9b9.tar.gz
|
||||
745273308c0e711d0c08b8253ac9491e2382363df7d3acf0f59c461d3bef3d7d368fd47e338affc712fa52335aa588fc47ffbd948122637127836420fdc08708 0001-Use-LLD-to-link.patch
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue