-
Notifications
You must be signed in to change notification settings - Fork 6
Add debian bullseye aarch64 sysroot [CLARM-13] #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c99479d
Aarch sysroot [CLARM-13]
krisukox 6f6d985
Add arch
krisukox 50a47d6
Fix
krisukox 9b4212a
Add sysroot-creator.sh script
krisukox 02c3017
Fix
krisukox a9e63e2
Rename
krisukox 738b34e
Rename
krisukox cadef8d
Rename
krisukox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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: aarch64 sysroot | ||
krisukox marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - "aarch64-sysroot/**" | ||
| - .github/workflows/aarch64-sysroot.yaml | ||
| push: | ||
| tags: | ||
| - "aarch64-sysroot-*" | ||
krisukox marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| toolchains: | ||
| runs-on: ubuntu-22.04 | ||
| name: aarch64 sysroot | ||
krisukox marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| steps: | ||
| - name: Checkout source | ||
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Create sysroot | ||
| run: ./aarch64-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: "aarch64-sysroot/out/sysroot-build/bullseye/debian_bullseye_arm64_sysroot.tar.xz" | ||
| tag: ${{ github.ref }} | ||
| asset_name: debian_bullseye_arm64_sysroot.tar.xz | ||
krisukox marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| overwrite: true | ||
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.