|
| 1 | +# ******************************************************************************* |
| 2 | +# Copyright (c) 2025 Contributors to the Eclipse Foundation |
| 3 | +# |
| 4 | +# See the NOTICE file(s) distributed with this work for additional |
| 5 | +# information regarding copyright ownership. |
| 6 | +# |
| 7 | +# This program and the accompanying materials are made available under the |
| 8 | +# terms of the Apache License Version 2.0 which is available at |
| 9 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# SPDX-License-Identifier: Apache-2.0 |
| 12 | +# ******************************************************************************* |
| 13 | + |
| 14 | +"EB corbos Linux for Safety Applications - S-CORE Reference Integration" |
| 15 | + |
| 16 | +module( |
| 17 | + name = "reference_integration_ebclfsa", |
| 18 | + version = "0.1.0", |
| 19 | + compatibility_level = 0, |
| 20 | +) |
| 21 | + |
| 22 | +bazel_dep(name = "rules_cc", version = "0.2.0") |
| 23 | + |
| 24 | +bazel_dep(name = "score_toolchains_gcc", version = "0.0.0", dev_dependency=True) |
| 25 | +git_override( |
| 26 | + module_name = "score_toolchains_gcc", |
| 27 | + remote = "https://github.com/Elektrobit/eclipse-score_toolchains_gcc.git", |
| 28 | + commit = "fb009e490b9b8f28805d587f50d0bf6d885f3414", |
| 29 | +) |
| 30 | +gcc = use_extension("@score_toolchains_gcc//extentions:gcc.bzl", "gcc", dev_dependency=True) |
| 31 | +gcc.toolchain( |
| 32 | + url = "https://linux.elektrobit.com/tmp/score/fastdev-sdk-ubuntu-ebcl-deb-qemu-arm64.tar.xz", |
| 33 | + sha256 = "cf8d277a2b95bbdad3e177c488fa77d01723510690a911218ef33747574d78fe", |
| 34 | + strip_prefix = "fastdev-sdk-ubuntu-ebcl-deb-qemuarm64", |
| 35 | +) |
| 36 | + |
| 37 | +# TODO to be moved to toolchain. https://github.com/eclipse-score/toolchains_gcc/issues/11 |
| 38 | +gcc.extra_features( |
| 39 | + features = [ |
| 40 | + "minimal_warnings", |
| 41 | + "treat_warnings_as_errors", |
| 42 | + ], |
| 43 | +) |
| 44 | +gcc.warning_flags( |
| 45 | + minimal_warnings = ["-Wall", "-Wno-error=deprecated-declarations"], |
| 46 | + strict_warnings = ["-Wextra", "-Wpedantic"], |
| 47 | + treat_warnings_as_errors = ["-Werror"], |
| 48 | +) |
| 49 | + |
| 50 | +use_repo(gcc, "gcc_toolchain", "gcc_toolchain_gcc") |
| 51 | + |
| 52 | + |
| 53 | +bazel_dep(name = "rules_boost", repo_name = "com_github_nelhage_rules_boost") |
| 54 | +archive_override( |
| 55 | + module_name = "rules_boost", |
| 56 | + urls = ["https://github.com/nelhage/rules_boost/archive/refs/heads/master.tar.gz"], |
| 57 | + strip_prefix = "rules_boost-master", |
| 58 | +) |
| 59 | + |
| 60 | +bazel_dep(name = "boost.program_options", version = "1.87.0") |
| 61 | + |
| 62 | +bazel_dep(name = "score_baselibs") |
| 63 | +single_version_override( |
| 64 | + module_name = "score_baselibs", |
| 65 | + version = "0.1.3", |
| 66 | + patch_strip = 1, |
| 67 | + patches = [ |
| 68 | + "//patches:fix_hard_coded_amd64.patch", |
| 69 | + ], |
| 70 | +) |
| 71 | +bazel_dep(name = "score_communication") |
| 72 | +single_version_override( |
| 73 | + module_name = "score_communication", |
| 74 | + version = "0.1.1", |
| 75 | +) |
| 76 | + |
| 77 | +# git_override are not forwarded by bazel_dep, so we need to redefine it here |
| 78 | +git_override( |
| 79 | + module_name = "trlc", |
| 80 | + remote = "https://github.com/bmw-software-engineering/trlc.git", |
| 81 | + commit = "650b51a47264a4f232b3341f473527710fc32669", # trlc-2.0.2 release |
| 82 | +) |
0 commit comments