Compare commits
274
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7370514d3b | ||
|
|
8c85821115 | ||
|
|
a3f7bf3e1a | ||
|
|
074a142319 | ||
|
|
ca8a14e0c8 | ||
|
|
c51cfe0c06 | ||
|
|
e6fc18b008 | ||
|
|
389267bb21 | ||
|
|
41fec92f75 | ||
|
|
858c730020 | ||
|
|
ba3896f2ae | ||
|
|
ae068eac13 | ||
|
|
f50d8b96d7 | ||
|
|
c798839c60 | ||
|
|
aa996d27b0 | ||
|
|
f608015ea3 | ||
|
|
0737d3089a | ||
|
|
43e3bc87df | ||
|
|
724f4dc8b2 | ||
|
|
0dc7fabb1f | ||
|
|
28e2019ff7 | ||
|
|
e99bc1224d | ||
|
|
f59355bf6b | ||
|
|
04d250d328 | ||
|
|
560c92cff3 | ||
|
|
11e959cc01 | ||
|
|
b58b7cfbd4 | ||
|
|
484b23f7a0 | ||
|
|
02aaa6eae6 | ||
|
|
d9326d5ac9 | ||
|
|
dcd3ae8f07 | ||
|
|
df4b8c44d1 | ||
|
|
f27ec087f8 | ||
|
|
0c80af7aa3 | ||
|
|
6d8bc79c1d | ||
|
|
700756cad2 | ||
|
|
01ffe2082a | ||
|
|
affa4d24d2 | ||
|
|
c442dfbd5f | ||
|
|
5572c21fa3 | ||
|
|
8302ff553a | ||
|
|
0c4b793bc8 | ||
|
|
9787be25fe | ||
|
|
f07bf45b73 | ||
|
|
3a2007c36b | ||
|
|
18a50389d6 | ||
|
|
df7444b1b0 | ||
|
|
64ab8ce76b | ||
|
|
ed3ba95558 | ||
|
|
1a57242213 | ||
|
|
e147b0f1a0 | ||
|
|
b5dd55f277 | ||
|
|
d25c061ee2 | ||
|
|
7e94b27b71 | ||
|
|
469acb86b4 | ||
|
|
3a964003e7 | ||
|
|
9f36519cf1 | ||
|
|
c5c623221a | ||
|
|
2148e3b774 | ||
|
|
b06f5c6f72 | ||
|
|
3c2d684546 | ||
|
|
50c625c7fb | ||
|
|
6712fc6922 | ||
|
|
c7dd25cb51 | ||
|
|
a9f2075aae | ||
|
|
1476dba6f2 | ||
|
|
ef0f70f9d7 | ||
|
|
e07d1716cd | ||
|
|
f108c30736 | ||
|
|
51731f7990 | ||
|
|
8db94cb77b | ||
|
|
63bc318a16 | ||
|
|
4c1d852356 | ||
|
|
89aafe235a | ||
|
|
2eb1a1199b | ||
|
|
f8df093985 | ||
|
|
e4c9eaf06e | ||
|
|
20c7501b50 | ||
|
|
580ff69729 | ||
|
|
f9c7ffa9b6 | ||
|
|
6fbaf44b0a | ||
|
|
46676e735d | ||
|
|
13fce2b163 | ||
|
|
f7b5c3bed2 | ||
|
|
b62d7f6e7c | ||
|
|
cc5a379809 | ||
|
|
50f392df43 | ||
|
|
01e348b3a5 | ||
|
|
cdc9bb564b | ||
|
|
f4783d4c88 | ||
|
|
6c01d67f3c | ||
|
|
b874bcf4c9 | ||
|
|
84cba1b36d | ||
|
|
76e388c2d5 | ||
|
|
c5c0e0f061 | ||
|
|
b6f19a2ed7 | ||
|
|
02dfe83c4b | ||
|
|
b3a26d80b7 | ||
|
|
bd5fe72ccf | ||
|
|
636f22a038 | ||
|
|
6e4625ac27 | ||
|
|
3c0dd53efb | ||
|
|
23a25798fe | ||
|
|
bf639fc01d | ||
|
|
8e5b569bef | ||
|
|
faae2121ff | ||
|
|
245f6e6911 | ||
|
|
18f7fcc000 | ||
|
|
87d6a4cff4 | ||
|
|
f321581f12 | ||
|
|
160e6085be | ||
|
|
2159ed63f3 | ||
|
|
8c933ef9a0 | ||
|
|
bec9861ec4 | ||
|
|
4da6031e8f | ||
|
|
4912e44aa3 | ||
|
|
1770b37b60 | ||
|
|
5eeb86a419 | ||
|
|
dcfaa6acc2 | ||
|
|
8c4e11ab5b | ||
|
|
8f09708b9b | ||
|
|
62f0d60ef7 | ||
|
|
635906b9aa | ||
|
|
5be7308c82 | ||
|
|
5d4d9c80cd | ||
|
|
bda72ea7fc | ||
|
|
1f3c16ca9c | ||
|
|
b714ea8aef | ||
|
|
16c9892a8f | ||
|
|
a0a0b369d5 | ||
|
|
0b5a4f9a44 | ||
|
|
b47461fa75 | ||
|
|
8848527c22 | ||
|
|
7a0e90c2fb | ||
|
|
abae34206b | ||
|
|
fa93f361b5 | ||
|
|
7db9fb51cd | ||
|
|
97ac1d9d68 | ||
|
|
f1ab8f6b2b | ||
|
|
f08c65aa4f | ||
|
|
32d8b57634 | ||
|
|
20ce68a947 | ||
|
|
0408920a34 | ||
|
|
ba3731956d | ||
|
|
90c71ce639 | ||
|
|
e820b4171d | ||
|
|
39607ed347 | ||
|
|
7b10f19396 | ||
|
|
2dd5a5ab0f | ||
|
|
25b2afb40c | ||
|
|
3346f16f6a | ||
|
|
924b0c2529 | ||
|
|
e2d8e7ae75 | ||
|
|
d6380b5493 | ||
|
|
0a50707c6e | ||
|
|
879ffd1f54 | ||
|
|
620082575d | ||
|
|
ac86b5e760 | ||
|
|
757e0aeb83 | ||
|
|
f8e60aa5b3 | ||
|
|
adb4801c12 | ||
|
|
1b9afe9116 | ||
|
|
bfb933dec1 | ||
|
|
ed0c3001eb | ||
|
|
6adf25277d | ||
|
|
699252ad23 | ||
|
|
48ed077169 | ||
|
|
9e1c0fc692 | ||
|
|
81faa9986b | ||
|
|
a84f8e3e08 | ||
|
|
99dc414f21 | ||
|
|
a7ae892741 | ||
|
|
b2efb3916d | ||
|
|
512c02b179 | ||
|
|
40e937a459 | ||
|
|
981db6c080 | ||
|
|
538129be5b | ||
|
|
aa0f96edb9 | ||
|
|
9a18e34f33 | ||
|
|
84b83ddf83 | ||
|
|
16c6179977 | ||
|
|
c528aba4ff | ||
|
|
cecfb418c0 | ||
|
|
023f8cc1c3 | ||
|
|
96f2ad2fac | ||
|
|
7fd08e8693 | ||
|
|
2d907e4d09 | ||
|
|
fb881276df | ||
|
|
c4838be834 | ||
|
|
b265acd927 | ||
|
|
e0921b64c3 | ||
|
|
f8b96744fa | ||
|
|
d23fd662f2 | ||
|
|
19809ae262 | ||
|
|
f41e08f9e9 | ||
|
|
3e8e7b9c40 | ||
|
|
6375f8b134 | ||
|
|
1f4d5ba114 | ||
|
|
43af024596 | ||
|
|
f5b0a91d6a | ||
|
|
c352711162 | ||
|
|
f0509a9a19 | ||
|
|
b4ac329482 | ||
|
|
3629ac421a | ||
|
|
a2d8eb9aa1 | ||
|
|
2b973b639b | ||
|
|
f3cd6ea0ee | ||
|
|
86af0bb463 | ||
|
|
7f88a60024 | ||
|
|
fbaa5168d7 | ||
|
|
72075de4e0 | ||
|
|
e822fde276 | ||
|
|
36ff86f895 | ||
|
|
2a120bd2f6 | ||
|
|
64ef5024d0 | ||
|
|
43f309f5ed | ||
|
|
02a1a8a20b | ||
|
|
131b686bf6 | ||
|
|
b630c1a3d1 | ||
|
|
06d57aef2d | ||
|
|
b3ffa2191c | ||
|
|
0a90f9d777 | ||
|
|
7a4ea7dd4c | ||
|
|
e2f31a3d52 | ||
|
|
0389d102fb | ||
|
|
0ecbe662c7 | ||
|
|
84deb8cc6e | ||
|
|
aac3347c1c | ||
|
|
45ce85d198 | ||
|
|
72d5076fad | ||
|
|
1038e2670a | ||
|
|
3786a769fc | ||
|
|
f5a4a663e0 | ||
|
|
b334319ede | ||
|
|
22e6d12c84 | ||
|
|
de6de0bdde | ||
|
|
a7e672fc05 | ||
|
|
f33ade5ae6 | ||
|
|
af54978d9e | ||
|
|
819620d7aa | ||
|
|
10de8847fd | ||
|
|
440aa4ede3 | ||
|
|
a5b16897c1 | ||
|
|
ee7e523e61 | ||
|
|
891a4cb5a1 | ||
|
|
9a43f57791 | ||
|
|
da0c3fb72c | ||
|
|
25a4101e32 | ||
|
|
a57701d131 | ||
|
|
fbb170674a | ||
|
|
3511403475 | ||
|
|
81edc0a4d2 | ||
|
|
bf20cfc49f | ||
|
|
80793cb259 | ||
|
|
93e98706dd | ||
|
|
422d14823a | ||
|
|
1cc273fead | ||
|
|
207e9fa1b0 | ||
|
|
8271ec7b87 | ||
|
|
885ee925e5 | ||
|
|
a4b90a31e2 | ||
|
|
85cb669587 | ||
|
|
45939e84f7 | ||
|
|
fbbc1e2683 | ||
|
|
2996aad422 | ||
|
|
852017d19d | ||
|
|
f940819e64 | ||
|
|
ffeeba88a5 | ||
|
|
47158e31f8 | ||
|
|
af30557f7a | ||
|
|
6fb12b2e3a | ||
|
|
a0aa47e5a0 | ||
|
|
49023c3f33 | ||
|
|
5431f520d4 |
No files matched your search
@@ -121,6 +121,10 @@ def main():
|
||||
print("it more easily. Many times one person did a port with basic")
|
||||
print("functionality, and then someone else jumped in and")
|
||||
print("contributed major new features.")
|
||||
print("")
|
||||
print("NOTE: if you renamed a device in pmaports, rename it in the")
|
||||
print("wiki as well and make sure to add it here:")
|
||||
print("https://postmarketos.org/renamed")
|
||||
return 1
|
||||
else:
|
||||
print("*** Wiki check successful!")
|
||||
|
||||
@@ -28,7 +28,6 @@ sh_files="
|
||||
./main/swclock-offset/swclock-offset-shutdown.sh
|
||||
./main/ttyescape/*.post-install
|
||||
./main/unl0kr/unlock.sh
|
||||
./main/msm-firmware-loader/*.sh
|
||||
./main/msm-firmware-loader/*.post-install
|
||||
|
||||
$(find . -path './main/postmarketos-ui-*/*.sh')
|
||||
|
||||
@@ -15,7 +15,9 @@ def test_aports_ui(args):
|
||||
"""
|
||||
Raise an error if package in _pmb_recommends is not found
|
||||
"""
|
||||
for arch in pmb.config.build_device_architectures:
|
||||
pmaports_cfg = pmb.config.pmaports.read_config(args)
|
||||
|
||||
for arch in pmaports_cfg["supported_arches"].split(","):
|
||||
for path in glob.iglob(args.aports + "/main/postmarketos-ui-*/APKBUILD"):
|
||||
apkbuild = pmb.parse.apkbuild(path)
|
||||
# Skip if arch isn't enabled
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
device/*/*-pine64-pinephone/ @craftyguy @milesalan @bshah @proycon @anjandev @StacyHarper
|
||||
device/*/*-purism-librem5/ @craftyguy @bshah
|
||||
main/osk-sdl/ @craftyguy
|
||||
main/mesa-pvr-dri-classic/ @xc-racer99
|
||||
main/postmarketos-ui-plasma-mobile/ @bshah
|
||||
temp/u-boot-librem5/ @craftyguy @bshah
|
||||
device/community/*-qcom-sdm845 @calebccff @joelselvaraj
|
||||
|
||||
+7
-1
@@ -8,8 +8,14 @@ branch_pmaports=master
|
||||
branch_aports=master
|
||||
mirrordir_alpine=edge
|
||||
|
||||
[v21.12]
|
||||
[v22.06]
|
||||
description=Latest release / Recommended for best stability
|
||||
branch_pmaports=v22.06
|
||||
branch_aports=3.16-stable
|
||||
mirrordir_alpine=v3.16
|
||||
|
||||
[v21.12]
|
||||
description=Old release (unsupported)
|
||||
branch_pmaports=v21.12
|
||||
branch_aports=3.15-stable
|
||||
mirrordir_alpine=v3.15
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
pkgname=binutils-aarch64
|
||||
pkgver=2.38
|
||||
pkgrel=1
|
||||
pkgrel=3
|
||||
pkgdesc="Tools necessary to build programs for aarch64 targets"
|
||||
url="https://www.gnu.org/software/binutils/"
|
||||
makedepends="gettext libtool autoconf automake bison texinfo"
|
||||
@@ -17,6 +17,9 @@ source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz
|
||||
0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
|
||||
binutils-mips-disable-assert.patch
|
||||
binutils-ppc-fix-machine-options.patch
|
||||
binutils-s390x-1.patch
|
||||
binutils-s390x-2.patch
|
||||
binutils-ppc64le-assertion.patch
|
||||
"
|
||||
builddir="$srcdir/binutils-$pkgver"
|
||||
|
||||
@@ -79,4 +82,7 @@ f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488
|
||||
70ec22bd72ef6dddecfd970613387dd4a8cdc8730dd3cbf03d5a0c3a7c4d839383167bb06dad21bf7c235329fd44b5dc4aefe762f68544f17155cf002bf1be4a 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
|
||||
609cd90d8b334eb309f586b17b9d335a08d3dbb6def7c3eb5c010028fcb681674031e5b9d853aa7a39a50304356a86afc184b85562b3f228f8197f4d29395c8f binutils-mips-disable-assert.patch
|
||||
27ea91e0e406e2ed464fd692cf92a07e338781789f2d968c8b95d9d5545985056a6f7f500df3952e5ab42165db28b741aa33d6b717e880b11a2e41fe406b13c4 binutils-ppc-fix-machine-options.patch
|
||||
a9efe2689624865f0ff33d4776a5bd295bcad6484bdd38d0ca490fea43691c4933ab33d17478851998eef12922dbf83d6c3225bb1f8faf92a1367d086390f7d3 binutils-s390x-1.patch
|
||||
0e291df80ad279005265634014d0935d2c115a5ed708d25407094b7ad4ddf267d1fb7fcbcb2d9ad73bd305b4e3974628b820bd1f249f56c095e4896872434cc9 binutils-s390x-2.patch
|
||||
63e58f45df3570279cb1ee5215ba3de77de012cac20da9cdd23f86a93890056e1efa397521559cfd0716d5239604607c440d8f4d089d83c98b8fbc1b5c5305f8 binutils-ppc64le-assertion.patch
|
||||
"
|
||||
@@ -0,0 +1,32 @@
|
||||
From 97dd8079feb35456d7b387a594b5e00f7654b3b8 Mon Sep 17 00:00:00 2001
|
||||
From: Alan Modra <amodra@gmail.com>
|
||||
Date: Thu, 23 Jun 2022 17:50:30 +0930
|
||||
Subject: [PATCH] PowerPC64: fix assertion in ppc_build_one_stub with -Os code
|
||||
|
||||
save_res stubs aren't written in ppc_build_one_stub, their offsets
|
||||
(which are zero) should not be checked.
|
||||
|
||||
* elf64-ppc.c (ppc_build_one_stub): Don't check save_res offsets.
|
||||
|
||||
(cherry picked from commit 570e911f4e533fad33ad5e4e1102929cf7e80bd7)
|
||||
---
|
||||
bfd/elf64-ppc.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
|
||||
index cb12ed476d8..df503341fe9 100644
|
||||
--- a/bfd/elf64-ppc.c
|
||||
+++ b/bfd/elf64-ppc.c
|
||||
@@ -11700,7 +11700,8 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg)
|
||||
if (htab == NULL)
|
||||
return false;
|
||||
|
||||
- BFD_ASSERT (stub_entry->stub_offset >= stub_entry->group->stub_sec->size);
|
||||
+ BFD_ASSERT (stub_entry->stub_offset >= stub_entry->group->stub_sec->size
|
||||
+ || stub_entry->type.main == ppc_stub_save_res);
|
||||
loc = stub_entry->group->stub_sec->contents + stub_entry->stub_offset;
|
||||
|
||||
htab->stub_count[stub_entry->type.main - 1] += 1;
|
||||
--
|
||||
2.31.1
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
From 82a5bb730a16f8c7962568030268e784b4fb42c8 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Liebler <stli@linux.ibm.com>
|
||||
Date: Thu, 28 Apr 2022 14:29:58 +0200
|
||||
Subject: [PATCH] s390: Avoid dynamic TLS relocs in PIE
|
||||
|
||||
No dynamic relocs are needed for TLS defined in an executable, the
|
||||
TP relative offset is known at link time.
|
||||
|
||||
Fixes
|
||||
FAIL: Build pr22263-1
|
||||
|
||||
bfd/
|
||||
PR ld/22263
|
||||
* elf64-s390.c (elf_s390_tls_transition): Use bfd_link_dll
|
||||
instead of bfd_link_pic for TLS.
|
||||
(elf_s390_check_relocs): Likewise.
|
||||
(allocate_dynrelocs): Likewise.
|
||||
(elf_s390_relocate_section): Likewise.
|
||||
|
||||
(cherry picked from commit 26b1426577b5dcb32d149c64cca3e603b81948a9)
|
||||
---
|
||||
bfd/elf64-s390.c | 26 +++++++++++++-------------
|
||||
1 file changed, 13 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
|
||||
index e780efa7181..00ee386baab 100644
|
||||
--- a/bfd/elf64-s390.c
|
||||
+++ b/bfd/elf64-s390.c
|
||||
@@ -774,7 +774,7 @@ elf_s390_tls_transition (struct bfd_link_info *info,
|
||||
int r_type,
|
||||
int is_local)
|
||||
{
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
return r_type;
|
||||
|
||||
switch (r_type)
|
||||
@@ -1026,7 +1026,7 @@ elf_s390_check_relocs (bfd *abfd,
|
||||
case R_390_TLS_GOTIE20:
|
||||
case R_390_TLS_GOTIE64:
|
||||
case R_390_TLS_IEENT:
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
info->flags |= DF_STATIC_TLS;
|
||||
/* Fall through */
|
||||
|
||||
@@ -1107,7 +1107,7 @@ elf_s390_check_relocs (bfd *abfd,
|
||||
if (r_type == R_390_TLS_LE64 && bfd_link_pie (info))
|
||||
break;
|
||||
|
||||
- if (!bfd_link_pic (info))
|
||||
+ if (!bfd_link_dll (info))
|
||||
break;
|
||||
info->flags |= DF_STATIC_TLS;
|
||||
/* Fall through */
|
||||
@@ -1571,7 +1571,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h,
|
||||
to R_390_TLS_LE64 requiring no TLS entry. For GOTIE12 and IEENT
|
||||
we can save the dynamic TLS relocation. */
|
||||
if (h->got.refcount > 0
|
||||
- && !bfd_link_pic (info)
|
||||
+ && !bfd_link_dll (info)
|
||||
&& h->dynindx == -1
|
||||
&& elf_s390_hash_entry(h)->tls_type >= GOT_TLS_IE)
|
||||
{
|
||||
@@ -2662,7 +2662,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
|
||||
/* Relocations for tls literal pool entries. */
|
||||
case R_390_TLS_IE64:
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
{
|
||||
Elf_Internal_Rela outrel;
|
||||
asection *sreloc;
|
||||
@@ -2690,7 +2690,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
else if (h != NULL)
|
||||
{
|
||||
tls_type = elf_s390_hash_entry(h)->tls_type;
|
||||
- if (!bfd_link_pic (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
|
||||
+ if (!bfd_link_dll (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
|
||||
r_type = R_390_TLS_LE64;
|
||||
}
|
||||
if (r_type == R_390_TLS_GD64 && tls_type >= GOT_TLS_IE)
|
||||
@@ -2801,14 +2801,14 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
if (local_got_offsets == NULL)
|
||||
abort();
|
||||
off = local_got_offsets[r_symndx];
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
goto emit_tls_relocs;
|
||||
}
|
||||
else
|
||||
{
|
||||
off = h->got.offset;
|
||||
tls_type = elf_s390_hash_entry(h)->tls_type;
|
||||
- if (bfd_link_pic (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
|
||||
+ if (bfd_link_dll (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
|
||||
goto emit_tls_relocs;
|
||||
}
|
||||
|
||||
@@ -2825,7 +2825,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
break;
|
||||
|
||||
case R_390_TLS_LDM64:
|
||||
- if (! bfd_link_pic (info))
|
||||
+ if (! bfd_link_dll (info))
|
||||
/* The literal pool entry this relocation refers to gets ignored
|
||||
by the optimized code of the local exec model. Do nothing
|
||||
and the value will turn out zero. */
|
||||
@@ -2900,7 +2900,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
continue;
|
||||
|
||||
case R_390_TLS_LDO64:
|
||||
- if (bfd_link_pic (info) || (input_section->flags & SEC_DEBUGGING))
|
||||
+ if (bfd_link_dll (info) || (input_section->flags & SEC_DEBUGGING))
|
||||
relocation -= dtpoff_base (info);
|
||||
else
|
||||
/* When converting LDO to LE, we must negate. */
|
||||
@@ -2922,7 +2922,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
|
||||
if (r_type == R_390_TLS_LOAD)
|
||||
{
|
||||
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
|
||||
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
|
||||
{
|
||||
/* IE->LE transition. Four valid cases:
|
||||
lg %rx,(0,%ry) -> sllg %rx,%ry,0
|
||||
@@ -2972,7 +2972,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
invalid_tls_insn (input_bfd, input_section, rel);
|
||||
return false;
|
||||
}
|
||||
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
|
||||
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
|
||||
{
|
||||
/* GD->LE transition.
|
||||
brasl %r14,__tls_get_addr@plt -> brcl 0,. */
|
||||
@@ -2991,7 +2991,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
}
|
||||
else if (r_type == R_390_TLS_LDCALL)
|
||||
{
|
||||
- if (!bfd_link_pic (info))
|
||||
+ if (!bfd_link_dll (info))
|
||||
{
|
||||
unsigned int insn0, insn1;
|
||||
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
From 9a01457e02e7bb594ff9a9ac62a38c909e2e3083 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Liebler <stli@linux.ibm.com>
|
||||
Date: Thu, 28 Apr 2022 14:30:55 +0200
|
||||
Subject: [PATCH] s390: Add DT_JMPREL pointing to .rela.[i]plt with static-pie
|
||||
|
||||
In static-pie case, there are IRELATIVE-relocs in
|
||||
.rela.iplt (htab->irelplt), which will later be grouped
|
||||
to .rela.plt. On s390, the IRELATIVE relocations are
|
||||
always located in .rela.iplt - even for non-static case.
|
||||
Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
|
||||
to the dynamic section even if htab->srelplt->size == 0.
|
||||
See _bfd_elf_add_dynamic_tags in bfd/elflink.c.
|
||||
|
||||
bfd/
|
||||
elf64-s390.c (elf_s390_size_dynamic_sections):
|
||||
Enforce DT_JMPREL via htab->elf.dt_jmprel_required.
|
||||
|
||||
(cherry picked from commit d942d8db12adf4c9e5c7d9ed6496a779ece7149e)
|
||||
---
|
||||
bfd/elf64-s390.c | 15 ++++++++++++++-
|
||||
1 file changed, 14 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
|
||||
index 00ee386baab..0b851f7ac0e 100644
|
||||
--- a/bfd/elf64-s390.c
|
||||
+++ b/bfd/elf64-s390.c
|
||||
@@ -1876,7 +1876,20 @@ elf_s390_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
|
||||
else if (startswith (bfd_section_name (s), ".rela"))
|
||||
{
|
||||
if (s->size != 0 && s != htab->elf.srelplt)
|
||||
- relocs = true;
|
||||
+ {
|
||||
+ relocs = true;
|
||||
+ if (s == htab->elf.irelplt)
|
||||
+ {
|
||||
+ /* In static-pie case, there are IRELATIVE-relocs in
|
||||
+ .rela.iplt (htab->irelplt), which will later be grouped
|
||||
+ to .rela.plt. On s390, the IRELATIVE relocations are
|
||||
+ always located in .rela.iplt - even for non-static case.
|
||||
+ Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
|
||||
+ to the dynamic section even if htab->srelplt->size == 0.
|
||||
+ See _bfd_elf_add_dynamic_tags in bfd/elflink.c. */
|
||||
+ htab->elf.dt_jmprel_required = true;
|
||||
+ }
|
||||
+ }
|
||||
|
||||
/* We use the reloc_count field as a counter if we need
|
||||
to copy relocs into the output file. */
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
pkgname=binutils-armhf
|
||||
pkgver=2.38
|
||||
pkgrel=1
|
||||
pkgrel=3
|
||||
pkgdesc="Tools necessary to build programs for armhf targets"
|
||||
url="https://www.gnu.org/software/binutils/"
|
||||
makedepends="gettext libtool autoconf automake bison texinfo"
|
||||
@@ -17,6 +17,9 @@ source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz
|
||||
0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
|
||||
binutils-mips-disable-assert.patch
|
||||
binutils-ppc-fix-machine-options.patch
|
||||
binutils-s390x-1.patch
|
||||
binutils-s390x-2.patch
|
||||
binutils-ppc64le-assertion.patch
|
||||
"
|
||||
builddir="$srcdir/binutils-$pkgver"
|
||||
|
||||
@@ -79,4 +82,7 @@ f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488
|
||||
70ec22bd72ef6dddecfd970613387dd4a8cdc8730dd3cbf03d5a0c3a7c4d839383167bb06dad21bf7c235329fd44b5dc4aefe762f68544f17155cf002bf1be4a 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
|
||||
609cd90d8b334eb309f586b17b9d335a08d3dbb6def7c3eb5c010028fcb681674031e5b9d853aa7a39a50304356a86afc184b85562b3f228f8197f4d29395c8f binutils-mips-disable-assert.patch
|
||||
27ea91e0e406e2ed464fd692cf92a07e338781789f2d968c8b95d9d5545985056a6f7f500df3952e5ab42165db28b741aa33d6b717e880b11a2e41fe406b13c4 binutils-ppc-fix-machine-options.patch
|
||||
a9efe2689624865f0ff33d4776a5bd295bcad6484bdd38d0ca490fea43691c4933ab33d17478851998eef12922dbf83d6c3225bb1f8faf92a1367d086390f7d3 binutils-s390x-1.patch
|
||||
0e291df80ad279005265634014d0935d2c115a5ed708d25407094b7ad4ddf267d1fb7fcbcb2d9ad73bd305b4e3974628b820bd1f249f56c095e4896872434cc9 binutils-s390x-2.patch
|
||||
63e58f45df3570279cb1ee5215ba3de77de012cac20da9cdd23f86a93890056e1efa397521559cfd0716d5239604607c440d8f4d089d83c98b8fbc1b5c5305f8 binutils-ppc64le-assertion.patch
|
||||
"
|
||||
@@ -0,0 +1,32 @@
|
||||
From 97dd8079feb35456d7b387a594b5e00f7654b3b8 Mon Sep 17 00:00:00 2001
|
||||
From: Alan Modra <amodra@gmail.com>
|
||||
Date: Thu, 23 Jun 2022 17:50:30 +0930
|
||||
Subject: [PATCH] PowerPC64: fix assertion in ppc_build_one_stub with -Os code
|
||||
|
||||
save_res stubs aren't written in ppc_build_one_stub, their offsets
|
||||
(which are zero) should not be checked.
|
||||
|
||||
* elf64-ppc.c (ppc_build_one_stub): Don't check save_res offsets.
|
||||
|
||||
(cherry picked from commit 570e911f4e533fad33ad5e4e1102929cf7e80bd7)
|
||||
---
|
||||
bfd/elf64-ppc.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
|
||||
index cb12ed476d8..df503341fe9 100644
|
||||
--- a/bfd/elf64-ppc.c
|
||||
+++ b/bfd/elf64-ppc.c
|
||||
@@ -11700,7 +11700,8 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg)
|
||||
if (htab == NULL)
|
||||
return false;
|
||||
|
||||
- BFD_ASSERT (stub_entry->stub_offset >= stub_entry->group->stub_sec->size);
|
||||
+ BFD_ASSERT (stub_entry->stub_offset >= stub_entry->group->stub_sec->size
|
||||
+ || stub_entry->type.main == ppc_stub_save_res);
|
||||
loc = stub_entry->group->stub_sec->contents + stub_entry->stub_offset;
|
||||
|
||||
htab->stub_count[stub_entry->type.main - 1] += 1;
|
||||
--
|
||||
2.31.1
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
From 82a5bb730a16f8c7962568030268e784b4fb42c8 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Liebler <stli@linux.ibm.com>
|
||||
Date: Thu, 28 Apr 2022 14:29:58 +0200
|
||||
Subject: [PATCH] s390: Avoid dynamic TLS relocs in PIE
|
||||
|
||||
No dynamic relocs are needed for TLS defined in an executable, the
|
||||
TP relative offset is known at link time.
|
||||
|
||||
Fixes
|
||||
FAIL: Build pr22263-1
|
||||
|
||||
bfd/
|
||||
PR ld/22263
|
||||
* elf64-s390.c (elf_s390_tls_transition): Use bfd_link_dll
|
||||
instead of bfd_link_pic for TLS.
|
||||
(elf_s390_check_relocs): Likewise.
|
||||
(allocate_dynrelocs): Likewise.
|
||||
(elf_s390_relocate_section): Likewise.
|
||||
|
||||
(cherry picked from commit 26b1426577b5dcb32d149c64cca3e603b81948a9)
|
||||
---
|
||||
bfd/elf64-s390.c | 26 +++++++++++++-------------
|
||||
1 file changed, 13 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
|
||||
index e780efa7181..00ee386baab 100644
|
||||
--- a/bfd/elf64-s390.c
|
||||
+++ b/bfd/elf64-s390.c
|
||||
@@ -774,7 +774,7 @@ elf_s390_tls_transition (struct bfd_link_info *info,
|
||||
int r_type,
|
||||
int is_local)
|
||||
{
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
return r_type;
|
||||
|
||||
switch (r_type)
|
||||
@@ -1026,7 +1026,7 @@ elf_s390_check_relocs (bfd *abfd,
|
||||
case R_390_TLS_GOTIE20:
|
||||
case R_390_TLS_GOTIE64:
|
||||
case R_390_TLS_IEENT:
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
info->flags |= DF_STATIC_TLS;
|
||||
/* Fall through */
|
||||
|
||||
@@ -1107,7 +1107,7 @@ elf_s390_check_relocs (bfd *abfd,
|
||||
if (r_type == R_390_TLS_LE64 && bfd_link_pie (info))
|
||||
break;
|
||||
|
||||
- if (!bfd_link_pic (info))
|
||||
+ if (!bfd_link_dll (info))
|
||||
break;
|
||||
info->flags |= DF_STATIC_TLS;
|
||||
/* Fall through */
|
||||
@@ -1571,7 +1571,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h,
|
||||
to R_390_TLS_LE64 requiring no TLS entry. For GOTIE12 and IEENT
|
||||
we can save the dynamic TLS relocation. */
|
||||
if (h->got.refcount > 0
|
||||
- && !bfd_link_pic (info)
|
||||
+ && !bfd_link_dll (info)
|
||||
&& h->dynindx == -1
|
||||
&& elf_s390_hash_entry(h)->tls_type >= GOT_TLS_IE)
|
||||
{
|
||||
@@ -2662,7 +2662,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
|
||||
/* Relocations for tls literal pool entries. */
|
||||
case R_390_TLS_IE64:
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
{
|
||||
Elf_Internal_Rela outrel;
|
||||
asection *sreloc;
|
||||
@@ -2690,7 +2690,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
else if (h != NULL)
|
||||
{
|
||||
tls_type = elf_s390_hash_entry(h)->tls_type;
|
||||
- if (!bfd_link_pic (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
|
||||
+ if (!bfd_link_dll (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
|
||||
r_type = R_390_TLS_LE64;
|
||||
}
|
||||
if (r_type == R_390_TLS_GD64 && tls_type >= GOT_TLS_IE)
|
||||
@@ -2801,14 +2801,14 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
if (local_got_offsets == NULL)
|
||||
abort();
|
||||
off = local_got_offsets[r_symndx];
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
goto emit_tls_relocs;
|
||||
}
|
||||
else
|
||||
{
|
||||
off = h->got.offset;
|
||||
tls_type = elf_s390_hash_entry(h)->tls_type;
|
||||
- if (bfd_link_pic (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
|
||||
+ if (bfd_link_dll (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
|
||||
goto emit_tls_relocs;
|
||||
}
|
||||
|
||||
@@ -2825,7 +2825,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
break;
|
||||
|
||||
case R_390_TLS_LDM64:
|
||||
- if (! bfd_link_pic (info))
|
||||
+ if (! bfd_link_dll (info))
|
||||
/* The literal pool entry this relocation refers to gets ignored
|
||||
by the optimized code of the local exec model. Do nothing
|
||||
and the value will turn out zero. */
|
||||
@@ -2900,7 +2900,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
continue;
|
||||
|
||||
case R_390_TLS_LDO64:
|
||||
- if (bfd_link_pic (info) || (input_section->flags & SEC_DEBUGGING))
|
||||
+ if (bfd_link_dll (info) || (input_section->flags & SEC_DEBUGGING))
|
||||
relocation -= dtpoff_base (info);
|
||||
else
|
||||
/* When converting LDO to LE, we must negate. */
|
||||
@@ -2922,7 +2922,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
|
||||
if (r_type == R_390_TLS_LOAD)
|
||||
{
|
||||
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
|
||||
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
|
||||
{
|
||||
/* IE->LE transition. Four valid cases:
|
||||
lg %rx,(0,%ry) -> sllg %rx,%ry,0
|
||||
@@ -2972,7 +2972,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
invalid_tls_insn (input_bfd, input_section, rel);
|
||||
return false;
|
||||
}
|
||||
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
|
||||
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
|
||||
{
|
||||
/* GD->LE transition.
|
||||
brasl %r14,__tls_get_addr@plt -> brcl 0,. */
|
||||
@@ -2991,7 +2991,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
}
|
||||
else if (r_type == R_390_TLS_LDCALL)
|
||||
{
|
||||
- if (!bfd_link_pic (info))
|
||||
+ if (!bfd_link_dll (info))
|
||||
{
|
||||
unsigned int insn0, insn1;
|
||||
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
From 9a01457e02e7bb594ff9a9ac62a38c909e2e3083 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Liebler <stli@linux.ibm.com>
|
||||
Date: Thu, 28 Apr 2022 14:30:55 +0200
|
||||
Subject: [PATCH] s390: Add DT_JMPREL pointing to .rela.[i]plt with static-pie
|
||||
|
||||
In static-pie case, there are IRELATIVE-relocs in
|
||||
.rela.iplt (htab->irelplt), which will later be grouped
|
||||
to .rela.plt. On s390, the IRELATIVE relocations are
|
||||
always located in .rela.iplt - even for non-static case.
|
||||
Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
|
||||
to the dynamic section even if htab->srelplt->size == 0.
|
||||
See _bfd_elf_add_dynamic_tags in bfd/elflink.c.
|
||||
|
||||
bfd/
|
||||
elf64-s390.c (elf_s390_size_dynamic_sections):
|
||||
Enforce DT_JMPREL via htab->elf.dt_jmprel_required.
|
||||
|
||||
(cherry picked from commit d942d8db12adf4c9e5c7d9ed6496a779ece7149e)
|
||||
---
|
||||
bfd/elf64-s390.c | 15 ++++++++++++++-
|
||||
1 file changed, 14 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
|
||||
index 00ee386baab..0b851f7ac0e 100644
|
||||
--- a/bfd/elf64-s390.c
|
||||
+++ b/bfd/elf64-s390.c
|
||||
@@ -1876,7 +1876,20 @@ elf_s390_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
|
||||
else if (startswith (bfd_section_name (s), ".rela"))
|
||||
{
|
||||
if (s->size != 0 && s != htab->elf.srelplt)
|
||||
- relocs = true;
|
||||
+ {
|
||||
+ relocs = true;
|
||||
+ if (s == htab->elf.irelplt)
|
||||
+ {
|
||||
+ /* In static-pie case, there are IRELATIVE-relocs in
|
||||
+ .rela.iplt (htab->irelplt), which will later be grouped
|
||||
+ to .rela.plt. On s390, the IRELATIVE relocations are
|
||||
+ always located in .rela.iplt - even for non-static case.
|
||||
+ Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
|
||||
+ to the dynamic section even if htab->srelplt->size == 0.
|
||||
+ See _bfd_elf_add_dynamic_tags in bfd/elflink.c. */
|
||||
+ htab->elf.dt_jmprel_required = true;
|
||||
+ }
|
||||
+ }
|
||||
|
||||
/* We use the reloc_count field as a counter if we need
|
||||
to copy relocs into the output file. */
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
pkgname=binutils-armv7
|
||||
pkgver=2.38
|
||||
pkgrel=1
|
||||
pkgrel=3
|
||||
pkgdesc="Tools necessary to build programs for armv7 targets"
|
||||
url="https://www.gnu.org/software/binutils/"
|
||||
makedepends="gettext libtool autoconf automake bison texinfo"
|
||||
@@ -17,6 +17,9 @@ source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz
|
||||
0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
|
||||
binutils-mips-disable-assert.patch
|
||||
binutils-ppc-fix-machine-options.patch
|
||||
binutils-s390x-1.patch
|
||||
binutils-s390x-2.patch
|
||||
binutils-ppc64le-assertion.patch
|
||||
"
|
||||
builddir="$srcdir/binutils-$pkgver"
|
||||
|
||||
@@ -79,4 +82,7 @@ f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488
|
||||
70ec22bd72ef6dddecfd970613387dd4a8cdc8730dd3cbf03d5a0c3a7c4d839383167bb06dad21bf7c235329fd44b5dc4aefe762f68544f17155cf002bf1be4a 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
|
||||
609cd90d8b334eb309f586b17b9d335a08d3dbb6def7c3eb5c010028fcb681674031e5b9d853aa7a39a50304356a86afc184b85562b3f228f8197f4d29395c8f binutils-mips-disable-assert.patch
|
||||
27ea91e0e406e2ed464fd692cf92a07e338781789f2d968c8b95d9d5545985056a6f7f500df3952e5ab42165db28b741aa33d6b717e880b11a2e41fe406b13c4 binutils-ppc-fix-machine-options.patch
|
||||
a9efe2689624865f0ff33d4776a5bd295bcad6484bdd38d0ca490fea43691c4933ab33d17478851998eef12922dbf83d6c3225bb1f8faf92a1367d086390f7d3 binutils-s390x-1.patch
|
||||
0e291df80ad279005265634014d0935d2c115a5ed708d25407094b7ad4ddf267d1fb7fcbcb2d9ad73bd305b4e3974628b820bd1f249f56c095e4896872434cc9 binutils-s390x-2.patch
|
||||
63e58f45df3570279cb1ee5215ba3de77de012cac20da9cdd23f86a93890056e1efa397521559cfd0716d5239604607c440d8f4d089d83c98b8fbc1b5c5305f8 binutils-ppc64le-assertion.patch
|
||||
"
|
||||
@@ -0,0 +1,32 @@
|
||||
From 97dd8079feb35456d7b387a594b5e00f7654b3b8 Mon Sep 17 00:00:00 2001
|
||||
From: Alan Modra <amodra@gmail.com>
|
||||
Date: Thu, 23 Jun 2022 17:50:30 +0930
|
||||
Subject: [PATCH] PowerPC64: fix assertion in ppc_build_one_stub with -Os code
|
||||
|
||||
save_res stubs aren't written in ppc_build_one_stub, their offsets
|
||||
(which are zero) should not be checked.
|
||||
|
||||
* elf64-ppc.c (ppc_build_one_stub): Don't check save_res offsets.
|
||||
|
||||
(cherry picked from commit 570e911f4e533fad33ad5e4e1102929cf7e80bd7)
|
||||
---
|
||||
bfd/elf64-ppc.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
|
||||
index cb12ed476d8..df503341fe9 100644
|
||||
--- a/bfd/elf64-ppc.c
|
||||
+++ b/bfd/elf64-ppc.c
|
||||
@@ -11700,7 +11700,8 @@ ppc_build_one_stub (struct bfd_hash_entry *gen_entry, void *in_arg)
|
||||
if (htab == NULL)
|
||||
return false;
|
||||
|
||||
- BFD_ASSERT (stub_entry->stub_offset >= stub_entry->group->stub_sec->size);
|
||||
+ BFD_ASSERT (stub_entry->stub_offset >= stub_entry->group->stub_sec->size
|
||||
+ || stub_entry->type.main == ppc_stub_save_res);
|
||||
loc = stub_entry->group->stub_sec->contents + stub_entry->stub_offset;
|
||||
|
||||
htab->stub_count[stub_entry->type.main - 1] += 1;
|
||||
--
|
||||
2.31.1
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
From 82a5bb730a16f8c7962568030268e784b4fb42c8 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Liebler <stli@linux.ibm.com>
|
||||
Date: Thu, 28 Apr 2022 14:29:58 +0200
|
||||
Subject: [PATCH] s390: Avoid dynamic TLS relocs in PIE
|
||||
|
||||
No dynamic relocs are needed for TLS defined in an executable, the
|
||||
TP relative offset is known at link time.
|
||||
|
||||
Fixes
|
||||
FAIL: Build pr22263-1
|
||||
|
||||
bfd/
|
||||
PR ld/22263
|
||||
* elf64-s390.c (elf_s390_tls_transition): Use bfd_link_dll
|
||||
instead of bfd_link_pic for TLS.
|
||||
(elf_s390_check_relocs): Likewise.
|
||||
(allocate_dynrelocs): Likewise.
|
||||
(elf_s390_relocate_section): Likewise.
|
||||
|
||||
(cherry picked from commit 26b1426577b5dcb32d149c64cca3e603b81948a9)
|
||||
---
|
||||
bfd/elf64-s390.c | 26 +++++++++++++-------------
|
||||
1 file changed, 13 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
|
||||
index e780efa7181..00ee386baab 100644
|
||||
--- a/bfd/elf64-s390.c
|
||||
+++ b/bfd/elf64-s390.c
|
||||
@@ -774,7 +774,7 @@ elf_s390_tls_transition (struct bfd_link_info *info,
|
||||
int r_type,
|
||||
int is_local)
|
||||
{
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
return r_type;
|
||||
|
||||
switch (r_type)
|
||||
@@ -1026,7 +1026,7 @@ elf_s390_check_relocs (bfd *abfd,
|
||||
case R_390_TLS_GOTIE20:
|
||||
case R_390_TLS_GOTIE64:
|
||||
case R_390_TLS_IEENT:
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
info->flags |= DF_STATIC_TLS;
|
||||
/* Fall through */
|
||||
|
||||
@@ -1107,7 +1107,7 @@ elf_s390_check_relocs (bfd *abfd,
|
||||
if (r_type == R_390_TLS_LE64 && bfd_link_pie (info))
|
||||
break;
|
||||
|
||||
- if (!bfd_link_pic (info))
|
||||
+ if (!bfd_link_dll (info))
|
||||
break;
|
||||
info->flags |= DF_STATIC_TLS;
|
||||
/* Fall through */
|
||||
@@ -1571,7 +1571,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h,
|
||||
to R_390_TLS_LE64 requiring no TLS entry. For GOTIE12 and IEENT
|
||||
we can save the dynamic TLS relocation. */
|
||||
if (h->got.refcount > 0
|
||||
- && !bfd_link_pic (info)
|
||||
+ && !bfd_link_dll (info)
|
||||
&& h->dynindx == -1
|
||||
&& elf_s390_hash_entry(h)->tls_type >= GOT_TLS_IE)
|
||||
{
|
||||
@@ -2662,7 +2662,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
|
||||
/* Relocations for tls literal pool entries. */
|
||||
case R_390_TLS_IE64:
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
{
|
||||
Elf_Internal_Rela outrel;
|
||||
asection *sreloc;
|
||||
@@ -2690,7 +2690,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
else if (h != NULL)
|
||||
{
|
||||
tls_type = elf_s390_hash_entry(h)->tls_type;
|
||||
- if (!bfd_link_pic (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
|
||||
+ if (!bfd_link_dll (info) && h->dynindx == -1 && tls_type >= GOT_TLS_IE)
|
||||
r_type = R_390_TLS_LE64;
|
||||
}
|
||||
if (r_type == R_390_TLS_GD64 && tls_type >= GOT_TLS_IE)
|
||||
@@ -2801,14 +2801,14 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
if (local_got_offsets == NULL)
|
||||
abort();
|
||||
off = local_got_offsets[r_symndx];
|
||||
- if (bfd_link_pic (info))
|
||||
+ if (bfd_link_dll (info))
|
||||
goto emit_tls_relocs;
|
||||
}
|
||||
else
|
||||
{
|
||||
off = h->got.offset;
|
||||
tls_type = elf_s390_hash_entry(h)->tls_type;
|
||||
- if (bfd_link_pic (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
|
||||
+ if (bfd_link_dll (info) || h->dynindx != -1 || tls_type < GOT_TLS_IE)
|
||||
goto emit_tls_relocs;
|
||||
}
|
||||
|
||||
@@ -2825,7 +2825,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
break;
|
||||
|
||||
case R_390_TLS_LDM64:
|
||||
- if (! bfd_link_pic (info))
|
||||
+ if (! bfd_link_dll (info))
|
||||
/* The literal pool entry this relocation refers to gets ignored
|
||||
by the optimized code of the local exec model. Do nothing
|
||||
and the value will turn out zero. */
|
||||
@@ -2900,7 +2900,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
continue;
|
||||
|
||||
case R_390_TLS_LDO64:
|
||||
- if (bfd_link_pic (info) || (input_section->flags & SEC_DEBUGGING))
|
||||
+ if (bfd_link_dll (info) || (input_section->flags & SEC_DEBUGGING))
|
||||
relocation -= dtpoff_base (info);
|
||||
else
|
||||
/* When converting LDO to LE, we must negate. */
|
||||
@@ -2922,7 +2922,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
|
||||
if (r_type == R_390_TLS_LOAD)
|
||||
{
|
||||
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
|
||||
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
|
||||
{
|
||||
/* IE->LE transition. Four valid cases:
|
||||
lg %rx,(0,%ry) -> sllg %rx,%ry,0
|
||||
@@ -2972,7 +2972,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
invalid_tls_insn (input_bfd, input_section, rel);
|
||||
return false;
|
||||
}
|
||||
- if (!bfd_link_pic (info) && (h == NULL || h->dynindx == -1))
|
||||
+ if (!bfd_link_dll (info) && (h == NULL || h->dynindx == -1))
|
||||
{
|
||||
/* GD->LE transition.
|
||||
brasl %r14,__tls_get_addr@plt -> brcl 0,. */
|
||||
@@ -2991,7 +2991,7 @@ elf_s390_relocate_section (bfd *output_bfd,
|
||||
}
|
||||
else if (r_type == R_390_TLS_LDCALL)
|
||||
{
|
||||
- if (!bfd_link_pic (info))
|
||||
+ if (!bfd_link_dll (info))
|
||||
{
|
||||
unsigned int insn0, insn1;
|
||||
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
From 9a01457e02e7bb594ff9a9ac62a38c909e2e3083 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Liebler <stli@linux.ibm.com>
|
||||
Date: Thu, 28 Apr 2022 14:30:55 +0200
|
||||
Subject: [PATCH] s390: Add DT_JMPREL pointing to .rela.[i]plt with static-pie
|
||||
|
||||
In static-pie case, there are IRELATIVE-relocs in
|
||||
.rela.iplt (htab->irelplt), which will later be grouped
|
||||
to .rela.plt. On s390, the IRELATIVE relocations are
|
||||
always located in .rela.iplt - even for non-static case.
|
||||
Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
|
||||
to the dynamic section even if htab->srelplt->size == 0.
|
||||
See _bfd_elf_add_dynamic_tags in bfd/elflink.c.
|
||||
|
||||
bfd/
|
||||
elf64-s390.c (elf_s390_size_dynamic_sections):
|
||||
Enforce DT_JMPREL via htab->elf.dt_jmprel_required.
|
||||
|
||||
(cherry picked from commit d942d8db12adf4c9e5c7d9ed6496a779ece7149e)
|
||||
---
|
||||
bfd/elf64-s390.c | 15 ++++++++++++++-
|
||||
1 file changed, 14 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
|
||||
index 00ee386baab..0b851f7ac0e 100644
|
||||
--- a/bfd/elf64-s390.c
|
||||
+++ b/bfd/elf64-s390.c
|
||||
@@ -1876,7 +1876,20 @@ elf_s390_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
|
||||
else if (startswith (bfd_section_name (s), ".rela"))
|
||||
{
|
||||
if (s->size != 0 && s != htab->elf.srelplt)
|
||||
- relocs = true;
|
||||
+ {
|
||||
+ relocs = true;
|
||||
+ if (s == htab->elf.irelplt)
|
||||
+ {
|
||||
+ /* In static-pie case, there are IRELATIVE-relocs in
|
||||
+ .rela.iplt (htab->irelplt), which will later be grouped
|
||||
+ to .rela.plt. On s390, the IRELATIVE relocations are
|
||||
+ always located in .rela.iplt - even for non-static case.
|
||||
+ Ensure that DT_JMPREL, DT_PLTRELA, DT_PLTRELASZ is added
|
||||
+ to the dynamic section even if htab->srelplt->size == 0.
|
||||
+ See _bfd_elf_add_dynamic_tags in bfd/elflink.c. */
|
||||
+ htab->elf.dt_jmprel_required = true;
|
||||
+ }
|
||||
+ }
|
||||
|
||||
/* We use the reloc_count field as a counter if we need
|
||||
to copy relocs into the output file. */
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@@ -8,7 +8,7 @@ fi
|
||||
|
||||
pkgname=busybox-static-aarch64
|
||||
pkgver=1.35.0
|
||||
pkgrel=8
|
||||
pkgrel=18
|
||||
|
||||
_arch="aarch64"
|
||||
_mirror="http://dl-4.alpinelinux.org/alpine/"
|
||||
@@ -32,5 +32,5 @@ package() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
9a5c02e591d71c06e3f9fb5a8ef50ceaf18f3183164b9aa80683c0979abcf90844d19b2781d8a2828d866a9a1d87a6fb3b7ca95c21104a20f880535c1c5e5bcc busybox-static-1.35.0-r8-aarch64-edge.apk
|
||||
2dd9617a1e0938a692acdb5c0ed943197f100a87274df96bc3ed7f77e0a5713d4e8c9642a666bb0391c5ceebc50960cf4ef9a467c813d6f5a149c6bd89b2dc3a busybox-static-1.35.0-r18-aarch64-edge.apk
|
||||
"
|
||||
@@ -8,7 +8,7 @@ fi
|
||||
|
||||
pkgname=busybox-static-armhf
|
||||
pkgver=1.35.0
|
||||
pkgrel=8
|
||||
pkgrel=18
|
||||
|
||||
_arch="armhf"
|
||||
_mirror="http://dl-4.alpinelinux.org/alpine/"
|
||||
@@ -32,5 +32,5 @@ package() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
0a5ee42c6c45252693685255760e16dcbfa0f5f747f2b9ddffdc0474bff27e4f353675bac208aba6880dd67eaa11de9f27ffb8b073f1daab4f07789a1acf8aa5 busybox-static-1.35.0-r8-armhf-edge.apk
|
||||
35461f4429030b5841c6cb071aac692f42f4935c5b94f80b848c8a9ce217b25370f9bb0df167f6d597535708d3c1d25b8e12d6d9b57588c4291facbc7681dd03 busybox-static-1.35.0-r18-armhf-edge.apk
|
||||
"
|
||||
@@ -8,7 +8,7 @@ fi
|
||||
|
||||
pkgname=busybox-static-armv7
|
||||
pkgver=1.35.0
|
||||
pkgrel=8
|
||||
pkgrel=18
|
||||
|
||||
_arch="armv7"
|
||||
_mirror="http://dl-4.alpinelinux.org/alpine/"
|
||||
@@ -32,5 +32,5 @@ package() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
25adf68cc83bdcb2f0c00fbdc7f64efac699144cb0a61e11a2876d9dbeead46c51ea21b258dcbfaf21fb30400a4172b44ce98872d4d110f245e6f8285c28e578 busybox-static-1.35.0-r8-armv7-edge.apk
|
||||
e91b9f5bd8e21525c471aeaf83a4fdc86098e8245b2d4119a3e6717d3402e9e134cf8cae6df8b076f0020eaf8a4eda68cfa417d4319ba5be4b32daf480133dd4 busybox-static-1.35.0-r18-armv7-edge.apk
|
||||
"
|
||||
@@ -31,7 +31,7 @@ pkgver=11.2.1_git20220219
|
||||
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
||||
|
||||
pkgname=gcc-aarch64
|
||||
pkgrel=2
|
||||
pkgrel=4
|
||||
pkgdesc="Stage2 cross-compiler for aarch64"
|
||||
url="https://gcc.gnu.org"
|
||||
arch="x86_64"
|
||||
@@ -182,10 +182,15 @@ if $LANG_FORTRAN; then
|
||||
_languages="$_languages,fortran"
|
||||
fi
|
||||
if $LANG_ADA; then
|
||||
subpackages="$subpackages libgnat-static:libgnatstatic:$CTARGET_ARCH libgnat::$CTARGET_ARCH gcc-gnat$_target:gnat"
|
||||
subpackages="$subpackages gcc-gnat$_target:gnat"
|
||||
_languages="$_languages,ada"
|
||||
[ "$CBUILD" = "$CTARGET" ] && makedepends_build="$makedepends_build gcc-gnat-bootstrap"
|
||||
[ "$CBUILD" != "$CTARGET" ] && makedepends_build="$makedepends_build gcc-gnat gcc-gnat$_cross"
|
||||
if [ "$CBUILD" = "$CTARGET" ]; then
|
||||
makedepends_build="$makedepends_build gcc-gnat-bootstrap"
|
||||
subpackages="$subpackages libgnat-static:libgnatstatic:$CTARGET_ARCH libgnat::$CTARGET_ARCH"
|
||||
else
|
||||
subpackages="$subpackages libgnat::$CTARGET_ARCH"
|
||||
makedepends_build="$makedepends_build gcc-gnat gcc-gnat$_cross"
|
||||
fi
|
||||
fi
|
||||
if $LANG_JIT; then
|
||||
subpackages="$subpackages libgccjit:jit libgccjit-dev:jitdev"
|
||||
@@ -435,10 +440,12 @@ package() {
|
||||
mv "$i" "$pkgdir"/usr/lib/
|
||||
ln -s ../../../../${i##*/} $i
|
||||
done
|
||||
for i in $(find "$pkgdir"/$_gcclibdir/adalib/ -type f -maxdepth 1 -name "libgna*.a"); do
|
||||
mv "$i" "$pkgdir"/usr/lib/
|
||||
ln -s ../../../../${i##*/} $i
|
||||
done
|
||||
if [ "$CHOST" = "$CTARGET" ]; then
|
||||
for i in $(find "$pkgdir"/$_gcclibdir/adalib/ -type f -maxdepth 1 -name "libgna*.a"); do
|
||||
mv "$i" "$pkgdir"/usr/lib/
|
||||
ln -s ../../../../${i##*/} $i
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$CHOST" != "$CTARGET" ]; then
|
||||
@@ -593,6 +600,7 @@ gdc() {
|
||||
pkgdesc="GCC-based D language compiler"
|
||||
depends="gcc=$_gccrel libgphobos=$_gccrel musl-dev"
|
||||
depends="$depends libucontext-dev"
|
||||
provides="gcc-gdc-bootstrap=$_gccrel"
|
||||
|
||||
mkdir -p "$subpkgdir/$_gcclibexec" \
|
||||
"$subpkgdir"/$_gcclibdir/include/d/ \
|
||||
@@ -704,7 +712,7 @@ libgnatstatic() {
|
||||
gnat() {
|
||||
pkgdesc="Ada support for GCC"
|
||||
depends="gcc=$_gccrel"
|
||||
provides="$pkgname-gnat-bootstrap"
|
||||
provides="$pkgname-gnat-bootstrap=$_gccrel"
|
||||
[ "$CHOST" = "$CTARGET" ] && depends="$depends libgnat=$_gccrel"
|
||||
|
||||
mkdir -p "$subpkgdir"/$_gcclibexec \
|
||||
|
||||
@@ -31,7 +31,7 @@ pkgver=11.2.1_git20220219
|
||||
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
||||
|
||||
pkgname=gcc-armhf
|
||||
pkgrel=2
|
||||
pkgrel=4
|
||||
pkgdesc="Stage2 cross-compiler for armhf"
|
||||
url="https://gcc.gnu.org"
|
||||
arch="x86_64"
|
||||
@@ -182,10 +182,15 @@ if $LANG_FORTRAN; then
|
||||
_languages="$_languages,fortran"
|
||||
fi
|
||||
if $LANG_ADA; then
|
||||
subpackages="$subpackages libgnat-static:libgnatstatic:$CTARGET_ARCH libgnat::$CTARGET_ARCH gcc-gnat$_target:gnat"
|
||||
subpackages="$subpackages gcc-gnat$_target:gnat"
|
||||
_languages="$_languages,ada"
|
||||
[ "$CBUILD" = "$CTARGET" ] && makedepends_build="$makedepends_build gcc-gnat-bootstrap"
|
||||
[ "$CBUILD" != "$CTARGET" ] && makedepends_build="$makedepends_build gcc-gnat gcc-gnat$_cross"
|
||||
if [ "$CBUILD" = "$CTARGET" ]; then
|
||||
makedepends_build="$makedepends_build gcc-gnat-bootstrap"
|
||||
subpackages="$subpackages libgnat-static:libgnatstatic:$CTARGET_ARCH libgnat::$CTARGET_ARCH"
|
||||
else
|
||||
subpackages="$subpackages libgnat::$CTARGET_ARCH"
|
||||
makedepends_build="$makedepends_build gcc-gnat gcc-gnat$_cross"
|
||||
fi
|
||||
fi
|
||||
if $LANG_JIT; then
|
||||
subpackages="$subpackages libgccjit:jit libgccjit-dev:jitdev"
|
||||
@@ -435,10 +440,12 @@ package() {
|
||||
mv "$i" "$pkgdir"/usr/lib/
|
||||
ln -s ../../../../${i##*/} $i
|
||||
done
|
||||
for i in $(find "$pkgdir"/$_gcclibdir/adalib/ -type f -maxdepth 1 -name "libgna*.a"); do
|
||||
mv "$i" "$pkgdir"/usr/lib/
|
||||
ln -s ../../../../${i##*/} $i
|
||||
done
|
||||
if [ "$CHOST" = "$CTARGET" ]; then
|
||||
for i in $(find "$pkgdir"/$_gcclibdir/adalib/ -type f -maxdepth 1 -name "libgna*.a"); do
|
||||
mv "$i" "$pkgdir"/usr/lib/
|
||||
ln -s ../../../../${i##*/} $i
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$CHOST" != "$CTARGET" ]; then
|
||||
@@ -593,6 +600,7 @@ gdc() {
|
||||
pkgdesc="GCC-based D language compiler"
|
||||
depends="gcc=$_gccrel libgphobos=$_gccrel musl-dev"
|
||||
depends="$depends libucontext-dev"
|
||||
provides="gcc-gdc-bootstrap=$_gccrel"
|
||||
|
||||
mkdir -p "$subpkgdir/$_gcclibexec" \
|
||||
"$subpkgdir"/$_gcclibdir/include/d/ \
|
||||
@@ -704,7 +712,7 @@ libgnatstatic() {
|
||||
gnat() {
|
||||
pkgdesc="Ada support for GCC"
|
||||
depends="gcc=$_gccrel"
|
||||
provides="$pkgname-gnat-bootstrap"
|
||||
provides="$pkgname-gnat-bootstrap=$_gccrel"
|
||||
[ "$CHOST" = "$CTARGET" ] && depends="$depends libgnat=$_gccrel"
|
||||
|
||||
mkdir -p "$subpkgdir"/$_gcclibexec \
|
||||
|
||||
@@ -31,7 +31,7 @@ pkgver=11.2.1_git20220219
|
||||
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
||||
|
||||
pkgname=gcc-armv7
|
||||
pkgrel=2
|
||||
pkgrel=4
|
||||
pkgdesc="Stage2 cross-compiler for armv7"
|
||||
url="https://gcc.gnu.org"
|
||||
arch="x86_64"
|
||||
@@ -182,10 +182,15 @@ if $LANG_FORTRAN; then
|
||||
_languages="$_languages,fortran"
|
||||
fi
|
||||
if $LANG_ADA; then
|
||||
subpackages="$subpackages libgnat-static:libgnatstatic:$CTARGET_ARCH libgnat::$CTARGET_ARCH gcc-gnat$_target:gnat"
|
||||
subpackages="$subpackages gcc-gnat$_target:gnat"
|
||||
_languages="$_languages,ada"
|
||||
[ "$CBUILD" = "$CTARGET" ] && makedepends_build="$makedepends_build gcc-gnat-bootstrap"
|
||||
[ "$CBUILD" != "$CTARGET" ] && makedepends_build="$makedepends_build gcc-gnat gcc-gnat$_cross"
|
||||
if [ "$CBUILD" = "$CTARGET" ]; then
|
||||
makedepends_build="$makedepends_build gcc-gnat-bootstrap"
|
||||
subpackages="$subpackages libgnat-static:libgnatstatic:$CTARGET_ARCH libgnat::$CTARGET_ARCH"
|
||||
else
|
||||
subpackages="$subpackages libgnat::$CTARGET_ARCH"
|
||||
makedepends_build="$makedepends_build gcc-gnat gcc-gnat$_cross"
|
||||
fi
|
||||
fi
|
||||
if $LANG_JIT; then
|
||||
subpackages="$subpackages libgccjit:jit libgccjit-dev:jitdev"
|
||||
@@ -435,10 +440,12 @@ package() {
|
||||
mv "$i" "$pkgdir"/usr/lib/
|
||||
ln -s ../../../../${i##*/} $i
|
||||
done
|
||||
for i in $(find "$pkgdir"/$_gcclibdir/adalib/ -type f -maxdepth 1 -name "libgna*.a"); do
|
||||
mv "$i" "$pkgdir"/usr/lib/
|
||||
ln -s ../../../../${i##*/} $i
|
||||
done
|
||||
if [ "$CHOST" = "$CTARGET" ]; then
|
||||
for i in $(find "$pkgdir"/$_gcclibdir/adalib/ -type f -maxdepth 1 -name "libgna*.a"); do
|
||||
mv "$i" "$pkgdir"/usr/lib/
|
||||
ln -s ../../../../${i##*/} $i
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$CHOST" != "$CTARGET" ]; then
|
||||
@@ -593,6 +600,7 @@ gdc() {
|
||||
pkgdesc="GCC-based D language compiler"
|
||||
depends="gcc=$_gccrel libgphobos=$_gccrel musl-dev"
|
||||
depends="$depends libucontext-dev"
|
||||
provides="gcc-gdc-bootstrap=$_gccrel"
|
||||
|
||||
mkdir -p "$subpkgdir/$_gcclibexec" \
|
||||
"$subpkgdir"/$_gcclibdir/include/d/ \
|
||||
@@ -704,7 +712,7 @@ libgnatstatic() {
|
||||
gnat() {
|
||||
pkgdesc="Ada support for GCC"
|
||||
depends="gcc=$_gccrel"
|
||||
provides="$pkgname-gnat-bootstrap"
|
||||
provides="$pkgname-gnat-bootstrap=$_gccrel"
|
||||
[ "$CHOST" = "$CTARGET" ] && depends="$depends libgnat=$_gccrel"
|
||||
|
||||
mkdir -p "$subpkgdir"/$_gcclibexec \
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
Avoid gcc/reload1.c compile error when building with newer gcc (e.g. gcc 11.2 on Ubuntu 21.10).
|
||||
|
||||
The error was:
|
||||
|
||||
.../esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/reload1.c:89:24: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
|
||||
|
||||
--- gcc-4.8.5/gcc/reload1.c~ 2013-01-21 06:55:05.000000000 -0800
|
||||
+++ gcc-4.8.5/gcc/reload1.c 2022-01-05 17:18:10.148547719 -0800
|
||||
@@ -440,7 +440,7 @@
|
||||
|
||||
while (memory_address_p (QImode, tem))
|
||||
{
|
||||
- spill_indirect_levels++;
|
||||
+ spill_indirect_levels = 1;
|
||||
tem = gen_rtx_MEM (Pmode, tem);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ _cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
|
||||
pkgname=gcc4-aarch64
|
||||
pkgver=9999
|
||||
_pkgver=4.9.2
|
||||
pkgrel=2
|
||||
pkgrel=4
|
||||
pkgdesc="Stage2 cross-compiler for aarch64"
|
||||
url="http://gcc.gnu.org"
|
||||
arch="x86_64"
|
||||
@@ -215,6 +215,8 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
|
||||
hardenednossp.specs
|
||||
hardenednopie.specs
|
||||
hardenednopiessp.specs
|
||||
|
||||
1001-fix-reload1-compile-error.patch
|
||||
"
|
||||
|
||||
# we build out-of-tree
|
||||
@@ -432,7 +434,8 @@ package() {
|
||||
done
|
||||
}
|
||||
|
||||
sha512sums="35a1386ae2b8629cd464383fbb3c61e94a07f3691f48b8029b97cc62a60c792ffb870aad2343b2ad8185bf46f77e1e1dd62309ecdadc42f919874c6e2c58b936 gcc-4.9.2.tar.gz
|
||||
sha512sums="
|
||||
35a1386ae2b8629cd464383fbb3c61e94a07f3691f48b8029b97cc62a60c792ffb870aad2343b2ad8185bf46f77e1e1dd62309ecdadc42f919874c6e2c58b936 gcc-4.9.2.tar.gz
|
||||
28f8c6fdbcb19e950b1d0bafb3bcc7a8cba87bc673aa6027cece116599cdee80f0cf5e95a1440544890239f5c754e8a93ab46d9daedd937faef445d7ea33b226 ecj-4.9.jar
|
||||
618a8d037ccad15e60182acc9c85ba844cb9b5800a22ece0b814e43541b01b4e390a2847f86debb351f4b05580241747fde87e86a17060744e7bb2b9a3dc5bd4 01_all_gcc49_configure.patch
|
||||
21770259c7916e55568027926e4a543eea468b04436cc61c28f749be5a6635c48e68b7924a8eb19a76733a9d2f00921ba06faddaedbf14b1cdad5ab1810cc6c6 02_all_gcc48_config.in.patch
|
||||
@@ -480,4 +483,6 @@ b37195a126476775e2ef16e0adc9173664c514339fb319f628debd8a4133fa53e022278387c68fc2
|
||||
83a0996a48096032bcc674a6d28524f1cd2d81837621ebe4c15b5aedbd551c77ce5576b6307adb673ef0e4ac0431d935ad6a427edca2af5c21b6be9176bfaddb vanilla.specs
|
||||
e4d38905527c500c61c421d782a8ac6ef2b034b15fd81d868486ac330a70922937d3c47e0684e9f3250744569b56a8df199499a4a5c107a6d544dca84458dc12 hardenednossp.specs
|
||||
b56f7c308c5aefd0cfc647abd75939508a6640c53fce7c19da7c7d8ef4405d29b0d88800117fc7ff8d0022b035d511fb6d478e745bb2ed12a1b63f9f8cf3e168 hardenednopie.specs
|
||||
f5ac7282201006548ed2bd835234af64d6f79f13f0b9a3410f5c794537e0ea91601361ae72180f49870b6b0f9af5f16002c86660feb94df346b9b1d9602e9d3a hardenednopiessp.specs"
|
||||
f5ac7282201006548ed2bd835234af64d6f79f13f0b9a3410f5c794537e0ea91601361ae72180f49870b6b0f9af5f16002c86660feb94df346b9b1d9602e9d3a hardenednopiessp.specs
|
||||
6f3d708269cc3f1d28ad9af8cd1206753b7d4ddde6589c303ce201d34b531f1abb73a14032a7f8e16c5ec3041e0c227b3451c09b1952a58893a64a2765d12a00 1001-fix-reload1-compile-error.patch
|
||||
"
|
||||
@@ -0,0 +1,17 @@
|
||||
Avoid gcc/reload1.c compile error when building with newer gcc (e.g. gcc 11.2 on Ubuntu 21.10).
|
||||
|
||||
The error was:
|
||||
|
||||
.../esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/reload1.c:89:24: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
|
||||
|
||||
--- gcc-4.8.5/gcc/reload1.c~ 2013-01-21 06:55:05.000000000 -0800
|
||||
+++ gcc-4.8.5/gcc/reload1.c 2022-01-05 17:18:10.148547719 -0800
|
||||
@@ -440,7 +440,7 @@
|
||||
|
||||
while (memory_address_p (QImode, tem))
|
||||
{
|
||||
- spill_indirect_levels++;
|
||||
+ spill_indirect_levels = 1;
|
||||
tem = gen_rtx_MEM (Pmode, tem);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ _cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
|
||||
pkgname=gcc4-armv7
|
||||
pkgver=9999
|
||||
_pkgver=4.9.2
|
||||
pkgrel=2
|
||||
pkgrel=4
|
||||
pkgdesc="Stage2 cross-compiler for armv7"
|
||||
url="http://gcc.gnu.org"
|
||||
arch="x86_64"
|
||||
@@ -215,6 +215,8 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
|
||||
hardenednossp.specs
|
||||
hardenednopie.specs
|
||||
hardenednopiessp.specs
|
||||
|
||||
1001-fix-reload1-compile-error.patch
|
||||
"
|
||||
|
||||
# we build out-of-tree
|
||||
@@ -432,7 +434,8 @@ package() {
|
||||
done
|
||||
}
|
||||
|
||||
sha512sums="35a1386ae2b8629cd464383fbb3c61e94a07f3691f48b8029b97cc62a60c792ffb870aad2343b2ad8185bf46f77e1e1dd62309ecdadc42f919874c6e2c58b936 gcc-4.9.2.tar.gz
|
||||
sha512sums="
|
||||
35a1386ae2b8629cd464383fbb3c61e94a07f3691f48b8029b97cc62a60c792ffb870aad2343b2ad8185bf46f77e1e1dd62309ecdadc42f919874c6e2c58b936 gcc-4.9.2.tar.gz
|
||||
28f8c6fdbcb19e950b1d0bafb3bcc7a8cba87bc673aa6027cece116599cdee80f0cf5e95a1440544890239f5c754e8a93ab46d9daedd937faef445d7ea33b226 ecj-4.9.jar
|
||||
618a8d037ccad15e60182acc9c85ba844cb9b5800a22ece0b814e43541b01b4e390a2847f86debb351f4b05580241747fde87e86a17060744e7bb2b9a3dc5bd4 01_all_gcc49_configure.patch
|
||||
21770259c7916e55568027926e4a543eea468b04436cc61c28f749be5a6635c48e68b7924a8eb19a76733a9d2f00921ba06faddaedbf14b1cdad5ab1810cc6c6 02_all_gcc48_config.in.patch
|
||||
@@ -480,4 +483,6 @@ b37195a126476775e2ef16e0adc9173664c514339fb319f628debd8a4133fa53e022278387c68fc2
|
||||
83a0996a48096032bcc674a6d28524f1cd2d81837621ebe4c15b5aedbd551c77ce5576b6307adb673ef0e4ac0431d935ad6a427edca2af5c21b6be9176bfaddb vanilla.specs
|
||||
e4d38905527c500c61c421d782a8ac6ef2b034b15fd81d868486ac330a70922937d3c47e0684e9f3250744569b56a8df199499a4a5c107a6d544dca84458dc12 hardenednossp.specs
|
||||
b56f7c308c5aefd0cfc647abd75939508a6640c53fce7c19da7c7d8ef4405d29b0d88800117fc7ff8d0022b035d511fb6d478e745bb2ed12a1b63f9f8cf3e168 hardenednopie.specs
|
||||
f5ac7282201006548ed2bd835234af64d6f79f13f0b9a3410f5c794537e0ea91601361ae72180f49870b6b0f9af5f16002c86660feb94df346b9b1d9602e9d3a hardenednopiessp.specs"
|
||||
f5ac7282201006548ed2bd835234af64d6f79f13f0b9a3410f5c794537e0ea91601361ae72180f49870b6b0f9af5f16002c86660feb94df346b9b1d9602e9d3a hardenednopiessp.specs
|
||||
6f3d708269cc3f1d28ad9af8cd1206753b7d4ddde6589c303ce201d34b531f1abb73a14032a7f8e16c5ec3041e0c227b3451c09b1952a58893a64a2765d12a00 1001-fix-reload1-compile-error.patch
|
||||
"
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
pkgname=grub-efi-x86
|
||||
pkgver=2.06
|
||||
pkgrel=2
|
||||
pkgrel=5
|
||||
|
||||
_arch="x86"
|
||||
_mirror="http://dl-4.alpinelinux.org/alpine/"
|
||||
@@ -22,5 +22,5 @@ package() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ccdc2735380b7af8bc8cc6f4a143f2fa15037488184589fde1b4880883ebda6a722ce49c79e0da1cc4e0b316a4dcbc2b6f79ffa4f2333b826bddbfa4aadf76f1 grub-efi-2.06-r2-x86-edge.apk
|
||||
4470549744730a4911c2e6f9b38012057391cea40de2ee46375aaf826786acdf9e22f33df19b3f7c1fe7ee5cbc5ab2e412f0f6f85ea5513dc63e7f59be22bd5b grub-efi-2.06-r5-x86-edge.apk
|
||||
"
|
||||
@@ -8,7 +8,7 @@ fi
|
||||
|
||||
pkgname=musl-aarch64
|
||||
pkgver=1.2.3
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
arch="x86_64"
|
||||
subpackages="musl-dev-aarch64:package_dev"
|
||||
|
||||
@@ -57,6 +57,6 @@ package_dev() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
a21d0c879f36c42da82c384403bb31a9562521a7a68b965d3fab6fcf133734ee93fccc6dc5131b99c54c7eb6fbe4329829b915bb801e6ac602d4091617ac03ed musl-1.2.3-r0-aarch64-edge.apk
|
||||
a5742520f5a8aaf3fea931697126b777fed7a58d08be64e30e5ea2dfde571d7b317e40f4fea31979325d9c1d407c18a46cb354483aa906dae08301e563db5f4f musl-dev-1.2.3-r0-aarch64-edge.apk
|
||||
5e64669b00a77b19bb5e2a6a801950fff73a0c394734590ed2c3840905ac45faa9af9a21f186380d848ce713a000e93ef516f47fb5da54704e9313c9b62ed06d musl-1.2.3-r1-aarch64-edge.apk
|
||||
51a515fab0e244373b62b572c67460f31e20d4b22db125dabc17b24e9bfbd1c87901f8d44a55d36d208a9a8650ebbb59995f8715e2c8ca90b531e0d74852ff8b musl-dev-1.2.3-r1-aarch64-edge.apk
|
||||
"
|
||||
@@ -8,7 +8,7 @@ fi
|
||||
|
||||
pkgname=musl-armhf
|
||||
pkgver=1.2.3
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
arch="x86_64"
|
||||
subpackages="musl-dev-armhf:package_dev"
|
||||
|
||||
@@ -57,6 +57,6 @@ package_dev() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
20724b1bad5b986e5644799b2b9c0ae2699c25506be72fc28a68fbe9215054b752a9972a556a0f93356452ab12cece77e89b4cfa63310d08cb2f749b35e1acfc musl-1.2.3-r0-armhf-edge.apk
|
||||
fb05d24e7c90b41c04bbdb6499d35e376931b4e13491031631bade0c1b3b596f678c813e872438fda33ff7300c40bc1235f0145bff1b5a32ee2aba0f8c575925 musl-dev-1.2.3-r0-armhf-edge.apk
|
||||
ca5c7fc6c32375066b2be07474fafc06b6e975e8f9ecef9945ae32e5560a19e10be52643536a769db001c357d890d50888a3ec58336d659f5a328e35ef46e15d musl-1.2.3-r1-armhf-edge.apk
|
||||
ae04dd543ff95e90915c9bb857b30a4f6ec9472fcbd679b047aeab6f62a10d79b8ae0bf6bd640d1ce5ebfe56dea5256889fcf6ae8727820358490120e1abddb5 musl-dev-1.2.3-r1-armhf-edge.apk
|
||||
"
|
||||
@@ -8,7 +8,7 @@ fi
|
||||
|
||||
pkgname=musl-armv7
|
||||
pkgver=1.2.3
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
arch="x86_64"
|
||||
subpackages="musl-dev-armv7:package_dev"
|
||||
|
||||
@@ -57,6 +57,6 @@ package_dev() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
88b034bc37d800e0f279437a1a1a5973e994873ab0e44d372ac6cd49c999d6c1f834266d646fb17777d9a018a9bfd0cc9346d7525d1726ffe96cc56096d70281 musl-1.2.3-r0-armv7-edge.apk
|
||||
c865bde907a17accf33a4cd7b8caad496c510b3227d8cf5e12a597613df7a629778eb08a32692e67bfead3422a2add2833e4e49df1e970d2067c2f65a372dc46 musl-dev-1.2.3-r0-armv7-edge.apk
|
||||
040d2317fbd50d5285d6bcff405f0bc628c4f2420c4d6c593deedc4aea9154bdb031bff50c2cae29af3bb557bff927970ab111efd51b420b599bdde52bb94241 musl-1.2.3-r1-armv7-edge.apk
|
||||
69dff18d36e35ce245c672bd7212d881eaed457f70a6424f1637315181b7d6b832b140a6f469018c947a9bcee1b2e632305ac8ec0facf595dfdf7009790c6646 musl-dev-1.2.3-r1-armv7-edge.apk
|
||||
"
|
||||
@@ -0,0 +1,44 @@
|
||||
From 9d2231c5d74e13b2a0546fee6737ee4446017903 Mon Sep 17 00:00:00 2001
|
||||
From: Max Kellermann <max.kellermann@ionos.com>
|
||||
Date: Mon, 21 Feb 2022 11:03:13 +0100
|
||||
Subject: lib/iov_iter: initialize "flags" in new pipe_buffer
|
||||
|
||||
The functions copy_page_to_iter_pipe() and push_pipe() can both
|
||||
allocate a new pipe_buffer, but the "flags" member initializer is
|
||||
missing.
|
||||
|
||||
Fixes: 241699cd72a8 ("new iov_iter flavour: pipe-backed")
|
||||
To: Alexander Viro <viro@zeniv.linux.org.uk>
|
||||
To: linux-fsdevel@vger.kernel.org
|
||||
To: linux-kernel@vger.kernel.org
|
||||
Cc: stable@vger.kernel.org
|
||||
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
|
||||
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
|
||||
---
|
||||
lib/iov_iter.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/lib/iov_iter.c b/lib/iov_iter.c
|
||||
index b0e0acdf96c15..6dd5330f7a995 100644
|
||||
--- a/lib/iov_iter.c
|
||||
+++ b/lib/iov_iter.c
|
||||
@@ -414,6 +414,7 @@ static size_t copy_page_to_iter_pipe(struct page *page, size_t offset, size_t by
|
||||
return 0;
|
||||
|
||||
buf->ops = &page_cache_pipe_buf_ops;
|
||||
+ buf->flags = 0;
|
||||
get_page(page);
|
||||
buf->page = page;
|
||||
buf->offset = offset;
|
||||
@@ -577,6 +578,7 @@ static size_t push_pipe(struct iov_iter *i, size_t size,
|
||||
break;
|
||||
|
||||
buf->ops = &default_pipe_buf_ops;
|
||||
+ buf->flags = 0;
|
||||
buf->page = page;
|
||||
buf->offset = 0;
|
||||
buf->len = min_t(ssize_t, left, PAGE_SIZE);
|
||||
--
|
||||
cgit
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
sprdfb_check_var() has two problems:
|
||||
I) it is not buffering-aware, which all Spreadtrum devices use;
|
||||
II) it checks values that are already in yres_virtual, not those that we
|
||||
are trying to overwrite.
|
||||
Those problems stop X11 and charging-sdl from working properly.
|
||||
X11 error:
|
||||
(EE) FBDEV(0): FBIOPUT_VSCREENINFO: Invalid argument
|
||||
This patch fixes first problem, however, the correct way is fixing
|
||||
the second one, as this might have less side effects.
|
||||
|
||||
diff --git a/drivers/video/sprdfb/sprdfb_main.c b/drivers/video/sprdfb/sprdfb_main.c
|
||||
index 43876285..751616a1 100644
|
||||
--- a/drivers/video/sprdfb/sprdfb_main.c
|
||||
+++ b/drivers/video/sprdfb/sprdfb_main.c
|
||||
@@ -531,7 +531,8 @@ static int sprdfb_check_var(struct fb_var_screeninfo *var, struct fb_info *fb)
|
||||
if ((var->xres != fb->var.xres) ||
|
||||
(var->yres != fb->var.yres) ||
|
||||
(var->xres_virtual != fb->var.xres_virtual) ||
|
||||
- (var->yres_virtual != fb->var.yres_virtual) ||
|
||||
+ // (var->yres_virtual != fb->var.yres_virtual) ||
|
||||
+ (fb->var.yres_virtual % var->yres_virtual != 0) ||
|
||||
(var->xoffset != fb->var.xoffset) ||
|
||||
#ifndef BIT_PER_PIXEL_SURPPORT
|
||||
(var->bits_per_pixel != fb->var.bits_per_pixel) ||
|
||||
@@ -0,0 +1,15 @@
|
||||
By default, color channels on Spreadtrum devices are swapped. This patch makes kernel use BGR565, which has normal color channels.
|
||||
|
||||
diff --git a/drivers/video/sprdfb/sprdfb_main.c b/drivers/video/sprdfb/sprdfb_main.c
|
||||
index 3e6c70d..80fceb9 100644
|
||||
--- a/drivers/video/sprdfb/sprdfb_main.c
|
||||
+++ b/drivers/video/sprdfb/sprdfb_main.c
|
||||
@@ -51,7 +51,7 @@ enum{
|
||||
SPRD_IN_DATA_TYPE_LIMIT
|
||||
};
|
||||
|
||||
-#define SPRDFB_IN_DATA_TYPE SPRD_IN_DATA_TYPE_ABGR888
|
||||
+#define SPRDFB_IN_DATA_TYPE SPRD_IN_DATA_TYPE_BGR565
|
||||
|
||||
#ifdef CONFIG_FB_TRIPLE_FRAMEBUFFER
|
||||
#define FRAMEBUFFER_NR (3)
|
||||
@@ -2,8 +2,8 @@
|
||||
# Maintainer: Minecrell <minecrell@minecrell.net>
|
||||
pkgname=device-asus-me176c
|
||||
pkgdesc="ASUS MeMO Pad 7 (ME176C(X))"
|
||||
pkgver=3
|
||||
pkgrel=4
|
||||
pkgver=5
|
||||
pkgrel=0
|
||||
_commit=3155254999ac36c3051a2118c415de25a072c0f6
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
@@ -16,7 +16,6 @@ depends="
|
||||
intel-ucode
|
||||
linux-asus-me176c
|
||||
mesa-dri-classic
|
||||
mesa-vulkan-intel
|
||||
postmarketos-base
|
||||
"
|
||||
makedepends="devicepkg-dev meson eudev-dev"
|
||||
@@ -24,7 +23,13 @@ source="https://github.com/me176c-dev/linux-me176c/archive/$_commit.tar.gz
|
||||
deviceinfo
|
||||
phoc.ini
|
||||
"
|
||||
subpackages="$pkgname-factory $pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh"
|
||||
subpackages="
|
||||
$pkgname-factory
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
$pkgname-phosh
|
||||
$pkgname-vulkan
|
||||
$pkgname-libva
|
||||
"
|
||||
builddir="$srcdir/linux-me176c-$_commit"
|
||||
|
||||
build() {
|
||||
@@ -60,8 +65,20 @@ phosh() {
|
||||
"$subpkgdir"/etc/phosh/phoc.ini
|
||||
}
|
||||
|
||||
vulkan() {
|
||||
install_if="$pkgname vulkan-loader"
|
||||
depends="mesa-vulkan-intel"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
libva() {
|
||||
install_if="$pkgname libva"
|
||||
depends="libva-intel-driver"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
75243e3d0bc9a352465683ec8cf8b83566e4131bb7fae0f388267a62bdbf4691c955ed034b30df550f921b771080688123ae8db144b72f786bf1677ef1d83f57 3155254999ac36c3051a2118c415de25a072c0f6.tar.gz
|
||||
8dfeb1d928aa3ac94e9015d4b98713ec4d56eab68a7aee8cb7ce6a877b3d015670800bae456190ae57bcb35047738de5559460f2f7b785987f1394b605119ae5 deviceinfo
|
||||
a60d1785f0163d4a4eb63ea5e3017631aab7dd6683baad6a74b09809d33888d581ca8b14526c19d18234dcf727d1fdb4ff0489ed4bd5523905d0e4da7d93bc56 phoc.ini
|
||||
c8bb189b08035e647e07dec120a6e166d871c17a227987387228c8bf6ff264e029f950c69bb560d3062cee0e27e4fb93449523592558108690a82c6d40931de1 deviceinfo
|
||||
3823556d741a352fc7f43567d7218255a27c45c2c5d4d4bdf23f4d26ce2828c5a1c642519b84fef7f59756c990e6a199d72e6ba0c277939b08a40526c3ff3714 phoc.ini
|
||||
"
|
||||
@@ -6,7 +6,7 @@ deviceinfo_name="ASUS MeMO Pad 7 (ME176C(X))"
|
||||
deviceinfo_codename="asus-me176c"
|
||||
deviceinfo_manufacturer="ASUS"
|
||||
deviceinfo_year="2014"
|
||||
deviceinfo_modules_initfs="vfat nls_cp437 nls_iso8859_1 nls_utf8 goodix"
|
||||
deviceinfo_modules_initfs="goodix"
|
||||
deviceinfo_arch="x86_64"
|
||||
|
||||
# Device related
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[cursor:seat0]
|
||||
map-to-output:DSI-1
|
||||
map-to-output = DSI-1
|
||||
|
||||
[output:DSI-1]
|
||||
scale = 1.75
|
||||
@@ -1,10 +1,9 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Jonathan Albrieux <jonathan.albrieux@gmail.com>
|
||||
# Co-Maintainer: Minecrell <minecrell@minecrell.net>
|
||||
# Maintainer: Minecrell <minecrell@minecrell.net>
|
||||
pkgname=device-bq-paella
|
||||
pkgdesc="BQ Aquaris X5"
|
||||
pkgver=6
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
# Co-Maintainer: Minecrell <minecrell@minecrell.net>
|
||||
pkgname=device-lenovo-a6000
|
||||
pkgdesc="Lenovo A6000"
|
||||
pkgver=5
|
||||
pkgrel=2
|
||||
pkgver=6
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
@@ -47,5 +47,5 @@ phosh() {
|
||||
|
||||
sha512sums="
|
||||
c860b43edd7dcc2b10a7ee1dc8b2b7e225c469db6f7d45231b78e4e8a76bbe242b65e40488dcae2503ecdc407844eee50964db7b8d3a392a8f3f064afe690b99 deviceinfo
|
||||
cd1402fcd7133c9364de8bd4e32f0d9e890f35d5d57fe92bd65736e23df1af428f091c9e5275fced111a6887ef562c46c5c19157b84a63955f8a1805b04d9951 phoc.ini
|
||||
10d4ee62e5f7a9e4c368c460dd4c3ef282476e47d8cc40e4e3b83e971d04c493b801e5628ebdfe721f869e2fd68c521cf192cba1a973c8e03a61445534a28811 phoc.ini
|
||||
"
|
||||
@@ -1,5 +1,5 @@
|
||||
[cursor:seat0]
|
||||
map-to-output:DSI-1
|
||||
map-to-output = DSI-1
|
||||
|
||||
[output:DSI-1]
|
||||
scale = 1.8
|
||||
@@ -3,8 +3,8 @@
|
||||
# Co-Maintainer: Minecrell <minecrell@minecrell.net>
|
||||
pkgname=device-lenovo-a6010
|
||||
pkgdesc="Lenovo A6010"
|
||||
pkgver=5
|
||||
pkgrel=2
|
||||
pkgver=6
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
@@ -47,5 +47,5 @@ phosh() {
|
||||
|
||||
sha512sums="
|
||||
f5971257def301439b3786dada60333ad34b15b2221a296698cff7a0a8f7c5c6a54547c91bb024a883fe8f4f5f0b2926c044acc24e240ce1caeaf77697caad75 deviceinfo
|
||||
cd1402fcd7133c9364de8bd4e32f0d9e890f35d5d57fe92bd65736e23df1af428f091c9e5275fced111a6887ef562c46c5c19157b84a63955f8a1805b04d9951 phoc.ini
|
||||
10d4ee62e5f7a9e4c368c460dd4c3ef282476e47d8cc40e4e3b83e971d04c493b801e5628ebdfe721f869e2fd68c521cf192cba1a973c8e03a61445534a28811 phoc.ini
|
||||
"
|
||||
@@ -1,5 +1,5 @@
|
||||
[cursor:seat0]
|
||||
map-to-output:DSI-1
|
||||
map-to-output = DSI-1
|
||||
|
||||
[output:DSI-1]
|
||||
scale = 1.8
|
||||
@@ -1,10 +1,9 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Sicelo <absicsz@gmail.com>
|
||||
# Co-Maintainer: Martijn Braam <martijn@brixit.nl>
|
||||
# Co-Maintainer: Danct12 <danct12@disroot.org>
|
||||
pkgname=device-nokia-n900
|
||||
pkgver=8
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Nokia N900"
|
||||
url="https://postmarketos.org"
|
||||
arch="armv7"
|
||||
@@ -13,7 +12,6 @@ depends="postmarketos-base linux-nokia-n900 u-boot-tools kbd kbd-bkeymaps ofono
|
||||
makedepends="devicepkg-dev u-boot-tools kbd kbd-bkeymaps"
|
||||
install="$pkgname.post-install"
|
||||
subpackages="
|
||||
$pkgname-weston
|
||||
$pkgname-x11
|
||||
$pkgname-i3wm
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
@@ -34,7 +32,6 @@ source="
|
||||
pointercal
|
||||
asound.state.speakers
|
||||
asound.state.headset
|
||||
weston.ini
|
||||
i3wm/scripts/battery-bq27200
|
||||
i3wm/scripts/ofono
|
||||
i3wm/scripts/calendar
|
||||
@@ -114,12 +111,6 @@ package() {
|
||||
"$pkgdir"/usr/share/bkeymaps/se/rx51_se.bmap.gz
|
||||
}
|
||||
|
||||
weston() {
|
||||
install_if="$pkgname weston"
|
||||
install -Dm644 "$srcdir"/weston.ini \
|
||||
"$subpkgdir"/etc/xdg/weston/weston.ini
|
||||
}
|
||||
|
||||
x11() {
|
||||
install_if="$pkgname xorg-server"
|
||||
install -D -m644 "$srcdir"/40-xkb.conf \
|
||||
@@ -173,7 +164,6 @@ dc585e11bf4e06e36c5c62bcc024eaacecc30437d9da5257df14be05e247a2f2bc208874be3058ed
|
||||
143c21f0b18a016d37cb44178e9daea09f128a90769b48353c03c3f245cb9b1f7e773b9ccee084973fc78ddd7a18c2642e54888a85bda7c7daecddc9a8c62eff pointercal
|
||||
67acc17a33bc75113300393b4a5bba15319014032407e774d079abf310368e75f4f697dbb4856ba2d2d8ea184b056bb33561f42918de3ee91ab6a77df89a133c asound.state.speakers
|
||||
5b87071834313a389f83d29f86f6e3ea108d0921f17dc918be7a46de7e74c73a4418044ef600a0fbf72c8fad22b7730dcd5bfe3d6d01d76bf01556f8540f0b32 asound.state.headset
|
||||
7f48d1a044f8c02f7b1d11487ec1f83978d9b0ea12529156e7418f82be556d9baee32b70c4d911174e388bb4941dc19519e93e7551d00ffcd825c848665ff096 weston.ini
|
||||
2ae4771eda9b151de3b47dc4e3081eb86b92fc04c4be4b4fbb98c28016762d24008e935bbba8f95ea0732019f615ee43f5d93dacb21bdc3471e505a07a684e26 battery-bq27200
|
||||
82038d38f94cb975a8d38914afca49b64957446bef7490ab684efa1df47ede2ea1c769045789bb9fded673345eea01911fbbf85fdb54c28685cad8022bfaafac ofono
|
||||
d9ef88c714e9fce8822f63b7a9d7fc3e1ed472c8c876b44ba524d44efea322839f13ddd2fa652420608427ecf7279bfaac302c9b67667f32796ca21da332164d calendar
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
[core]
|
||||
xwayland=true
|
||||
backend=fbdev-backend.so
|
||||
[Keyboard]
|
||||
keymap_rules=evdev
|
||||
keymap_model=nokiarx51
|
||||
[shell]
|
||||
background-image=/usr/share/wallpapers/postmarketos.jpg
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
pkgname=device-odroid-hc2
|
||||
pkgdesc="ODROID HC2"
|
||||
pkgver=0.5
|
||||
pkgver=0.6
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
@@ -40,8 +40,8 @@ package() {
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="U-Boot and Realtek firmware, required for a bootable system"
|
||||
depends="firmware-odroid-hc2 linux-firmware-rtl_nic"
|
||||
pkgdesc="U-Boot, Samsung JPEG encoder, and Realtek firmware, required for a bootable system"
|
||||
depends="firmware-odroid-hc2 linux-firmware-rtl_nic linux-firmware-other"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
pkgname=device-oneplus-enchilada
|
||||
pkgdesc="OnePlus 6"
|
||||
pkgver=5
|
||||
pkgver=7
|
||||
pkgrel=1
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
@@ -16,6 +16,7 @@ depends="
|
||||
postmarketos-update-kernel
|
||||
soc-qcom-sdm845
|
||||
soc-qcom-sdm845-ucm
|
||||
soc-qcom-sdm845-qbootctl
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="
|
||||
@@ -48,7 +49,7 @@ phosh() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
009e1cfc0ae2823bb82dbc39a1b9c1199e0e7691f0e95a6423bbfe941e07486297e0aad295f2ea44d43ed51b1440bf8e6a67867d0c1a6aad653399afbd006c1d deviceinfo
|
||||
9b0603ceef02ec632ff333167b252743cc5461ae371b656a6468addf22d43ec10010d9348caebc9c21e2cdafb95af7bf6266ad405ac245779a325154d404bfde deviceinfo
|
||||
65f74d29ab318b23f7ac8923a3661f2c4130049273a8c6be234ed2c8e00810b6a1254b54cf0932e42850a6d48f821dcd038900fbb836feeddfab2759afffae38 phoc.ini
|
||||
7f599f086dba97ac39ce98798969bc8e9c26dd3b062bb8f95852182df52814b70d49b701e27b43abeb3639b16ba053e416c14cf75e0bf4a9f2fe7c01fb0ac41c q6voiced.conf
|
||||
"
|
||||
@@ -39,5 +39,5 @@ deviceinfo_flash_kernel_on_update="true"
|
||||
deviceinfo_rootfs_image_sector_size="4096"
|
||||
|
||||
# osk-sdl
|
||||
deviceinfo_modules_initfs="i2c_qcom_geni rmi_core rmi_i2c qcom_spmi_fg qcom_spmi_haptics"
|
||||
deviceinfo_modules_initfs="i2c_qcom_geni rmi_core rmi_i2c qcom_fg qcom_pmi8998_charger bq27xxx_battery bq27xxx_battery_i2c qcom_spmi_haptics"
|
||||
deviceinfo_mesa_driver="msm"
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
pkgname=device-oneplus-fajita
|
||||
pkgdesc="OnePlus 6T"
|
||||
pkgver=5
|
||||
pkgver=7
|
||||
pkgrel=1
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
@@ -16,6 +16,7 @@ depends="
|
||||
postmarketos-update-kernel
|
||||
soc-qcom-sdm845
|
||||
soc-qcom-sdm845-ucm
|
||||
soc-qcom-sdm845-qbootctl
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo phoc.ini"
|
||||
@@ -42,6 +43,6 @@ phosh() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
cd8b94751890fd8891e5eafbc4f668a068885d184ad9b93366c882cfafa798e4bc77fa548532796a278b5acdf15dbf1110a1a581823567deaa00b90a72796959 deviceinfo
|
||||
8561a33c0e7d5085186258a71d2fc44daa01b24d05781d53be87222b462059fee26baa2e004e799404606429629e56baad3778d74d1f725cec389f572c92155e deviceinfo
|
||||
65f74d29ab318b23f7ac8923a3661f2c4130049273a8c6be234ed2c8e00810b6a1254b54cf0932e42850a6d48f821dcd038900fbb836feeddfab2759afffae38 phoc.ini
|
||||
"
|
||||
@@ -39,5 +39,5 @@ deviceinfo_flash_kernel_on_update="true"
|
||||
deviceinfo_rootfs_image_sector_size="4096"
|
||||
|
||||
# osk-sdl
|
||||
deviceinfo_modules_initfs="i2c_qcom_geni rmi_core rmi_i2c qcom_spmi_fg qcom_spmi_haptics"
|
||||
deviceinfo_modules_initfs="i2c_qcom_geni rmi_core rmi_i2c qcom_fg qcom_pmi8998_charger bq27xxx_battery bq27xxx_battery_i2c qcom_spmi_haptics"
|
||||
deviceinfo_mesa_driver="msm"
|
||||
@@ -2,14 +2,14 @@
|
||||
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
||||
pkgname=device-pine64-pinebookpro
|
||||
pkgdesc="PINE64 Pinebook Pro"
|
||||
pkgver=9
|
||||
pkgrel=2
|
||||
pkgver=10
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
alsa-ucm-conf
|
||||
alsa-ucm-conf>=1.2.7
|
||||
linux-postmarketos-rockchip>=5.14
|
||||
mesa-dri-gallium
|
||||
nvme-cli
|
||||
@@ -27,8 +27,6 @@ source="
|
||||
70-edp-backlight.rules
|
||||
mem_sleep.conf
|
||||
nvme-powersave.initd
|
||||
ucm/rockchip,es8316-codec.conf
|
||||
ucm/HiFi
|
||||
wlan-powersave-off.start
|
||||
"
|
||||
|
||||
@@ -49,11 +47,6 @@ package() {
|
||||
install -D -m644 "$srcdir"/mem_sleep.conf \
|
||||
"$pkgdir"/etc/sysfs.d/mem_sleep.conf
|
||||
|
||||
# Alsa usecase manager config
|
||||
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/conf.d/simple-card \
|
||||
"$srcdir"/rockchip,es8316-codec.conf \
|
||||
"$srcdir"/HiFi
|
||||
|
||||
install -D -m755 "$srcdir"/nvme-powersave.initd \
|
||||
"$pkgdir"/etc/init.d/nvme-powersave
|
||||
|
||||
@@ -76,7 +69,5 @@ d3988fe83c54228d743f4a8c190e9530404a436a7fbc0b004bf20d3986b502d864717d8cc9c76812
|
||||
6e9e9ef54ee9aa9491be6dc30451fdcd9038b0efeb959509f48626d97a1696ee81711a46510049557b73269ff48acc85fad6496c65451e2e24908241b7655444 70-edp-backlight.rules
|
||||
bcae155e24a151d3c098833680b83b6004a329962f115480d560ebe19257eab87286b8a4c194e456c067ca54fb53e59a5a16b022cea13c11135b0855145db563 mem_sleep.conf
|
||||
2abfa31fa56028339efc6d2b6cb838f310990d7110ac4dd996bc4cfcf90f0a8770e70f28f77f7b6929d110e494bc33731302f16b9717729f991c2732be0731d5 nvme-powersave.initd
|
||||
71a3ea790eedd02df2bcf2ba24cc41b376ad0a8a7d72b1ee2dd7a0f9d618243d214157046649583f790b388d8faef5a03fcd4306ff4a3319e418bb895be831bc rockchip,es8316-codec.conf
|
||||
558f08b56425e0ceeea8d4815eeb862a2b801ba1b26b4dc28f4d0ec991ed9dfef14113172a224191eb2de5d0b57a741e4c48f1307bda2a69595944bd58731be1 HiFi
|
||||
0fd7580e197e409978c219726af627cabe347404ee826e32892b61f3da1775b0fd81f8ed5e9a0f0bfaad87faa434d7a73ddaebf475ed0ad8fdcef6690cd692d3 wlan-powersave-off.start
|
||||
"
|
||||
@@ -1,61 +0,0 @@
|
||||
SectionVerb {
|
||||
EnableSequence [
|
||||
cset "name='Headphone Playback Volume' 0"
|
||||
cset "name='Headphone Mixer Volume' 100%"
|
||||
cset "name='DAC Playback Volume' 100%"
|
||||
cset "name='DAC Source Mux' LDATA TO LDAT, RDATA TO RDAC"
|
||||
cset "name='Left Headphone Mixer Left DAC Switch' on"
|
||||
cset "name='Left Headphone Mixer LLIN Switch' off"
|
||||
cset "name='Right Headphone Mixer Right DAC Switch' on"
|
||||
cset "name='Right Headphone Mixer RLIN Switch' off"
|
||||
]
|
||||
DisableSequence [
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPCM "hw:${CardId},0"
|
||||
CapturePCM "hw:${CardId},0"
|
||||
}
|
||||
}
|
||||
|
||||
SectionDevice."Speaker" {
|
||||
Comment "Internal speaker"
|
||||
EnableSequence [
|
||||
cset "name='Headphone Playback Volume' 0"
|
||||
cset "name='Headphone Mixer Volume' 100%"
|
||||
cset "name='Speaker Switch' on"
|
||||
]
|
||||
DisableSequence [
|
||||
cset "name='Speaker Switch' off"
|
||||
]
|
||||
Value {
|
||||
PlaybackVolume "DAC Playback Volume"
|
||||
PlaybackSwitch "Speaker Switch"
|
||||
PlaybackChannels 2
|
||||
PlaybackPriority 300
|
||||
PlaybackPCM "hw:${CardId},0"
|
||||
}
|
||||
ConflictingDevice [
|
||||
"Headphones"
|
||||
]
|
||||
}
|
||||
SectionDevice."Headphones" {
|
||||
Comment "Headset"
|
||||
EnableSequence [
|
||||
cset "name='Headphone Playback Volume' 50%"
|
||||
cset "name='Headphone Mixer Volume' 100%"
|
||||
cset "name='Speaker Switch' off"
|
||||
]
|
||||
DisableSequence [
|
||||
]
|
||||
Value {
|
||||
PlaybackVolume "DAC Playback Volume"
|
||||
PlaybackChannels 2
|
||||
PlaybackPriority 500
|
||||
PlaybackPCM "hw:${CardId},0"
|
||||
JackControl "Headphones Jack"
|
||||
}
|
||||
ConflictingDevice [
|
||||
"Speaker"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
SUBSYSTEMS=="usb", ENV{.LOCAL_ifNum}="$attr{bInterfaceNumber}"
|
||||
|
||||
SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="01", SYMLINK+="EG25.NMEA", MODE="0660"
|
||||
SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="02", SYMLINK+="EG25.AT", MODE="0660"
|
||||
SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="03", SYMLINK+="EG25.MODEM", MODE="0660"
|
||||
|
||||
ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="02", RUN+="/usr/bin/pinephone_setup-modem '%E{DEVNAME}'"
|
||||
|
||||
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTRS{serial}=="0123456789ABCDEF", ATTR{power/persist}="1", ATTR{power/control}="on"
|
||||
|
||||
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTRS{serial}=="community_fw", ATTR{power/persist}="1", ATTR{power/control}="on"
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Martijn Braam <martijn@brixit.nl>
|
||||
pkgname=device-pine64-pinephonepro
|
||||
pkgdesc="PINE64 PinePhone Pro"
|
||||
pkgver=3.2
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
# pmb:strict is required for grub
|
||||
options="!check !archcheck pmb:strict"
|
||||
depends="
|
||||
alsa-ucm-conf>=1.2.6.2
|
||||
eg25-manager>=0.4.2
|
||||
linux-pine64-pinephonepro
|
||||
mesa-dri-gallium
|
||||
postmarketos-base
|
||||
fwupd
|
||||
fwupd-plugin-modem_manager
|
||||
fwupd-plugin-fastboot
|
||||
"
|
||||
makedepends="
|
||||
devicepkg-dev
|
||||
grub
|
||||
grub-efi
|
||||
"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
install="
|
||||
$pkgname.post-install
|
||||
$pkgname.post-upgrade
|
||||
"
|
||||
source="
|
||||
90-modem-eg25.rules
|
||||
deviceinfo
|
||||
grub.cfg
|
||||
grub_early.cfg
|
||||
ucm/HiFi.conf
|
||||
ucm/PINE64-PinePhonePro-.conf
|
||||
ucm/VoiceCall.conf
|
||||
ppkb.sh
|
||||
setup-modem.sh
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
|
||||
grub-mkimage \
|
||||
--config="$srcdir/grub_early.cfg" \
|
||||
--prefix="" \
|
||||
--output="bootaa64.efi" \
|
||||
--format="arm64-efi" \
|
||||
--compression="xz" \
|
||||
\
|
||||
all_video \
|
||||
cat \
|
||||
configfile \
|
||||
disk \
|
||||
echo \
|
||||
efi_gop \
|
||||
fat \
|
||||
gzio \
|
||||
help \
|
||||
iso9660 \
|
||||
linux \
|
||||
ls \
|
||||
normal \
|
||||
part_gpt \
|
||||
part_msdos \
|
||||
search \
|
||||
search_label \
|
||||
test \
|
||||
true
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
|
||||
# Grub / bootloader
|
||||
install -Dm644 -t "$pkgdir"/boot/grub \
|
||||
"$srcdir"/grub.cfg
|
||||
install -Dm644 -t "$pkgdir"/boot/EFI/Boot \
|
||||
"$srcdir"/bootaa64.efi
|
||||
|
||||
# Alsa usecase manager config
|
||||
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/PinePhonePro \
|
||||
"$srcdir"/HiFi.conf \
|
||||
"$srcdir"/PINE64-PinePhonePro-.conf \
|
||||
"$srcdir"/VoiceCall.conf
|
||||
mkdir -p "$pkgdir"/usr/share/alsa/ucm2/conf.d/simple-card
|
||||
ln -s /usr/share/alsa/ucm2/PinePhonePro/PINE64-PinePhonePro-.conf \
|
||||
"$pkgdir"/usr/share/alsa/ucm2/conf.d/simple-card/PINE64-PinePhonePro-.conf
|
||||
|
||||
# Modem
|
||||
install -Dm755 "$srcdir"/setup-modem.sh \
|
||||
"$pkgdir"/usr/bin/pinephone_setup-modem
|
||||
install -Dm644 "$srcdir"/90-modem-eg25.rules -t \
|
||||
"$pkgdir"/usr/lib/udev/rules.d/
|
||||
|
||||
# Keyboard config
|
||||
install -Dm755 "$srcdir"/ppkb.sh "$pkgdir"/etc/profile.d/ppkb.sh
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="Wifi, Bluetooth and video-out firmware"
|
||||
depends="
|
||||
firmware-pine64-pinebookpro
|
||||
linux-firmware-brcm
|
||||
linux-firmware-rockchip
|
||||
"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
fdfa807c0de33aee3deb09ee25c37a58fa970ce71483e52f21793717cb89adeb74f251ff1a2c2086361e3e58877f8b2e5643f24186b1a537acf9c16e3419313c 90-modem-eg25.rules
|
||||
e591572d0bfc4d7d990fcc15bc82e78e60404becf62a38283b4ceee6f49a812b63eebbc5c304907330e33dce5f023edba26c9b86f1375affa3cf6b49fbd06539 deviceinfo
|
||||
eeddbd3712c7385ef8daea252d71f9f91f8be03be43dea4ce036ae7d7b8a38d199a709ae87b9aa8fe8a63f0201224dbda704fd4b95c8c7d3b4f9852ae4e95c11 grub.cfg
|
||||
0f9357d4eea089628fbceb1e3e96d21a3f4329aeb6743158a6f877f967ef274506404eba949d5f01b7e1adea149f9a3aef992a5e8cd4181f93ab00909b1c5ecd grub_early.cfg
|
||||
1684514a6b814a83473e9da8855fd776cf3f31a2be1f8834c370f710428b4ee305559e275be52894d167ccd1e32f8f1c8586f8a072f19e44b46caec9f504d453 HiFi.conf
|
||||
9c6edbe7ea387baf9bfa6c4a46b28c4fe274ab0994e0a1640012048407e6679c437de43cc50e6778c9a852132eaa680de3fd4e0256d36455d1dd57aa729ac8be PINE64-PinePhonePro-.conf
|
||||
deb360baf914e1c917403d5e26291b9e9d27426876232ab753e4ebfe367423206f1fc01b85d195aa69fb4b51bcaed023423d0fcc0d73fa1bedd5fbe7b17f0fb5 VoiceCall.conf
|
||||
43f67e94491791685cdbb4874bb3034b1d297bdf3d23e7405c45ba8c58de72b4fb6a9943b79f46ef7b8f4dbc4d9db254ebec8eb3453d720a5a8fad277c6a9d88 ppkb.sh
|
||||
420ee1d7522d4d56c2909580fd6ba7580483ca5455b13eb6d22e700063ce0c1a5c6d2f5b161dfce0d777636fe9a712aa82f38a0585f2feabea3785b02bae7515 setup-modem.sh
|
||||
"
|
||||
File renamed without changes.
File renamed without changes.
+2
-2
@@ -6,7 +6,7 @@ deviceinfo_name="PINE64 PinePhone Pro"
|
||||
deviceinfo_manufacturer="PINE64"
|
||||
deviceinfo_codename="pine64-pinephonepro"
|
||||
deviceinfo_year="2021"
|
||||
deviceinfo_modules_initfs="gpu_sched dw_wdt fusb302 panel_himax_hx8394 goodix_ts vfat nls_cp437 nls_ascii"
|
||||
deviceinfo_modules_initfs="gpu_sched dw_wdt fusb302 panel_himax_hx8394 goodix_ts"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
@@ -19,7 +19,7 @@ deviceinfo_screen_height="1440"
|
||||
deviceinfo_getty="ttyS2;115200"
|
||||
|
||||
# Installer related
|
||||
deviceinfo_dev_internal_storage="/dev/mmcblk2"
|
||||
deviceinfo_dev_internal_storage="/dev/mmcblk0"
|
||||
deviceinfo_dev_internal_storage_repartition="true"
|
||||
|
||||
# Bootloader related
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
timeout=0
|
||||
|
||||
menuentry "postmarketOS" {
|
||||
linux ($root)/vmlinuz console=tty0 earlycon=uart8250,mmio32,0xff1a0000 console=ttyS2,115200 panic=10 coherent_pool=1M loglevel=5 mem_sleep_default=s2idle PMOS_NO_OUTPUT_REDIRECT fw_devlink=off
|
||||
linux ($root)/vmlinuz console=tty0 earlycon=uart8250,mmio32,0xff1a0000 console=ttyS2,115200 panic=10 coherent_pool=1M loglevel=1 mem_sleep_default=s2idle PMOS_NO_OUTPUT_REDIRECT PMOS_FORCE_PARTITION_RESIZE fw_devlink=off
|
||||
initrd ($root)/initramfs
|
||||
}
|
||||
File renamed without changes.
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
export XKB_DEFAULT_MODEL=ppkb
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
log() {
|
||||
echo "$@" | logger -t "postmarketOS:modem-setup"
|
||||
}
|
||||
|
||||
QMBNCFG_CONFIG="1"
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
DEV="/dev/EG25.AT"
|
||||
else
|
||||
DEV="$1"
|
||||
fi
|
||||
|
||||
# Read current config
|
||||
QMBNCFG_ACTUAL_CONFIG=$(echo 'AT+QMBNCFG="AutoSel"' | atinout - $DEV -)
|
||||
|
||||
if echo $QMBNCFG_ACTUAL_CONFIG | grep -q $QMBNCFG_CONFIG
|
||||
then
|
||||
log "Modem already configured"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
# Configure VoLTE auto selecting profile
|
||||
RET=$(echo "AT+QMBNCFG=\"AutoSel\",$QMBNCFG_CONFIG" | atinout - $DEV -)
|
||||
if ! echo $RET | grep -q OK
|
||||
then
|
||||
log "Failed to enable VoLTE profile auto selecting: $RET"
|
||||
exit 1
|
||||
fi
|
||||
+103
-19
@@ -1,10 +1,15 @@
|
||||
SectionVerb {
|
||||
EnableSequence [
|
||||
### Default rt5640 configuration, copied from /codecs/rt5640/EnableSeq.conf ###
|
||||
# First of all, disable the internal speaker amplifier
|
||||
cset "name='Internal Speaker Switch' off"
|
||||
|
||||
### Based on /codecs/rt5640/EnableSeq.conf ###
|
||||
|
||||
# RT5640 default output routing
|
||||
cset "name='DAC MIXL INF1 Switch' on"
|
||||
cset "name='DAC MIXR INF1 Switch' on"
|
||||
cset "name='DAC MIXL Stereo ADC Switch' off"
|
||||
cset "name='DAC MIXR Stereo ADC Switch' off"
|
||||
cset "name='Stereo DAC MIXL DAC L1 Switch' on"
|
||||
cset "name='Stereo DAC MIXR DAC R1 Switch' on"
|
||||
cset "name='Stereo DAC MIXL DAC L2 Switch' on"
|
||||
@@ -34,23 +39,29 @@ SectionVerb {
|
||||
cset "name='Mono ADC R2 Mux' DMIC R1"
|
||||
cset "name='Mono ADC Capture Switch' on"
|
||||
|
||||
# Set capture volume to 0dB so modem audio doesn't overdrive the ADC
|
||||
cset "name='ADC Capture Volume' 47"
|
||||
cset "name='Mono ADC Capture Volume' 47"
|
||||
|
||||
# The second 'Mono ADC' path does not have a 'Boost Gain',
|
||||
# set this to 0dB so that the volume of the AIF1 and AIF2 paths is equal.
|
||||
cset "name='ADC Boost Gain' 0"
|
||||
|
||||
# Set IN1/IN3 internal mic boost to 8 (max)
|
||||
# Set IN1 internal mic boost to 8 (max)
|
||||
# Set IN2 headset-mic boost to 1, headset mics are quite loud
|
||||
# Set IN3 (modem audio) boost to 0 as it's already loud enough
|
||||
cset "name='IN1 Boost' 8"
|
||||
cset "name='IN2 Boost' 1"
|
||||
# cset "name='IN3 Boost' 8"
|
||||
cset "name='IN3 Boost' 0"
|
||||
|
||||
# Start with all controls which are used by the individual
|
||||
# input/output Enable/DisableSequences off
|
||||
|
||||
cset "name='RECMIXL BST1 Switch' off"
|
||||
cset "name='RECMIXR BST1 Switch' off"
|
||||
cset "name='RECMIXL BST2 Switch' off"
|
||||
cset "name='RECMIXR BST2 Switch' off"
|
||||
# IN2 is headset mic, make sure its route is enabled
|
||||
cset "name='RECMIXL BST2 Switch' on"
|
||||
cset "name='RECMIXR BST2 Switch' on"
|
||||
cset "name='RECMIXL BST3 Switch' off"
|
||||
cset "name='RECMIXR BST3 Switch' off"
|
||||
|
||||
@@ -63,6 +74,9 @@ SectionVerb {
|
||||
cset "name='Mono ADC MIXL ADC2 Switch' off"
|
||||
cset "name='Mono ADC MIXR ADC2 Switch' off"
|
||||
|
||||
# Limit amplification factor of earpiece amplifier so sound stays clear
|
||||
cset "name='Class D SPK Ratio Control' 1.66x"
|
||||
|
||||
# Turn off playback switches by default, otherwise both Speaker
|
||||
# and headphones are playing audio initially until headphones are
|
||||
# re-inserted.
|
||||
@@ -71,26 +85,27 @@ SectionVerb {
|
||||
cset "name='Speaker L Playback Switch' off"
|
||||
cset "name='Speaker R Playback Switch' off"
|
||||
|
||||
### PinePhonePro specific configuration ###
|
||||
|
||||
# Set capture volume to 0dB so modem audio doesn't overdrive the ADC
|
||||
cset "name='ADC Capture Volume' 47"
|
||||
cset "name='Mono ADC Capture Volume' 47"
|
||||
# Modem audio is line level, no need to boost this signal
|
||||
cset "name='IN3 Boost' 0"
|
||||
|
||||
# MONO output is used as IN3 here, so make sure it's disabled
|
||||
cset "name='Mono Playback Switch' off"
|
||||
|
||||
# Set playback volumes to 0dB
|
||||
cset "name='HP Playback Volume' 31"
|
||||
cset "name='Speaker Playback Volume' 31"
|
||||
|
||||
# Limit amplification factor of earpiece amplifier so sound stays clear
|
||||
cset "name='Class D SPK Ratio Control' 1.66x"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
# Turn off all output channels
|
||||
cset "name='HP L Playback Switch' off"
|
||||
cset "name='HP R Playback Switch' off"
|
||||
cset "name='HP Channel Switch' off"
|
||||
cset "name='HPO MIX HPVOL Switch' off"
|
||||
cset "name='Speaker L Playback Switch' off"
|
||||
cset "name='Speaker R Playback Switch' off"
|
||||
cset "name='Speaker Channel Switch' off"
|
||||
cset "name='SPOL MIX SPKVOL L Switch' off"
|
||||
cset "name='SPOL MIX SPKVOL R Switch' off"
|
||||
|
||||
|
||||
# Reset output routing
|
||||
cset "name='DAC MIXL INF1 Switch' off"
|
||||
cset "name='DAC MIXR INF1 Switch' off"
|
||||
@@ -109,6 +124,7 @@ SectionDevice."Earpiece" {
|
||||
Comment "Internal Earpiece"
|
||||
|
||||
ConflictingDevice [
|
||||
"Headphones"
|
||||
"Speaker"
|
||||
]
|
||||
|
||||
@@ -142,6 +158,39 @@ SectionDevice."Speaker" {
|
||||
|
||||
ConflictingDevice [
|
||||
"Earpiece"
|
||||
"Headphones"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cset "name='HPO MIX HPVOL Switch' on"
|
||||
cset "name='HP Channel Switch' on"
|
||||
cset "name='HP L Playback Switch' on"
|
||||
cset "name='HP R Playback Switch' on"
|
||||
cset "name='Internal Speaker Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='Internal Speaker Switch' off"
|
||||
cset "name='HP Channel Switch' off"
|
||||
cset "name='HP L Playback Switch' off"
|
||||
cset "name='HP R Playback Switch' off"
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPriority 200
|
||||
PlaybackPCM "hw:${CardId}"
|
||||
PlaybackMixerElem "HP"
|
||||
PlaybackVolume "HP Playback Volume"
|
||||
PlaybackMasterElem "DAC1"
|
||||
}
|
||||
}
|
||||
|
||||
SectionDevice."Headphones" {
|
||||
Comment "Headphones"
|
||||
|
||||
ConflictingDevice [
|
||||
"Earpiece"
|
||||
"Speaker"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
@@ -160,16 +209,20 @@ SectionDevice."Speaker" {
|
||||
Value {
|
||||
PlaybackPriority 300
|
||||
PlaybackPCM "hw:${CardId}"
|
||||
JackControl "Headphone Jack"
|
||||
JackControl "Headphones Jack"
|
||||
PlaybackMixerElem "HP"
|
||||
PlaybackVolume "HP Playback Volume"
|
||||
PlaybackMasterElem "DAC1"
|
||||
}
|
||||
}
|
||||
|
||||
SectionDevice."DigitalMic" {
|
||||
SectionDevice."Mic" {
|
||||
Comment "Internal Microphone"
|
||||
|
||||
ConflictingDevice [
|
||||
"Headset"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cset "name='Mono ADC MIXL ADC2 Switch' on"
|
||||
cset "name='Mono ADC MIXR ADC2 Switch' on"
|
||||
@@ -185,10 +238,41 @@ SectionDevice."DigitalMic" {
|
||||
]
|
||||
|
||||
Value {
|
||||
CapturePriority 200
|
||||
CapturePriority 100
|
||||
CapturePCM "hw:${CardId}"
|
||||
CaptureMixerElem "ADC"
|
||||
CaptureVolume "ADC Capture Volume"
|
||||
CaptureSwitch "ADC Capture Switch"
|
||||
}
|
||||
}
|
||||
|
||||
SectionDevice."Headset" {
|
||||
Comment "Headset Microphone"
|
||||
|
||||
ConflictingDevice [
|
||||
"Mic"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cset "name='Mono ADC MIXL ADC1 Switch' on"
|
||||
cset "name='Mono ADC MIXR ADC1 Switch' on"
|
||||
cset "name='Stereo ADC MIXL ADC1 Switch' on"
|
||||
cset "name='Stereo ADC MIXR ADC1 Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='Mono ADC MIXL ADC1 Switch' off"
|
||||
cset "name='Mono ADC MIXR ADC1 Switch' off"
|
||||
cset "name='Stereo ADC MIXL ADC1 Switch' off"
|
||||
cset "name='Stereo ADC MIXR ADC1 Switch' off"
|
||||
]
|
||||
|
||||
Value {
|
||||
CapturePriority 200
|
||||
CapturePCM "hw:${CardId}"
|
||||
JackControl "Headphones Jack"
|
||||
CaptureMixerElem "ADC"
|
||||
CaptureVolume "ADC Capture Volume"
|
||||
CaptureSwitch "ADC Capture Switch"
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -2,12 +2,12 @@ Syntax 4
|
||||
Comment "PinePhone Pro"
|
||||
|
||||
SectionUseCase."HiFi" {
|
||||
File "HiFi.conf"
|
||||
File "/PinePhonePro/HiFi.conf"
|
||||
Comment "Default"
|
||||
}
|
||||
|
||||
SectionUseCase."VoiceCall" {
|
||||
File "VoiceCall.conf"
|
||||
SectionUseCase."Voice Call" {
|
||||
File "/PinePhonePro/VoiceCall.conf"
|
||||
Comment "Phone call"
|
||||
}
|
||||
|
||||
+99
-57
@@ -1,18 +1,23 @@
|
||||
SectionVerb {
|
||||
EnableSequence [
|
||||
### Default rt5640 configuration, copied from /codecs/rt5640/EnableSeq.conf ###
|
||||
# First of all, disable the internal speaker amplifier
|
||||
cset "name='Internal Speaker Switch' off"
|
||||
|
||||
# RT5640 default output routing
|
||||
# cset "name='DAC MIXL INF1 Switch' on"
|
||||
# cset "name='DAC MIXR INF1 Switch' on"
|
||||
### Based on /codecs/rt5640/EnableSeq.conf ###
|
||||
|
||||
# Get audio only from the microphones, not the system
|
||||
cset "name='DAC MIXL INF1 Switch' off"
|
||||
cset "name='DAC MIXR INF1 Switch' off"
|
||||
cset "name='DAC MIXL Stereo ADC Switch' on"
|
||||
cset "name='DAC MIXR Stereo ADC Switch' on"
|
||||
cset "name='Stereo DAC MIXL DAC L1 Switch' on"
|
||||
cset "name='Stereo DAC MIXR DAC R1 Switch' on"
|
||||
cset "name='Stereo DAC MIXL DAC L2 Switch' on"
|
||||
cset "name='Stereo DAC MIXR DAC R2 Switch' on"
|
||||
# cset "name='OUT MIXL DAC L1 Switch' on"
|
||||
# cset "name='OUT MIXR DAC R1 Switch' on"
|
||||
# cset "name='SPK MIXL DAC L1 Switch' on"
|
||||
# cset "name='SPK MIXR DAC R1 Switch' on"
|
||||
cset "name='OUT MIXL DAC L1 Switch' off"
|
||||
cset "name='OUT MIXR DAC R1 Switch' off"
|
||||
cset "name='SPK MIXL DAC L1 Switch' off"
|
||||
cset "name='SPK MIXR DAC R1 Switch' off"
|
||||
|
||||
# uncomment to enable swap between AIF1 and AIF2
|
||||
# warning: can only work with SSP0 firmware enabled
|
||||
@@ -34,25 +39,32 @@ SectionVerb {
|
||||
cset "name='Mono ADC R2 Mux' DMIC R1"
|
||||
cset "name='Mono ADC Capture Switch' on"
|
||||
|
||||
# Set capture volume to 0dB so modem audio doesn't overdrive the ADC
|
||||
cset "name='ADC Capture Volume' 47"
|
||||
cset "name='Mono ADC Capture Volume' 47"
|
||||
|
||||
# The second 'Mono ADC' path does not have a 'Boost Gain',
|
||||
# set this to 0dB so that the volume of the AIF1 and AIF2 paths is equal.
|
||||
cset "name='ADC Boost Gain' 0"
|
||||
|
||||
# Set IN1/IN3 internal mic boost to 8 (max)
|
||||
# Set IN1 internal mic boost to 8 (max)
|
||||
# Set IN2 headset-mic boost to 1, headset mics are quite loud
|
||||
# Set IN3 (modem audio) boost to 0 as it's already loud enough
|
||||
cset "name='IN1 Boost' 8"
|
||||
cset "name='IN2 Boost' 1"
|
||||
# cset "name='IN3 Boost' 8"
|
||||
cset "name='IN3 Boost' 0"
|
||||
|
||||
# Start with all controls which are used by the individual
|
||||
# input/output Enable/DisableSequences off
|
||||
|
||||
cset "name='RECMIXL BST1 Switch' off"
|
||||
cset "name='RECMIXR BST1 Switch' off"
|
||||
# cset "name='RECMIXL BST2 Switch' off"
|
||||
# IN2 is headset mic, make sure its routed to the left channel
|
||||
cset "name='RECMIXL BST2 Switch' on"
|
||||
cset "name='RECMIXR BST2 Switch' off"
|
||||
# IN3 is modem audio, route it to the right channel
|
||||
cset "name='RECMIXL BST3 Switch' off"
|
||||
# cset "name='RECMIXR BST3 Switch' off"
|
||||
cset "name='RECMIXR BST3 Switch' on"
|
||||
|
||||
cset "name='Stereo ADC MIXL ADC1 Switch' off"
|
||||
cset "name='Stereo ADC MIXR ADC1 Switch' off"
|
||||
@@ -63,40 +75,6 @@ SectionVerb {
|
||||
cset "name='Mono ADC MIXL ADC2 Switch' off"
|
||||
cset "name='Mono ADC MIXR ADC2 Switch' off"
|
||||
|
||||
# Turn off playback switches by default, otherwise both Speaker
|
||||
# and headphones are playing audio initially until headphones are
|
||||
# re-inserted.
|
||||
cset "name='HP L Playback Switch' off"
|
||||
cset "name='HP R Playback Switch' off"
|
||||
cset "name='Speaker L Playback Switch' off"
|
||||
cset "name='Speaker R Playback Switch' off"
|
||||
|
||||
### PinePhonePro specific configuration ###
|
||||
|
||||
# Get audio only from the microphones, not the system
|
||||
cset "name='DAC MIXL INF1 Switch' off"
|
||||
cset "name='DAC MIXR INF1 Switch' off"
|
||||
cset "name='DAC MIXL Stereo ADC Switch' on"
|
||||
cset "name='DAC MIXR Stereo ADC Switch' on"
|
||||
|
||||
# Route headset mic to the left channel and modem audio
|
||||
# to the right channel
|
||||
cset "name='RECMIXL BST2 Switch' on"
|
||||
cset "name='RECMIXR BST3 Switch' on"
|
||||
|
||||
# Set capture volume to 0dB so modem audio doesn't overdrive the ADC
|
||||
cset "name='ADC Capture Volume' 47"
|
||||
cset "name='Mono ADC Capture Volume' 47"
|
||||
# Modem audio is line level, no need to boost this signal
|
||||
cset "name='IN3 Boost' 0"
|
||||
|
||||
# MONO output is used as IN3 here, so make sure it's disabled
|
||||
cset "name='Mono Playback Switch' off"
|
||||
|
||||
# Set playback volumes to 0dB
|
||||
cset "name='HP Playback Volume' 31"
|
||||
cset "name='Speaker Playback Volume' 31"
|
||||
|
||||
# Limit amplification factor of earpiece amplifier so sound stays clear
|
||||
cset "name='Class D SPK Ratio Control' 1.66x"
|
||||
|
||||
@@ -112,13 +90,35 @@ SectionVerb {
|
||||
cset "name='LOUT MIX OUTVOL L Switch' off"
|
||||
cset "name='LOUT MIX OUTVOL R Switch' off"
|
||||
|
||||
# Disable left channel for SPK (earpiece) and HP (speaker/headphones)
|
||||
# outputs as we're only routing modem audio to the right channel
|
||||
cset "name='SPOL MIX SPKVOL L Switch' off"
|
||||
# Disable left channel for HP (speaker/headphones) output
|
||||
# as we're only routing modem audio to the right channel
|
||||
cset "name='HP L Playback Switch' off"
|
||||
|
||||
# Turn off playback switches by default, otherwise both Speaker
|
||||
# and headphones are playing audio initially until headphones are
|
||||
# re-inserted.
|
||||
cset "name='HP L Playback Switch' off"
|
||||
cset "name='HP R Playback Switch' off"
|
||||
cset "name='Speaker L Playback Switch' off"
|
||||
cset "name='Speaker R Playback Switch' off"
|
||||
|
||||
# MONO output is used as IN3 here, so make sure it's disabled
|
||||
cset "name='Mono Playback Switch' off"
|
||||
|
||||
# Set playback volumes to 0dB
|
||||
cset "name='HP Playback Volume' 31"
|
||||
cset "name='Speaker Playback Volume' 31"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
# Turn off all output channels
|
||||
cset "name='HP L Playback Switch' off"
|
||||
cset "name='HP R Playback Switch' off"
|
||||
cset "name='HP Channel Switch' off"
|
||||
cset "name='Speaker L Playback Switch' off"
|
||||
cset "name='Speaker R Playback Switch' off"
|
||||
cset "name='Speaker Channel Switch' off"
|
||||
|
||||
# Reset output routing
|
||||
cset "name='DAC MIXL Stereo ADC Switch' off"
|
||||
cset "name='DAC MIXR Stereo ADC Switch' off"
|
||||
@@ -140,10 +140,12 @@ SectionDevice."Earpiece" {
|
||||
Comment "Internal Earpiece"
|
||||
|
||||
ConflictingDevice [
|
||||
"Headphones"
|
||||
"Speaker"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cset "name='SPOL MIX SPKVOL L Switch' on"
|
||||
# Send right channel to left as it's mono only
|
||||
cset "name='SPOL MIX SPKVOL R Switch' on"
|
||||
cset "name='Speaker Channel Switch' on"
|
||||
@@ -156,7 +158,7 @@ SectionDevice."Earpiece" {
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPriority 300
|
||||
PlaybackPriority 200
|
||||
PlaybackPCM "hw:${CardId}"
|
||||
PlaybackMixerElem "Speaker"
|
||||
PlaybackVolume "Speaker Playback Volume"
|
||||
@@ -169,10 +171,41 @@ SectionDevice."Speaker" {
|
||||
|
||||
ConflictingDevice [
|
||||
"Earpiece"
|
||||
"Headphones"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cset "name='HPO MIX HPVOL Switch' on"
|
||||
cset "name='HPO MIX HPVOL Switch' on"
|
||||
cset "name='HP Channel Switch' on"
|
||||
cset "name='HP R Playback Switch' on"
|
||||
cset "name='Internal Speaker Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='Internal Speaker Switch' off"
|
||||
cset "name='HP Channel Switch' off"
|
||||
cset "name='HP R Playback Switch' off"
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPriority 100
|
||||
PlaybackPCM "hw:${CardId}"
|
||||
PlaybackMixerElem "HP"
|
||||
PlaybackVolume "HP Playback Volume"
|
||||
PlaybackMasterElem "DAC1"
|
||||
}
|
||||
}
|
||||
|
||||
SectionDevice."Headphones" {
|
||||
Comment "Headphones"
|
||||
|
||||
ConflictingDevice [
|
||||
"Earpiece"
|
||||
"Speaker"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cset "name='HPO MIX HPVOL Switch' on"
|
||||
cset "name='HP Channel Switch' on"
|
||||
cset "name='HP R Playback Switch' on"
|
||||
]
|
||||
@@ -183,18 +216,22 @@ SectionDevice."Speaker" {
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPriority 100
|
||||
PlaybackPriority 300
|
||||
PlaybackPCM "hw:${CardId}"
|
||||
JackControl "Headphone Jack"
|
||||
JackControl "Headphones Jack"
|
||||
PlaybackMixerElem "HP"
|
||||
PlaybackVolume "HP Playback Volume"
|
||||
PlaybackMasterElem "DAC1"
|
||||
}
|
||||
}
|
||||
|
||||
SectionDevice."DigitalMic" {
|
||||
SectionDevice."Mic" {
|
||||
Comment "Internal Microphone"
|
||||
|
||||
ConflictingDevice [
|
||||
"Headset"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cset "name='Stereo ADC MIXL ADC2 Switch' on"
|
||||
]
|
||||
@@ -204,7 +241,7 @@ SectionDevice."DigitalMic" {
|
||||
]
|
||||
|
||||
Value {
|
||||
CapturePriority 200
|
||||
CapturePriority 100
|
||||
CapturePCM "hw:${CardId}"
|
||||
CaptureMixerElem "ADC"
|
||||
CaptureVolume "ADC Capture Volume"
|
||||
@@ -212,9 +249,13 @@ SectionDevice."DigitalMic" {
|
||||
}
|
||||
}
|
||||
|
||||
SectionDevice."HeadsetMic" {
|
||||
SectionDevice."Headset" {
|
||||
Comment "Headset Microphone"
|
||||
|
||||
ConflictingDevice [
|
||||
"Mic"
|
||||
]
|
||||
|
||||
EnableSequence [
|
||||
cset "name='Stereo ADC MIXL ADC1 Switch' on"
|
||||
]
|
||||
@@ -224,8 +265,9 @@ SectionDevice."HeadsetMic" {
|
||||
]
|
||||
|
||||
Value {
|
||||
CapturePriority 100
|
||||
CapturePriority 200
|
||||
CapturePCM "hw:${CardId}"
|
||||
JackControl "Headphones Jack"
|
||||
CaptureMixerElem "ADC"
|
||||
CaptureVolume "ADC Capture Volume"
|
||||
CaptureSwitch "ADC Capture Switch"
|
||||
@@ -3,8 +3,8 @@
|
||||
# Co-Maintainer: Dylan Van Assche <me@dylanvanassche.be>
|
||||
pkgname=device-pine64-pinetab
|
||||
pkgdesc="PINE64 PineTab"
|
||||
pkgver=0.12
|
||||
pkgrel=3
|
||||
pkgver=0.13
|
||||
pkgrel=2
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
@@ -120,9 +120,12 @@ package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
|
||||
# Alsa usecase manager config
|
||||
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/conf.d/simple-card \
|
||||
"$srcdir"/PineTab.conf \
|
||||
"$srcdir"/HiFi.conf
|
||||
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/PineTab \
|
||||
"$srcdir"/HiFi.conf \
|
||||
"$srcdir"/PineTab.conf
|
||||
mkdir -p "$pkgdir"/usr/share/alsa/ucm2/conf.d/simple-card
|
||||
ln -s /usr/share/alsa/ucm2/PineTab/PineTab.conf \
|
||||
"$pkgdir"/usr/share/alsa/ucm2/conf.d/simple-card/PineTab.conf
|
||||
|
||||
# Pulseaudio config
|
||||
install -Dm644 "$srcdir"/pulse-pinetab.conf \
|
||||
@@ -162,7 +165,7 @@ sha512sums="
|
||||
6274b664ad42456ff51ec4ec2dea9749bff59e0eee0c2d1f7e8950934ee92e410e554df246f81bd01813ddfae5e6a9001a8fcad05815beab536d1547251d5aeb deviceinfo
|
||||
9244687bfea20c78120f7c48388d141eff3e23a421e48504eac1479ec7f51197d9ca72468c9cc33c6e3d3fa32ee3514711545816e607d49870226e4a41a60a85 gsk-renderer-gl.sh
|
||||
6bc22b369b2d9058b702ac7a7862abaefaf8179b43491868bdb008d181b59104f1ded89db1da51a810e1ccdc803a579b924a438674283a65afc3a9c4d2894caf kirigami-lowpower.sh
|
||||
38827d9636c48b133eb333764a6799a6e93454e01ecb0cfde1ecad3ee149606ba59eb1a5e6c8366e3b3891e54bd664a0a5acdd89d38ac3a3551260e9b9a6d3fc phoc.ini
|
||||
5c683f2cf27b2f982c8581251688834634957143334011861400d3eed27b6590f37055fe61c8af632552435dba581fa990a44c1e5689a3c8fe642fd095b740ce phoc.ini
|
||||
9e71c61bfa72b60e749c4dc04f17eb59d25de822765e81e65c937d6be5236d3951a652b69a1ab973abe6add9f34705be5dbaa98bbfa25daf7504dd50b28524c2 sway.conf
|
||||
181438ed8723c29bf201a5d4ad1ae588afcd03763deadb267b23d96ad40c8956e08b2e3b800f4ee5d77774625d0b0e6a70c4068f98fbfad50d31e71b30a24164 uboot-script.cmd
|
||||
a2fd8037c9a1af000f31c7005436d791525317f818c553d1e2f472b4df76c71d769ecbf67b369a478bea720a6215eaa9fb6a26ba218ac9410513e2345ebe7b4c HiFi.conf
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[cursor:seat0]
|
||||
map-to-output:DSI-1
|
||||
map-to-output = DSI-1
|
||||
|
||||
[output:DSI-1]
|
||||
scale = 1
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
# Co-Maintainer: Minecrell <minecrell@minecrell.net>
|
||||
pkgname=device-samsung-a3
|
||||
pkgdesc="Samsung Galaxy A3 (2015)"
|
||||
pkgver=10
|
||||
pkgrel=1
|
||||
pkgver=11
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
@@ -57,5 +57,5 @@ phosh() {
|
||||
|
||||
sha512sums="
|
||||
dac014f2ebc1c461e43917fcfc020675c10ac39e17b83b0e0e2246b159db1f61ce024df21624f2635729f29521b30b4cce29b4451931cb27cf4d0f34b19ec509 deviceinfo
|
||||
f3667b914bb955be9e97db31dc7ed4a7c5d0c369be9549d587bb7208e270590c0c3fa36a0dd997d6f8305c5c9afb3b906423af6ca8724e806f995e61226cfc83 phoc.ini
|
||||
e8f734a2f8d154813dbb493f0d58af50a7f624ffed41967a81493b975a6211efc6d30743b23825562cfd126791cbdd3348bfbed32eeece9b8acec0a37c3c51b6 phoc.ini
|
||||
"
|
||||
@@ -1,5 +1,5 @@
|
||||
[cursor:seat0]
|
||||
map-to-output:DSI-1
|
||||
map-to-output = DSI-1
|
||||
|
||||
[output:DSI-1]
|
||||
scale = 1
|
||||
+2
-3
@@ -1,4 +1,5 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Raymond Hackley <raymondhackley@protonmail.com>
|
||||
pkgname=device-samsung-e7
|
||||
pkgdesc="Samsung Galaxy E7"
|
||||
pkgver=1
|
||||
@@ -15,9 +16,7 @@ depends="
|
||||
soc-qcom-msm8916-rproc
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="
|
||||
deviceinfo
|
||||
"
|
||||
source="deviceinfo"
|
||||
subpackages="
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
"
|
||||
File renamed without changes.
@@ -2,8 +2,8 @@
|
||||
# Maintainer: Nikita Travkin <nikita@trvn.ru>
|
||||
pkgname=device-samsung-gt510
|
||||
pkgdesc="Samsung Galaxy Tab A 9.7 (2015)"
|
||||
pkgver=3
|
||||
pkgrel=2
|
||||
pkgver=4
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
@@ -52,5 +52,5 @@ phosh() {
|
||||
sha512sums="
|
||||
5acddf5145a0ec2cbe056bd120b1413fd6efee441f15127ce6f132ab470f326ba729f71afc70ba4d8dc9dab62e49fa20217632f08f9ed6d5b2ddda033ed32009 deviceinfo
|
||||
6aedd5eeac4d21356678f5399f3f0946392c9a7477ac21d39b8e761133dc8ed67adb4966647314f71d5263483ab68cad92847dacff95ffa45eabfc33c9f405b5 pointercal
|
||||
bc620d2031027405f70eea68854744799b460db0d787e2c844556f437120eea0fc857689c6894dd485a5cd3794c7fb5281b901e9e10da1b550c637a852445180 phoc.ini
|
||||
ed612b090c1ee512fc257368082fe0c88ca6c98a9d673ece68593739c7a41b4f9dca5d9360de6f84d206f297feba480a9f1982301132e08a14a5ff920a2675a6 phoc.ini
|
||||
"
|
||||
@@ -1,5 +1,5 @@
|
||||
[cursor:seat0]
|
||||
map-to-output:DSI-1
|
||||
map-to-output = DSI-1
|
||||
|
||||
[output:DSI-1]
|
||||
scale = 1
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# Maintainer: Nikita Travkin <nikita@trvn.ru>
|
||||
pkgname=device-samsung-gt58
|
||||
pkgdesc="Samsung Galaxy Tab A 8.0 (2015)"
|
||||
pkgver=3
|
||||
pkgrel=2
|
||||
pkgver=4
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
@@ -47,5 +47,5 @@ phosh() {
|
||||
|
||||
sha512sums="
|
||||
b374fc9b75b0693a27c94116f652410a0b026077beba91527104fd0e3e720ddec0c1e48b54714af810b514571d5f2021f8facf34a9ea8de35b92aa060af64d19 deviceinfo
|
||||
bc620d2031027405f70eea68854744799b460db0d787e2c844556f437120eea0fc857689c6894dd485a5cd3794c7fb5281b901e9e10da1b550c637a852445180 phoc.ini
|
||||
ed612b090c1ee512fc257368082fe0c88ca6c98a9d673ece68593739c7a41b4f9dca5d9360de6f84d206f297feba480a9f1982301132e08a14a5ff920a2675a6 phoc.ini
|
||||
"
|
||||
@@ -1,5 +1,5 @@
|
||||
[cursor:seat0]
|
||||
map-to-output:DSI-1
|
||||
map-to-output = DSI-1
|
||||
|
||||
[output:DSI-1]
|
||||
scale = 1
|
||||
|
||||
+4
-3
@@ -2,7 +2,7 @@
|
||||
# Maintainer: Newbyte <newbyte@disroot.org>
|
||||
pkgname=device-samsung-m0
|
||||
pkgdesc="Samsung Galaxy S III"
|
||||
pkgver=6
|
||||
pkgver=6.2
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
@@ -14,6 +14,7 @@ depends="
|
||||
mesa-dri-gallium
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
postmarketos-update-kernel
|
||||
soc-samsung-exynos4412-haptics
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
@@ -52,8 +53,8 @@ nonfree_firmware() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
d9a655ccbba48f68e44a37149a9078adbd1f40179b592215cc68383ecd3c391262fd5c694e0569316e55964d6f4c7ccc23d15fdaff53a98b873ad28246c6ab28 deviceinfo
|
||||
042a7d64ea9dd6d9f31e3754fc873e98ab403f8bfa2a7ec13c849db5282a1a23745936d7e2fc64c09a2cdb140acd903948298f39c5cb8c03130411ac94e9d34d deviceinfo
|
||||
caa81e8ab6753c0ca24c22fb6742288765dfbf2469b8b8c35c5789edfcee546ef1c3b14ad6e540c417f434258399300f17d312b58157635eafab134587ef94cc Midas.conf
|
||||
e6df5f3c4b8203447d9cbec1cf10588d9dc03d3be49e596393de5bd2afb9cc9fab669d1ade2c4ee7e0886fdbaa0e4266a3bddd55a866f3ea98dd82267bc9e856 HiFi.conf
|
||||
21f64c9104ec5780fffde8ba7ce57583592469694d07dd5e2de4173d7c9f99ba57fb28bb5bcfbbce921be9c4ead9d31980e948533162fe12424c2037145debb1 HiFi.conf
|
||||
56a2bdffc273cb0a581192e65378ff50e71c7bc8a696af7d5e7c165a53c005aae104c4514c68afb668454c5a94ce78bd509f8a40e3401d67e16636b1ed81d051 modules-load.conf
|
||||
"
|
||||
File renamed without changes.
+1
@@ -9,6 +9,7 @@ deviceinfo_year="2012"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_dtb="exynos4412-i9300"
|
||||
deviceinfo_arch="armv7"
|
||||
deviceinfo_flash_kernel_on_update="true"
|
||||
|
||||
# Device related
|
||||
deviceinfo_gpu_accelerated="true"
|
||||
File renamed without changes.
+2
-2
@@ -174,7 +174,7 @@ SectionDevice."Speaker" {
|
||||
}
|
||||
}
|
||||
|
||||
SectionDevice."BackInternalMicrophone" {
|
||||
SectionDevice."Mic1" {
|
||||
Comment "Back Internal Microphone"
|
||||
|
||||
EnableSequence [
|
||||
@@ -202,7 +202,7 @@ SectionDevice."BackInternalMicrophone" {
|
||||
}
|
||||
}
|
||||
|
||||
SectionDevice."HeadsetIn" {
|
||||
SectionDevice."Headset" {
|
||||
Comment "Headset Input"
|
||||
|
||||
EnableSequence [
|
||||
File renamed without changes.
@@ -2,8 +2,8 @@
|
||||
# Maintainer: Minecrell <minecrell@minecrell.net>
|
||||
pkgname=device-samsung-serranove
|
||||
pkgdesc="Samsung Galaxy S4 Mini Value Edition"
|
||||
pkgver=11
|
||||
pkgrel=1
|
||||
pkgver=12
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
@@ -53,5 +53,5 @@ phosh() {
|
||||
|
||||
sha512sums="
|
||||
d666cf805d292d13d9e15a350b203580f016f455dad16cbc4a94471edb145fd464c5ad92a50077995234a9db1322e605e0294a6c5d7342fa6675b1bfec4eb69e deviceinfo
|
||||
94c866b6583faadc4a96a4d737983ba7838ede52afa5e29e261ef0ad0f2afe29fd3b793c9208ae74c7d48db6b991ad21800b9e457fbba4c69ce9dec2cda268ea phoc.ini
|
||||
1bc90a1a67309b43435039332b2a1d7e606408c6429b3cb8991a57f53dd4de36fbe471481b6481fbdb098c3819344e8093dd8eab0d34eb3c091ab6d8abd5c087 phoc.ini
|
||||
"
|
||||
@@ -1,5 +1,5 @@
|
||||
[cursor:seat0]
|
||||
map-to-output:DSI-1
|
||||
map-to-output = DSI-1
|
||||
|
||||
[output:DSI-1]
|
||||
scale = 1.5
|
||||
+5
-2
@@ -1,9 +1,10 @@
|
||||
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Alexander Martinz <amartinz@shiftphones.com>
|
||||
|
||||
pkgname=device-shift-axolotl
|
||||
pkgdesc="SHIFT6mq"
|
||||
pkgver=2
|
||||
pkgver=5
|
||||
pkgrel=1
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
@@ -11,11 +12,13 @@ arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-postmarketos-qcom-sdm845
|
||||
make-dynpart-mappings
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
postmarketos-update-kernel
|
||||
soc-qcom-sdm845
|
||||
soc-qcom-sdm845-ucm
|
||||
soc-qcom-sdm845-qbootctl
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="
|
||||
@@ -48,6 +51,6 @@ phosh() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
bd30bc057e3145118203460914463794b73c1eaf73a8537a87036d316cf42035861788e7047193c1f26e9d7c69686b8c4ffa2b87882eec9ab7dfcc8edbf12394 deviceinfo
|
||||
6a075c5ea73bc2700cc5cb0325599e19b1380358f95938367150082253ab909140e2a02a496343a94b0b98b9e21a862953a0db4a023f5ceda9b7cef98250210f deviceinfo
|
||||
65f74d29ab318b23f7ac8923a3661f2c4130049273a8c6be234ed2c8e00810b6a1254b54cf0932e42850a6d48f821dcd038900fbb836feeddfab2759afffae38 phoc.ini
|
||||
"
|
||||
+2
-1
@@ -39,5 +39,6 @@ deviceinfo_flash_kernel_on_update="true"
|
||||
|
||||
# Required for devices using UFS as storage (instead of e.g. eMMC)
|
||||
deviceinfo_rootfs_image_sector_size="4096"
|
||||
deviceinfo_super_partitions="/dev/sda7 /dev/sda7"
|
||||
|
||||
deviceinfo_modules_initfs="focaltech_fts gpi i2c_qcom_geni qcom_smb2 qcom_spmi_fg qcom_spmi_haptics"
|
||||
deviceinfo_modules_initfs="focaltech_fts gpi i2c_qcom_geni qcom_pmi8998_charger qcom_fg qcom_spmi_haptics"
|
||||
File renamed without changes.
@@ -4,8 +4,8 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-xiaomi-beryllium
|
||||
pkgdesc="Xiaomi Poco F1"
|
||||
pkgver=5
|
||||
pkgrel=1
|
||||
pkgver=7
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
@@ -66,7 +66,7 @@ phosh() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
29090e3d3fc16a752b33910abcfd8719af34bd257a7ca3cf25e9f1afc49e20582a7505bd7cd2ea2eb274c834eead277f31e5fb9384de8b444500518275e5a711 deviceinfo
|
||||
399e430a7340755c39680e436141dc141b38669791664bfb6d902bf4994516305fdf3e0e088717f60dc24faf64e0993c8695572f1afb7875a46548f494fdb54d deviceinfo
|
||||
e2e417169345c86a5dd34ac0afac4b2b983a755f4c7ba5698c385a01f96b9bd2c3ace1ce5a0569c121675e8b87e88e1cf5c648e995d9c50cba66e52bbc83753c phoc.ini
|
||||
7f599f086dba97ac39ce98798969bc8e9c26dd3b062bb8f95852182df52814b70d49b701e27b43abeb3639b16ba053e416c14cf75e0bf4a9f2fe7c01fb0ac41c q6voiced.conf
|
||||
"
|
||||
@@ -37,5 +37,5 @@ deviceinfo_flash_pagesize="4096"
|
||||
deviceinfo_flash_sparse="true"
|
||||
|
||||
# osk-sdl
|
||||
deviceinfo_modules_initfs_tianma="gpi i2c_qcom_geni nt36xxx"
|
||||
deviceinfo_modules_initfs_ebbg="gpi i2c_qcom_geni focaltech_ft8719"
|
||||
deviceinfo_modules_initfs_tianma="gpi i2c_qcom_geni qcom_pmi8998_charger qcom_fg nt36xxx"
|
||||
deviceinfo_modules_initfs_ebbg="gpi i2c_qcom_geni qcom_pmi8998_charger qcom_fg focaltech_fts"
|
||||
@@ -4,7 +4,7 @@
|
||||
pkgname=device-xiaomi-scorpio
|
||||
pkgdesc="Xiaomi Mi Note 2"
|
||||
pkgver=3
|
||||
pkgrel=2
|
||||
pkgrel=4
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
@@ -22,10 +22,11 @@ makedepends="devicepkg-dev"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh"
|
||||
|
||||
source="
|
||||
30-gpu-firmware.files
|
||||
deviceinfo
|
||||
gpu-nobin.sh
|
||||
pointercal
|
||||
phoc.ini
|
||||
30-gpu-firmware.files
|
||||
"
|
||||
|
||||
build() {
|
||||
@@ -37,6 +38,9 @@ package() {
|
||||
|
||||
install -D -m644 "$srcdir"/pointercal \
|
||||
"$pkgdir"/etc/pointercal
|
||||
|
||||
install -D -m644 "$srcdir"/gpu-nobin.sh \
|
||||
"$pkgdir"/etc/profile.d/gpu-nobin.sh
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
@@ -62,8 +66,9 @@ phosh() {
|
||||
|
||||
|
||||
sha512sums="
|
||||
f0f2f6598947e8261607f259bb869e2845b08a5c1df28126bc705f8e7a11547e5702395741da5a7f50a41e17e6840b9ef01a4e3248b387b4d00510aef54118ee deviceinfo
|
||||
a1ca623314e80045ea8d64be06d12ffc091a5585ca40f9713039883e20889ba47f4a3f9c3bd92bd3b616bb6bb621e87409b6b6fa43bfe566a2a46468609c16f4 30-gpu-firmware.files
|
||||
52ba13a75f14c8d75a719f463a870df34eb59765bd43f29a49fb0dff201410fa388a04f73ec8e6e86d634547bf6ef0164466333b24da36d882b0d7254bfbe213 deviceinfo
|
||||
ecd40b8f9bc17f383c52aa96ad23ceec41be75a4500d5e7a67f2f59875bf9f72eb35686a0b6e4949b45fd589c5da409d1212c52172fef94de2d1655b28c339b4 gpu-nobin.sh
|
||||
e9ee9c1404b41ba15eafff3f728ff6e0e78dc17e9a88483fca92db1aa3efe0e4d5bf26142e533c4ff12b1bf8ce04ccabb7ca0f93aaea586d5b30910282aad237 pointercal
|
||||
38409d4ce48db4624539dbfd695d3c6e1596a29fd7c3004a41368b28cba646495d05360420ad728f82c63d6ddeeca71d09944df06ebaca120aedd9cc2b436eb3 phoc.ini
|
||||
a1ca623314e80045ea8d64be06d12ffc091a5585ca40f9713039883e20889ba47f4a3f9c3bd92bd3b616bb6bb621e87409b6b6fa43bfe566a2a46468609c16f4 30-gpu-firmware.files
|
||||
"
|
||||
@@ -6,7 +6,7 @@ deviceinfo_name="Xiaomi Mi Note 2"
|
||||
deviceinfo_manufacturer="Xiaomi"
|
||||
deviceinfo_codename="xiaomi-scorpio"
|
||||
deviceinfo_year="2016"
|
||||
deviceinfo_dtb="qcom/msm8996-xiaomi-scorpio"
|
||||
deviceinfo_dtb="qcom/msm8996pro-xiaomi-scorpio"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_modules_initfs="atmel_mxt_ts msm panel-lgphilips-sw43101 qcom_fg"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
export FD_MESA_DEBUG=nobin
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
pkgname=firmware-qcom-adreno
|
||||
pkgver=20210919
|
||||
pkgver=20220509
|
||||
pkgrel=0
|
||||
pkgdesc="Qualcomm Adreno GPU firmware from linux-firmware"
|
||||
url="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/"
|
||||
@@ -15,7 +15,7 @@ builddir="$srcdir/linux-firmware-$pkgver"
|
||||
replaces="linux-firmware-qcom"
|
||||
_fwdir="/lib/firmware/qcom"
|
||||
|
||||
_gpus="a300 a530 a630 a650 a660"
|
||||
_gpus="a300 a330 a420 a530 a630 a650 a660"
|
||||
for gpu in $_gpus; do
|
||||
subpackages="$subpackages $pkgname-$gpu:_gpu"
|
||||
done
|
||||
@@ -37,5 +37,5 @@ _gpu() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
94628158011e65dd65225e687823fc3611b2b2d431b3484a66108959c7fafbcdc0a7be73b7b9e1d1a2d62d40cb7bd81e33d96d822a7b159adc15894607a76a31 linux-firmware-20210919.tar.gz
|
||||
0591a35a14a6994ac60571a8e47c00ec013afbfedd4b3326cfe1971b9bd9a07ca7622b17177b3fb57a6c244d2caae12318fcbfac5da5f78a2c085285c9d85cf6 linux-firmware-20220509.tar.gz
|
||||
"
|
||||
@@ -0,0 +1,46 @@
|
||||
pkgname=firmware-qcom-db410c-wcnss
|
||||
pkgver=1034.2.1
|
||||
pkgrel=3
|
||||
pkgdesc="DragonBoard 410c WiFi/BT firmware"
|
||||
url="https://releases.linaro.org/96boards/dragonboard410c/qualcomm/firmware/"
|
||||
subpackages="$pkgname-doc"
|
||||
arch="aarch64 armv7"
|
||||
license="custom"
|
||||
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
||||
makedepends="mtools pil-squasher"
|
||||
source="https://releases.linaro.org/96boards/dragonboard410c/qualcomm/firmware/linux-board-support-package-r$pkgver.zip"
|
||||
builddir="$srcdir/linux-board-support-package-r$pkgver"
|
||||
|
||||
# This package is a replacement for linux-firmware-qcom (packaging only necessary
|
||||
# firmware plus some missing ones), so it's packaged in /qcom, not /postmarketos.
|
||||
replaces="linux-firmware-qcom"
|
||||
_fwdir="/lib/firmware/qcom"
|
||||
|
||||
unpack() {
|
||||
default_unpack
|
||||
|
||||
# Extract firmware files from FAT file system image
|
||||
mcopy -i "$builddir"/bootloaders-linux/NON-HLOS.bin -p -m -v \
|
||||
::image/wcnss.* "$builddir"
|
||||
}
|
||||
|
||||
build() {
|
||||
pil-squasher wcnss.mbn wcnss.mdt
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
install -Dm644 NOTICE.txt "$pkgdir"/usr/share/licenses/$pkgname/NOTICE
|
||||
|
||||
# Use this firmware by default for devices that can use unsigned firmware
|
||||
provides="firmware-qcom-msm8916-wcnss"
|
||||
provider_priority=100
|
||||
|
||||
install -Dm644 "$builddir"/wcnss.mbn -t "$pkgdir/$_fwdir"/apq8016/
|
||||
|
||||
# Still link to old location in case this is installed on other devices
|
||||
mkdir -p "$pkgdir"/lib/firmware/postmarketos
|
||||
ln -s "$_fwdir"/apq8016/wcnss.mbn "$pkgdir"/lib/firmware/postmarketos/wcnss.mdt
|
||||
}
|
||||
|
||||
sha512sums="4b5d0250552ff3b0a55af9395e62064299a1240f22a5f50383de95723db964351412fa2b38f24fe73fdeb613366e0eb6b3c335600c238546db783ca84647e2d2 linux-board-support-package-r1034.2.1.zip"
|
||||
@@ -1,11 +1,11 @@
|
||||
pkgname=firmware-qcom-db410c
|
||||
pkgver=1034.2.1
|
||||
pkgrel=2
|
||||
pkgver=1036.1
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware for DragonBoard 410c"
|
||||
url="https://releases.linaro.org/96boards/dragonboard410c/qualcomm/firmware/"
|
||||
subpackages="
|
||||
$pkgname-doc
|
||||
$pkgname-wcnss $pkgname-wcnss-nv:wcnss_nv
|
||||
$pkgname-wcnss-nv:wcnss_nv
|
||||
$pkgname-modem
|
||||
$pkgname-venus
|
||||
"
|
||||
@@ -26,11 +26,10 @@ unpack() {
|
||||
|
||||
# Extract firmware files from FAT file system image
|
||||
mcopy -i "$builddir"/bootloaders-linux/NON-HLOS.bin -p -m -v \
|
||||
::image/mba.mbn ::image/modem.* ::image/wcnss.* "$builddir"
|
||||
::image/mba.mbn ::image/modem.* "$builddir"
|
||||
}
|
||||
|
||||
build() {
|
||||
pil-squasher wcnss.mbn wcnss.mdt
|
||||
pil-squasher modem.mbn modem.mdt
|
||||
pil-squasher venus.mbn proprietary-linux/venus.mdt
|
||||
}
|
||||
@@ -46,19 +45,8 @@ modem() {
|
||||
install -Dm644 "$builddir"/modem.mbn -t "$subpkgdir/$_fwdir"/apq8016/
|
||||
}
|
||||
|
||||
wcnss() {
|
||||
pkgdesc="DragonBoard 410c WiFi/BT firmware"
|
||||
|
||||
# Use this firmware by default for devices that can use unsigned firmware
|
||||
provides="firmware-qcom-msm8916-wcnss"
|
||||
provider_priority=100
|
||||
|
||||
install -Dm644 "$builddir"/wcnss.mbn -t "$subpkgdir/$_fwdir"/apq8016/
|
||||
|
||||
# Still link to old location in case this is installed on other devices
|
||||
mkdir -p "$subpkgdir"/lib/firmware/postmarketos
|
||||
ln -s "$_fwdir"/apq8016/wcnss.mbn "$subpkgdir"/lib/firmware/postmarketos/wcnss.mdt
|
||||
}
|
||||
# For some reason the wcnss firmware in r1036.1 is actually older than the one
|
||||
# in r1034.2.1, so firmware-qcom-db410c-wcnss is packaged separately.
|
||||
|
||||
wcnss_nv() {
|
||||
pkgdesc="DragonBoard 410c WiFi/BT firmware configuration"
|
||||
@@ -78,4 +66,6 @@ venus() {
|
||||
install -Dm644 "$builddir"/venus.mbn "$subpkgdir/$_fwdir"/venus-1.8/venus.mdt
|
||||
}
|
||||
|
||||
sha512sums="4b5d0250552ff3b0a55af9395e62064299a1240f22a5f50383de95723db964351412fa2b38f24fe73fdeb613366e0eb6b3c335600c238546db783ca84647e2d2 linux-board-support-package-r1034.2.1.zip"
|
||||
sha512sums="
|
||||
99316352669c488b26d93353e0408c0b761809f41b9e13630fdf4de393e36f72477847bd2f8e893e8c98bb94c82a615d3fc4a615db1055df7314269c514bae0e linux-board-support-package-r1036.1.zip
|
||||
"
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -2,7 +2,7 @@
|
||||
# Co-Maintainer: Joel Selvaraj <jo@jsfamily.in>
|
||||
|
||||
pkgname=firmware-xiaomi-beryllium
|
||||
pkgver=5
|
||||
pkgver=6
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware for Xiaomi Poco F1"
|
||||
url="https://gitlab.com/sdm845-mainline/firmware-xiaomi-beryllium"
|
||||
@@ -27,5 +27,5 @@ package() {
|
||||
|
||||
sha512sums="
|
||||
41fdd771fe73e31bdce6088fdeb7686205f61b9888612fa83ac914e4bb524d22bba63894376a671d3acb19e90316a3d2eafdfb5425360ba53e41a38b9fd753ae firmware-xiaomi-beryllium.tar.gz
|
||||
aa320245e6e6827cd23153729d52072a41c91ed12dc2bc5e3648df700561321dfd1ca51cc699945f57a1e36028a1e99adb4007889a2f91b9c0d445c251b2f51c firmware.files
|
||||
db32c8df77632e763c1ca3e80cee1ee2528c4986c944511c726add6e13fca6552ae63f6d436800439b7e615fd0c09f234888a68e4a6ff6663afe3dc593d6a7b0 firmware.files
|
||||
"
|
||||
@@ -1,4 +1,3 @@
|
||||
./lib/firmware/ath10k/WCN3990/hw1.0/board-2.bin
|
||||
./lib/firmware/tas2559_uCDSP.bin
|
||||
./lib/firmware/qcom/sdm845/beryllium/adsp.mbn
|
||||
./lib/firmware/qcom/sdm845/beryllium/a630_zap.mbn
|
||||
@@ -12,4 +11,4 @@
|
||||
./lib/firmware/qcom/sdm845/beryllium/adspua.jsn
|
||||
./lib/firmware/qcom/sdm845/beryllium/cdspr.jsn
|
||||
./lib/firmware/qcom/sdm845/beryllium/modemr.jsn
|
||||
./lib/firmware/qcom/sdm845/beryllium/modemuw.jsn
|
||||
./lib/firmware/qcom/sdm845/beryllium/modemuw.jsn
|
||||
@@ -1,6 +1,6 @@
|
||||
# Maintainer: Yassine Oudjana (Tooniis) <y.oudjana@protonmail.com>
|
||||
pkgname=firmware-xiaomi-scorpio
|
||||
pkgver=2
|
||||
pkgver=3
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware for Xiaomi Mi Note 2"
|
||||
url="https://gitlab.com/Tooniis/firmware-xiaomi-scorpio"
|
||||
@@ -8,22 +8,30 @@ arch="aarch64"
|
||||
license="proprietary"
|
||||
options="!strip !check !archcheck !tracedeps pmb:cross-native"
|
||||
|
||||
_commit="9412b604f4908566830023f9434c3ebf47a5d32d"
|
||||
_commit="4c7763beb4de1fc4ff0da99e7fd43ea767fac2e7"
|
||||
source="$pkgname-$_commit.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz"
|
||||
|
||||
source="
|
||||
$pkgname.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz
|
||||
firmware.files
|
||||
_mbns="
|
||||
a530_zap.mbn
|
||||
adsp.mbn
|
||||
mba.mbn
|
||||
modem.mbn
|
||||
slpi.mbn
|
||||
venus.mbn
|
||||
"
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$_commit/"
|
||||
while IFS="" read -r _i || [ -n "$_i" ]; do
|
||||
[ ! -d $(dirname $_i) ] && mkdir -p $(dirname $_i)
|
||||
echo $_i
|
||||
install -Dm644 $_i "$pkgdir/$_i"
|
||||
done < "$srcdir/firmware.files"
|
||||
|
||||
# Install MBNs
|
||||
for _i in $_mbns; do
|
||||
install -Dm644 $_i "$pkgdir/lib/firmware/qcom/msm8996/scorpio/$_i"
|
||||
done
|
||||
|
||||
# Install QCA6174 board firmware
|
||||
install -Dm644 board-2.bin "$pkgdir/lib/firmware/postmarketos/ath10k/QCA6174/hw3.0/board-2.bin"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
84183c62bf7a432507b975892b1f1099a1ac6cf9b0f1c4e12924c3bd9c9f0989eacc964555d96ece861895dc252cac50f185c5b44aee9500d6b42762291d0b4c firmware-xiaomi-scorpio.tar.gz
|
||||
2c909dcf7ea542fec51b34f31f29ef85e7aa745c5237df51ac7498ebaa40ee704e2fa7c67fbb72f747b598963bd8828bc4d131f3f54ddcc7f99d731ef74c504f firmware.files
|
||||
b8be4f664608f88e8140c7182e855fbf5078d23445bba14cb2242a9ea785678ab88b4584b0dc35d6325693e911bdf3c1b8ff3913414c7a1f2e0eae75692a2e45 firmware-xiaomi-scorpio-4c7763beb4de1fc4ff0da99e7fd43ea767fac2e7.tar.gz
|
||||
"
|
||||
Loaded 100 of 698 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user