-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debian bullseye aarch64 sysroot [CLARM-13] (#18)
* Aarch sysroot [CLARM-13] * Add arch * Fix * Add sysroot-creator.sh script * Fix * Rename * Rename * Rename
- Loading branch information
Showing
5 changed files
with
696 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: bullseye-aarch64 sysroot | ||
on: | ||
pull_request: | ||
paths: | ||
- "sysroot/**" | ||
- .github/workflows/bullseye-aarch64-sysroot.yaml | ||
push: | ||
tags: | ||
- "bullseye-aarch64-sysroot-*" | ||
|
||
jobs: | ||
toolchains: | ||
runs-on: ubuntu-22.04 | ||
name: bullseye-aarch64 sysroot | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
|
||
- name: Create sysroot | ||
run: ./sysroot/sysroot-creator.sh build arm64 | ||
|
||
- name: Upload sysroot | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: "sysroot/out/sysroot-build/bullseye/debian_bullseye_arm64_sysroot.tar.xz" | ||
tag: ${{ github.ref }} | ||
asset_name: debian_bullseye_aarch64_sysroot.tar.xz | ||
overwrite: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/gcc-10/libgcc-10-dev_10.2.1-6_arm64.deb | ||
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/gcc-10/libgcc-s1_10.2.1-6_arm64.deb | ||
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/gcc-10/libstdc++-10-dev_10.2.1-6_arm64.deb | ||
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/gcc-10/libstdc++6_10.2.1-6_arm64.deb | ||
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/glibc/libc6_2.31-13+deb11u5_arm64.deb | ||
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/g/glibc/libc6-dev_2.31-13+deb11u5_arm64.deb | ||
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/l/linux/linux-libc-dev_6.1.12-1~bpo11+1_arm64.deb | ||
https://snapshot.debian.org/archive/debian/20230329T085712Z/pool/main/u/util-linux/uuid-dev_2.36.1-8+deb11u1_arm64.deb |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright 2016 The Chromium Authors | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
"""Merge package entries from different package lists. | ||
""" | ||
|
||
# This is used for replacing packages in eg. bullseye with those in bookworm. | ||
# The updated packages are ABI compatible, but include security patches, so we | ||
# should use those instead in our sysroots. | ||
|
||
import sys | ||
|
||
if len(sys.argv) != 2: | ||
exit(1) | ||
|
||
packages = {} | ||
|
||
def AddPackagesFromFile(file): | ||
global packages | ||
lines = file.readlines() | ||
if len(lines) % 3 != 0: | ||
exit(1) | ||
for i in range(0, len(lines), 3): | ||
packages[lines[i]] = (lines[i + 1], lines[i + 2]) | ||
|
||
AddPackagesFromFile(open(sys.argv[1], 'r')) | ||
AddPackagesFromFile(sys.stdin) | ||
|
||
output_file = open(sys.argv[1], 'w') | ||
|
||
for (package, (filename, sha256)) in packages.items(): | ||
output_file.write(package + filename + sha256) |
Oops, something went wrong.