Skip to content

Commit

Permalink
Add debian bullseye aarch64 sysroot [CLARM-13] (#18)
Browse files Browse the repository at this point in the history
* Aarch sysroot [CLARM-13]

* Add arch

* Fix

* Add sysroot-creator.sh script

* Fix

* Rename

* Rename

* Rename
  • Loading branch information
krisukox authored May 24, 2023
1 parent 10fe5d8 commit 3910f85
Show file tree
Hide file tree
Showing 5 changed files with 696 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/bullseye-aarch64-sysroot.yaml
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
8 changes: 8 additions & 0 deletions sysroot/generated_package_lists/bullseye.arm64
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 added sysroot/keyring.gpg
Binary file not shown.
34 changes: 34 additions & 0 deletions sysroot/merge-package-lists.py
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)
Loading

0 comments on commit 3910f85

Please sign in to comment.