Skip to main content

Camelot-OS build system

Project description

Camelot Barbican

Barbican is the Camelot OS meta tools for building project, SDK and integration, written in python.

Dependencies

  • Python >= 3.11
  • Jinja2 >= 3.1.0
  • jinja-cli >= 1.2.0
  • jsonschema >= 4.18.0
  • kconfiglib >= 14.1.0
  • lief >= 0.15
  • meson >= 1.7
  • ninja >= 1.11.0
  • ninja_syntax > 1.7
  • svd2json >= 0.1.6
  • dts-utils >= 0.3.0
  • referencing >= 0.33.0
  • rich >= 13.6
  • GitPython >= 3.1.43

Usage

A project is describe by a toml configuration file, a dts for the targeted SoC and Kconfig dotconfig for kernel and application(s).

Configuration

The following is the sample project configuration describing a simple project with simple application(s)

name = 'HelloWorld Project'
license = 'Apache-2.0'
license_file = ['LICENSE.txt']
dts = 'dts/sample.dts'
crossfile = 'cm33-none-eabi-gcc.ini'
version = 'v0.0.1'

[kernel]
scm.git.uri = 'https://github.com/camelot-os/sentry-kernel.git'
scm.git.revision = 'main'
config = 'configs/sentry/nucleo_u5a5.config'

[runtime]
scm.git.uri = 'git@github.com:camelot-os/shield.git'
scm.git.revision = 'main'
config = 'configs/shield/shield.config'

[application.hello]
scm.git.uri = 'https://github.com/camelot-os/sample-rust-app.git'
scm.git.revision = 'main'
config = 'configs/hello/hello.config'
build.backend = 'cargo'
depends = []
provides = ['hello.elf']

Download

Downloads kernel/runtime and applications describe in project.toml to src directory

barbican download

Update

Updates sources if configuration change and/or revision update. Package need to be already downloaded to be updated.

barbican update

Setup

Generates jinja build script for project build (i.e. kernel, runtime, application and firmware integration). Files are generated in build directory.

barbican setup

Build

cd output/build
ninja

TODO

  • SDK generation
  • Pre built C and Rust toolchain in SDK

License

Copyright 2024 - 2025 Ledger SAS

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

camelot_barbican-0.4.7-py3-none-any.whl (65.3 kB view details)

Uploaded Python 3

File details

Details for the file camelot_barbican-0.4.7-py3-none-any.whl.

File metadata

File hashes

Hashes for camelot_barbican-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 beb25bd21ab65689e54734f0abe81564394c3ed41087e4008273d937239c4c97
MD5 b66559faec92463a51422a50d14f0f2f
BLAKE2b-256 2e7301a03533feb9cc75e67ed2207fda22c9b9e49bf95beb484141d795d91b79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page