Repository navigation
feat: Add EBcLfSA 2.0.0-beta3 high integrity toolchain #182
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
Draft
lurtz
wants to merge
2
commits into
main
Choose a base branch
from
add-ebclfsa-high-integrity-toolchain
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+741
−7
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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
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
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,22 @@ | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| """EBcLfSA High Integrity-specific compiler features.""" | ||
|
|
||
| load("@rules_cc//cc/toolchains:feature.bzl", "cc_feature") | ||
|
|
||
| package(default_visibility = ["//visibility:public"]) | ||
|
|
||
| cc_feature( | ||
| name = "compile_flags", | ||
| args = [ | ||
| "//features/native/default_compile_flags:c_std_c11_args", | ||
| "//features/native/default_compile_flags:c_std_gnu11_args", | ||
| "//features/native/default_compile_flags:c_std_c99_args", | ||
| "//features/native/default_compile_flags:default_cxx_compile_flags_args", | ||
| "//features/native/default_compile_flags:dbg_compile_flags_args", | ||
| "//features/native/default_compile_flags:opt_compile_flags_args", | ||
| ], | ||
| feature_name = "default_compile_flags", | ||
| ) |
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,62 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| _EBCLFSA_HI_FEATURES = [ | ||
| ("@score_bazel_cpp_toolchains//features/native/markers:no_legacy_features", True), | ||
| (":compiler_library_search_paths", True), # per-instance, see templates/BUILD.template | ||
| ("@score_bazel_cpp_toolchains//features/native/markers:dbg", False), | ||
| ("@score_bazel_cpp_toolchains//features/native/unfiltered_compile_flags", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/markers:gnu11", False), | ||
| ("@score_bazel_cpp_toolchains//features/native/markers:c_std_c99", False), | ||
| ("@score_bazel_cpp_toolchains//features/custom/ebclfsa_hi:compile_flags", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/random_seed", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/include_paths", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/preprocessor_defines", True), | ||
| (":extra_compile_flags", True), # per-instance, see templates/BUILD.template | ||
| (":extra_c_compile_flags", True), # per-instance, see templates/BUILD.template | ||
| (":extra_cxx_compile_flags", True), # per-instance, see templates/BUILD.template | ||
| ("@score_bazel_cpp_toolchains//features/native/user_compile_flags", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/compiler_input_flags", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/compiler_output_flags", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/dependency_file", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/per_object_debug_info", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/includes", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/archiver_flags", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/linker_param_file", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/library_search_directories", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/output_execpath_flags", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/libraries_to_link", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/user_link_flags", True), | ||
| (":extra_link_flags", True), # per-instance, see templates/BUILD.template | ||
| ("@score_bazel_cpp_toolchains//features/native/linkstamps", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/force_pic_flags", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/strip_debug_symbols", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/fully_static_link", False), | ||
| (":sysroot_link_flags", True), # per-instance, see templates/BUILD.template | ||
| ("@score_bazel_cpp_toolchains//features/native/use_pthread", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/markers:opt", False), | ||
| ("@score_bazel_cpp_toolchains//features/native/markers:supports_pic", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/pic", True), | ||
| ("@score_bazel_cpp_toolchains//features/native/markers:supports_header_path_normalization", True), | ||
| ] | ||
|
|
||
| def get_feature_lists(): | ||
| """Returns ordered known/enabled feature labels for EBcLfSA High Integrity. | ||
|
|
||
| Returns: | ||
| (known_features, enabled_features) tuple of flat label lists. | ||
| """ | ||
| return ( | ||
| [label for label, _enabled in _EBCLFSA_HI_FEATURES], | ||
| [label for label, enabled in _EBCLFSA_HI_FEATURES if enabled], | ||
| ) |
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
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 |
|---|---|---|
|
|
@@ -13,4 +13,5 @@ | |
|
|
||
| exports_files([ | ||
| "ebclfsa.BUILD", | ||
| "ebclfsa_hi.BUILD", | ||
| ]) | ||
67 changes: 67 additions & 0 deletions
67
packages/linux/aarch64/ebclfsa/2.0.0-beta3/ebclfsa_hi.BUILD
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,67 @@ | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| """Clang/musl/libc++ tools from the EBcLfSA beta3 SDK.""" | ||
|
|
||
| package(default_visibility = ["//visibility:public"]) | ||
|
|
||
| filegroup( | ||
| name = "all_files", | ||
| srcs = glob( | ||
| [ | ||
| "opt/**/*", | ||
| "usr/**/*", | ||
| "lib/**/*", | ||
| ], | ||
| exclude = [ | ||
| "usr/share/ca-certificates/**", | ||
| "usr/lib/ssl/certs/**", | ||
| "lib/ssl/certs/**", | ||
| "usr/share/man/**", | ||
| "usr/share/perl/**", | ||
| ], | ||
| ), | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "ar", | ||
| srcs = ["usr/bin/aarch64-linux-gnu-ar"], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "cc", | ||
| srcs = ["usr/lib/llvm-20/bin/clang"], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "cxx", | ||
| srcs = ["usr/lib/llvm-20/bin/clang++"], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "gcov", | ||
| srcs = ["usr/bin/aarch64-linux-gnu-gcov-14"], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "strip", | ||
| srcs = ["usr/bin/aarch64-linux-gnu-strip"], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "readelf", | ||
| srcs = ["usr/bin/aarch64-linux-gnu-readelf"], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "elf-enabler", | ||
| srcs = ["usr/bin/lisa-elf-enabler"], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "sysroot_dir", | ||
| srcs = ["."], | ||
| ) | ||
|
|
||
| filegroup(name = "cxx_builtin_include_directories") |
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the proper way to deal with the fact that not every Linux is the same?