Skip to content
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

ci: add bpf-unknown-none #31

Merged
merged 9 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/crossdev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
target:
- target: aarch64-unknown-linux-gnu
- target: aarch64-unknown-linux-musl
- target: aarch64_be-unknown-linux-gnu
- target: alpha-unknown-linux-gnu
- target: arm-unknown-linux-gnueabi
- target: arm-unknown-linux-gnueabihf
- target: arm-unknown-linux-musleabi
Expand All @@ -27,12 +29,12 @@ jobs:
- target: armeb-unknown-linux-gnueabihf
- target: armeb-unknown-linux-musleabi
- target: armeb-unknown-linux-musleabihf
# glibc fails to build: `attempt to use an ARM instruction on a
# Thumb-only processor`.
# - target: armv7-unknown-linux-gnueabi
# - target: armv7-unknown-linux-gnueabihf
- target: armv7-unknown-linux-musleabi
- target: armv7-unknown-linux-musleabihf
- target: armv6j-softfp-linux-gnueabi
- target: armv6j-unknown-linux-gnueabihf
- target: armv7a-softfp-linux-gnueabi
- target: armv7a-unknown-linux-gnueabihf
- target: hppa1.1-unknown-linux-gnu
- target: hppa2.0-unknown-linux-gnu
- target: hppa64-unknown-linux-gnu
Expand Down Expand Up @@ -62,6 +64,7 @@ jobs:
- target: powerpc-unknown-linux-musl
- target: powerpc64-unknown-linux-gnu
- target: powerpc64-unknown-linux-musl
- target: powerpc64le-unknown-linux-gnu
- target: riscv32-unknown-linux-gnu
# busybox fails to build: `‘SYS_settimeofday’ undeclared`.
# - target: riscv32-unknown-linux-musl
Expand All @@ -70,7 +73,8 @@ jobs:
# glibc fails to build: `no support for pre-v8 sparc`.
# - target: sparc-unknown-linux-gnu
- target: sparc64-unknown-linux-gnu
- target: s390x-unknown-linux-gnu
- target: s390-ibm-linux-gnu
- target: s390x-ibm-linux-gnu
# musl ebuilds don't support s390x. The target is supported upstream,
# we need to fix and test our ebuilds.
# - target: s390x-unknown-linux-musl
Expand All @@ -93,6 +97,8 @@ jobs:
args: --skip-system
- target: nvptx-none
args: --skip-system
- target: bpf-unknown-none
args: --skip-system
stage3:
- latest # `openrc` (glibc+GCC) is tagged as `latest`
- musl
Expand Down
7 changes: 7 additions & 0 deletions crossdev
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,13 @@ parse_target() {
WITH_DEF_HEADERS="no"
;;

bpf*)
# Doesn't support C++ and friends
STAGE_DEFAULT=${STAGE_C_ONLY}
# No linux-headers needed/required
WITH_DEF_HEADERS="no"
;;

# Has no glibc support yet (or even ABI defined). Can
# only compile linux kernel:
# https://parisc.wiki.kernel.org/index.php/Userspace64
Expand Down
3 changes: 2 additions & 1 deletion scripts/container_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ done
/bin/sleep inf

run_in_container emerge-webrsync
run_in_container emerge app-eselect/eselect-repository sys-apps/config-site
run_in_container getuto
run_in_container emerge --getbinpkg app-eselect/eselect-repository sys-apps/config-site
run_in_container make install
run_in_container eselect repository create crossdev
run_in_container crossdev --show-fail-log --target "${TARGET}"
Expand Down
Loading