From e06acfe53a1dce883bcced341d3f494d66d1d314 Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 10:55:01 +0100 Subject: [PATCH 01/12] add template files and workflow --- .github/CODEOWNERS | 15 ++ .github/ISSUE_TEMPLATE/bug_fix.md | 13 ++ .github/ISSUE_TEMPLATE/improvement.md | 11 ++ .github/PULL_REQUEST_TEMPLATE/bug_fix.md | 19 ++ .github/PULL_REQUEST_TEMPLATE/improvement.md | 19 ++ .github/actions/gitlint/action.yml | 44 +++++ .github/workflows/build_and_test_host_gcc.yml | 36 ++++ .github/workflows/codeql.yml | 62 ++++++ .github/workflows/copyright.yml | 24 +++ .github/workflows/format.yml | 26 +++ .github/workflows/gitlint.yml | 31 +++ .github/workflows/license_check.yml | 32 ++++ CONTRIBUTION.md | 35 ++++ LICENSE | 177 ++++++++++++++++++ NOTICE | 32 ++++ docs/conf.py | 56 ++++++ docs/index.rst | 82 ++++++++ 17 files changed, 714 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/ISSUE_TEMPLATE/bug_fix.md create mode 100644 .github/ISSUE_TEMPLATE/improvement.md create mode 100644 .github/PULL_REQUEST_TEMPLATE/bug_fix.md create mode 100644 .github/PULL_REQUEST_TEMPLATE/improvement.md create mode 100644 .github/actions/gitlint/action.yml create mode 100644 .github/workflows/build_and_test_host_gcc.yml create mode 100644 .github/workflows/codeql.yml create mode 100644 .github/workflows/copyright.yml create mode 100644 .github/workflows/format.yml create mode 100644 .github/workflows/gitlint.yml create mode 100644 .github/workflows/license_check.yml create mode 100644 CONTRIBUTION.md create mode 100644 LICENSE create mode 100644 NOTICE create mode 100644 docs/conf.py create mode 100644 docs/index.rst diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..ff063c49e --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,15 @@ +# Comment out as not in score yet +# * @eclipse-score/infrastructure-tooling-community +# .* @eclipse-score/infrastructure-tooling-community +# .github/CODEOWNERS @eclipse-score/technical-lead + +# in separate repositories: +# +# /docs @eclipse-score/process-community +# /docs/manual @eclipse-score//safety-manager +# /docs/release @eclipse-score//quality-manager @eclipse-score//module-lead +# /docs/safety_plan @eclipse-score//safety-manager @eclipse-score//module-lead +# /docs/safety_analysis @eclipse-score//safety-manager +# /docs/verification @eclipse-score//quality-manager @eclipse-score//safety-manager +# /components @eclipse-score//technical-lead +# /components/*/ @eclipse-score//automotive-score-committers diff --git a/.github/ISSUE_TEMPLATE/bug_fix.md b/.github/ISSUE_TEMPLATE/bug_fix.md new file mode 100644 index 000000000..43ba081bc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_fix.md @@ -0,0 +1,13 @@ +--- +name: Bugfix +about: 'Issue to track a bugfix' +title: 'Bugfix: Your bugfix title' +labels: 'codeowner_review' +assignees: '' + +--- + +> [!IMPORTANT] +> Make sure to link this issue with the PR for your bugfix. + + diff --git a/.github/ISSUE_TEMPLATE/improvement.md b/.github/ISSUE_TEMPLATE/improvement.md new file mode 100644 index 000000000..fd2c17193 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/improvement.md @@ -0,0 +1,11 @@ +--- +name: Improvement +about: 'Issue to track a improvement' +title: 'Improvement: Your improvement title' +labels: 'codeowner_review' +assignees: '' + +--- + +> [!IMPORTANT] +> Make sure to link this issue with the PR for your improvement. diff --git a/.github/PULL_REQUEST_TEMPLATE/bug_fix.md b/.github/PULL_REQUEST_TEMPLATE/bug_fix.md new file mode 100644 index 000000000..8341f5145 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/bug_fix.md @@ -0,0 +1,19 @@ +# Bugfix + +> [!IMPORTANT] +> Use this template only for bugfixes that do not influence topics covered by contribution requests or improvements. + +> [!CAUTION] +> Make sure to submit your pull-request as **Draft** until you are ready to have it reviewed by the Committers. + +## Description + +[A short description of the bug being fixed by the contribution.] + +## Related ticket + +> [!IMPORTANT] +> Please replace `[ISSUE-NUMBER]` with the issue-number that tracks this bug fix. If there is no such +> ticket yet, create one via [this issue template](../ISSUE_TEMPLATE/new?template=bug_fix.md). + +closes [ISSUE-NUMBER] (bugfix ticket) diff --git a/.github/PULL_REQUEST_TEMPLATE/improvement.md b/.github/PULL_REQUEST_TEMPLATE/improvement.md new file mode 100644 index 000000000..090ad4369 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/improvement.md @@ -0,0 +1,19 @@ +# Improvement + +> [!IMPORTANT] +> Use this template only for improvement that do not influence topics covered by contribution requests or bug fixes. + +> [!CAUTION] +> Make sure to submit your pull-request as **Draft** until you are ready to have it reviewed by the Committers. + +## Description + +[A short description of the improvement being addressed by the contribution.] + +## Related ticket + +> [!IMPORTANT] +> Please replace `[ISSUE-NUMBER]` with the issue-number that tracks this bug fix. If there is no such +> ticket yet, create one via [this issue template](../ISSUE_TEMPLATE/new?template=improvement.md). + +closes [ISSUE-NUMBER] (improvement ticket) diff --git a/.github/actions/gitlint/action.yml b/.github/actions/gitlint/action.yml new file mode 100644 index 000000000..cb16e6ff0 --- /dev/null +++ b/.github/actions/gitlint/action.yml @@ -0,0 +1,44 @@ +# ******************************************************************************* +# Copyright (c) 2024 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: "Gitlint Action" +description: "An action to install and run Gitlint on PR commits" +inputs: + pr-number: + description: "Pull Request number used to fetch commits" + required: true + base-branch: + description: "Base branch to compare commits against (default: origin/main)" + default: "origin/main" + required: false +runs: + using: "docker" + image: "jorisroovers/gitlint:0.19.1" + entrypoint: /bin/sh + args: + - -c + - | + git config --global --add safe.directory /github/workspace && \ + git fetch origin +refs/heads/main:refs/remotes/origin/main && \ + git fetch origin +refs/pull/${{ inputs.pr-number }}/head && \ + # Fetch the upstream .gitlint config from eclipse-score/score + git clone --depth 1 https://github.com/eclipse-score/score.git /tmp/score-gitlint && \ + if ! gitlint --config /tmp/score-gitlint/.gitlint --commits origin/main..HEAD; then \ + echo -e "\nWARNING: Your commit message does not follow the required format." && \ + echo "Formatting rules: https://eclipse-score.github.io/score/main/contribute/general/git.html#commit-message-format" && \ + echo -e "To fix your commit message, run:\n" && \ + echo " git commit --amend" && \ + echo "Then update your commit (fix gitlint warnings). Finally, force-push:" && \ + echo " git push --force-with-lease" && \ + exit 1; \ + fi diff --git a/.github/workflows/build_and_test_host_gcc.yml b/.github/workflows/build_and_test_host_gcc.yml new file mode 100644 index 000000000..aa4da4659 --- /dev/null +++ b/.github/workflows/build_and_test_host_gcc.yml @@ -0,0 +1,36 @@ +# ******************************************************************************* +# Copyright (c) 2024 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 +# ******************************************************************************* + +# Workflow configuration for S-CORE CI - Bazel Build & Test daal module +# This workflow runs Bazel build and test when triggered by specific pull request events. + +name: Bazel Build & Test daal module +on: + pull_request: + types: [opened, reopened, synchronize] + merge_group: + types: [checks_requested] +jobs: + build_and_test_gcc_host_gcc12: + runs-on: ubuntu-24.04 + steps: + - uses: bazel-contrib/setup-bazel@0.15.0 + with: + bazelisk-cache: true + disk-cache: ${{ github.workflow }} + repository-cache: true + - name: Checkout repository + uses: actions/checkout@v4.2.2 + - name: Bazel build lifecycle + run: | + bazel build //... diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..dfc5c730b --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,62 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +# name: "CodeQL Advanced" + +# on: +# push: +# branches: ["main"] +# pull_request: +# branches: ["main"] + +# jobs: +# analyze: +# name: Analyze (${{ matrix.language }}) +# runs-on: ubuntu-latest +# permissions: +# security-events: write +# packages: read +# actions: read +# contents: read + +# strategy: +# fail-fast: false +# matrix: +# include: +# - language: c-cpp +# build-mode: manual +# steps: +# - name: Checkout repository +# uses: actions/checkout@v4 + +# # Initializes the CodeQL tools for scanning. +# - name: Initialize CodeQL +# uses: github/codeql-action/init@v3 +# with: +# languages: ${{ matrix.language }} +# build-mode: ${{ matrix.build-mode }} +# packs: codeql/misra-cpp-coding-standards + +# - if: matrix.build-mode == 'manual' +# shell: bash +# run: | +# bazel build //... +# - name: Perform CodeQL Analysis +# uses: github/codeql-action/analyze@v3 +# with: +# category: "/language:${{matrix.language}}" +# output: sarif-results.sarif + +# - name: Upload Artifact +# uses: actions/upload-artifact@v4 +# with: +# name: sarif-results.sarif +# path: sarif-results.sarif diff --git a/.github/workflows/copyright.yml b/.github/workflows/copyright.yml new file mode 100644 index 000000000..08ef37671 --- /dev/null +++ b/.github/workflows/copyright.yml @@ -0,0 +1,24 @@ +# ******************************************************************************* +# Copyright (c) 2024 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: Copyright checks +on: + pull_request: + types: [opened, reopened, synchronize] + merge_group: + types: [checks_requested] +jobs: + copyright-check: + uses: eclipse-score/cicd-workflows/.github/workflows/copyright.yml@main + with: + bazel-target: "run //:copyright.check" diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 000000000..620d69727 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,26 @@ +# ******************************************************************************* +# Copyright (c) 2024 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: Formatting checks + +on: + pull_request: + types: [opened, reopened, synchronize] + merge_group: + types: [checks_requested] + +jobs: + formatting-check: + uses: eclipse-score/cicd-workflows/.github/workflows/format.yml@main + with: + bazel-target: "test //:format.check" # optional, this is the default diff --git a/.github/workflows/gitlint.yml b/.github/workflows/gitlint.yml new file mode 100644 index 000000000..90487edca --- /dev/null +++ b/.github/workflows/gitlint.yml @@ -0,0 +1,31 @@ +# ******************************************************************************* +# Copyright (c) 2024 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: Gitlint check +on: + pull_request: + types: [opened, synchronize, reopened] +jobs: + lint-commits: + name: check-commit-messages + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Run Gitlint Action + if: ${{ github.event_name == 'pull_request' }} + uses: ./.github/actions/gitlint + with: + pr-number: ${{ github.event.number }} diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml new file mode 100644 index 000000000..aba7f99d8 --- /dev/null +++ b/.github/workflows/license_check.yml @@ -0,0 +1,32 @@ +# ******************************************************************************* +# 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: License check preparation +on: + pull_request_target: + types: [opened, reopened, synchronize] + merge_group: + types: [checks_requested] + +permissions: + pull-requests: write + issues: write + + +jobs: + license-check: + uses: eclipse-score/cicd-workflows/.github/workflows/license-check.yml@main + with: + repo-url: "${{ github.server_url }}/${{ github.repository }}" + secrets: + dash-api-token: ${{ secrets.ECLIPSE_GITLAB_API_TOKEN }} diff --git a/CONTRIBUTION.md b/CONTRIBUTION.md new file mode 100644 index 000000000..dcc54e64c --- /dev/null +++ b/CONTRIBUTION.md @@ -0,0 +1,35 @@ +# Eclipse Safe Open Vehicle Core (SCORE) +The [Eclipse Safe Open Vehicle Core](https://projects.eclipse.org/projects/automotive.score) project aims to develop an open-source core stack for Software Defined Vehicles (SDVs), specifically targeting embedded high-performance Electronic Control Units (ECUs). +Please check the [documentation](https://eclipse-score.github.io) for more information. +The source code is hosted at [GitHub](https://github.com/eclipse-score). + +The communication mainly takes place via the [`score-dev` mailing list](https://accounts.eclipse.org/mailing-list/score-dev) and GitHub issues & pull requests (PR). And we have a chatroom for community discussions here [Eclipse SCORE chatroom](https://chat.eclipse.org/#/room/#automotive.score:matrix.eclipse.org). + +Please note that for the project the [Eclipse Foundation’s Terms of Use](https://www.eclipse.org/legal/terms-of-use/) apply. +In addition, you need to sign the [ECA](https://www.eclipse.org/legal/ECA.php) and the [DCO](https://www.eclipse.org/legal/dco/) to contribute to the project. + +## Contributing +### Getting the source code & building the project +Please refer to the [README.md](README.md) for further information. + +### Getting involved + +#### Setup Phase +This phase is part of the eclipse Incubation Phase and shall establish all the processes needed for a safe development of functions. Only after this phase it will be possible to contribute code to the project. As the development in this project is driven by requirements, the processes and needed infrastructure incl. tooling will be established based on non-functional Stakeholder_Requirements. During setup phase the contributions are Bug Fixes and Improvements (both on processes and infrastructure). + +#### Bug Fixes and Improvements +Improvements are adding/changing processes and infrastructure, bug fixes can be also on development work products like code. +In case you want to fix a bug or contribute an improvement, please perform the following steps: +1) Create a PR by using the corresponding template ([Bugfix PR template](.github/PULL_REQUEST_TEMPLATE/bug_fix.md) or [Improvement PR template](.github/PULL_REQUEST_TEMPLATE/improvement.md)). Please mark your PR as draft until it's ready for review by the Committers (see the [Eclipse Foundation Project Handbook](https://www.eclipse.org/projects/handbook/#contributing-committers) for more information on the role definitions). Improvements are requested by the definition or modification of [Stakeholder Requirements](docs/stakeholder_requirements) or [Tool Requirements](docs/tool_requirements) and may be implemented after acceptance/merge of the request by a second Improvement PR. The needed reviews are automatically triggered via the [CODEOWNERS](.github/CODEOWNERS) file in the repository. +2) Initiate content review by opening a corresponding issue for the PR when it is ready for review. Review of the PR and final merge into the project repository is in responsibility of the Committers. Use the [Bugfix Issue template](.github/ISSUE_TEMPLATE/bug_fix.md) or [Improvement Issue template](.github/ISSUE_TEMPLATE/improvement.md) for this. + +Please check here for our Git Commit Rules in the [Configuration_Tool_Guidelines](https://eclipse-score.github.io/score/process_description/guidelines/index.html). + +Please use the [Stakeholder and Tool Requirements Template](https://eclipse-score.github.io/score/process_description/templates/index.html) when defining these requirements. + +![Contribution guide workflow](./docs/_assets/contribution_guide.svg "Contribution guide workflow") + +#### Additional Information +Please note, that all Git commit messages must adhere the rules described in the [Eclipse Foundation Project Handbook](https://www.eclipse.org/projects/handbook/#resources-commit). + +Please find process descriptions here: [process description](https://eclipse-score.github.io/score/process_description/). diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..f433b1a53 --- /dev/null +++ b/LICENSE @@ -0,0 +1,177 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS diff --git a/NOTICE b/NOTICE new file mode 100644 index 000000000..5d111d48c --- /dev/null +++ b/NOTICE @@ -0,0 +1,32 @@ +# Notices for Eclipse Safe Open Vehicle Core + +This content is produced and maintained by the Eclipse Safe Open Vehicle Core project. + + * Project home: https://projects.eclipse.org/projects/automotive.score + +## Trademarks + +Eclipse, and the Eclipse Logo are registered trademarks of the Eclipse Foundation. + +## Copyright + +All content is the property of the respective authors or their employers. +For more information regarding authorship of content, please consult the +listed source code repository logs. + +## Declared Project Licenses + +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 + +## Cryptography + +Content may contain encryption software. The country in which you are currently +may have restrictions on the import, possession, and use, and/or re-export to +another country, of encryption software. BEFORE using any encryption software, +please check the country's laws, regulations and policies concerning the import, +possession, or use, and re-export of encryption software, to see if this is +permitted. diff --git a/docs/conf.py b/docs/conf.py new file mode 100644 index 000000000..cf13475a4 --- /dev/null +++ b/docs/conf.py @@ -0,0 +1,56 @@ +# ******************************************************************************* +# Copyright (c) 2024 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 +# ******************************************************************************* + +# Configuration file for the Sphinx documentation builder. +# +# For the full list of built-in configuration values, see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + + +# -- Project information ----------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information + +project = "Module Template Project" +project_url = "https://eclipse-score.github.io/module_template/" +project_prefix = "MODULE_TEMPLATE_" +author = "S-CORE" +version = "0.1" + +# -- General configuration --------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration + + +extensions = [ + "sphinx_design", + "sphinx_needs", + "sphinxcontrib.plantuml", + "score_plantuml", + "score_metamodel", + "score_draw_uml_funcs", + "score_source_code_linker", + "score_layout", +] + +exclude_patterns = [ + # The following entries are not required when building the documentation via 'bazel + # build //docs:docs', as that command runs in a sandboxed environment. However, when + # building the documentation via 'bazel run //docs:incremental' or esbonio, these + # entries are required to prevent the build from failing. + "bazel-*", + ".venv_docs", +] + +templates_path = ["templates"] + +# Enable numref +numfig = True diff --git a/docs/index.rst b/docs/index.rst new file mode 100644 index 000000000..f8e53dadb --- /dev/null +++ b/docs/index.rst @@ -0,0 +1,82 @@ +.. + # ******************************************************************************* + # Copyright (c) 2024 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 + # ******************************************************************************* + +Module Template Documentation +============================= + +This documentation describes the structure, usage and configuration of the Bazel-based C++/Rust module template. + +.. contents:: Table of Contents + :depth: 2 + :local: + +Overview +-------- + +This repository provides a standardized setup for projects using **C++** or **Rust** and **Bazel** as a build system. +It integrates best practices for build, test, CI/CD and documentation. + +Requirements +------------ + +.. stkh_req:: Example Functional Requirement + :id: stkh_req__docgen_enabled__example + :status: valid + :safety: QM + :security: YES + :reqtype: Functional + :rationale: Ensure documentation builds are possible for all modules + + +Project Layout +-------------- + +The module template includes the following top-level structure: + +- `src/`: Main C++/Rust sources +- `tests/`: Unit and integration tests +- `examples/`: Usage examples +- `docs/`: Documentation using `docs-as-code` +- `.github/workflows/`: CI/CD pipelines + +Quick Start +----------- + +To build the module: + +.. code-block:: bash + + bazel build //src/... + +To run tests: + +.. code-block:: bash + + bazel test //tests/... + +Configuration +------------- + +The `project_config.bzl` file defines metadata used by Bazel macros. + +Example: + +.. code-block:: python + + PROJECT_CONFIG = { + "asil_level": "QM", + "source_code": ["cpp", "rust"] + } + +This enables conditional behavior (e.g., choosing `clang-tidy` for C++ or `clippy` for Rust). From 07af8c30bbd248bc397f3b8b18b531c1d0d56896 Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 10:56:59 +0100 Subject: [PATCH 02/12] fix: wrong build name --- .github/workflows/build_and_test_host_gcc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test_host_gcc.yml b/.github/workflows/build_and_test_host_gcc.yml index aa4da4659..49b2fb6e2 100644 --- a/.github/workflows/build_and_test_host_gcc.yml +++ b/.github/workflows/build_and_test_host_gcc.yml @@ -14,7 +14,7 @@ # Workflow configuration for S-CORE CI - Bazel Build & Test daal module # This workflow runs Bazel build and test when triggered by specific pull request events. -name: Bazel Build & Test daal module +name: Bazel Build & Test lifecycle module on: pull_request: types: [opened, reopened, synchronize] From ba1173afd887a2c0a925a433594725549634a2a3 Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 10:57:44 +0100 Subject: [PATCH 03/12] fix: wrong name --- .github/workflows/build_and_test_host_gcc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test_host_gcc.yml b/.github/workflows/build_and_test_host_gcc.yml index 49b2fb6e2..7aa16357b 100644 --- a/.github/workflows/build_and_test_host_gcc.yml +++ b/.github/workflows/build_and_test_host_gcc.yml @@ -11,7 +11,7 @@ # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* -# Workflow configuration for S-CORE CI - Bazel Build & Test daal module +# Workflow configuration for S-CORE CI - Bazel Build & Test lifecycle module # This workflow runs Bazel build and test when triggered by specific pull request events. name: Bazel Build & Test lifecycle module From b952827a5838fbabf864f2b92724c762ac98855e Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 11:10:08 +0100 Subject: [PATCH 04/12] fix: changed module versions --- MODULE.bazel | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 242c71cb6..4b8aef5a6 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,3 +1,21 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* + +module( + name = "score_lifecycle_health", + version = "0.0.1", +) + bazel_dep(name = "rules_python", version = "1.4.1") PYTHON_VERSION = "3.12" @@ -17,11 +35,11 @@ bazel_dep(name = "rules_cc", version = "0.2.9") # Score platforms bazel_dep(name = "score_bazel_platforms", version = "v0.0.2") -git_override( - module_name = "score_bazel_platforms", - remote = "https://github.com/eclipse-score/bazel_platforms.git", - tag="v0.0.2" -) + +# Checker rule for CopyRight checks/fixs +bazel_dep(name = "score_cr_checker", version = "0.3.1") +bazel_dep(name = "score_python_basics", version = "0.3.4") +bazel_dep(name = "score_starpls_lsp", version = "0.1.0") # Score Rust/C++ toolchains bazel_dep(name = "score_toolchains_rust", version = "0.1") @@ -43,12 +61,8 @@ archive_override( ) # Score Qnx toolchain -bazel_dep(name = "score_toolchains_qnx", version = "0.1") -git_override( - module_name = "score_toolchains_qnx", - tag = "v0.0.2", - remote = "https://github.com/eclipse-score/toolchains_qnx.git", -) +bazel_dep(name = "score_toolchains_qnx", version = "0.0.3") + toolchains_qnx = use_extension("@score_toolchains_qnx//:extensions.bzl", "toolchains_qnx") toolchains_qnx.sdp( sha256 = "f2e0cb21c6baddbcb65f6a70610ce498e7685de8ea2e0f1648f01b327f6bac63", @@ -117,12 +131,7 @@ git_override( remote = "https://github.com/google/flatbuffers.git", commit = "187240970746d00bbd26b0f5873ed54d2477f9f3", ) -bazel_dep(name = "score-baselibs", version = "0.1.0") -git_override( - module_name = "score-baselibs", - commit = "05b920e14a0830cbf390577fb5119f27c2fa6cda", - remote = "https://github.com/eclipse-score/baselibs.git", -) +bazel_dep(name = "score-baselibs", version = "0.1.3") # Rust crate crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate") From 5ad37c66932051376b91fcf2a41395897cb57f4c Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 11:13:22 +0100 Subject: [PATCH 05/12] fixed baselibs naming --- MODULE.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MODULE.bazel b/MODULE.bazel index 4b8aef5a6..13212419b 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -131,7 +131,7 @@ git_override( remote = "https://github.com/google/flatbuffers.git", commit = "187240970746d00bbd26b0f5873ed54d2477f9f3", ) -bazel_dep(name = "score-baselibs", version = "0.1.3") +bazel_dep(name = "score_baselibs", version = "0.1.3") # Rust crate crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate") From 26556eb2ccbabbb8e61adc05d4baae05d7d4dbe7 Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 11:15:49 +0100 Subject: [PATCH 06/12] fix: removed wrong v --- MODULE.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MODULE.bazel b/MODULE.bazel index 13212419b..3b187e8b2 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -34,7 +34,7 @@ bazel_dep(name = "googletest", version = "1.17.0") bazel_dep(name = "rules_cc", version = "0.2.9") # Score platforms -bazel_dep(name = "score_bazel_platforms", version = "v0.0.2") +bazel_dep(name = "score_bazel_platforms", version = "0.0.2") # Checker rule for CopyRight checks/fixs bazel_dep(name = "score_cr_checker", version = "0.3.1") From 3e8640abd9e213a13ab09ace1f44431fe08d1ddb Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 12:32:14 +0100 Subject: [PATCH 07/12] fixed bazelrc --- .bazelrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bazelrc b/.bazelrc index a403c3e83..a8a975597 100644 --- a/.bazelrc +++ b/.bazelrc @@ -21,8 +21,8 @@ common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry common --registry=https://bcr.bazel.build # score::mw::log -common --@score-baselibs//score/mw/log/flags:KRemote_Logging=False -common --@score-baselibs//score/json:base_library=nlohmann +common --@score_baselibs//score/mw/log/flags:KRemote_Logging=False +common --@score_baselibs//score/json:base_library=nlohmann ## default is a stdout logger which looks like dlt logs ## uncomment below to use score::mw::log instead of the stdout logger # build --cxxopt=-DLC_LOG_SCORE_MW_LOG From 07e8806e5dfac3eab966cc97c3b4ad5ee31e9896 Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 11:52:11 +0000 Subject: [PATCH 08/12] fix:baselibs --- health_monitor/BUILD | 10 +++++----- launch_manager/BUILD | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/health_monitor/BUILD b/health_monitor/BUILD index 2a192373e..c51b67db4 100644 --- a/health_monitor/BUILD +++ b/health_monitor/BUILD @@ -9,7 +9,7 @@ cc_library_with_common_opts( "source/etas/vrte/saf/logging" ], deps = [ - "@score-baselibs//score/mw/log" + "@score_baselibs//score/mw/log" ], ) @@ -17,7 +17,7 @@ cc_library_with_common_opts( name = "ifexm", deps = [ "//launch_manager:process_state_client", - "@score-baselibs//score/mw/log", + "@score_baselibs//score/mw/log", ], srcs = [ "source/etas/vrte/saf/ifexm/ProcessState.cpp", @@ -81,7 +81,7 @@ cc_library_with_common_opts( "source/etas/vrte/saf/logging", ], deps = [ - "@score-baselibs//score/mw/log", + "@score_baselibs//score/mw/log", ], ) @@ -89,7 +89,7 @@ cc_library_with_common_opts( name = "recoverynotify", deps = [ "//launch_manager:control_client", - "@score-baselibs//score/mw/log", + "@score_baselibs//score/mw/log", ], srcs = ["source/etas/vrte/saf/recovery/Notification.cpp"], hdrs = [ @@ -249,7 +249,7 @@ cc_binary_with_common_opts( ":timers", ":rb-watchdog-if", "@flatbuffers//:flatc", - "@score-baselibs//score/mw/log", + "@score_baselibs//score/mw/log", ], srcs = [ "source/etas/vrte/saf/daemon/health_monitor.cpp", diff --git a/launch_manager/BUILD b/launch_manager/BUILD index a54b3d2c0..bc7b0d3a8 100644 --- a/launch_manager/BUILD +++ b/launch_manager/BUILD @@ -15,8 +15,8 @@ cc_library( cc_binary_with_common_opts( name = "launch_manager", deps = [ - "@score-baselibs//score/result", - "@score-baselibs//score/mw/log", + "@score_baselibs//score/result", + "@score_baselibs//score/mw/log", "@flatbuffers", "//external/ipc_dropin:ipc_dropin", ":deliverables_includes", @@ -65,8 +65,8 @@ alias( cc_library( name = "lifecycle_client", deps = [ - "@score-baselibs//score/result", - "@score-baselibs//score/mw/log", + "@score_baselibs//score/result", + "@score_baselibs//score/mw/log", ":deliverables_includes", ], srcs = [ @@ -85,8 +85,8 @@ cc_library( cc_library( name = "control_client", deps = [ - "@score-baselibs//score/concurrency/future", - "@score-baselibs//score/mw/log", + "@score_baselibs//score/concurrency/future", + "@score_baselibs//score/mw/log", ":deliverables_includes", ], srcs = [ @@ -110,9 +110,9 @@ cc_library( cc_library( name = "xaap-processstate-client", deps = [ - "@score-baselibs//score/result", + "@score_baselibs//score/result", ":deliverables_includes", - "@score-baselibs//score/mw/log", + "@score_baselibs//score/mw/log", "//external/ipc_dropin:ipc_dropin", ], srcs = [ From 417dea7245ff84236de639d6b17ab267c7eebd99 Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 11:55:53 +0000 Subject: [PATCH 09/12] added correct build file --- BUILD | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/BUILD b/BUILD index e69de29bb..cd4158a39 100644 --- a/BUILD +++ b/BUILD @@ -0,0 +1,76 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* +load("@bazel_skylib//rules:common_settings.bzl", "string_flag") +load("@score_cr_checker//:cr_checker.bzl", "copyright_checker") +load("@score_dash_license_checker//:dash.bzl", "dash_license_checker") +load("@score_format_checker//:macros.bzl", "use_format_targets") +load("@score_python_basics//:defs.bzl", "score_virtualenv") +load("@score_starpls_lsp//:starpls.bzl", "setup_starpls") +load("//:project_config.bzl", "PROJECT_CONFIG") + +setup_starpls( + name = "starpls_server", + visibility = ["//visibility:public"], +) + +score_virtualenv( + name = "ide_support", + reqs = [], + venv_name = ".venv", +) + +copyright_checker( + name = "copyright", + srcs = [ + "src", + "tests", + "//:BUILD", + "//:MODULE.bazel", + ], + config = "@score_cr_checker//resources:config", + template = "@score_cr_checker//resources:templates", + visibility = ["//visibility:public"], +) + +dash_license_checker( + src = "//examples:cargo_lock", + file_type = "", # let it auto-detect based on project_config + project_config = PROJECT_CONFIG, + visibility = ["//visibility:public"], +) + +# Add target for formatting checks +use_format_targets() + +# Prod/Dev config + +# Prod and dev + +string_flag( + name = "build_type", + build_setting_default = "dev", +) + +config_setting( + name = "dev", + flag_values = { + ":build_type": "dev", + }, +) + +config_setting( + name = "prod", + flag_values = { + ":build_type": "prod", + }, +) From 540e70eb069de0186ac41c4a7f1074a9793e5cc6 Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 13:38:04 +0000 Subject: [PATCH 10/12] fix: copyright scan --- BUILD | 18 ++++++++++-------- MODULE.bazel | 10 ++++++++++ project_config.bzl | 5 +++++ 3 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 project_config.bzl diff --git a/BUILD b/BUILD index cd4158a39..340dd2380 100644 --- a/BUILD +++ b/BUILD @@ -32,8 +32,10 @@ score_virtualenv( copyright_checker( name = "copyright", srcs = [ - "src", - "tests", + "demo", + "health_monitor", + "launch_manager", + "rust_bindings", "//:BUILD", "//:MODULE.bazel", ], @@ -42,12 +44,12 @@ copyright_checker( visibility = ["//visibility:public"], ) -dash_license_checker( - src = "//examples:cargo_lock", - file_type = "", # let it auto-detect based on project_config - project_config = PROJECT_CONFIG, - visibility = ["//visibility:public"], -) +#dash_license_checker( +# src = "//examples:cargo_lock", +# file_type = "", # let it auto-detect based on project_config +# project_config = PROJECT_CONFIG, +# visibility = ["//visibility:public"], +#) # Add target for formatting checks use_format_targets() diff --git a/MODULE.bazel b/MODULE.bazel index 3b187e8b2..163dffb40 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -41,6 +41,15 @@ bazel_dep(name = "score_cr_checker", version = "0.3.1") bazel_dep(name = "score_python_basics", version = "0.3.4") bazel_dep(name = "score_starpls_lsp", version = "0.1.0") +#docs-as-code +bazel_dep(name = "score_docs_as_code", version = "2.0.2") + +# Dash license checker +bazel_dep(name = "score_dash_license_checker", version = "0.1.2") + +# Format checker +bazel_dep(name = "score_format_checker", version = "0.1.1") + # Score Rust/C++ toolchains bazel_dep(name = "score_toolchains_rust", version = "0.1") git_override( @@ -95,6 +104,7 @@ use_repo(rust_ext, "sysroot_linux_aarch64") # Score Rust/C++ toolchains: Configure rules_rust and toolchains_llvm extensions bazel_dep(name = "rules_rust", version = "0.61.0") bazel_dep(name = "toolchains_llvm", version = "1.2.0") +bazel_dep(name = "bazel_skylib", version = "1.8.1") llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm") llvm.toolchain( diff --git a/project_config.bzl b/project_config.bzl new file mode 100644 index 000000000..f764a1d02 --- /dev/null +++ b/project_config.bzl @@ -0,0 +1,5 @@ +# project_config.bzl +PROJECT_CONFIG = { + "asil_level": "QM", + "source_code": ["rust"], +} From c03f6de96837c1d110eb1f5193f97510f4295305 Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 13:39:09 +0000 Subject: [PATCH 11/12] fix: copyrights added --- demo/config/gen_common_cfg.py | 12 ++++++++++++ demo/config/gen_health_monitor_cfg.py | 12 ++++++++++++ demo/config/gen_health_monitor_process_cfg.py | 12 ++++++++++++ demo/config/gen_launch_manager_cfg.py | 12 ++++++++++++ demo/control_application/BUILD | 12 ++++++++++++ demo/control_application/control.hpp | 12 ++++++++++++ demo/control_application/control_app_cli.cpp | 12 ++++++++++++ demo/control_application/control_daemon.cpp | 12 ++++++++++++ demo/cpp_lifecycle_app/BUILD | 12 ++++++++++++ demo/cpp_lifecycle_app/main.cpp | 12 ++++++++++++ demo/cpp_supervised_app/BUILD | 12 ++++++++++++ demo/cpp_supervised_app/main.cpp | 12 ++++++++++++ demo/demo.sh | 12 ++++++++++++ demo/run.sh | 12 ++++++++++++ demo/rust_supervised_app/BUILD | 12 ++++++++++++ health_monitor/BUILD | 12 ++++++++++++ health_monitor/include/score/lcm/Monitor.h | 12 ++++++++++++ .../include/score/lcm/MonitorImplWrapper.h | 12 ++++++++++++ .../config/gen/hm_model/hm_flatcfg_generated.h | 12 ++++++++++++ .../gen/hmcore_model/hmcore_flatcfg_generated.h | 12 ++++++++++++ .../source/etas/vrte/saf/common/FixedSizeVector.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/common/LockedVector.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/common/Observer.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/common/PhmSignalHandler.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/common/PhmSignalHandler.hpp | 12 ++++++++++++ .../etas/vrte/saf/common/TimeSortingBuffer.hpp | 12 ++++++++++++ health_monitor/source/etas/vrte/saf/common/Types.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/daemon/PhmDaemon.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/daemon/PhmDaemon.hpp | 12 ++++++++++++ .../etas/vrte/saf/daemon/PhmDaemonCmdLineParser.cpp | 12 ++++++++++++ .../etas/vrte/saf/daemon/PhmDaemonCmdLineParser.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/daemon/PhmDaemonConfig.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/daemon/SwClusterHandler.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/daemon/SwClusterHandler.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/daemon/health_monitor.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/factory/FlatCfgFactory.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/factory/FlatCfgFactory.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/factory/IPhmFactory.hpp | 12 ++++++++++++ .../etas/vrte/saf/factory/MachineConfigFactory.cpp | 12 ++++++++++++ .../etas/vrte/saf/factory/MachineConfigFactory.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/factory/StaticConfig.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/ifappl/Checkpoint.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/ifappl/Checkpoint.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/ifappl/DataStructures.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/ifappl/MonitorIfDaemon.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/ifappl/MonitorIfDaemon.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/ifexm/ProcessCfg.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/ifexm/ProcessCfg.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/ifexm/ProcessState.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/ifexm/ProcessState.hpp | 12 ++++++++++++ .../etas/vrte/saf/ifexm/ProcessStateReader.cpp | 12 ++++++++++++ .../etas/vrte/saf/ifexm/ProcessStateReader.hpp | 12 ++++++++++++ health_monitor/source/etas/vrte/saf/ipc/IpcBase.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/ipc/IpcClient.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/ipc/IpcServer.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/logging/PhmLogger.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/logging/PhmLogger.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/recovery/Notification.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/recovery/Notification.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/supervision/Alive.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/supervision/Alive.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/supervision/Deadline.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/supervision/Deadline.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/supervision/Global.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/supervision/Global.hpp | 12 ++++++++++++ .../vrte/saf/supervision/ICheckpointSupervision.cpp | 12 ++++++++++++ .../vrte/saf/supervision/ICheckpointSupervision.hpp | 12 ++++++++++++ .../etas/vrte/saf/supervision/ISupervision.cpp | 12 ++++++++++++ .../etas/vrte/saf/supervision/ISupervision.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/supervision/Local.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/supervision/Local.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/supervision/Logical.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/supervision/Logical.hpp | 12 ++++++++++++ .../vrte/saf/supervision/ProcessStateTracker.cpp | 12 ++++++++++++ .../vrte/saf/supervision/ProcessStateTracker.hpp | 12 ++++++++++++ .../etas/vrte/saf/supervision/SupervisionCfg.hpp | 12 ++++++++++++ .../etas/vrte/saf/timers/CycleTimeValidator.cpp | 12 ++++++++++++ .../etas/vrte/saf/timers/CycleTimeValidator.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/timers/CycleTimer.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/timers/CycleTimer.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/timers/OsClockInterface.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/timers/TimeConversion.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/timers/TimeConversion.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/timers/Timers_OsClock.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/timers/Timers_OsClock.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/watchdog/DeviceIf.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/watchdog/DeviceIf.hpp | 12 ++++++++++++ .../etas/vrte/saf/watchdog/IDeviceConfigFactory.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/watchdog/IWatchdogIf.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/watchdog/Watchdog.hpp | 12 ++++++++++++ .../source/etas/vrte/saf/watchdog/WatchdogImpl.cpp | 12 ++++++++++++ .../source/etas/vrte/saf/watchdog/WatchdogImpl.hpp | 12 ++++++++++++ health_monitor/source/score/lcm/hmlib/Monitor.cpp | 12 ++++++++++++ .../source/score/lcm/hmlib/MonitorImpl.cpp | 12 ++++++++++++ health_monitor/source/score/lcm/hmlib/MonitorImpl.h | 12 ++++++++++++ .../source/score/lcm/hmlib/MonitorImplWrapper.cpp | 12 ++++++++++++ launch_manager/BUILD | 12 ++++++++++++ .../common/identifier_hash/identifier_hash.cpp | 12 ++++++++++++ .../deliverables/common/osal/linux/numcores.cpp | 12 ++++++++++++ .../common/osal/linux/securitypolicy.cpp | 12 ++++++++++++ .../deliverables/common/osal/linux/setaffinity.cpp | 12 ++++++++++++ .../deliverables/common/osal/linux/setgroups.cpp | 12 ++++++++++++ .../common/osal/posix/processlauncher.cpp | 12 ++++++++++++ .../deliverables/common/osal/posix/semaphore.cpp | 12 ++++++++++++ .../deliverables/common/osal/posix/sysexit.cpp | 12 ++++++++++++ .../deliverables/common/osal/qnx/numcores.cpp | 12 ++++++++++++ .../deliverables/common/osal/qnx/securitypolicy.cpp | 12 ++++++++++++ .../deliverables/common/osal/qnx/setaffinity.cpp | 12 ++++++++++++ .../deliverables/common/osal/qnx/setgroups.cpp | 12 ++++++++++++ .../deliverables/config/gen/lm_flatcfg_generated.h | 12 ++++++++++++ .../src/configurationmanager.cpp | 12 ++++++++++++ launch_manager/deliverables/daemon/main/src/main.cpp | 12 ++++++++++++ .../daemon/process_group_manager/src/config.cpp | 12 ++++++++++++ .../src/controlclientchannel.cpp | 12 ++++++++++++ .../daemon/process_group_manager/src/graph.cpp | 12 ++++++++++++ .../daemon/process_group_manager/src/jobqueue.cpp | 12 ++++++++++++ .../daemon/process_group_manager/src/oshandler.cpp | 12 ++++++++++++ .../process_state_notifier/processstatenotifier.cpp | 12 ++++++++++++ .../src/processgroupmanager.cpp | 12 ++++++++++++ .../process_group_manager/src/processinfonode.cpp | 12 ++++++++++++ .../process_group_manager/src/safeprocessmap.cpp | 12 ++++++++++++ .../process_group_manager/src/workerthread.cpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/LifecycleClientExt.hpp | 12 ++++++++++++ .../deliverables/inc/etas/vrte/lcm/config.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/configurationmanager.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/control_client_impl.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/controlclientchannel.hpp | 12 ++++++++++++ .../deliverables/inc/etas/vrte/lcm/graph.hpp | 12 ++++++++++++ .../deliverables/inc/etas/vrte/lcm/jobqueue.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/lifecycleclientimpl.hpp | 12 ++++++++++++ .../deliverables/inc/etas/vrte/lcm/log.hpp | 12 ++++++++++++ .../deliverables/inc/etas/vrte/lcm/osal/iprocess.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/osal/osalipccomms.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/osal/osalnumcores.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/osal/osalreturntypes.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/osal/securitypolicy.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/osal/semaphore.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/osal/setaffinity.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/osal/setgroups.hpp | 12 ++++++++++++ .../deliverables/inc/etas/vrte/lcm/osal/sysexit.hpp | 12 ++++++++++++ .../deliverables/inc/etas/vrte/lcm/oshandler.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/process_group_state_id.hpp | 12 ++++++++++++ .../vrte/lcm/process_state_client/posixprocess.hpp | 12 ++++++++++++ .../lcm/process_state_client/processstateclient.hpp | 12 ++++++++++++ .../process_state_notifier/processstatenotifier.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/processgroupmanager.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/processinfonode.hpp | 12 ++++++++++++ .../inc/etas/vrte/lcm/safeprocessmap.hpp | 12 ++++++++++++ .../deliverables/inc/etas/vrte/lcm/workerthread.hpp | 12 ++++++++++++ .../inc/internal/ExcludeCoverageAdapter.h | 12 ++++++++++++ .../deliverables/inc/score/lcm/control_client.h | 12 ++++++++++++ .../deliverables/inc/score/lcm/exec_error_domain.h | 12 ++++++++++++ .../inc/score/lcm/execution_error_event.h | 12 ++++++++++++ .../deliverables/inc/score/lcm/identifier_hash.hpp | 12 ++++++++++++ .../deliverables/inc/score/lcm/lifecycle_client.h | 12 ++++++++++++ .../process_state_client/src/processstateclient.cpp | 12 ++++++++++++ .../score/control_client/src/control_client.cpp | 12 ++++++++++++ .../score/control_client/src/control_client_impl.cpp | 12 ++++++++++++ .../score/lifecycle_client/src/lifecycleclient.cpp | 12 ++++++++++++ .../lifecycle_client/src/lifecycleclientimpl.cpp | 12 ++++++++++++ rust_bindings/lifecycle_client_rs/BUILD | 12 ++++++++++++ rust_bindings/monitor_rs/BUILD | 12 ++++++++++++ 162 files changed, 1944 insertions(+) diff --git a/demo/config/gen_common_cfg.py b/demo/config/gen_common_cfg.py index 639ea30f3..579c14724 100644 --- a/demo/config/gen_common_cfg.py +++ b/demo/config/gen_common_cfg.py @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* def get_process_index_range(process_count : int, process_group_index : int): # Every ProcessGroup gets the same number of processes # The Process Index is a globally unique increasing number diff --git a/demo/config/gen_health_monitor_cfg.py b/demo/config/gen_health_monitor_cfg.py index ca9827770..740b38cac 100644 --- a/demo/config/gen_health_monitor_cfg.py +++ b/demo/config/gen_health_monitor_cfg.py @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* import argparse from pathlib import Path import os diff --git a/demo/config/gen_health_monitor_process_cfg.py b/demo/config/gen_health_monitor_process_cfg.py index 99085a60c..719a47b59 100644 --- a/demo/config/gen_health_monitor_process_cfg.py +++ b/demo/config/gen_health_monitor_process_cfg.py @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* import argparse from pathlib import Path import os diff --git a/demo/config/gen_launch_manager_cfg.py b/demo/config/gen_launch_manager_cfg.py index c9c598e84..cc1fedceb 100644 --- a/demo/config/gen_launch_manager_cfg.py +++ b/demo/config/gen_launch_manager_cfg.py @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* import argparse import json from pathlib import Path diff --git a/demo/control_application/BUILD b/demo/control_application/BUILD index 5848430d8..36df4255c 100644 --- a/demo/control_application/BUILD +++ b/demo/control_application/BUILD @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* cc_binary( name = "lmcontrol", deps = [ diff --git a/demo/control_application/control.hpp b/demo/control_application/control.hpp index 3d2aee2a4..328f1f4f1 100644 --- a/demo/control_application/control.hpp +++ b/demo/control_application/control.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef CONTROL_HPP #define CONTROL_HPP diff --git a/demo/control_application/control_app_cli.cpp b/demo/control_application/control_app_cli.cpp index 62d9edf36..f57308efb 100644 --- a/demo/control_application/control_app_cli.cpp +++ b/demo/control_application/control_app_cli.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/demo/control_application/control_daemon.cpp b/demo/control_application/control_daemon.cpp index 582a508be..5633bfae8 100644 --- a/demo/control_application/control_daemon.cpp +++ b/demo/control_application/control_daemon.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include #include diff --git a/demo/cpp_lifecycle_app/BUILD b/demo/cpp_lifecycle_app/BUILD index 7ae802880..d67dcc7fa 100644 --- a/demo/cpp_lifecycle_app/BUILD +++ b/demo/cpp_lifecycle_app/BUILD @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* cc_binary( name = "cpp_lifecycle_app", deps = [ diff --git a/demo/cpp_lifecycle_app/main.cpp b/demo/cpp_lifecycle_app/main.cpp index f95f34f3a..29f9a75cc 100644 --- a/demo/cpp_lifecycle_app/main.cpp +++ b/demo/cpp_lifecycle_app/main.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/demo/cpp_supervised_app/BUILD b/demo/cpp_supervised_app/BUILD index 94c71542d..5c82cb3b4 100644 --- a/demo/cpp_supervised_app/BUILD +++ b/demo/cpp_supervised_app/BUILD @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* cc_binary( name = "cpp_supervised_app", deps = [ diff --git a/demo/cpp_supervised_app/main.cpp b/demo/cpp_supervised_app/main.cpp index 37b502961..98c5a4b38 100644 --- a/demo/cpp_supervised_app/main.cpp +++ b/demo/cpp_supervised_app/main.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/demo/demo.sh b/demo/demo.sh index 995bffe03..18213fb70 100755 --- a/demo/demo.sh +++ b/demo/demo.sh @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* #!/bin/bash COLOR='\033[0;32m' # Green NC='\033[0m' # No Color diff --git a/demo/run.sh b/demo/run.sh index ccbb34df3..92bccab3f 100755 --- a/demo/run.sh +++ b/demo/run.sh @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* #! /bin/bash set -e diff --git a/demo/rust_supervised_app/BUILD b/demo/rust_supervised_app/BUILD index b323ea1fa..2c36b454d 100644 --- a/demo/rust_supervised_app/BUILD +++ b/demo/rust_supervised_app/BUILD @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* package(default_visibility = ["//visibility:public"]) diff --git a/health_monitor/BUILD b/health_monitor/BUILD index c51b67db4..1ee9f7655 100644 --- a/health_monitor/BUILD +++ b/health_monitor/BUILD @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* load("//config:common_cc.bzl", "cc_library_with_common_opts", "cc_binary_with_common_opts") cc_library_with_common_opts( diff --git a/health_monitor/include/score/lcm/Monitor.h b/health_monitor/include/score/lcm/Monitor.h index e9119ea5c..c1d20971b 100644 --- a/health_monitor/include/score/lcm/Monitor.h +++ b/health_monitor/include/score/lcm/Monitor.h @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef SCORE_LCM_MONITOR_H_ diff --git a/health_monitor/include/score/lcm/MonitorImplWrapper.h b/health_monitor/include/score/lcm/MonitorImplWrapper.h index 966c1c706..0a8115ae7 100644 --- a/health_monitor/include/score/lcm/MonitorImplWrapper.h +++ b/health_monitor/include/score/lcm/MonitorImplWrapper.h @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef SCORE_LCM_MonitorImplWrapper_H_ diff --git a/health_monitor/source/config/gen/hm_model/hm_flatcfg_generated.h b/health_monitor/source/config/gen/hm_model/hm_flatcfg_generated.h index 228435c83..82e2ced28 100644 --- a/health_monitor/source/config/gen/hm_model/hm_flatcfg_generated.h +++ b/health_monitor/source/config/gen/hm_model/hm_flatcfg_generated.h @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // automatically generated by the FlatBuffers compiler, do not modify diff --git a/health_monitor/source/config/gen/hmcore_model/hmcore_flatcfg_generated.h b/health_monitor/source/config/gen/hmcore_model/hmcore_flatcfg_generated.h index d6884cb03..3f2dcf3e2 100644 --- a/health_monitor/source/config/gen/hmcore_model/hmcore_flatcfg_generated.h +++ b/health_monitor/source/config/gen/hmcore_model/hmcore_flatcfg_generated.h @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // automatically generated by the FlatBuffers compiler, do not modify diff --git a/health_monitor/source/etas/vrte/saf/common/FixedSizeVector.hpp b/health_monitor/source/etas/vrte/saf/common/FixedSizeVector.hpp index bd08dac30..37a3e13ee 100644 --- a/health_monitor/source/etas/vrte/saf/common/FixedSizeVector.hpp +++ b/health_monitor/source/etas/vrte/saf/common/FixedSizeVector.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef FIXEDSIZEVECTOR_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/common/LockedVector.hpp b/health_monitor/source/etas/vrte/saf/common/LockedVector.hpp index b29dd0b8c..a603f018f 100644 --- a/health_monitor/source/etas/vrte/saf/common/LockedVector.hpp +++ b/health_monitor/source/etas/vrte/saf/common/LockedVector.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef LOCKEDVECTOR_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/common/Observer.hpp b/health_monitor/source/etas/vrte/saf/common/Observer.hpp index e62c7f234..ad8d05d00 100644 --- a/health_monitor/source/etas/vrte/saf/common/Observer.hpp +++ b/health_monitor/source/etas/vrte/saf/common/Observer.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef OBSERVER_HPP_INCLUDED #define OBSERVER_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/common/PhmSignalHandler.cpp b/health_monitor/source/etas/vrte/saf/common/PhmSignalHandler.cpp index f02c3fcf5..ea253c593 100644 --- a/health_monitor/source/etas/vrte/saf/common/PhmSignalHandler.cpp +++ b/health_monitor/source/etas/vrte/saf/common/PhmSignalHandler.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/common/PhmSignalHandler.hpp" diff --git a/health_monitor/source/etas/vrte/saf/common/PhmSignalHandler.hpp b/health_monitor/source/etas/vrte/saf/common/PhmSignalHandler.hpp index fc5d8d758..5fea833b9 100644 --- a/health_monitor/source/etas/vrte/saf/common/PhmSignalHandler.hpp +++ b/health_monitor/source/etas/vrte/saf/common/PhmSignalHandler.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. /// @file PhmSignalHandler.hpp diff --git a/health_monitor/source/etas/vrte/saf/common/TimeSortingBuffer.hpp b/health_monitor/source/etas/vrte/saf/common/TimeSortingBuffer.hpp index d42a87558..2d690a000 100644 --- a/health_monitor/source/etas/vrte/saf/common/TimeSortingBuffer.hpp +++ b/health_monitor/source/etas/vrte/saf/common/TimeSortingBuffer.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef TIMESORTINGBUFFER_HPP_INCLUDED #define TIMESORTINGBUFFER_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/common/Types.hpp b/health_monitor/source/etas/vrte/saf/common/Types.hpp index d0a9b8280..4113aa9af 100644 --- a/health_monitor/source/etas/vrte/saf/common/Types.hpp +++ b/health_monitor/source/etas/vrte/saf/common/Types.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef TYPES_HPP_INCLUDED #define TYPES_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/daemon/PhmDaemon.cpp b/health_monitor/source/etas/vrte/saf/daemon/PhmDaemon.cpp index 1c2feb4fc..11fe1ed58 100644 --- a/health_monitor/source/etas/vrte/saf/daemon/PhmDaemon.cpp +++ b/health_monitor/source/etas/vrte/saf/daemon/PhmDaemon.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/daemon/PhmDaemon.hpp" diff --git a/health_monitor/source/etas/vrte/saf/daemon/PhmDaemon.hpp b/health_monitor/source/etas/vrte/saf/daemon/PhmDaemon.hpp index 9272b5cb6..22e06684e 100644 --- a/health_monitor/source/etas/vrte/saf/daemon/PhmDaemon.hpp +++ b/health_monitor/source/etas/vrte/saf/daemon/PhmDaemon.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PHMDAEMON_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonCmdLineParser.cpp b/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonCmdLineParser.cpp index 23f832045..a9cad75da 100644 --- a/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonCmdLineParser.cpp +++ b/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonCmdLineParser.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/daemon/PhmDaemonCmdLineParser.hpp" diff --git a/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonCmdLineParser.hpp b/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonCmdLineParser.hpp index 336af4a87..19cf7c43a 100644 --- a/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonCmdLineParser.hpp +++ b/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonCmdLineParser.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PHMDAEMONCMDLINEPARSER_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonConfig.hpp b/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonConfig.hpp index 7c3db2a0d..b0a6be2e8 100644 --- a/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonConfig.hpp +++ b/health_monitor/source/etas/vrte/saf/daemon/PhmDaemonConfig.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PHMDAEMONCONFIG_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/daemon/SwClusterHandler.cpp b/health_monitor/source/etas/vrte/saf/daemon/SwClusterHandler.cpp index 09e3d45c5..990f8b411 100644 --- a/health_monitor/source/etas/vrte/saf/daemon/SwClusterHandler.cpp +++ b/health_monitor/source/etas/vrte/saf/daemon/SwClusterHandler.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/daemon/SwClusterHandler.hpp" diff --git a/health_monitor/source/etas/vrte/saf/daemon/SwClusterHandler.hpp b/health_monitor/source/etas/vrte/saf/daemon/SwClusterHandler.hpp index d4d297538..bd8748765 100644 --- a/health_monitor/source/etas/vrte/saf/daemon/SwClusterHandler.hpp +++ b/health_monitor/source/etas/vrte/saf/daemon/SwClusterHandler.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef SWCLUSTERHANDLER_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/daemon/health_monitor.cpp b/health_monitor/source/etas/vrte/saf/daemon/health_monitor.cpp index d1ca7c78e..d27e9d77a 100644 --- a/health_monitor/source/etas/vrte/saf/daemon/health_monitor.cpp +++ b/health_monitor/source/etas/vrte/saf/daemon/health_monitor.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/health_monitor/source/etas/vrte/saf/factory/FlatCfgFactory.cpp b/health_monitor/source/etas/vrte/saf/factory/FlatCfgFactory.cpp index b7abe2086..33d31a862 100644 --- a/health_monitor/source/etas/vrte/saf/factory/FlatCfgFactory.cpp +++ b/health_monitor/source/etas/vrte/saf/factory/FlatCfgFactory.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/factory/FlatCfgFactory.hpp" diff --git a/health_monitor/source/etas/vrte/saf/factory/FlatCfgFactory.hpp b/health_monitor/source/etas/vrte/saf/factory/FlatCfgFactory.hpp index f125c25a1..e73563056 100644 --- a/health_monitor/source/etas/vrte/saf/factory/FlatCfgFactory.hpp +++ b/health_monitor/source/etas/vrte/saf/factory/FlatCfgFactory.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef FLATCFGFACTORY_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/factory/IPhmFactory.hpp b/health_monitor/source/etas/vrte/saf/factory/IPhmFactory.hpp index 99f7a73f0..0013f4f64 100644 --- a/health_monitor/source/etas/vrte/saf/factory/IPhmFactory.hpp +++ b/health_monitor/source/etas/vrte/saf/factory/IPhmFactory.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef IPHMFACTORY_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/factory/MachineConfigFactory.cpp b/health_monitor/source/etas/vrte/saf/factory/MachineConfigFactory.cpp index 9c88ea343..11a312abd 100644 --- a/health_monitor/source/etas/vrte/saf/factory/MachineConfigFactory.cpp +++ b/health_monitor/source/etas/vrte/saf/factory/MachineConfigFactory.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/factory/MachineConfigFactory.hpp" diff --git a/health_monitor/source/etas/vrte/saf/factory/MachineConfigFactory.hpp b/health_monitor/source/etas/vrte/saf/factory/MachineConfigFactory.hpp index 2b252aef2..8f2b299c6 100644 --- a/health_monitor/source/etas/vrte/saf/factory/MachineConfigFactory.hpp +++ b/health_monitor/source/etas/vrte/saf/factory/MachineConfigFactory.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef MACHINE_CONFIG_FACTORY_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/factory/StaticConfig.hpp b/health_monitor/source/etas/vrte/saf/factory/StaticConfig.hpp index 0aa0d4610..af191ae0b 100644 --- a/health_monitor/source/etas/vrte/saf/factory/StaticConfig.hpp +++ b/health_monitor/source/etas/vrte/saf/factory/StaticConfig.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef STATICCONFIG_HPP_INCLUDED #define STATICCONFIG_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/ifappl/Checkpoint.cpp b/health_monitor/source/etas/vrte/saf/ifappl/Checkpoint.cpp index 6af26ebb7..5f5b8e2ba 100644 --- a/health_monitor/source/etas/vrte/saf/ifappl/Checkpoint.cpp +++ b/health_monitor/source/etas/vrte/saf/ifappl/Checkpoint.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/ifappl/Checkpoint.hpp" diff --git a/health_monitor/source/etas/vrte/saf/ifappl/Checkpoint.hpp b/health_monitor/source/etas/vrte/saf/ifappl/Checkpoint.hpp index c0152ada8..9108994b3 100644 --- a/health_monitor/source/etas/vrte/saf/ifappl/Checkpoint.hpp +++ b/health_monitor/source/etas/vrte/saf/ifappl/Checkpoint.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef CHECKPOINT_HPP_INCLUDED #define CHECKPOINT_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/ifappl/DataStructures.hpp b/health_monitor/source/etas/vrte/saf/ifappl/DataStructures.hpp index 77a2be52b..d165f649b 100644 --- a/health_monitor/source/etas/vrte/saf/ifappl/DataStructures.hpp +++ b/health_monitor/source/etas/vrte/saf/ifappl/DataStructures.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef DATASTRUCTURES_HPP_INCLUDED #define DATASTRUCTURES_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/ifappl/MonitorIfDaemon.cpp b/health_monitor/source/etas/vrte/saf/ifappl/MonitorIfDaemon.cpp index 387842f0b..d9121183e 100644 --- a/health_monitor/source/etas/vrte/saf/ifappl/MonitorIfDaemon.cpp +++ b/health_monitor/source/etas/vrte/saf/ifappl/MonitorIfDaemon.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/ifappl/MonitorIfDaemon.hpp" diff --git a/health_monitor/source/etas/vrte/saf/ifappl/MonitorIfDaemon.hpp b/health_monitor/source/etas/vrte/saf/ifappl/MonitorIfDaemon.hpp index a94add2f2..054e52a06 100644 --- a/health_monitor/source/etas/vrte/saf/ifappl/MonitorIfDaemon.hpp +++ b/health_monitor/source/etas/vrte/saf/ifappl/MonitorIfDaemon.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef MonitorIfDaemon_HPP_INCLUDED #define MonitorIfDaemon_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/ifexm/ProcessCfg.cpp b/health_monitor/source/etas/vrte/saf/ifexm/ProcessCfg.cpp index 817ca3009..7cc6d9352 100644 --- a/health_monitor/source/etas/vrte/saf/ifexm/ProcessCfg.cpp +++ b/health_monitor/source/etas/vrte/saf/ifexm/ProcessCfg.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/ifexm/ProcessCfg.hpp" diff --git a/health_monitor/source/etas/vrte/saf/ifexm/ProcessCfg.hpp b/health_monitor/source/etas/vrte/saf/ifexm/ProcessCfg.hpp index 48a05f35e..f06178474 100644 --- a/health_monitor/source/etas/vrte/saf/ifexm/ProcessCfg.hpp +++ b/health_monitor/source/etas/vrte/saf/ifexm/ProcessCfg.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PROCESSCFG_HPP_INCLUDED #define PROCESSCFG_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/ifexm/ProcessState.cpp b/health_monitor/source/etas/vrte/saf/ifexm/ProcessState.cpp index 06d5c0722..42716515a 100644 --- a/health_monitor/source/etas/vrte/saf/ifexm/ProcessState.cpp +++ b/health_monitor/source/etas/vrte/saf/ifexm/ProcessState.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/ifexm/ProcessState.hpp" diff --git a/health_monitor/source/etas/vrte/saf/ifexm/ProcessState.hpp b/health_monitor/source/etas/vrte/saf/ifexm/ProcessState.hpp index f5b9852cd..0a8fac213 100644 --- a/health_monitor/source/etas/vrte/saf/ifexm/ProcessState.hpp +++ b/health_monitor/source/etas/vrte/saf/ifexm/ProcessState.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PROCESSSTATE_HPP_INCLUDED #define PROCESSSTATE_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/ifexm/ProcessStateReader.cpp b/health_monitor/source/etas/vrte/saf/ifexm/ProcessStateReader.cpp index ce6a4a95e..fd4088408 100644 --- a/health_monitor/source/etas/vrte/saf/ifexm/ProcessStateReader.cpp +++ b/health_monitor/source/etas/vrte/saf/ifexm/ProcessStateReader.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/ifexm/ProcessStateReader.hpp" diff --git a/health_monitor/source/etas/vrte/saf/ifexm/ProcessStateReader.hpp b/health_monitor/source/etas/vrte/saf/ifexm/ProcessStateReader.hpp index 5d96a745a..6732deb42 100644 --- a/health_monitor/source/etas/vrte/saf/ifexm/ProcessStateReader.hpp +++ b/health_monitor/source/etas/vrte/saf/ifexm/ProcessStateReader.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PROCESSSTATEREADER_HPP_INCLUDED #define PROCESSSTATEREADER_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/ipc/IpcBase.hpp b/health_monitor/source/etas/vrte/saf/ipc/IpcBase.hpp index d5e34b8d3..9d877b697 100644 --- a/health_monitor/source/etas/vrte/saf/ipc/IpcBase.hpp +++ b/health_monitor/source/etas/vrte/saf/ipc/IpcBase.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef IPC_BASE_HPP_INCLUDED #define IPC_BASE_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/ipc/IpcClient.hpp b/health_monitor/source/etas/vrte/saf/ipc/IpcClient.hpp index a055b2dfc..f7409c2f2 100644 --- a/health_monitor/source/etas/vrte/saf/ipc/IpcClient.hpp +++ b/health_monitor/source/etas/vrte/saf/ipc/IpcClient.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef IPC_CLIENT_HPP_INCLUDED #define IPC_CLIENT_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/ipc/IpcServer.hpp b/health_monitor/source/etas/vrte/saf/ipc/IpcServer.hpp index 6ad9e963b..78a934274 100644 --- a/health_monitor/source/etas/vrte/saf/ipc/IpcServer.hpp +++ b/health_monitor/source/etas/vrte/saf/ipc/IpcServer.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef IPC_SERVER_HPP_INCLUDED #define IPC_SERVER_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/logging/PhmLogger.cpp b/health_monitor/source/etas/vrte/saf/logging/PhmLogger.cpp index c457352c0..3f1bbaca0 100644 --- a/health_monitor/source/etas/vrte/saf/logging/PhmLogger.cpp +++ b/health_monitor/source/etas/vrte/saf/logging/PhmLogger.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/health_monitor/source/etas/vrte/saf/logging/PhmLogger.hpp b/health_monitor/source/etas/vrte/saf/logging/PhmLogger.hpp index 96ee50090..cb59b1800 100644 --- a/health_monitor/source/etas/vrte/saf/logging/PhmLogger.hpp +++ b/health_monitor/source/etas/vrte/saf/logging/PhmLogger.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PHMLOGGER_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/recovery/Notification.cpp b/health_monitor/source/etas/vrte/saf/recovery/Notification.cpp index 0a62581c4..e91566193 100644 --- a/health_monitor/source/etas/vrte/saf/recovery/Notification.cpp +++ b/health_monitor/source/etas/vrte/saf/recovery/Notification.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/recovery/Notification.hpp" diff --git a/health_monitor/source/etas/vrte/saf/recovery/Notification.hpp b/health_monitor/source/etas/vrte/saf/recovery/Notification.hpp index 0f3884486..25641a349 100644 --- a/health_monitor/source/etas/vrte/saf/recovery/Notification.hpp +++ b/health_monitor/source/etas/vrte/saf/recovery/Notification.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef NOTIFICATION_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/supervision/Alive.cpp b/health_monitor/source/etas/vrte/saf/supervision/Alive.cpp index cdad17f09..9a9d9db9e 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/Alive.cpp +++ b/health_monitor/source/etas/vrte/saf/supervision/Alive.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/supervision/Alive.hpp" diff --git a/health_monitor/source/etas/vrte/saf/supervision/Alive.hpp b/health_monitor/source/etas/vrte/saf/supervision/Alive.hpp index 7f31014de..15a4c6a99 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/Alive.hpp +++ b/health_monitor/source/etas/vrte/saf/supervision/Alive.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef ALIVE_HPP_INCLUDED #define ALIVE_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/supervision/Deadline.cpp b/health_monitor/source/etas/vrte/saf/supervision/Deadline.cpp index b80fde0fc..e6fa4b72c 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/Deadline.cpp +++ b/health_monitor/source/etas/vrte/saf/supervision/Deadline.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/supervision/Deadline.hpp" diff --git a/health_monitor/source/etas/vrte/saf/supervision/Deadline.hpp b/health_monitor/source/etas/vrte/saf/supervision/Deadline.hpp index a68805263..823acdc22 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/Deadline.hpp +++ b/health_monitor/source/etas/vrte/saf/supervision/Deadline.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef DEADLINE_HPP_INCLUDED #define DEADLINE_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/supervision/Global.cpp b/health_monitor/source/etas/vrte/saf/supervision/Global.cpp index 938a4d596..74a0b341f 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/Global.cpp +++ b/health_monitor/source/etas/vrte/saf/supervision/Global.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/supervision/Global.hpp" diff --git a/health_monitor/source/etas/vrte/saf/supervision/Global.hpp b/health_monitor/source/etas/vrte/saf/supervision/Global.hpp index ad3246ecc..abad13817 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/Global.hpp +++ b/health_monitor/source/etas/vrte/saf/supervision/Global.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef GLOBAL_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/supervision/ICheckpointSupervision.cpp b/health_monitor/source/etas/vrte/saf/supervision/ICheckpointSupervision.cpp index f56bc5dfa..ab8aebff6 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/ICheckpointSupervision.cpp +++ b/health_monitor/source/etas/vrte/saf/supervision/ICheckpointSupervision.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/supervision/ICheckpointSupervision.hpp" diff --git a/health_monitor/source/etas/vrte/saf/supervision/ICheckpointSupervision.hpp b/health_monitor/source/etas/vrte/saf/supervision/ICheckpointSupervision.hpp index a1ae1eb88..68b1c92d9 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/ICheckpointSupervision.hpp +++ b/health_monitor/source/etas/vrte/saf/supervision/ICheckpointSupervision.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef ICHECKPOINTSUPERVISION_HPP_INCLUDED #define ICHECKPOINTSUPERVISION_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/supervision/ISupervision.cpp b/health_monitor/source/etas/vrte/saf/supervision/ISupervision.cpp index 0e93b8213..b15663285 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/ISupervision.cpp +++ b/health_monitor/source/etas/vrte/saf/supervision/ISupervision.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/supervision/ISupervision.hpp" diff --git a/health_monitor/source/etas/vrte/saf/supervision/ISupervision.hpp b/health_monitor/source/etas/vrte/saf/supervision/ISupervision.hpp index 1248a43de..8936ff950 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/ISupervision.hpp +++ b/health_monitor/source/etas/vrte/saf/supervision/ISupervision.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef ISUPERVISION_HPP_INCLUDED #define ISUPERVISION_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/supervision/Local.cpp b/health_monitor/source/etas/vrte/saf/supervision/Local.cpp index 5e1287f43..cca4b5f42 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/Local.cpp +++ b/health_monitor/source/etas/vrte/saf/supervision/Local.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/supervision/Local.hpp" diff --git a/health_monitor/source/etas/vrte/saf/supervision/Local.hpp b/health_monitor/source/etas/vrte/saf/supervision/Local.hpp index 11b72d341..f5bf2a4ec 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/Local.hpp +++ b/health_monitor/source/etas/vrte/saf/supervision/Local.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef LOCAL_HPP_INCLUDED #define LOCAL_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/supervision/Logical.cpp b/health_monitor/source/etas/vrte/saf/supervision/Logical.cpp index df45b285b..83a9533a4 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/Logical.cpp +++ b/health_monitor/source/etas/vrte/saf/supervision/Logical.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/supervision/Logical.hpp" diff --git a/health_monitor/source/etas/vrte/saf/supervision/Logical.hpp b/health_monitor/source/etas/vrte/saf/supervision/Logical.hpp index 6de12416e..4b734e40e 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/Logical.hpp +++ b/health_monitor/source/etas/vrte/saf/supervision/Logical.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef LOGICAL_HPP_INCLUDED #define LOGICAL_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/supervision/ProcessStateTracker.cpp b/health_monitor/source/etas/vrte/saf/supervision/ProcessStateTracker.cpp index cd4953901..3425d36b0 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/ProcessStateTracker.cpp +++ b/health_monitor/source/etas/vrte/saf/supervision/ProcessStateTracker.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/supervision/ProcessStateTracker.hpp" diff --git a/health_monitor/source/etas/vrte/saf/supervision/ProcessStateTracker.hpp b/health_monitor/source/etas/vrte/saf/supervision/ProcessStateTracker.hpp index 1a4dbe133..b1c6f5f1f 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/ProcessStateTracker.hpp +++ b/health_monitor/source/etas/vrte/saf/supervision/ProcessStateTracker.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PROCESS_STATE_TRACKER_HPP_INCLUDED #define PROCESS_STATE_TRACKER_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/supervision/SupervisionCfg.hpp b/health_monitor/source/etas/vrte/saf/supervision/SupervisionCfg.hpp index 0e406c690..ad710dc0b 100644 --- a/health_monitor/source/etas/vrte/saf/supervision/SupervisionCfg.hpp +++ b/health_monitor/source/etas/vrte/saf/supervision/SupervisionCfg.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef SUPERVISIONCFG_HPP_INCLUDED #define SUPERVISIONCFG_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/timers/CycleTimeValidator.cpp b/health_monitor/source/etas/vrte/saf/timers/CycleTimeValidator.cpp index fce61fe32..2d923d340 100644 --- a/health_monitor/source/etas/vrte/saf/timers/CycleTimeValidator.cpp +++ b/health_monitor/source/etas/vrte/saf/timers/CycleTimeValidator.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "CycleTimeValidator.hpp" diff --git a/health_monitor/source/etas/vrte/saf/timers/CycleTimeValidator.hpp b/health_monitor/source/etas/vrte/saf/timers/CycleTimeValidator.hpp index d75ef0dca..21793d27b 100644 --- a/health_monitor/source/etas/vrte/saf/timers/CycleTimeValidator.hpp +++ b/health_monitor/source/etas/vrte/saf/timers/CycleTimeValidator.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef CYCLETIMEVALIDATOR_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/timers/CycleTimer.cpp b/health_monitor/source/etas/vrte/saf/timers/CycleTimer.cpp index c5b3a5e28..33819524b 100644 --- a/health_monitor/source/etas/vrte/saf/timers/CycleTimer.cpp +++ b/health_monitor/source/etas/vrte/saf/timers/CycleTimer.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "CycleTimer.hpp" diff --git a/health_monitor/source/etas/vrte/saf/timers/CycleTimer.hpp b/health_monitor/source/etas/vrte/saf/timers/CycleTimer.hpp index ba5edb3f2..9dc7af706 100644 --- a/health_monitor/source/etas/vrte/saf/timers/CycleTimer.hpp +++ b/health_monitor/source/etas/vrte/saf/timers/CycleTimer.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef CYCLETIMER_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/timers/OsClockInterface.hpp b/health_monitor/source/etas/vrte/saf/timers/OsClockInterface.hpp index e24210566..6f7c4c941 100644 --- a/health_monitor/source/etas/vrte/saf/timers/OsClockInterface.hpp +++ b/health_monitor/source/etas/vrte/saf/timers/OsClockInterface.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef OSCLOCKINTERFACE_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/timers/TimeConversion.cpp b/health_monitor/source/etas/vrte/saf/timers/TimeConversion.cpp index 333eb5a77..a82dfee21 100644 --- a/health_monitor/source/etas/vrte/saf/timers/TimeConversion.cpp +++ b/health_monitor/source/etas/vrte/saf/timers/TimeConversion.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "TimeConversion.hpp" diff --git a/health_monitor/source/etas/vrte/saf/timers/TimeConversion.hpp b/health_monitor/source/etas/vrte/saf/timers/TimeConversion.hpp index e8a471487..6bc042fea 100644 --- a/health_monitor/source/etas/vrte/saf/timers/TimeConversion.hpp +++ b/health_monitor/source/etas/vrte/saf/timers/TimeConversion.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef TIMECONVERSION_HPP_INCLUDED #define TIMECONVERSION_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/timers/Timers_OsClock.cpp b/health_monitor/source/etas/vrte/saf/timers/Timers_OsClock.cpp index c2677505e..0a8a3f844 100644 --- a/health_monitor/source/etas/vrte/saf/timers/Timers_OsClock.cpp +++ b/health_monitor/source/etas/vrte/saf/timers/Timers_OsClock.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "Timers_OsClock.hpp" diff --git a/health_monitor/source/etas/vrte/saf/timers/Timers_OsClock.hpp b/health_monitor/source/etas/vrte/saf/timers/Timers_OsClock.hpp index 0a6f7ecc0..89cf291c7 100644 --- a/health_monitor/source/etas/vrte/saf/timers/Timers_OsClock.hpp +++ b/health_monitor/source/etas/vrte/saf/timers/Timers_OsClock.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef TIMERS_OSCLOCK_HPP_INCLUDED #define TIMERS_OSCLOCK_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/watchdog/DeviceIf.cpp b/health_monitor/source/etas/vrte/saf/watchdog/DeviceIf.cpp index 461034764..f6fe6b8eb 100644 --- a/health_monitor/source/etas/vrte/saf/watchdog/DeviceIf.cpp +++ b/health_monitor/source/etas/vrte/saf/watchdog/DeviceIf.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/watchdog/DeviceIf.hpp" diff --git a/health_monitor/source/etas/vrte/saf/watchdog/DeviceIf.hpp b/health_monitor/source/etas/vrte/saf/watchdog/DeviceIf.hpp index 6c25de206..da4233dc0 100644 --- a/health_monitor/source/etas/vrte/saf/watchdog/DeviceIf.hpp +++ b/health_monitor/source/etas/vrte/saf/watchdog/DeviceIf.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef DEVICEIF_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/watchdog/IDeviceConfigFactory.hpp b/health_monitor/source/etas/vrte/saf/watchdog/IDeviceConfigFactory.hpp index 2ae72dbd2..d652b5165 100644 --- a/health_monitor/source/etas/vrte/saf/watchdog/IDeviceConfigFactory.hpp +++ b/health_monitor/source/etas/vrte/saf/watchdog/IDeviceConfigFactory.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef IDEVICECONFIGFACTORY_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/watchdog/IWatchdogIf.hpp b/health_monitor/source/etas/vrte/saf/watchdog/IWatchdogIf.hpp index 710ff5f5f..08a2ef3a0 100644 --- a/health_monitor/source/etas/vrte/saf/watchdog/IWatchdogIf.hpp +++ b/health_monitor/source/etas/vrte/saf/watchdog/IWatchdogIf.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef IWATCHDOGIF_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/watchdog/Watchdog.hpp b/health_monitor/source/etas/vrte/saf/watchdog/Watchdog.hpp index 6d0c83302..2dedde526 100644 --- a/health_monitor/source/etas/vrte/saf/watchdog/Watchdog.hpp +++ b/health_monitor/source/etas/vrte/saf/watchdog/Watchdog.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef WATCHDOG_HPP_INCLUDED diff --git a/health_monitor/source/etas/vrte/saf/watchdog/WatchdogImpl.cpp b/health_monitor/source/etas/vrte/saf/watchdog/WatchdogImpl.cpp index ca40e1cc4..dd16cc467 100644 --- a/health_monitor/source/etas/vrte/saf/watchdog/WatchdogImpl.cpp +++ b/health_monitor/source/etas/vrte/saf/watchdog/WatchdogImpl.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "etas/vrte/saf/watchdog/WatchdogImpl.hpp" diff --git a/health_monitor/source/etas/vrte/saf/watchdog/WatchdogImpl.hpp b/health_monitor/source/etas/vrte/saf/watchdog/WatchdogImpl.hpp index 6e575848f..4657310cb 100644 --- a/health_monitor/source/etas/vrte/saf/watchdog/WatchdogImpl.hpp +++ b/health_monitor/source/etas/vrte/saf/watchdog/WatchdogImpl.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef WATCHDOGIMPL_HPP_INCLUDED diff --git a/health_monitor/source/score/lcm/hmlib/Monitor.cpp b/health_monitor/source/score/lcm/hmlib/Monitor.cpp index a5ff397c2..d1e6b8256 100644 --- a/health_monitor/source/score/lcm/hmlib/Monitor.cpp +++ b/health_monitor/source/score/lcm/hmlib/Monitor.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "score/lcm/Monitor.h" diff --git a/health_monitor/source/score/lcm/hmlib/MonitorImpl.cpp b/health_monitor/source/score/lcm/hmlib/MonitorImpl.cpp index 8a990e4f5..f8e3c06ed 100644 --- a/health_monitor/source/score/lcm/hmlib/MonitorImpl.cpp +++ b/health_monitor/source/score/lcm/hmlib/MonitorImpl.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "score/lcm/hmlib/MonitorImpl.h" diff --git a/health_monitor/source/score/lcm/hmlib/MonitorImpl.h b/health_monitor/source/score/lcm/hmlib/MonitorImpl.h index 95fd682dd..9bf6e92ab 100644 --- a/health_monitor/source/score/lcm/hmlib/MonitorImpl.h +++ b/health_monitor/source/score/lcm/hmlib/MonitorImpl.h @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef SCORE_LCM_MonitorImpl_H_ diff --git a/health_monitor/source/score/lcm/hmlib/MonitorImplWrapper.cpp b/health_monitor/source/score/lcm/hmlib/MonitorImplWrapper.cpp index e81412abb..1eba3367c 100644 --- a/health_monitor/source/score/lcm/hmlib/MonitorImplWrapper.cpp +++ b/health_monitor/source/score/lcm/hmlib/MonitorImplWrapper.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "score/lcm/MonitorImplWrapper.h" diff --git a/launch_manager/BUILD b/launch_manager/BUILD index bc7b0d3a8..b140c4c90 100644 --- a/launch_manager/BUILD +++ b/launch_manager/BUILD @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* load("//config:common_cc.bzl", "cc_library_with_common_opts", "cc_binary_with_common_opts") # Needed to enable `#include <...>` for headers from same repo diff --git a/launch_manager/deliverables/common/identifier_hash/identifier_hash.cpp b/launch_manager/deliverables/common/identifier_hash/identifier_hash.cpp index ec6dc1ab3..22ac0b502 100644 --- a/launch_manager/deliverables/common/identifier_hash/identifier_hash.cpp +++ b/launch_manager/deliverables/common/identifier_hash/identifier_hash.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/common/osal/linux/numcores.cpp b/launch_manager/deliverables/common/osal/linux/numcores.cpp index d4b7ec399..18f63df5f 100644 --- a/launch_manager/deliverables/common/osal/linux/numcores.cpp +++ b/launch_manager/deliverables/common/osal/linux/numcores.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/common/osal/linux/securitypolicy.cpp b/launch_manager/deliverables/common/osal/linux/securitypolicy.cpp index 5911c40d4..66b66eb4c 100644 --- a/launch_manager/deliverables/common/osal/linux/securitypolicy.cpp +++ b/launch_manager/deliverables/common/osal/linux/securitypolicy.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/common/osal/linux/setaffinity.cpp b/launch_manager/deliverables/common/osal/linux/setaffinity.cpp index 591ef2268..48b7f6793 100644 --- a/launch_manager/deliverables/common/osal/linux/setaffinity.cpp +++ b/launch_manager/deliverables/common/osal/linux/setaffinity.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/common/osal/linux/setgroups.cpp b/launch_manager/deliverables/common/osal/linux/setgroups.cpp index a2572a5d0..742cb871e 100644 --- a/launch_manager/deliverables/common/osal/linux/setgroups.cpp +++ b/launch_manager/deliverables/common/osal/linux/setgroups.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include #include diff --git a/launch_manager/deliverables/common/osal/posix/processlauncher.cpp b/launch_manager/deliverables/common/osal/posix/processlauncher.cpp index 4deee69dd..4082d3705 100644 --- a/launch_manager/deliverables/common/osal/posix/processlauncher.cpp +++ b/launch_manager/deliverables/common/osal/posix/processlauncher.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/common/osal/posix/semaphore.cpp b/launch_manager/deliverables/common/osal/posix/semaphore.cpp index 442678c12..b1c2a99b0 100644 --- a/launch_manager/deliverables/common/osal/posix/semaphore.cpp +++ b/launch_manager/deliverables/common/osal/posix/semaphore.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/common/osal/posix/sysexit.cpp b/launch_manager/deliverables/common/osal/posix/sysexit.cpp index 4b35968f8..cc1ed935e 100644 --- a/launch_manager/deliverables/common/osal/posix/sysexit.cpp +++ b/launch_manager/deliverables/common/osal/posix/sysexit.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/common/osal/qnx/numcores.cpp b/launch_manager/deliverables/common/osal/qnx/numcores.cpp index ab37a9e79..1de58c055 100644 --- a/launch_manager/deliverables/common/osal/qnx/numcores.cpp +++ b/launch_manager/deliverables/common/osal/qnx/numcores.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/common/osal/qnx/securitypolicy.cpp b/launch_manager/deliverables/common/osal/qnx/securitypolicy.cpp index 71cbbe34e..05a522961 100644 --- a/launch_manager/deliverables/common/osal/qnx/securitypolicy.cpp +++ b/launch_manager/deliverables/common/osal/qnx/securitypolicy.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/common/osal/qnx/setaffinity.cpp b/launch_manager/deliverables/common/osal/qnx/setaffinity.cpp index 0ffcb8e6a..75b294670 100644 --- a/launch_manager/deliverables/common/osal/qnx/setaffinity.cpp +++ b/launch_manager/deliverables/common/osal/qnx/setaffinity.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include #include diff --git a/launch_manager/deliverables/common/osal/qnx/setgroups.cpp b/launch_manager/deliverables/common/osal/qnx/setgroups.cpp index 46830f014..89da20aa9 100644 --- a/launch_manager/deliverables/common/osal/qnx/setgroups.cpp +++ b/launch_manager/deliverables/common/osal/qnx/setgroups.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/config/gen/lm_flatcfg_generated.h b/launch_manager/deliverables/config/gen/lm_flatcfg_generated.h index 2b0ba84cc..855f4274b 100644 --- a/launch_manager/deliverables/config/gen/lm_flatcfg_generated.h +++ b/launch_manager/deliverables/config/gen/lm_flatcfg_generated.h @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // automatically generated by the FlatBuffers compiler, do not modify diff --git a/launch_manager/deliverables/daemon/configuration_manager/src/configurationmanager.cpp b/launch_manager/deliverables/daemon/configuration_manager/src/configurationmanager.cpp index cd803d527..5699919fa 100644 --- a/launch_manager/deliverables/daemon/configuration_manager/src/configurationmanager.cpp +++ b/launch_manager/deliverables/daemon/configuration_manager/src/configurationmanager.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/daemon/main/src/main.cpp b/launch_manager/deliverables/daemon/main/src/main.cpp index 527af423e..5adc6ae9f 100644 --- a/launch_manager/deliverables/daemon/main/src/main.cpp +++ b/launch_manager/deliverables/daemon/main/src/main.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/daemon/process_group_manager/src/config.cpp b/launch_manager/deliverables/daemon/process_group_manager/src/config.cpp index 45de7f0b5..82dfead85 100644 --- a/launch_manager/deliverables/daemon/process_group_manager/src/config.cpp +++ b/launch_manager/deliverables/daemon/process_group_manager/src/config.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/daemon/process_group_manager/src/controlclientchannel.cpp b/launch_manager/deliverables/daemon/process_group_manager/src/controlclientchannel.cpp index b518af908..2fc387211 100644 --- a/launch_manager/deliverables/daemon/process_group_manager/src/controlclientchannel.cpp +++ b/launch_manager/deliverables/daemon/process_group_manager/src/controlclientchannel.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/daemon/process_group_manager/src/graph.cpp b/launch_manager/deliverables/daemon/process_group_manager/src/graph.cpp index a981fd4a3..1f10b9a53 100644 --- a/launch_manager/deliverables/daemon/process_group_manager/src/graph.cpp +++ b/launch_manager/deliverables/daemon/process_group_manager/src/graph.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "score/span.hpp" diff --git a/launch_manager/deliverables/daemon/process_group_manager/src/jobqueue.cpp b/launch_manager/deliverables/daemon/process_group_manager/src/jobqueue.cpp index a1782fd55..e1ccab70c 100644 --- a/launch_manager/deliverables/daemon/process_group_manager/src/jobqueue.cpp +++ b/launch_manager/deliverables/daemon/process_group_manager/src/jobqueue.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/daemon/process_group_manager/src/oshandler.cpp b/launch_manager/deliverables/daemon/process_group_manager/src/oshandler.cpp index 97dec213e..a57bf604c 100644 --- a/launch_manager/deliverables/daemon/process_group_manager/src/oshandler.cpp +++ b/launch_manager/deliverables/daemon/process_group_manager/src/oshandler.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/daemon/process_group_manager/src/process_state_notifier/processstatenotifier.cpp b/launch_manager/deliverables/daemon/process_group_manager/src/process_state_notifier/processstatenotifier.cpp index c0349319c..d3aae887b 100644 --- a/launch_manager/deliverables/daemon/process_group_manager/src/process_state_notifier/processstatenotifier.cpp +++ b/launch_manager/deliverables/daemon/process_group_manager/src/process_state_notifier/processstatenotifier.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/daemon/process_group_manager/src/processgroupmanager.cpp b/launch_manager/deliverables/daemon/process_group_manager/src/processgroupmanager.cpp index 9fbe044d1..ae6b1d86d 100644 --- a/launch_manager/deliverables/daemon/process_group_manager/src/processgroupmanager.cpp +++ b/launch_manager/deliverables/daemon/process_group_manager/src/processgroupmanager.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/daemon/process_group_manager/src/processinfonode.cpp b/launch_manager/deliverables/daemon/process_group_manager/src/processinfonode.cpp index 921e21666..7c8f18185 100644 --- a/launch_manager/deliverables/daemon/process_group_manager/src/processinfonode.cpp +++ b/launch_manager/deliverables/daemon/process_group_manager/src/processinfonode.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/daemon/process_group_manager/src/safeprocessmap.cpp b/launch_manager/deliverables/daemon/process_group_manager/src/safeprocessmap.cpp index 8fe46ecd0..7f9a57155 100644 --- a/launch_manager/deliverables/daemon/process_group_manager/src/safeprocessmap.cpp +++ b/launch_manager/deliverables/daemon/process_group_manager/src/safeprocessmap.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/daemon/process_group_manager/src/workerthread.cpp b/launch_manager/deliverables/daemon/process_group_manager/src/workerthread.cpp index ad979ca95..e0495d483 100644 --- a/launch_manager/deliverables/daemon/process_group_manager/src/workerthread.cpp +++ b/launch_manager/deliverables/daemon/process_group_manager/src/workerthread.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/LifecycleClientExt.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/LifecycleClientExt.hpp index ac1bf2547..b7b7ac20b 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/LifecycleClientExt.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/LifecycleClientExt.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef _LIFECYCLECLIENTEXT_H_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/config.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/config.hpp index 9d0fb5a9e..52fe5318a 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/config.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/config.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef CONFIG_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/configurationmanager.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/configurationmanager.hpp index 9659320e2..9175cf666 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/configurationmanager.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/configurationmanager.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef CONFIGURATIONMANAGER_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/control_client_impl.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/control_client_impl.hpp index d1009d5d5..27edbcdc9 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/control_client_impl.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/control_client_impl.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef CONTROL_CLIENT_IMPL_H_ diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/controlclientchannel.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/controlclientchannel.hpp index 8a84f8c2a..ed87d18db 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/controlclientchannel.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/controlclientchannel.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef CONTROL_CLIENT_CHANNEL_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/graph.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/graph.hpp index cbfeb88e8..1f163fc79 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/graph.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/graph.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef GRAPH_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/jobqueue.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/jobqueue.hpp index ac12dd463..489e4e2d5 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/jobqueue.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/jobqueue.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef JOB_QUEUE_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/lifecycleclientimpl.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/lifecycleclientimpl.hpp index a9eb83230..672a80387 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/lifecycleclientimpl.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/lifecycleclientimpl.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef _INCLUDED_LIFECYCLECLIENTIMPL_ diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/log.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/log.hpp index 9c9324009..e30c75585 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/log.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/log.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef LCM_LOG_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/iprocess.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/iprocess.hpp index a1cb965bf..6c65b5611 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/iprocess.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/iprocess.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PROCESS_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalipccomms.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalipccomms.hpp index d62319b69..91042d8ca 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalipccomms.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalipccomms.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef OSAL_IPC_COMMS_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalnumcores.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalnumcores.hpp index 5465db71e..1d7d675c4 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalnumcores.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalnumcores.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef OSAL_NUM_CORES_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalreturntypes.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalreturntypes.hpp index 111cecdc8..3d403c447 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalreturntypes.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/osalreturntypes.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef OSAL_ERROR_TYPES_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/securitypolicy.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/securitypolicy.hpp index 8fb99a669..3228ffc49 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/securitypolicy.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/securitypolicy.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. namespace etas { diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/semaphore.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/semaphore.hpp index d34536d5e..27173501a 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/semaphore.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/semaphore.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef SEMAPHORE_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/setaffinity.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/setaffinity.hpp index 9978e3a36..0c22c8b5a 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/setaffinity.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/setaffinity.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef SETAFFINITY_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/setgroups.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/setgroups.hpp index b33cc802e..fc25750de 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/setgroups.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/setgroups.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef SETGROUPS_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/sysexit.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/sysexit.hpp index 745d7ffee..8044bfbd0 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/osal/sysexit.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/osal/sysexit.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef SYSEXIT_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/oshandler.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/oshandler.hpp index 826769567..841e35bfb 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/oshandler.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/oshandler.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef OS_HANDLER_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/process_group_state_id.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/process_group_state_id.hpp index 4e0d4608c..f47499974 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/process_group_state_id.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/process_group_state_id.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef FUNCTION_STATE_ID_HPP_ diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_client/posixprocess.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_client/posixprocess.hpp index 00747b8f0..208115a92 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_client/posixprocess.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_client/posixprocess.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef POSIXPROCESS_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_client/processstateclient.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_client/processstateclient.hpp index 24fcf0aa7..913e4b8f4 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_client/processstateclient.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_client/processstateclient.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PROCESSSTATECLIENT_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_notifier/processstatenotifier.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_notifier/processstatenotifier.hpp index 510147cd5..6c0a2f6e2 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_notifier/processstatenotifier.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/process_state_notifier/processstatenotifier.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PROCESSSTATE_NOTIFIER_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/processgroupmanager.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/processgroupmanager.hpp index fd6d056b4..263900338 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/processgroupmanager.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/processgroupmanager.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef PROCESSGROUPMANAGER_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/processinfonode.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/processinfonode.hpp index ee0d07730..639562fcd 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/processinfonode.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/processinfonode.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef _INCLUDED_PROCESSINFONODE_ #define _INCLUDED_PROCESSINFONODE_ diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/safeprocessmap.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/safeprocessmap.hpp index 10f90cde1..00adc1e4a 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/safeprocessmap.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/safeprocessmap.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef SAFE_PROCESS_MAP_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/etas/vrte/lcm/workerthread.hpp b/launch_manager/deliverables/inc/etas/vrte/lcm/workerthread.hpp index 8b69a62a6..7735c381e 100644 --- a/launch_manager/deliverables/inc/etas/vrte/lcm/workerthread.hpp +++ b/launch_manager/deliverables/inc/etas/vrte/lcm/workerthread.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef WORKER_THREAD_HPP_INCLUDED diff --git a/launch_manager/deliverables/inc/internal/ExcludeCoverageAdapter.h b/launch_manager/deliverables/inc/internal/ExcludeCoverageAdapter.h index 4d2694ed2..2436724c5 100644 --- a/launch_manager/deliverables/inc/internal/ExcludeCoverageAdapter.h +++ b/launch_manager/deliverables/inc/internal/ExcludeCoverageAdapter.h @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef EXCLUDE_COVERAGE_ADAPTER_H_INCLUDED diff --git a/launch_manager/deliverables/inc/score/lcm/control_client.h b/launch_manager/deliverables/inc/score/lcm/control_client.h index 73dd8163b..92ed14517 100644 --- a/launch_manager/deliverables/inc/score/lcm/control_client.h +++ b/launch_manager/deliverables/inc/score/lcm/control_client.h @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef CONTROL_CLIENT_H_ #define CONTROL_CLIENT_H_ diff --git a/launch_manager/deliverables/inc/score/lcm/exec_error_domain.h b/launch_manager/deliverables/inc/score/lcm/exec_error_domain.h index 54a83679c..a10ea36e3 100644 --- a/launch_manager/deliverables/inc/score/lcm/exec_error_domain.h +++ b/launch_manager/deliverables/inc/score/lcm/exec_error_domain.h @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. /// @file diff --git a/launch_manager/deliverables/inc/score/lcm/execution_error_event.h b/launch_manager/deliverables/inc/score/lcm/execution_error_event.h index 7e3fe4659..b3196180b 100644 --- a/launch_manager/deliverables/inc/score/lcm/execution_error_event.h +++ b/launch_manager/deliverables/inc/score/lcm/execution_error_event.h @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. /// @file diff --git a/launch_manager/deliverables/inc/score/lcm/identifier_hash.hpp b/launch_manager/deliverables/inc/score/lcm/identifier_hash.hpp index 0a16db967..dc399ea02 100644 --- a/launch_manager/deliverables/inc/score/lcm/identifier_hash.hpp +++ b/launch_manager/deliverables/inc/score/lcm/identifier_hash.hpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #ifndef IDENTIFIER_HASH_H_ diff --git a/launch_manager/deliverables/inc/score/lcm/lifecycle_client.h b/launch_manager/deliverables/inc/score/lcm/lifecycle_client.h index 5c55c1bf8..05a184621 100644 --- a/launch_manager/deliverables/inc/score/lcm/lifecycle_client.h +++ b/launch_manager/deliverables/inc/score/lcm/lifecycle_client.h @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. /// @file diff --git a/launch_manager/deliverables/libraries/etas/process_state_client/src/processstateclient.cpp b/launch_manager/deliverables/libraries/etas/process_state_client/src/processstateclient.cpp index c6061e425..a463d1ea5 100644 --- a/launch_manager/deliverables/libraries/etas/process_state_client/src/processstateclient.cpp +++ b/launch_manager/deliverables/libraries/etas/process_state_client/src/processstateclient.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/libraries/score/control_client/src/control_client.cpp b/launch_manager/deliverables/libraries/score/control_client/src/control_client.cpp index 890786372..f50822e91 100644 --- a/launch_manager/deliverables/libraries/score/control_client/src/control_client.cpp +++ b/launch_manager/deliverables/libraries/score/control_client/src/control_client.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include "score/concurrency/future/interruptible_future.h" diff --git a/launch_manager/deliverables/libraries/score/control_client/src/control_client_impl.cpp b/launch_manager/deliverables/libraries/score/control_client/src/control_client_impl.cpp index 0888193ba..dd8728c66 100644 --- a/launch_manager/deliverables/libraries/score/control_client/src/control_client_impl.cpp +++ b/launch_manager/deliverables/libraries/score/control_client/src/control_client_impl.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/libraries/score/lifecycle_client/src/lifecycleclient.cpp b/launch_manager/deliverables/libraries/score/lifecycle_client/src/lifecycleclient.cpp index da87ffcd5..59604a3a3 100644 --- a/launch_manager/deliverables/libraries/score/lifecycle_client/src/lifecycleclient.cpp +++ b/launch_manager/deliverables/libraries/score/lifecycle_client/src/lifecycleclient.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/launch_manager/deliverables/libraries/score/lifecycle_client/src/lifecycleclientimpl.cpp b/launch_manager/deliverables/libraries/score/lifecycle_client/src/lifecycleclientimpl.cpp index 020087f8c..25624f739 100644 --- a/launch_manager/deliverables/libraries/score/lifecycle_client/src/lifecycleclientimpl.cpp +++ b/launch_manager/deliverables/libraries/score/lifecycle_client/src/lifecycleclientimpl.cpp @@ -1,3 +1,15 @@ +/******************************************************************************** +* 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 +********************************************************************************/ // (c) 2025 ETAS GmbH. All rights reserved. #include diff --git a/rust_bindings/lifecycle_client_rs/BUILD b/rust_bindings/lifecycle_client_rs/BUILD index 8224d61df..dc5e9d5fb 100644 --- a/rust_bindings/lifecycle_client_rs/BUILD +++ b/rust_bindings/lifecycle_client_rs/BUILD @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* package(default_visibility = ["//visibility:public"]) load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/rust_bindings/monitor_rs/BUILD b/rust_bindings/monitor_rs/BUILD index c4578fba5..f92f62e22 100644 --- a/rust_bindings/monitor_rs/BUILD +++ b/rust_bindings/monitor_rs/BUILD @@ -1,3 +1,15 @@ +# ******************************************************************************* +# 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 +# ******************************************************************************* package(default_visibility = ["//visibility:public"]) load("@rules_rust//rust:defs.bzl", "rust_library") From 1be9c351dffc037c808ba4a78370124c5f38ec81 Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Thu, 13 Nov 2025 14:45:58 +0000 Subject: [PATCH 12/12] fix: formatting --- .github/actions/gitlint/action.yml | 1 - .github/workflows/build_and_test_host_gcc.yml | 1 - .github/workflows/copyright.yml | 1 - .github/workflows/format.yml | 3 - .github/workflows/gitlint.yml | 1 - .github/workflows/license_check.yml | 4 - MODULE.bazel | 57 ++- config/BUILD | 2 + config/common_cc.bzl | 7 +- demo/config/gen_common_cfg.py | 7 +- demo/config/gen_health_monitor_cfg.py | 376 +++++++++++++----- demo/config/gen_health_monitor_process_cfg.py | 69 +++- demo/config/gen_launch_manager_cfg.py | 62 ++- demo/control_application/BUILD | 47 ++- demo/cpp_lifecycle_app/BUILD | 16 +- demo/cpp_supervised_app/BUILD | 21 +- demo/rust_supervised_app/BUILD | 8 +- external/acl/BUILD | 4 +- external/ipc_dropin/BUILD | 4 +- health_monitor/BUILD | 206 +++++----- launch_manager/BUILD | 155 +++++--- rust_bindings/lifecycle_client_rs/BUILD | 10 +- rust_bindings/monitor_rs/BUILD | 10 +- 23 files changed, 703 insertions(+), 369 deletions(-) diff --git a/.github/actions/gitlint/action.yml b/.github/actions/gitlint/action.yml index cb16e6ff0..0c5d7778c 100644 --- a/.github/actions/gitlint/action.yml +++ b/.github/actions/gitlint/action.yml @@ -10,7 +10,6 @@ # # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* - name: "Gitlint Action" description: "An action to install and run Gitlint on PR commits" inputs: diff --git a/.github/workflows/build_and_test_host_gcc.yml b/.github/workflows/build_and_test_host_gcc.yml index 7aa16357b..354ac17ed 100644 --- a/.github/workflows/build_and_test_host_gcc.yml +++ b/.github/workflows/build_and_test_host_gcc.yml @@ -13,7 +13,6 @@ # Workflow configuration for S-CORE CI - Bazel Build & Test lifecycle module # This workflow runs Bazel build and test when triggered by specific pull request events. - name: Bazel Build & Test lifecycle module on: pull_request: diff --git a/.github/workflows/copyright.yml b/.github/workflows/copyright.yml index 08ef37671..08f12ab61 100644 --- a/.github/workflows/copyright.yml +++ b/.github/workflows/copyright.yml @@ -10,7 +10,6 @@ # # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* - name: Copyright checks on: pull_request: diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 620d69727..a8d02ec7e 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -10,15 +10,12 @@ # # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* - name: Formatting checks - on: pull_request: types: [opened, reopened, synchronize] merge_group: types: [checks_requested] - jobs: formatting-check: uses: eclipse-score/cicd-workflows/.github/workflows/format.yml@main diff --git a/.github/workflows/gitlint.yml b/.github/workflows/gitlint.yml index 90487edca..69e4f4f91 100644 --- a/.github/workflows/gitlint.yml +++ b/.github/workflows/gitlint.yml @@ -10,7 +10,6 @@ # # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* - name: Gitlint check on: pull_request: diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index aba7f99d8..3599371cf 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -10,19 +10,15 @@ # # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* - name: License check preparation on: pull_request_target: types: [opened, reopened, synchronize] merge_group: types: [checks_requested] - permissions: pull-requests: write issues: write - - jobs: license-check: uses: eclipse-score/cicd-workflows/.github/workflows/license-check.yml@main diff --git a/MODULE.bazel b/MODULE.bazel index 163dffb40..9c9aaf6a0 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -54,19 +54,18 @@ bazel_dep(name = "score_format_checker", version = "0.1.1") bazel_dep(name = "score_toolchains_rust", version = "0.1") git_override( module_name = "score_toolchains_rust", + commit = "5614e4b273f2f5302d47a05d7e58dae86f97a3c3", # 23.08.2025 remote = "https://github.com/eclipse-score/toolchains_rust.git", - commit = "5614e4b273f2f5302d47a05d7e58dae86f97a3c3", # 23.08.2025 ) # Score Qnx rust toolchain bazel_dep(name = "rust_qnx8_toolchain", version = "1.0.0") archive_override( module_name = "rust_qnx8_toolchain", + strip_prefix = "qnx8", urls = [ "https://github.com/qorix-group/rust-lang-qnx8/releases/download/1.0.0/qnx8_rust_toolchain.tar.gz", ], - strip_prefix = "qnx8", - ) # Score Qnx toolchain @@ -85,19 +84,18 @@ use_repo(toolchains_qnx, "toolchains_qnx_qcc") rust_ext = use_extension("@score_toolchains_rust//extensions:rust_toolchain_ext.bzl", "rust_toolchain_ext") rust_ext.sysroot( name = "sysroot_linux_x64", - url = "https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/4f611ec025be98214164d4bf9fbe8843f58533f7/debian_bullseye_amd64_sysroot.tar.xz", + build_file = "@score_toolchains_rust//sysroot:BUILD.bazel", sha256 = "5df5be9357b425cdd70d92d4697d07e7d55d7a923f037c22dc80a78e85842d2c", strip_prefix = "", - build_file = "@score_toolchains_rust//sysroot:BUILD.bazel", + url = "https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/4f611ec025be98214164d4bf9fbe8843f58533f7/debian_bullseye_amd64_sysroot.tar.xz", ) rust_ext.sysroot( name = "sysroot_linux_aarch64", - url = "https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/906cc7c6bf47d4bd969a3221fc0602c6b3153caa/debian_bullseye_arm64_sysroot.tar.xz", + build_file = "@score_toolchains_rust//sysroot:BUILD.bazel", sha256 = "d303cf3faf7804c9dd24c9b6b167d0345d41d7fe4bfb7d34add3ab342f6a236c", strip_prefix = "", - build_file = "@score_toolchains_rust//sysroot:BUILD.bazel", + url = "https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/906cc7c6bf47d4bd969a3221fc0602c6b3153caa/debian_bullseye_arm64_sysroot.tar.xz", ) - use_repo(rust_ext, "sysroot_linux_x64") use_repo(rust_ext, "sysroot_linux_aarch64") @@ -109,24 +107,39 @@ bazel_dep(name = "bazel_skylib", version = "1.8.1") llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm") llvm.toolchain( name = "llvm_toolchain", - llvm_versions = { "": "19.1.0" }, cxx_standard = {"": "c++17"}, + llvm_versions = {"": "19.1.0"}, +) +llvm.sysroot( + name = "llvm_toolchain", + label = "@sysroot_linux_x64//:sysroot", + targets = ["linux-x86_64"], +) +llvm.sysroot( + name = "llvm_toolchain", + label = "@sysroot_linux_aarch64//:sysroot", + targets = ["linux-aarch64"], ) -llvm.sysroot(name="llvm_toolchain", label="@sysroot_linux_x64//:sysroot", targets=["linux-x86_64"]) -llvm.sysroot(name="llvm_toolchain", label="@sysroot_linux_aarch64//:sysroot", targets=["linux-aarch64"]) use_repo(llvm, "llvm_toolchain") # Rust rust = use_extension("@rules_rust//rust:extensions.bzl", "rust") rust.toolchain( edition = "2021", - extra_target_triples = ["x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu"], + extra_target_triples = [ + "x86_64-unknown-linux-gnu", + "aarch64-unknown-linux-gnu", + ], versions = ["1.85.0"], ) use_repo(rust, "rust_toolchains") + register_toolchains("@rust_toolchains//:all") + register_toolchains("@llvm_toolchain//:all") + register_toolchains("@toolchains_qnx_qcc//:qcc_aarch64") + register_toolchains("@score_toolchains_rust//toolchains/aarch64-unknown-qnx8_0:toolchain_aarch64_qnx8_0") # Tooling @@ -138,22 +151,34 @@ bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2") bazel_dep(name = "flatbuffers", version = "25.9.23") git_override( module_name = "flatbuffers", - remote = "https://github.com/google/flatbuffers.git", commit = "187240970746d00bbd26b0f5873ed54d2477f9f3", + remote = "https://github.com/google/flatbuffers.git", ) + bazel_dep(name = "score_baselibs", version = "0.1.3") # Rust crate crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate") -crate.spec(package = "clap", features = ["derive"], version = "4.5.49") -crate.spec(package = "libc", version = "0.2.177") -crate.spec(package = "signal-hook", version = "0.3.18") +crate.spec( + features = ["derive"], + package = "clap", + version = "4.5.49", +) +crate.spec( + package = "libc", + version = "0.2.177", +) +crate.spec( + package = "signal-hook", + version = "0.3.18", +) crate.from_specs() use_repo(crate, "crates") # ACL # TODO Use baselibs/os/utils/acl (Not a simple c API wrap) bazel_dep(name = "download_utils", version = "1.0.1") + deb = use_repo_rule("@download_utils//download/deb:defs.bzl", "download_deb") deb( diff --git a/config/BUILD b/config/BUILD index 9797ccca5..73b4196b2 100644 --- a/config/BUILD +++ b/config/BUILD @@ -23,10 +23,12 @@ config_setting( name = "thread_sanitizer_enabled", define_values = {"sanitize": "thread"}, ) + config_setting( name = "address_sanitizer_enabled", define_values = {"sanitize": "address"}, ) + config_setting( name = "ub_sanitizer_enabled", define_values = {"sanitize": "undefined"}, diff --git a/config/common_cc.bzl b/config/common_cc.bzl index 9d28524fd..7105661ea 100644 --- a/config/common_cc.bzl +++ b/config/common_cc.bzl @@ -1,6 +1,6 @@ -load("//config:common_opts.bzl", "SANITIZER_CXXOPTS", "SANITIZER_LINKOPTS") -load("@rules_cc//cc:cc_library.bzl", "cc_library") load("@rules_cc//cc:cc_binary.bzl", "cc_binary") +load("@rules_cc//cc:cc_library.bzl", "cc_library") +load("//config:common_opts.bzl", "SANITIZER_CXXOPTS", "SANITIZER_LINKOPTS") _def_or_empty = lambda v: v if v else [] @@ -14,7 +14,6 @@ def cc_library_with_common_opts( omit_common_cxxopts = False, omit_common_linkopts = False, **kwargs): - base_cxx = [] if omit_common_cxxopts else SANITIZER_CXXOPTS base_link = [] if omit_common_linkopts else SANITIZER_LINKOPTS cc_library( @@ -27,7 +26,6 @@ def cc_library_with_common_opts( **kwargs ) - def cc_binary_with_common_opts( name, srcs = None, @@ -37,7 +35,6 @@ def cc_binary_with_common_opts( omit_common_cxxopts = False, omit_common_linkopts = False, **kwargs): - base_cxx = [] if omit_common_cxxopts else SANITIZER_CXXOPTS base_link = [] if omit_common_linkopts else SANITIZER_LINKOPTS cc_binary( diff --git a/demo/config/gen_common_cfg.py b/demo/config/gen_common_cfg.py index 579c14724..815d7f0be 100644 --- a/demo/config/gen_common_cfg.py +++ b/demo/config/gen_common_cfg.py @@ -10,7 +10,10 @@ # # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* -def get_process_index_range(process_count : int, process_group_index : int): +def get_process_index_range(process_count: int, process_group_index: int): # Every ProcessGroup gets the same number of processes # The Process Index is a globally unique increasing number - return range(process_group_index*process_count, (process_group_index*process_count)+process_count) + return range( + process_group_index * process_count, + (process_group_index * process_count) + process_count, + ) diff --git a/demo/config/gen_health_monitor_cfg.py b/demo/config/gen_health_monitor_cfg.py index 740b38cac..bb4fff91e 100644 --- a/demo/config/gen_health_monitor_cfg.py +++ b/demo/config/gen_health_monitor_cfg.py @@ -16,16 +16,28 @@ import json from gen_common_cfg import get_process_index_range -def get_process(index : int, process_group : str): - return ''' + +def get_process(index: int, process_group: str): + return ( + """ { - "index": '''+str(index)+''', - "shortName": "demo_application'''+str(index)+'''", - "identifier": "demo_app'''+str(index)+"_"+process_group+'''", + "index": """ + + str(index) + + """, + "shortName": "demo_application""" + + str(index) + + """", + "identifier": "demo_app""" + + str(index) + + "_" + + process_group + + '''", "processType": "REGULAR_PROCESS", "refProcessGroupStates": [ { - "identifier": "'''+process_group+'''/Startup" + "identifier": "''' + + process_group + + """/Startup" } ], "processExecutionErrors": [ @@ -34,103 +46,171 @@ def get_process(index : int, process_group : str): } ] } -''' +""" + ) + -def get_monitor_interfaces(index : int, process_group : str): - return ''' +def get_monitor_interfaces(index: int, process_group: str): + return ( + """ { - "instanceSpecifier": "demo/demo_application'''+str(index)+'''/Port1", - "processShortName": "demo_application'''+str(index)+'''", + "instanceSpecifier": "demo/demo_application""" + + str(index) + + """/Port1", + "processShortName": "demo_application""" + + str(index) + + """", "portPrototype": "Port1", - "interfacePath": "demo_application_'''+str(index)+"_"+process_group+'''", - "refProcessIndex": '''+str(index)+''', + "interfacePath": "demo_application_""" + + str(index) + + "_" + + process_group + + """", + "refProcessIndex": """ + + str(index) + + """, "permittedUid": 0 } -''' +""" + ) -def get_checkpoints(index : int): + +def get_checkpoints(index: int): # Every demo app has three checkpoints - return [''' + return [ + """ { - "shortName": "Checkpoint'''+str(index)+"_1"+'''", + "shortName": "Checkpoint""" + + str(index) + + "_1" + + """", "checkpointId": 1, - "refInterfaceIndex": '''+str(index)+''' -}''', ''' + "refInterfaceIndex": """ + + str(index) + + """ +}""", + """ { - "shortName": "Checkpoint'''+str(index)+"_2"+'''", + "shortName": "Checkpoint""" + + str(index) + + "_2" + + """", "checkpointId": 2, - "refInterfaceIndex": '''+str(index)+''' -}''', ''' + "refInterfaceIndex": """ + + str(index) + + """ +}""", + """ { - "shortName": "Checkpoint'''+str(index)+"_3"+'''", + "shortName": "Checkpoint""" + + str(index) + + "_3" + + """", "checkpointId": 3, - "refInterfaceIndex": '''+str(index)+''' + "refInterfaceIndex": """ + + str(index) + + """ } -'''] +""", + ] -def get_alive_supervisions(index : int, process_group : str): + +def get_alive_supervisions(index: int, process_group: str): # Every demo app has three checkpoints and the first checkpoint is used for alive supervision - checkpointIdx = (index * 3) - return ''' + checkpointIdx = index * 3 + return ( + """ { - "ruleContextKey": "AliveSupervision'''+str(index)+'''", - "refCheckPointIndex": '''+str(checkpointIdx)+''', + "ruleContextKey": "AliveSupervision""" + + str(index) + + """", + "refCheckPointIndex": """ + + str(checkpointIdx) + + """, "aliveReferenceCycle": 100.0, "minAliveIndications": 1, "maxAliveIndications": 3, "isMinCheckDisabled": false, "isMaxCheckDisabled": false, "failedSupervisionCyclesTolerance": 1, - "refProcessIndex": '''+str(index)+''', + "refProcessIndex": """ + + str(index) + + ''', "refProcessGroupStates": [ { - "identifier": "'''+process_group+'''/Startup" + "identifier": "''' + + process_group + + """/Startup" } ] } -''' +""" + ) + -def get_deadline_supervisions(index : int, process_group : str): +def get_deadline_supervisions(index: int, process_group: str): # Every demo app has three checkpoints and the first+second checkpoints are used for deadline supervision sourceCpIndex = index * 3 targetCpIndex = sourceCpIndex + 1 - return ''' + return ( + """ { - "ruleContextKey": "DeadlineSupervision'''+str(index)+'''", + "ruleContextKey": "DeadlineSupervision""" + + str(index) + + """", "maxDeadline": 80.0, "minDeadline": 40.0, "checkpointTransition": { - "refSourceCPIndex": '''+str(sourceCpIndex)+''', - "refTargetCPIndex": '''+str(targetCpIndex)+''' + "refSourceCPIndex": """ + + str(sourceCpIndex) + + """, + "refTargetCPIndex": """ + + str(targetCpIndex) + + """ }, - "refProcessIndices": ['''+str(index)+'''], + "refProcessIndices": [""" + + str(index) + + '''], "refProcessGroupStates": [ { - "identifier": "'''+process_group+'''/Startup" + "identifier": "''' + + process_group + + """/Startup" } ] } -''' +""" + ) -def get_logical_supervisions(index : int, process_group : str): + +def get_logical_supervisions(index: int, process_group: str): # Every demo app has three checkpoints and all three checkpoints in sequence are used for logical supervision startCpIndex = index * 3 - return ''' + return ( + """ { - "ruleContextKey": "LogicalSupervision'''+str(index)+'''", + "ruleContextKey": "LogicalSupervision""" + + str(index) + + """", "checkpoints": [ { - "refCheckPointIndex": '''+str(startCpIndex)+''', + "refCheckPointIndex": """ + + str(startCpIndex) + + """, "isInitial": true, "isFinal": false }, { - "refCheckPointIndex": '''+str(startCpIndex+1)+''', + "refCheckPointIndex": """ + + str(startCpIndex + 1) + + """, "isInitial": false, "isFinal": false }, { - "refCheckPointIndex": '''+str(startCpIndex+2)+''', + "refCheckPointIndex": """ + + str(startCpIndex + 2) + + """, "isInitial": false, "isFinal": true }], @@ -141,80 +221,134 @@ def get_logical_supervisions(index : int, process_group : str): "checkpointSourceIdx": 1, "checkpointTargetIdx": 2 }], - "refProcessIndices": ['''+str(index)+'''], + "refProcessIndices": [""" + + str(index) + + '''], "refProcessGroupStates": [ { - "identifier": "'''+process_group+'''/Startup" + "identifier": "''' + + process_group + + """/Startup" } ] } -''' +""" + ) + -def get_local_supervisions(index : int): - return ''' +def get_local_supervisions(index: int): + return ( + """ { - "ruleContextKey": "LocalSupervision'''+str(index)+'''", - "infoRefInterfacePath": "demo_application_'''+str(index)+'''", + "ruleContextKey": "LocalSupervision""" + + str(index) + + """", + "infoRefInterfacePath": "demo_application_""" + + str(index) + + """", "hmRefAliveSupervision": [ { - "refAliveSupervisionIdx": '''+str(index)+''' + "refAliveSupervisionIdx": """ + + str(index) + + """ } ], "hmRefDeadlineSupervision": [ { - "refDeadlineSupervisionIdx": '''+str(index)+''' + "refDeadlineSupervisionIdx": """ + + str(index) + + """ } ], "hmRefLogicalSupervision": [ { - "refLogicalSupervisionIdx": '''+str(index)+''' + "refLogicalSupervisionIdx": """ + + str(index) + + """ } ] } -''' +""" + ) -def get_global_supervisions(process_count : int, process_group_index : int, process_group : str): + +def get_global_supervisions( + process_count: int, process_group_index: int, process_group: str +): localSupervisionRefs = [] processRefs = [] for i in get_process_index_range(process_count, process_group_index): - localSupervisionRefs.append(json.loads(''' + localSupervisionRefs.append( + json.loads( + """ { - "refLocalSupervisionIndex": '''+str(i)+''' -}''')) - processRefs.append(json.loads(''' + "refLocalSupervisionIndex": """ + + str(i) + + """ +}""" + ) + ) + processRefs.append( + json.loads( + """ { - "index": '''+str(i)+''' -}''')) + "index": """ + + str(i) + + """ +}""" + ) + ) - globalSupervisions=json.loads(''' + globalSupervisions = json.loads( + """ { - "ruleContextKey": "GlobalSupervision_'''+process_group+'''", + "ruleContextKey": "GlobalSupervision_""" + + process_group + + '''", "isSeverityCritical": false, "localSupervision": [], "refProcesses": [], "refProcessGroupStates": [ { - "identifier": "'''+process_group+'''/Startup" + "identifier": "''' + + process_group + + """/Startup" } ] } -''') +""" + ) globalSupervisions["localSupervision"].extend(localSupervisionRefs) globalSupervisions["refProcesses"].extend(processRefs) return json.dumps(globalSupervisions) -def get_recovery_notifications(process_count : int, process_group_index : int, process_group : str): - return''' + +def get_recovery_notifications( + process_count: int, process_group_index: int, process_group: str +): + return ( + """ { - "shortName" : "RecoveryNotification_'''+process_group+'''", + "shortName" : "RecoveryNotification_""" + + process_group + + '''", "recoveryNotificationTimeout" : 4000.0, - "processGroupMetaModelIdentifier" : "'''+process_group+'''/Recovery", - "refGlobalSupervisionIndex" : '''+str(process_group_index)+''', + "processGroupMetaModelIdentifier" : "''' + + process_group + + """/Recovery", + "refGlobalSupervisionIndex" : """ + + str(process_group_index) + + """, "instanceSpecifier" : "", "shouldFireWatchdog" : false } -''' -def gen_health_monitor_cfg_for_process_group(config, process_count : int, process_group : str, process_group_index : int): +""" + ) + + +def gen_health_monitor_cfg_for_process_group( + config, process_count: int, process_group: str, process_group_index: int +): processes = [] monitorInterfaces = [] checkpoints = [] @@ -228,18 +362,36 @@ def gen_health_monitor_cfg_for_process_group(config, process_count : int, proces for process_index in get_process_index_range(process_count, process_group_index): print(f"process Index {process_index} for FG {process_group}") processes.append(json.loads(get_process(process_index, process_group))) - monitorInterfaces.append(json.loads(get_monitor_interfaces(process_index, process_group))) + monitorInterfaces.append( + json.loads(get_monitor_interfaces(process_index, process_group)) + ) for cp in get_checkpoints(process_index): checkpoints.append(json.loads(cp)) - hmAliveSupervisions.append(json.loads(get_alive_supervisions(process_index, process_group))) - hmDeadlineSupervisions.append(json.loads(get_deadline_supervisions(process_index,process_group))) - hmLogicalSupervisions.append(json.loads(get_logical_supervisions(process_index, process_group))) + hmAliveSupervisions.append( + json.loads(get_alive_supervisions(process_index, process_group)) + ) + hmDeadlineSupervisions.append( + json.loads(get_deadline_supervisions(process_index, process_group)) + ) + hmLogicalSupervisions.append( + json.loads(get_logical_supervisions(process_index, process_group)) + ) hmLocalSupervisions.append(json.loads(get_local_supervisions(process_index))) - - hmGlobalSupervision.append(json.loads(get_global_supervisions(process_count, process_group_index, process_group))) - hmRecoveryNotifications.append(json.loads(get_recovery_notifications(process_count, process_group_index, process_group))) + + hmGlobalSupervision.append( + json.loads( + get_global_supervisions(process_count, process_group_index, process_group) + ) + ) + hmRecoveryNotifications.append( + json.loads( + get_recovery_notifications( + process_count, process_group_index, process_group + ) + ) + ) config["process"].extend(processes) config["hmMonitorInterface"].extend(monitorInterfaces) @@ -252,8 +404,9 @@ def gen_health_monitor_cfg_for_process_group(config, process_count : int, proces config["hmRecoveryNotification"].extend(hmRecoveryNotifications) return config -def gen_health_monitor_cfg(process_count : int, process_groups : list): - config=json.loads(''' + +def gen_health_monitor_cfg(process_count: int, process_groups: list): + config = json.loads(""" { "versionMajor": 8, "versionMinor": 0, @@ -267,21 +420,52 @@ def gen_health_monitor_cfg(process_count : int, process_groups : list): "hmGlobalSupervision": [], "hmRecoveryNotification": [] } -''') - +""") + for i in range(0, len(process_groups)): - gen_health_monitor_cfg_for_process_group(config, process_count, process_groups[i], i) + gen_health_monitor_cfg_for_process_group( + config, process_count, process_groups[i], i + ) return config -if __name__ == '__main__': + +if __name__ == "__main__": my_parser = argparse.ArgumentParser() - my_parser.add_argument('-c', "--cppprocesses", action='store', type=int, required=True, help="Number of C++ processes") - my_parser.add_argument('-r', "--rustprocesses", action='store', type=int, required=True, help="Number of Rust processes") - my_parser.add_argument('-p','--process_groups', nargs='+', help='Name of a Process Group', required=True) - my_parser.add_argument('-o', "--out", action='store', type=Path, required=True, help="Output directory") + my_parser.add_argument( + "-c", + "--cppprocesses", + action="store", + type=int, + required=True, + help="Number of C++ processes", + ) + my_parser.add_argument( + "-r", + "--rustprocesses", + action="store", + type=int, + required=True, + help="Number of Rust processes", + ) + my_parser.add_argument( + "-p", + "--process_groups", + nargs="+", + help="Name of a Process Group", + required=True, + ) + my_parser.add_argument( + "-o", "--out", action="store", type=Path, required=True, help="Output directory" + ) args = my_parser.parse_args() - cfg_out_path = os.path.join(args.out, f'hm_demo.json') - with open(cfg_out_path, 'w') as f: - json.dump(gen_health_monitor_cfg(args.cppprocesses + args.rustprocesses, args.process_groups), f, indent=4) + cfg_out_path = os.path.join(args.out, f"hm_demo.json") + with open(cfg_out_path, "w") as f: + json.dump( + gen_health_monitor_cfg( + args.cppprocesses + args.rustprocesses, args.process_groups + ), + f, + indent=4, + ) diff --git a/demo/config/gen_health_monitor_process_cfg.py b/demo/config/gen_health_monitor_process_cfg.py index 719a47b59..357cb7e4b 100644 --- a/demo/config/gen_health_monitor_process_cfg.py +++ b/demo/config/gen_health_monitor_process_cfg.py @@ -15,37 +15,76 @@ import os from gen_common_cfg import get_process_index_range -def gen_health_monitor_process_cfg(index : int, process_group : str): - config=''' + +def gen_health_monitor_process_cfg(index: int, process_group: str): + config = ( + """ { "versionMajor": 8, "versionMinor": 0, "process": [], "hmMonitorInterface": [ { - "instanceSpecifier": "demo/demo_application'''+str(index)+'''/Port1", - "processShortName": "demo_application'''+str(index)+'''", + "instanceSpecifier": "demo/demo_application""" + + str(index) + + """/Port1", + "processShortName": "demo_application""" + + str(index) + + """", "portPrototype": "Port1", - "interfacePath": "demo_application_'''+str(index)+"_"+process_group+'''", + "interfacePath": "demo_application_""" + + str(index) + + "_" + + process_group + + """", "refProcessIndex":0 } ] } -''' +""" + ) return config -if __name__ == '__main__': + +if __name__ == "__main__": my_parser = argparse.ArgumentParser() - my_parser.add_argument('-c', "--cppprocesses", action='store', type=int, required=True, help="Number of C++ processes") - my_parser.add_argument('-r', "--rustprocesses", action='store', type=int, required=True, help="Number of Rust processes") - my_parser.add_argument('-p','--process_groups', nargs='+', help='Name of a Process Group', required=True) - my_parser.add_argument('-o', "--out", action='store', type=Path, required=True, help="Output directory") + my_parser.add_argument( + "-c", + "--cppprocesses", + action="store", + type=int, + required=True, + help="Number of C++ processes", + ) + my_parser.add_argument( + "-r", + "--rustprocesses", + action="store", + type=int, + required=True, + help="Number of Rust processes", + ) + my_parser.add_argument( + "-p", + "--process_groups", + nargs="+", + help="Name of a Process Group", + required=True, + ) + my_parser.add_argument( + "-o", "--out", action="store", type=Path, required=True, help="Output directory" + ) args = my_parser.parse_args() process_count = args.cppprocesses + args.rustprocesses for process_group_index in range(0, len(args.process_groups)): process_group = args.process_groups[process_group_index] - for process_index in get_process_index_range(process_count, process_group_index): - cfg_out_path = os.path.join(args.out, f'health_monitor_process_cfg_{process_index}_{process_group}.json') - with open(cfg_out_path, 'w') as f: - f.write(gen_health_monitor_process_cfg(process_index, process_group)) \ No newline at end of file + for process_index in get_process_index_range( + process_count, process_group_index + ): + cfg_out_path = os.path.join( + args.out, + f"health_monitor_process_cfg_{process_index}_{process_group}.json", + ) + with open(cfg_out_path, "w") as f: + f.write(gen_health_monitor_process_cfg(process_index, process_group)) diff --git a/demo/config/gen_launch_manager_cfg.py b/demo/config/gen_launch_manager_cfg.py index cc1fedceb..4b78833ad 100644 --- a/demo/config/gen_launch_manager_cfg.py +++ b/demo/config/gen_launch_manager_cfg.py @@ -16,6 +16,7 @@ import os from gen_common_cfg import get_process_index_range + class LaunchManagerConfGen: def __init__(self): # setup generator data structures @@ -296,7 +297,7 @@ def process_add_startup_config( execution_error=1, depends_on={}, use_in=[], - termination_behavior="ProcessIsNotSelfTerminating" + termination_behavior="ProcessIsNotSelfTerminating", ): if enter_timeout is None: enter_timeout = self.machines[process["machine_index"]][ @@ -333,7 +334,7 @@ def process_add_startup_config( "execution_error": execution_error, "depends_on": depends_on, "use_in": use_in, - "termination_behavior" : termination_behavior + "termination_behavior": termination_behavior, } else: raise Exception(f"Startup configuration with {name=} cannot be redefined!") @@ -341,11 +342,13 @@ def process_add_startup_config( # no need to return anything # end of the configuration -def is_rust_app(process_index : int, cppprocess_count : int, rustprocess_count : int): + +def is_rust_app(process_index: int, cppprocess_count: int, rustprocess_count: int): processes_per_process_group = cppprocess_count + rustprocess_count process_index = process_index % processes_per_process_group return process_index >= cppprocess_count + if __name__ == "__main__": my_parser = argparse.ArgumentParser() my_parser.add_argument( @@ -356,8 +359,21 @@ def is_rust_app(process_index : int, cppprocess_count : int, rustprocess_count : required=True, help="Number of C++ demo app processes", ) - my_parser.add_argument('-r', "--rustprocesses", action='store', type=int, required=True, help="Number of Rust processes") - my_parser.add_argument('-p','--process_groups', nargs='+', help='Name of a Process Group', required=True) + my_parser.add_argument( + "-r", + "--rustprocesses", + action="store", + type=int, + required=True, + help="Number of Rust processes", + ) + my_parser.add_argument( + "-p", + "--process_groups", + nargs="+", + help="Name of a Process Group", + required=True, + ) my_parser.add_argument( "-n", "--non-supervised-processes", @@ -376,10 +392,12 @@ def is_rust_app(process_index : int, cppprocess_count : int, rustprocess_count : "qt_am_machine", env_variables={"LD_LIBRARY_PATH": "/opt/lib"} ) - BASE_PROCESS_GROUP="MainPG" + BASE_PROCESS_GROUP = "MainPG" process_groups = args.process_groups if BASE_PROCESS_GROUP not in process_groups: - print(f"Process group '{BASE_PROCESS_GROUP}' must be included in the process groups list") + print( + f"Process group '{BASE_PROCESS_GROUP}' must be included in the process groups list" + ) exit(1) # adding function groups to TestMachine01 @@ -400,7 +418,10 @@ def is_rust_app(process_index : int, cppprocess_count : int, rustprocess_count : hm_process, "health_monitor_startup_config", # process_arguments = ["-a", "-b", "--test"], - env_variables={"PROCESSIDENTIFIER": "healthmonitor", "LC_STDOUT_LOG_LEVEL" : "3" }, + env_variables={ + "PROCESSIDENTIFIER": "healthmonitor", + "LC_STDOUT_LOG_LEVEL": "3", + }, scheduling_policy="SCHED_OTHER", scheduling_priority=0, enter_timeout=20.0, @@ -431,7 +452,12 @@ def is_rust_app(process_index : int, cppprocess_count : int, rustprocess_count : use_in=["Startup", "Recovery"], ) - if args.cppprocesses < 0 or args.non_supervised_processes < 0 or args.non_supervised_processes > 10000 or args.cppprocesses > 10000: + if ( + args.cppprocesses < 0 + or args.non_supervised_processes < 0 + or args.non_supervised_processes > 10000 + or args.cppprocesses > 10000 + ): print("Number of demo app processes must be between 0 and 1000") exit(1) if args.rustprocesses < 0 or args.rustprocesses > 10000: @@ -443,7 +469,7 @@ def is_rust_app(process_index : int, cppprocess_count : int, rustprocess_count : process_group_name = process_groups[process_group_index] if process_group_name == BASE_PROCESS_GROUP: pg = pg_machine - exec_dependency={"healthmonitor": "Running"} + exec_dependency = {"healthmonitor": "Running"} else: pg = conf_gen.machine_add_process_group( qt_am_machine, process_group_name, ["Off", "Startup", "Recovery"] @@ -451,12 +477,16 @@ def is_rust_app(process_index : int, cppprocess_count : int, rustprocess_count : exec_dependency = {} for i in get_process_index_range(total_process_count, process_group_index): - if not is_rust_app(i, args.cppprocesses, args.rustprocesses): + if not is_rust_app(i, args.cppprocesses, args.rustprocesses): demo_executable_path = "/opt/supervision_demo/cpp_supervised_app" - print(f"CPP Process with index {i} in process group {process_group_index}") + print( + f"CPP Process with index {i} in process group {process_group_index}" + ) else: demo_executable_path = "/opt/supervision_demo/rust_supervised_app" - print(f"Rust Process with index {i} in process group {process_group_index}") + print( + f"Rust Process with index {i} in process group {process_group_index}" + ) demo_process = conf_gen.process_group_add_process( pg, @@ -478,7 +508,7 @@ def is_rust_app(process_index : int, cppprocess_count : int, rustprocess_count : enter_timeout=2.0, exit_timeout=2.0, depends_on=exec_dependency, - use_in=["Startup"] + use_in=["Startup"], ) for i in range(args.non_supervised_processes): @@ -493,8 +523,8 @@ def is_rust_app(process_index : int, cppprocess_count : int, rustprocess_count : demo_process_wo_hm, f"lifecycle_app_startup_config_{i}_{process_group_name}_", # uncomment one of the two following lines to inject error - #process_arguments=["-c", "2000"] if i == 1 else [], - #process_arguments=["-s"] if i == 1 else [], + # process_arguments=["-c", "2000"] if i == 1 else [], + # process_arguments=["-s"] if i == 1 else [], env_variables={ "PROCESSIDENTIFIER": f"{process_group_name}_lc{i}", }, diff --git a/demo/control_application/BUILD b/demo/control_application/BUILD index 36df4255c..871c504de 100644 --- a/demo/control_application/BUILD +++ b/demo/control_application/BUILD @@ -12,31 +12,48 @@ # ******************************************************************************* cc_binary( name = "lmcontrol", - deps = [ - "//external/ipc_dropin:ipc_dropin" - ], srcs = [ + "control.hpp", "control_app_cli.cpp", - "control.hpp" ], + copts = select({ + "//config:x86_64-qnx": [], + "//conditions:default": ["-pthread"], + }), + linkopts = select({ + "//config:x86_64-qnx": [], + "//conditions:default": [ + "-lpthread", + "-lrt", + ], + }), visibility = ["//visibility:public"], - copts = select({"//config:x86_64-qnx": [], "//conditions:default": ["-pthread"]}), - linkopts = select({"//config:x86_64-qnx": [], "//conditions:default": ["-lpthread", "-lrt"]}), + deps = [ + "//external/ipc_dropin", + ], ) cc_binary( name = "control_daemon", - deps = [ - "//launch_manager:control_client", - "//launch_manager:lifecycle_client", - "//external/ipc_dropin:ipc_dropin" - ], srcs = [ + "control.hpp", "control_daemon.cpp", - "control.hpp" ], + copts = select({ + "//config:x86_64-qnx": [], + "//conditions:default": ["-pthread"], + }), + linkopts = select({ + "//config:x86_64-qnx": [], + "//conditions:default": [ + "-lpthread", + "-lrt", + ], + }), visibility = ["//visibility:public"], - copts = select({"//config:x86_64-qnx": [], "//conditions:default": ["-pthread"]}), - linkopts = select({"//config:x86_64-qnx": [], "//conditions:default": ["-lpthread", "-lrt"]}), + deps = [ + "//external/ipc_dropin", + "//launch_manager:control_client", + "//launch_manager:lifecycle_client", + ], ) - diff --git a/demo/cpp_lifecycle_app/BUILD b/demo/cpp_lifecycle_app/BUILD index d67dcc7fa..a18c8c80f 100644 --- a/demo/cpp_lifecycle_app/BUILD +++ b/demo/cpp_lifecycle_app/BUILD @@ -12,13 +12,19 @@ # ******************************************************************************* cc_binary( name = "cpp_lifecycle_app", - deps = [ - "//launch_manager:lifecycle_client" - ], srcs = [ "main.cpp", ], + copts = select({ + "//config:x86_64-qnx": [], + "//conditions:default": ["-pthread"], + }), + linkopts = select({ + "//config:x86_64-qnx": [], + "//conditions:default": ["-lpthread"], + }), visibility = ["//visibility:public"], - copts = select({"//config:x86_64-qnx": [], "//conditions:default": ["-pthread"]}), - linkopts = select({"//config:x86_64-qnx": [], "//conditions:default": ["-lpthread"]}), + deps = [ + "//launch_manager:lifecycle_client", + ], ) diff --git a/demo/cpp_supervised_app/BUILD b/demo/cpp_supervised_app/BUILD index 5c82cb3b4..d8d0a04b3 100644 --- a/demo/cpp_supervised_app/BUILD +++ b/demo/cpp_supervised_app/BUILD @@ -12,14 +12,23 @@ # ******************************************************************************* cc_binary( name = "cpp_supervised_app", - deps = [ - "//health_monitor:hm_shared_lib", - "//launch_manager:lifecycle_client" - ], srcs = [ "main.cpp", ], + copts = select({ + "//config:x86_64-qnx": [], + "//conditions:default": ["-pthread"], + }), + linkopts = select({ + "//config:x86_64-qnx": [], + "//conditions:default": [ + "-lpthread", + "-lrt", + ], + }), visibility = ["//visibility:public"], - copts = select({"//config:x86_64-qnx": [], "//conditions:default": ["-pthread"]}), - linkopts = select({"//config:x86_64-qnx": [], "//conditions:default": ["-lpthread", "-lrt"]}), + deps = [ + "//health_monitor:hm_shared_lib", + "//launch_manager:lifecycle_client", + ], ) diff --git a/demo/rust_supervised_app/BUILD b/demo/rust_supervised_app/BUILD index 2c36b454d..26c78a56f 100644 --- a/demo/rust_supervised_app/BUILD +++ b/demo/rust_supervised_app/BUILD @@ -11,10 +11,10 @@ # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* -package(default_visibility = ["//visibility:public"]) - load("@rules_rust//rust:defs.bzl", "rust_binary") +package(default_visibility = ["//visibility:public"]) + rust_binary( name = "rust_supervised_app", srcs = [ @@ -23,8 +23,8 @@ rust_binary( deps = [ "//rust_bindings/lifecycle_client_rs", "//rust_bindings/monitor_rs", - "@crates//:signal-hook", "@crates//:clap", - "@crates//:libc" + "@crates//:libc", + "@crates//:signal-hook", ], ) diff --git a/external/acl/BUILD b/external/acl/BUILD index 7fdb42918..b71d5df10 100644 --- a/external/acl/BUILD +++ b/external/acl/BUILD @@ -1,5 +1,5 @@ alias( name = "acl", actual = "@acl-deb//:acl", - visibility = ["//visibility:public"], -) \ No newline at end of file + visibility = ["//visibility:public"], +) diff --git a/external/ipc_dropin/BUILD b/external/ipc_dropin/BUILD index 8e428c189..146b3c5a7 100644 --- a/external/ipc_dropin/BUILD +++ b/external/ipc_dropin/BUILD @@ -9,5 +9,5 @@ cc_library( alias( name = "ipc_dropin", actual = ":ipc_dropin_internal", - visibility = ["//visibility:public"], -) \ No newline at end of file + visibility = ["//visibility:public"], +) diff --git a/health_monitor/BUILD b/health_monitor/BUILD index 1ee9f7655..ed01413fe 100644 --- a/health_monitor/BUILD +++ b/health_monitor/BUILD @@ -10,7 +10,7 @@ # # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* -load("//config:common_cc.bzl", "cc_library_with_common_opts", "cc_binary_with_common_opts") +load("//config:common_cc.bzl", "cc_binary_with_common_opts", "cc_library_with_common_opts") cc_library_with_common_opts( name = "phm_logging", @@ -18,28 +18,28 @@ cc_library_with_common_opts( hdrs = ["source/etas/vrte/saf/logging/PhmLogger.hpp"], includes = [ "source", - "source/etas/vrte/saf/logging" + "source/etas/vrte/saf/logging", ], deps = [ - "@score_baselibs//score/mw/log" + "@score_baselibs//score/mw/log", ], ) cc_library_with_common_opts( name = "ifexm", - deps = [ - "//launch_manager:process_state_client", - "@score_baselibs//score/mw/log", - ], srcs = [ + "source/etas/vrte/saf/ifexm/ProcessCfg.cpp", "source/etas/vrte/saf/ifexm/ProcessState.cpp", "source/etas/vrte/saf/ifexm/ProcessStateReader.cpp", - "source/etas/vrte/saf/ifexm/ProcessCfg.cpp", ], hdrs = glob(["source/etas/vrte/saf/**/*.hpp"]), includes = [ + "include", "source", - "include" + ], + deps = [ + "//launch_manager:process_state_client", + "@score_baselibs//score/mw/log", ], ) @@ -50,21 +50,20 @@ cc_library_with_common_opts( includes = ["source"], ) - cc_library_with_common_opts( name = "ipc_if", - deps = [ "//external/ipc_dropin"], hdrs = glob(["source/etas/vrte/saf/ipc/*.hpp"]), + deps = ["//external/ipc_dropin"], alwayslink = True, ) cc_library_with_common_opts( name = "timers", srcs = [ - "source/etas/vrte/saf/timers/Timers_OsClock.cpp", - "source/etas/vrte/saf/timers/TimeConversion.cpp", - "source/etas/vrte/saf/timers/CycleTimer.cpp", "source/etas/vrte/saf/timers/CycleTimeValidator.cpp", + "source/etas/vrte/saf/timers/CycleTimer.cpp", + "source/etas/vrte/saf/timers/TimeConversion.cpp", + "source/etas/vrte/saf/timers/Timers_OsClock.cpp", ], hdrs = glob(["source/etas/vrte/saf/timers/*.hpp"]), includes = [ @@ -72,24 +71,25 @@ cc_library_with_common_opts( "source/etas/vrte/saf/timers", ], ) + cc_library_with_common_opts( name = "rb-watchdog-if", srcs = [ - "source/etas/vrte/saf/watchdog/WatchdogImpl.cpp", "source/etas/vrte/saf/watchdog/DeviceIf.cpp", + "source/etas/vrte/saf/watchdog/WatchdogImpl.cpp", ], hdrs = [ - "source/etas/vrte/saf/watchdog/DeviceIf.hpp", - "source/etas/vrte/saf/watchdog/WatchdogImpl.hpp", "source/etas/vrte/saf/logging/PhmLogger.hpp", + "source/etas/vrte/saf/timers/OsClockInterface.hpp", + "source/etas/vrte/saf/watchdog/DeviceIf.hpp", "source/etas/vrte/saf/watchdog/IDeviceConfigFactory.hpp", "source/etas/vrte/saf/watchdog/IWatchdogIf.hpp", - "source/etas/vrte/saf/timers/OsClockInterface.hpp", - "source/etas/vrte/saf/watchdog/Watchdog.hpp" + "source/etas/vrte/saf/watchdog/Watchdog.hpp", + "source/etas/vrte/saf/watchdog/WatchdogImpl.hpp", ], includes = [ - "source", "include", + "source", "source/etas/vrte/saf/logging", ], deps = [ @@ -99,189 +99,199 @@ cc_library_with_common_opts( cc_library_with_common_opts( name = "recoverynotify", - deps = [ - "//launch_manager:control_client", - "@score_baselibs//score/mw/log", - ], srcs = ["source/etas/vrte/saf/recovery/Notification.cpp"], hdrs = [ - "source/etas/vrte/saf/recovery/Notification.hpp", "source/etas/vrte/saf/logging/PhmLogger.hpp", + "source/etas/vrte/saf/recovery/Notification.hpp", "source/etas/vrte/saf/timers/TimeConversion.hpp", "source/etas/vrte/saf/timers/Timers_OsClock.hpp", ], includes = [ + "include", + "source", "source/config/gen/hm_model", "source/config/gen/hmcore_model", - "source", - "include", + ], + deps = [ + "//launch_manager:control_client", + "@score_baselibs//score/mw/log", ], ) cc_library_with_common_opts( name = "factory", - deps = [ - ":recoverynotify", - "@flatbuffers", - "//launch_manager:process_state_client", - "//external/ipc_dropin", - ] + select( - { - "//config:x86_64-qnx": [], - "//conditions:default": [ - "//external/acl", - ] - } - ), srcs = [ "source/etas/vrte/saf/factory/FlatCfgFactory.cpp", "source/etas/vrte/saf/factory/MachineConfigFactory.cpp", ], - hdrs = glob(["source/etas/vrte/saf/**/*.hpp", "source/config/gen/**/*.h", "include/**/*.h"]), + hdrs = glob([ + "source/etas/vrte/saf/**/*.hpp", + "source/config/gen/**/*.h", + "include/**/*.h", + ]), includes = [ + "include", "source", - "include" ], -) - -cc_library_with_common_opts( - name = "ifappl", deps = [ - "//launch_manager:process_state_client", + ":recoverynotify", "//external/ipc_dropin", + "//launch_manager:process_state_client", + "@flatbuffers", ] + select( { "//config:x86_64-qnx": [], "//conditions:default": [ "//external/acl", - ] - } + ], + }, ), +) + +cc_library_with_common_opts( + name = "ifappl", srcs = [ "source/etas/vrte/saf/ifappl/Checkpoint.cpp", - "source/etas/vrte/saf/ifappl/MonitorIfDaemon.cpp" + "source/etas/vrte/saf/ifappl/MonitorIfDaemon.cpp", ], hdrs = glob(["source/etas/vrte/saf/**/*.hpp"]), includes = [ - "source", "include", + "source", "source/etas/vrte/saf/logging", ], + deps = [ + "//external/ipc_dropin", + "//launch_manager:process_state_client", + ] + select( + { + "//config:x86_64-qnx": [], + "//conditions:default": [ + "//external/acl", + ], + }, + ), ) cc_library_with_common_opts( name = "supervision", - deps = [":recoverynotify"], srcs = [ "source/etas/vrte/saf/supervision/Alive.cpp", "source/etas/vrte/saf/supervision/Deadline.cpp", - "source/etas/vrte/saf/supervision/Logical.cpp", + "source/etas/vrte/saf/supervision/Global.cpp", "source/etas/vrte/saf/supervision/ICheckpointSupervision.cpp", "source/etas/vrte/saf/supervision/ISupervision.cpp", "source/etas/vrte/saf/supervision/Local.cpp", - "source/etas/vrte/saf/supervision/Global.cpp", + "source/etas/vrte/saf/supervision/Logical.cpp", "source/etas/vrte/saf/supervision/ProcessStateTracker.cpp", ], hdrs = glob([ - "source/etas/vrte/saf/**/*.hpp", - "include/score/lcm/*.h" - ]), + "source/etas/vrte/saf/**/*.hpp", + "include/score/lcm/*.h", + ]), includes = [ + "include", "source/etas/vrte/saf/supervision", - "include" ], + deps = [":recoverynotify"], ) cc_library_with_common_opts( name = "hm-lib", - deps = [ - ":ipc_if", - ":phm_logging", - "@flatbuffers", - "@flatbuffers//:flatc" - ] + select( - { - "//config:x86_64-qnx": [], - "//conditions:default": [ - "//external/acl", - ] - } - ), srcs = [ - "source/score/lcm/hmlib/MonitorImplWrapper.cpp", - "source/score/lcm/hmlib/MonitorImpl.cpp", "source/score/lcm/hmlib/Monitor.cpp", + "source/score/lcm/hmlib/MonitorImpl.cpp", + "source/score/lcm/hmlib/MonitorImplWrapper.cpp", ], hdrs = glob([ - "source/score/lcm/**/*.h", - "include/score/**/*.h", + "source/score/lcm/**/*.h", + "include/score/**/*.h", "source/etas/vrte/saf/**/*.hpp", - "source/config/gen/**/*.h" - ]), + "source/config/gen/**/*.h", + ]), includes = [ "include", "source", "source/config/gen/hm_model", "source/config/gen/hmcore_model", ], + deps = [ + ":ipc_if", + ":phm_logging", + "@flatbuffers", + "@flatbuffers//:flatc", + ] + select( + { + "//config:x86_64-qnx": [], + "//conditions:default": [ + "//external/acl", + ], + }, + ), ) cc_library_with_common_opts( name = "daemon", - deps = [ - ":factory", - ":rb-watchdog-if", - "//launch_manager:lifecycle_client", - "//external/ipc_dropin", - ], srcs = [ - "source/etas/vrte/saf/daemon/PhmDaemonCmdLineParser.cpp", "source/etas/vrte/saf/daemon/PhmDaemon.cpp", + "source/etas/vrte/saf/daemon/PhmDaemonCmdLineParser.cpp", "source/etas/vrte/saf/daemon/SwClusterHandler.cpp", ], + cxxopts = [ + "-fpic", + "-Werror", + ], includes = [ "include", - "source" + "source", + ], + deps = [ + ":factory", + ":rb-watchdog-if", + "//external/ipc_dropin", + "//launch_manager:lifecycle_client", ], - cxxopts = ["-fpic", "-Werror"], ) cc_binary_with_common_opts( name = "health_monitor", + srcs = [ + "source/etas/vrte/saf/daemon/health_monitor.cpp", + ], + cxxopts = [ + "-fpic", + "-Werror", + ], + visibility = ["//visibility:public"], deps = [ ":common", ":daemon", ":factory", - ":ifexm", ":ifappl", + ":ifexm", ":ipc_if", ":phm_logging", + ":rb-watchdog-if", ":recoverynotify", ":supervision", ":timers", - ":rb-watchdog-if", "@flatbuffers//:flatc", "@score_baselibs//score/mw/log", ], - srcs = [ - "source/etas/vrte/saf/daemon/health_monitor.cpp", - ], - visibility = ["//visibility:public"], - cxxopts = ["-fpic", "-Werror"], ) cc_library_with_common_opts( name = "hm_shared_lib", + includes = [ + "include", + ], + visibility = ["//visibility:public"], deps = [ ":hm-lib", ":ipc_if", ":phm_logging", ":timers", - "@flatbuffers" - ], - includes = [ - "include" + "@flatbuffers", ], alwayslink = True, - visibility = ["//visibility:public"], ) diff --git a/launch_manager/BUILD b/launch_manager/BUILD index b140c4c90..e8b97092a 100644 --- a/launch_manager/BUILD +++ b/launch_manager/BUILD @@ -10,7 +10,7 @@ # # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* -load("//config:common_cc.bzl", "cc_library_with_common_opts", "cc_binary_with_common_opts") +load("//config:common_cc.bzl", "cc_binary_with_common_opts", "cc_library_with_common_opts") # Needed to enable `#include <...>` for headers from same repo cc_library( @@ -18,54 +18,69 @@ cc_library( hdrs = glob([ "deliverables/inc/**/*.h", "deliverables/inc/**/*.hpp", - "deliverables/config/gen/*.h" + "deliverables/config/gen/*.h", ]), - includes = ["deliverables/inc", "deliverables/config/gen"], + includes = [ + "deliverables/config/gen", + "deliverables/inc", + ], visibility = ["//visibility:public"], ) cc_binary_with_common_opts( name = "launch_manager", - deps = [ - "@score_baselibs//score/result", - "@score_baselibs//score/mw/log", - "@flatbuffers", - "//external/ipc_dropin:ipc_dropin", - ":deliverables_includes", - ], srcs = select({ - "//config:x86_64-qnx": glob([ - "deliverables/common/**/*.cpp", - "deliverables/daemon/**/*.cpp", - ], exclude = [ - "deliverables/common/osal/linux/**", - ]), - "//config:arm64-qnx": glob([ - "deliverables/common/**/*.cpp", - "deliverables/daemon/**/*.cpp", - ], exclude = [ - "deliverables/common/osal/linux/**", - ]), - "//config:x86_64-linux": glob([ - "deliverables/common/**/*.cpp", - "deliverables/daemon/**/*.cpp", - ], exclude = [ - "deliverables/common/osal/qnx/**", - ]), - "//conditions:default": glob([ - "deliverables/common/**/*.cpp", - "deliverables/daemon/**/*.cpp", - ], exclude = [ - "deliverables/common/osal/qnx/**", - ]), + "//config:x86_64-qnx": glob( + [ + "deliverables/common/**/*.cpp", + "deliverables/daemon/**/*.cpp", + ], + exclude = [ + "deliverables/common/osal/linux/**", + ], + ), + "//config:arm64-qnx": glob( + [ + "deliverables/common/**/*.cpp", + "deliverables/daemon/**/*.cpp", + ], + exclude = [ + "deliverables/common/osal/linux/**", + ], + ), + "//config:x86_64-linux": glob( + [ + "deliverables/common/**/*.cpp", + "deliverables/daemon/**/*.cpp", + ], + exclude = [ + "deliverables/common/osal/qnx/**", + ], + ), + "//conditions:default": glob( + [ + "deliverables/common/**/*.cpp", + "deliverables/daemon/**/*.cpp", + ], + exclude = [ + "deliverables/common/osal/qnx/**", + ], + ), }), includes = ["deliverables/inc"], - visibility = ["//visibility:public"], linkopts = select({ "//config:x86_64-qnx": ["-lsecpol"], "//config:arm64-qnx": ["-lsecpol"], "//conditions:default": [], }), + visibility = ["//visibility:public"], + deps = [ + ":deliverables_includes", + "//external/ipc_dropin", + "@flatbuffers", + "@score_baselibs//score/mw/log", + "@score_baselibs//score/result", + ], ) alias( @@ -76,68 +91,76 @@ alias( cc_library( name = "lifecycle_client", - deps = [ - "@score_baselibs//score/result", - "@score_baselibs//score/mw/log", - ":deliverables_includes", - ], srcs = [ - "deliverables/libraries/score/lifecycle_client/src/lifecycleclient.cpp", - "deliverables/libraries/score/lifecycle_client/src/lifecycleclientimpl.cpp", "deliverables/common/osal/posix/semaphore.cpp", "deliverables/common/osal/posix/sysexit.cpp", "deliverables/daemon/process_group_manager/src/config.cpp", + "deliverables/libraries/score/lifecycle_client/src/lifecycleclient.cpp", + "deliverables/libraries/score/lifecycle_client/src/lifecycleclientimpl.cpp", + ], + hdrs = [ + "deliverables/inc/score/lcm/exec_error_domain.h", + "deliverables/inc/score/lcm/lifecycle_client.h", ], - hdrs = ["deliverables/inc/score/lcm/exec_error_domain.h","deliverables/inc/score/lcm/lifecycle_client.h"], + copts = select({ + "//config:x86_64-qnx": [], + "//conditions:default": ["-pthread"], + }), + linkopts = select({ + "//config:x86_64-qnx": [], + "//conditions:default": ["-lpthread"], + }), visibility = ["//visibility:public"], - copts = select({"//config:x86_64-qnx": [], "//conditions:default": ["-pthread"]}), - linkopts = select({"//config:x86_64-qnx": [], "//conditions:default": ["-lpthread"]}), + deps = [ + ":deliverables_includes", + "@score_baselibs//score/mw/log", + "@score_baselibs//score/result", + ], ) cc_library( name = "control_client", - deps = [ - "@score_baselibs//score/concurrency/future", - "@score_baselibs//score/mw/log", - ":deliverables_includes", - ], srcs = [ - "deliverables/libraries/score/control_client/src/control_client.cpp", - "deliverables/libraries/score/control_client/src/control_client_impl.cpp", "deliverables/common/identifier_hash/identifier_hash.cpp", "deliverables/common/osal/posix/semaphore.cpp", - "deliverables/daemon/process_group_manager/src/controlclientchannel.cpp", "deliverables/daemon/process_group_manager/src/config.cpp", + "deliverables/daemon/process_group_manager/src/controlclientchannel.cpp", + "deliverables/libraries/score/control_client/src/control_client.cpp", + "deliverables/libraries/score/control_client/src/control_client_impl.cpp", ], hdrs = [ "deliverables/inc/score/lcm/control_client.h", + "deliverables/inc/score/lcm/exec_error_domain.h", "deliverables/inc/score/lcm/execution_error_event.h", "deliverables/inc/score/lcm/identifier_hash.hpp", - "deliverables/inc/score/lcm/exec_error_domain.h", - ], + ], visibility = ["//visibility:public"], -) - - -cc_library( - name = "xaap-processstate-client", deps = [ - "@score_baselibs//score/result", ":deliverables_includes", + "@score_baselibs//score/concurrency/future", "@score_baselibs//score/mw/log", - "//external/ipc_dropin:ipc_dropin", ], +) + +cc_library( + name = "xaap-processstate-client", srcs = [ - "deliverables/libraries/etas/process_state_client/src/processstateclient.cpp", "deliverables/common/identifier_hash/identifier_hash.cpp", + "deliverables/libraries/etas/process_state_client/src/processstateclient.cpp", ], hdrs = [ - "deliverables/inc/score/lcm/identifier_hash.hpp", - "deliverables/inc/score/lcm/exec_error_domain.h", "deliverables/inc/etas/vrte/lcm/process_state_client/posixprocess.hpp", "deliverables/inc/etas/vrte/lcm/process_state_client/processstateclient.hpp", - ], + "deliverables/inc/score/lcm/exec_error_domain.h", + "deliverables/inc/score/lcm/identifier_hash.hpp", + ], visibility = ["//visibility:public"], + deps = [ + ":deliverables_includes", + "//external/ipc_dropin", + "@score_baselibs//score/mw/log", + "@score_baselibs//score/result", + ], ) alias( diff --git a/rust_bindings/lifecycle_client_rs/BUILD b/rust_bindings/lifecycle_client_rs/BUILD index dc5e9d5fb..b51679b0c 100644 --- a/rust_bindings/lifecycle_client_rs/BUILD +++ b/rust_bindings/lifecycle_client_rs/BUILD @@ -1,3 +1,5 @@ +load("@rules_rust//rust:defs.bzl", "rust_library") + # ******************************************************************************* # Copyright (c) 2025 Contributors to the Eclipse Foundation # @@ -12,16 +14,14 @@ # ******************************************************************************* package(default_visibility = ["//visibility:public"]) -load("@rules_rust//rust:defs.bzl", "rust_library") - rust_library( name = "lifecycle_client_rs", srcs = [ - "src/lifecycle.rs", "src/lib.rs", + "src/lifecycle.rs", ], deps = [ "//launch_manager:lifecycle_client", - "@crates//:libc" - ] + "@crates//:libc", + ], ) diff --git a/rust_bindings/monitor_rs/BUILD b/rust_bindings/monitor_rs/BUILD index f92f62e22..424e54c53 100644 --- a/rust_bindings/monitor_rs/BUILD +++ b/rust_bindings/monitor_rs/BUILD @@ -1,3 +1,5 @@ +load("@rules_rust//rust:defs.bzl", "rust_library") + # ******************************************************************************* # Copyright (c) 2025 Contributors to the Eclipse Foundation # @@ -12,17 +14,15 @@ # ******************************************************************************* package(default_visibility = ["//visibility:public"]) -load("@rules_rust//rust:defs.bzl", "rust_library") - rust_library( name = "monitor_rs", srcs = [ - "src/monitor.rs", "src/errors.rs", "src/lib.rs", + "src/monitor.rs", ], deps = [ "//health_monitor:hm_shared_lib", - "@crates//:libc" - ] + "@crates//:libc", + ], )