Skip to content

Commit 3910f85

Browse files
authored
Add debian bullseye aarch64 sysroot [CLARM-13] (#18)
* Aarch sysroot [CLARM-13] * Add arch * Fix * Add sysroot-creator.sh script * Fix * Rename * Rename * Rename
1 parent 10fe5d8 commit 3910f85

File tree

5 files changed

+696
-0
lines changed

5 files changed

+696
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: bullseye-aarch64 sysroot
3+
on:
4+
pull_request:
5+
paths:
6+
- "sysroot/**"
7+
- .github/workflows/bullseye-aarch64-sysroot.yaml
8+
push:
9+
tags:
10+
- "bullseye-aarch64-sysroot-*"
11+
12+
jobs:
13+
toolchains:
14+
runs-on: ubuntu-22.04
15+
name: bullseye-aarch64 sysroot
16+
steps:
17+
- name: Checkout source
18+
uses: actions/checkout@v2
19+
20+
- name: Create sysroot
21+
run: ./sysroot/sysroot-creator.sh build arm64
22+
23+
- name: Upload sysroot
24+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
25+
uses: svenstaro/upload-release-action@v1-release
26+
with:
27+
repo_token: ${{ secrets.GITHUB_TOKEN }}
28+
file: "sysroot/out/sysroot-build/bullseye/debian_bullseye_arm64_sysroot.tar.xz"
29+
tag: ${{ github.ref }}
30+
asset_name: debian_bullseye_aarch64_sysroot.tar.xz
31+
overwrite: true
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/gcc-10/libgcc-10-dev_10.2.1-6_arm64.deb
2+
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/gcc-10/libgcc-s1_10.2.1-6_arm64.deb
3+
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/gcc-10/libstdc++-10-dev_10.2.1-6_arm64.deb
4+
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/gcc-10/libstdc++6_10.2.1-6_arm64.deb
5+
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/glibc/libc6_2.31-13+deb11u5_arm64.deb
6+
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/glibc/libc6-dev_2.31-13+deb11u5_arm64.deb
7+
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/l/linux/linux-libc-dev_6.1.12-1~bpo11+1_arm64.deb
8+
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/u/util-linux/uuid-dev_2.36.1-8+deb11u1_arm64.deb

sysroot/keyring.gpg

92.2 KB
Binary file not shown.

sysroot/merge-package-lists.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env python3
2+
# Copyright 2016 The Chromium Authors
3+
# Use of this source code is governed by a BSD-style license that can be
4+
# found in the LICENSE file.
5+
6+
"""Merge package entries from different package lists.
7+
"""
8+
9+
# This is used for replacing packages in eg. bullseye with those in bookworm.
10+
# The updated packages are ABI compatible, but include security patches, so we
11+
# should use those instead in our sysroots.
12+
13+
import sys
14+
15+
if len(sys.argv) != 2:
16+
exit(1)
17+
18+
packages = {}
19+
20+
def AddPackagesFromFile(file):
21+
global packages
22+
lines = file.readlines()
23+
if len(lines) % 3 != 0:
24+
exit(1)
25+
for i in range(0, len(lines), 3):
26+
packages[lines[i]] = (lines[i + 1], lines[i + 2])
27+
28+
AddPackagesFromFile(open(sys.argv[1], 'r'))
29+
AddPackagesFromFile(sys.stdin)
30+
31+
output_file = open(sys.argv[1], 'w')
32+
33+
for (package, (filename, sha256)) in packages.items():
34+
output_file.write(package + filename + sha256)

0 commit comments

Comments
 (0)