Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Code of Conduct

Ocre is a project of Linux Foundation Edge and applies the [LF Edge Contributor Code of Conduct](https://www.lfedge.org/governance/code-of-conduct/).
Expand Down
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/formatting-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ jobs:

- name: License Banner Checks(conf files)
run: sh scripts/check_license_banner_conf_files.sh

- name: License Banner Checks(md files)
run: sh scripts/check_license_banner_md.sh
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Contributing to Ocre

The Ocre community shares the spirit of the [Apache Way](https://apache.org/theapacheway/)
Expand Down
5 changes: 5 additions & 0 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Maintainers

This page lists all active maintainers (also known as committers) of the [Ocre Project](https://www.lfedge.org/projects/ocre/), which includes this repository and the [Ocre Project Documentation Repo](https://github.com/project-ocre/project-ocre.github.io).
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

![Ocre logo](ocre_logo.jpg "Ocre")

# Ocre
Expand Down
5 changes: 5 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Security Policy

## Reporting a Vulnerability
Expand Down
5 changes: 5 additions & 0 deletions docs/AddZephyrBoard.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Adding support for Zephyr boards

This document will guide you through the process of adding support for Zephyr boards to Ocre.
Expand Down
5 changes: 5 additions & 0 deletions docs/BuildSystemLinux.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Ocre Build System for Linux

Ocre build system is based on CMake. This provides an easy way of embedding Ocre in diffrerent Linux applications,
Expand Down
5 changes: 5 additions & 0 deletions docs/BuildSystemZephyr.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Ocre Build System for Zephyr

Ocre build system is tightly integrated with Zephyr's build system, allowing developers to leverage the power of Zephyr's build system while also providing a more streamlined and user-friendly experience for developing Ocre itself.
Expand Down
5 changes: 5 additions & 0 deletions docs/CreateAndRunCustomContainer.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Create and Run Custom Container

This guide will walk you through the process of creating and running a custom Ocre container on your board.
Expand Down
5 changes: 5 additions & 0 deletions docs/CustomZephyrApplication.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

## Adding Ocre Zephyr module to a custom Zephyr application

Ocre comes with a few samples to get you going fast:
Expand Down
5 changes: 5 additions & 0 deletions docs/Devcontainers.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Devcontainers

Devcontainers are tools that allows you to create and manage isolated development environments in containers. It provides a consistent and reproducible development environment across different machines and operating systems.
Expand Down
5 changes: 5 additions & 0 deletions docs/EmbeddingOcre.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Add Ocre Runtime to a custom Linux Application

This document will guide you through the process of embedding Ocre Runtime into a custom Linux application. For integrating Ocre Runtime into a Zephyr application, please refer to the [Custom Zephyr Application](CustomZephyrApplication.md) documentation.
Expand Down
5 changes: 5 additions & 0 deletions docs/GetStartedLinux.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Get Started with Linux

The samples we currently provide for Linux are the following. Check their specific instruction for
Expand Down
5 changes: 5 additions & 0 deletions docs/GetStartedZephyr.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Get Started with Zephyr

The samples we currently provide for Zephyr are the following. Check their specific instruction for
Expand Down
5 changes: 5 additions & 0 deletions docs/NativeBuild.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Set up host to build Ocre

This document provides instructions on how to build the Ocre Runtime from source without requiring Docker. These instructions also work inside a docker container, however this is provided as a reference for whose who need the development enviroment available in the host.
Expand Down
5 changes: 5 additions & 0 deletions docs/OcreCli.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Ocre CLI

The ocre command line interface (CLI) is a powerful tool for interacting with the Ocre runtime. It provides a simple and intuitive way to manage and execute images within the Ocre environment.
Expand Down
5 changes: 5 additions & 0 deletions docs/Platform.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Ocre Runtime platform requirements

Ocre targets a POSIX-like operating system and makes heavy use of the POSIX API.
Expand Down
5 changes: 5 additions & 0 deletions docs/PlatformPosix.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# POSIX Platform

In Linux, pthreads are enabled by compiling with `-pthread` and linking with `-lpthread`. This might not be required for other POSIX platforms. The required build flags are automatically selected by the cmake build system.
Expand Down
5 changes: 5 additions & 0 deletions docs/PlatformZephyr.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Zephyr Platform

In Zephyr, the POSIX API is selected by the `CONFIG_POSIX_API` configuration option.
Expand Down
5 changes: 5 additions & 0 deletions docs/StateInformation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# State information directory

## Location
Expand Down
5 changes: 5 additions & 0 deletions docs/Versioning.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Ocre Versioning

## Source components
Expand Down
5 changes: 5 additions & 0 deletions docs/boards/zephyr/b_u585i_iot02a.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Zephyr Board: `b_u585i_iot02a`

The [Discovery Kit for IoT Node with STM32U5 Series](https://www.st.com/en/evaluation-tools/b-u585i-iot02a.html) is a demonstration and development board featuring the **STM32U585AIUx** MCU.
Expand Down
5 changes: 5 additions & 0 deletions docs/boards/zephyr/native_sim.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Zephyr Board: `native_sim`

The **native_sim** board is a simulated Zephyr target that runs on your host Linux machine. It allows you to develop and test Zephyr applications without needing physical hardware. The native_sim board is particularly useful for rapid iteration, testing, and debugging.
Expand Down
5 changes: 5 additions & 0 deletions docs/samples/demo.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# demo sample

The demo sample will run a few scenarios in a sequential demonstration.
Expand Down
5 changes: 5 additions & 0 deletions docs/samples/mini.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# mini sample

This sample will create `hello-world.wasm` from the state information directory (`/lfs/ocre/images/hellow-world.wasm` if it does not exist. Then it will execute this container, which prints a nice ASCII art.
Expand Down
5 changes: 5 additions & 0 deletions docs/samples/supervisor.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Supervisor

The Supervisor will run "ocre daemon" in background, being controlled by the ocre-cli command line (shell) tool. It by default will preload the following images,
Expand Down
5 changes: 5 additions & 0 deletions docs/tests/CoverageReports.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Source code test coverage reports

The source code coverage report generation coverage mapping features provided in clang
Expand Down
5 changes: 5 additions & 0 deletions docs/tests/LeakChecks.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# Memory leak checks

The memory leak checks will leverage the address sanitizer features provided in clang
Expand Down
5 changes: 5 additions & 0 deletions docs/tests/SystemTests.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

# System tests

System Tests are tests designed to test the entire system as a black box,
Expand Down
53 changes: 53 additions & 0 deletions scripts/check_license_banner_md.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/sh
# @copyright Copyright (c) contributors to Project Ocre,
# which has been established as Project Ocre a Series of LF Projects, LLC
#
# SPDX-License-Identifier: Apache-2.0

# Checks all .md files for license banner

set -e

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
SRC_DIR="$ROOT_DIR/src"

check_license_banner() {
local file="$1"
local file_header

file_header=$(head -n 4 "$file")

# Expected license banner
local expected_banner="<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->"

if [ "$file_header" != "$expected_banner" ]; then
echo "ERROR: Missing or incorrect license banner in $file"
return 1
fi

return 0
}

echo "Checking license banners."
ERROR_FOUND=0
for file in $(find . -type f \( -name '*.md' \) \
! -path './tests/Unity/*' \
! -path './build/*' \
! -path './wasm-micro-runtime/*' \
! -path './ocre-sdk/*' \
! -path './.github/ISSUE_TEMPLATE*' \
| sort); do

if ! check_license_banner "$file"; then
ERROR_FOUND=1
fi
done

if [ $ERROR_FOUND -ne 0 ]; then
echo "License check failed."
exit 1
fi
5 changes: 5 additions & 0 deletions tests_hw/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- @copyright Copyright (c) contributors to Project Ocre,
which has been established as Project Ocre a Series of LF Projects, LLC

SPDX-License-Identifier: Apache-2.0 -->

## Overview

In the Ocre testing framework, the Ocre execution is comprised of test groups, test suites, and test cases.
Expand Down
Loading