Skip to main content

A software development kit for Resea

Project description

# Resea SDK
[![Build Status](https://travis-ci.org/resea/sdk.svg?branch=master)](https://travis-ci.org/resea/sdk)
[![PyPI version](https://badge.fury.io/py/reseasdk.svg)](http://badge.fury.io/py/reseasdk)

A development tools for Resea.

## Installation
```
# pip3 install reseasdk
```

## Quickstart

### Building an OS
```
$ reseasdk new hello # create a project directory
$ cd hello # move into the created directory
$ edit config.release.yml # edit build config for building
$ reseasdk build # build
```

### Developing a application
```
$ edit package.yml # edit project configuration
$ reseasdk scaffold # generate boilerplate code
$ edit # write code
$ edit config.test.yml # edit build config for testing
$ reseasdk test # build and run tests
```

## Files
### package.yml
It contains information for a package: name, type, required packages,
interface/data type/config definitions, etc.

### config.yml
`config.*.yml` contains build configuration.
- `config.release.yml`: used in `build` command
- `config.test.yml`: used in `test` command
- `config.global.yml`: Default config applied to all packages. This file is used
in special libraries to define build rules.

#### Configration defined by SDK
- `BUILTIN_APPS`: A list of applications to be embeded in an executable.
- `TEST`: A boolean. If it is `yes`, SDK includes test code in an executable.
- `HAL`: HAL library.
- `STARTUP_WITH_THREAD`: If it is `yes`, Resea starts applications in a new
thread separately. If it is `no`, the application except `early_startup`
applications is started by calling `STARTUP()` directly. It is useful for
developing application for Arduino.

## Commands
### Creating new project
- **new**: create a project directory

### Building / Testing
- **build:** build a executable
- **test:** build and test an executable
- **clean:** remove intermediate files such as `*.o`
- **log:** print kernel log omitted in tests

### Unimplemented
- **debug:** test an executable in a debugger
- **analyze:** analyze kernel log
- **sync:** download required packages and update build config
- **search:** search for packages
- **release:** create new version
- **gendocs:** generate web pages from documentation and source code
- **scaffold:** generate boilerplates
- **scancode:** analyze source code

Project details


Download files

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

Source Distribution

ReseaSDK-0.1.1.tar.gz (10.7 kB view details)

Uploaded Source

File details

Details for the file ReseaSDK-0.1.1.tar.gz.

File metadata

  • Download URL: ReseaSDK-0.1.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ReseaSDK-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f0adcecca4cea304878ca61fc93b00d0ab939bbbc7e15d05bd824ee36eb6af65
MD5 9816e495e58dbda7e4bd2d73133246d6
BLAKE2b-256 0d5de884dde9de76bbf49f2361b71f589dc81ed8a0dfca5047a54ce243b10378

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