Skip to content
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
5 changes: 5 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "eclipse-s-core",
"image": "ghcr.io/eclipse-score/devcontainer:0.1.0",
"postStartCommand": "ssh-keygen -f '/home/vscode/.ssh/known_hosts' -R '[localhost]:2222' || true"
}
41 changes: 41 additions & 0 deletions .github/workflows/build_and_test_ebclfsa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# *******************************************************************************
# Copyright (c) 2025 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
# *******************************************************************************

name: Build for and Test on EB corbos Linux for Safety Applications

on:
pull_request:
paths:
- 'ebclfsa/**'
workflow_dispatch:

jobs:
build:
name: build-and-test-ebclfsa
runs-on: ubuntu-latest
container:
image: ghcr.io/eclipse-score/devcontainer:0.1.0

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build for EB corbos Linux for Safety Applications and run tests
run: bazel build --config=aarch64 --spawn_strategy=local //example/ipc_bridge_hi_wrapper:run_example
working-directory: ./ebclfsa

- name: Upload test logs
uses: actions/upload-artifact@v5
with:
name: test-logs
path: ebclfsa/bazel-bin/example/ipc_bridge_hi_wrapper/*.log
10 changes: 10 additions & 0 deletions ebclfsa/.bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
common --@score_baselibs//score/mw/log/detail/flags:KUse_Stub_Implementation_Only=False
common --@score_baselibs//score/mw/log/flags:KRemote_Logging=False
common --@score_baselibs//score/json:base_library=nlohmann
common --@score_communication//score/mw/com/flags:tracing_library=stub

common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/
common --registry=https://bcr.bazel.build

common --extra_toolchains=@gcc_toolchain//:aarch64_gcc_13
build:aarch64 --platforms=@score_toolchains_gcc//platforms:aarch64-linux
13 changes: 13 additions & 0 deletions ebclfsa/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# *******************************************************************************
# Copyright (c) 2025 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

# *******************************************************************************
82 changes: 82 additions & 0 deletions ebclfsa/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# *******************************************************************************
# Copyright (c) 2025 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
# *******************************************************************************

"EB corbos Linux for Safety Applications - S-CORE Reference Integration"

module(
name = "reference_integration_ebclfsa",
version = "0.1.0",
compatibility_level = 0,
)

bazel_dep(name = "rules_cc", version = "0.2.0")

bazel_dep(name = "score_toolchains_gcc", version = "0.0.0", dev_dependency=True)
git_override(
module_name = "score_toolchains_gcc",
remote = "https://github.com/Elektrobit/eclipse-score_toolchains_gcc.git",
commit = "fb009e490b9b8f28805d587f50d0bf6d885f3414",
)
gcc = use_extension("@score_toolchains_gcc//extentions:gcc.bzl", "gcc", dev_dependency=True)
gcc.toolchain(
url = "https://linux.elektrobit.com/tmp/score/fastdev-sdk-ubuntu-ebcl-deb-qemu-arm64.tar.xz",
sha256 = "cf8d277a2b95bbdad3e177c488fa77d01723510690a911218ef33747574d78fe",
strip_prefix = "fastdev-sdk-ubuntu-ebcl-deb-qemuarm64",
)

# TODO to be moved to toolchain. https://github.com/eclipse-score/toolchains_gcc/issues/11
gcc.extra_features(
features = [
"minimal_warnings",
"treat_warnings_as_errors",
],
)
gcc.warning_flags(
minimal_warnings = ["-Wall", "-Wno-error=deprecated-declarations"],
strict_warnings = ["-Wextra", "-Wpedantic"],
treat_warnings_as_errors = ["-Werror"],
)

use_repo(gcc, "gcc_toolchain", "gcc_toolchain_gcc")


bazel_dep(name = "rules_boost", repo_name = "com_github_nelhage_rules_boost")
archive_override(
module_name = "rules_boost",
urls = ["https://github.com/nelhage/rules_boost/archive/refs/heads/master.tar.gz"],
strip_prefix = "rules_boost-master",
)

bazel_dep(name = "boost.program_options", version = "1.87.0")

bazel_dep(name = "score_baselibs")
single_version_override(
module_name = "score_baselibs",
version = "0.1.3",
patch_strip = 1,
patches = [
"//patches:fix_hard_coded_amd64.patch",
],
)
bazel_dep(name = "score_communication")
single_version_override(
module_name = "score_communication",
version = "0.1.1",
)

# git_override are not forwarded by bazel_dep, so we need to redefine it here
git_override(
module_name = "trlc",
remote = "https://github.com/bmw-software-engineering/trlc.git",
commit = "650b51a47264a4f232b3341f473527710fc32669", # trlc-2.0.2 release
)
Loading