Skip to content
Juan Gonzalez-Gomez edited this page Mar 28, 2024 · 9 revisions

Contents

Usage

apio init [OPTIONS]

Description

Manage apio projects. In addition to the code, an apio project may include a configuration file apio.ini and a Scons script SConstruct.

Options

Flag Long Flag Description
-s --scons Create a default SConstruct file. This file can be modified and it will be used instead of the default script
-b --board Create a configuration file with the selected board. This will be the default board used by the commands build, upload and others
-t --top-module Set the top_module in the init file
-p --project-dir Set the target directory for the project
-y --sayyes Automatically answer YES to all the questions

Examples

1. Create an apio.ini file for the Alhambra II board

apio init --board alhambra-ii

The default name for the top module is main This is the content of the apio.ini file created:

[env]
board = alhambra-ii
top-module = main

2. Create an apio.ini file for the icebreaker board and the top module leds

apio init -b iCEBreaker --top-module leds

This is the content of the apio.ini file created:

[env]
board = iCEBreaker
top-module = leds

3. Create an SConstruct file

apio init --scons

This commands is used by developers for testing new SConstruct files, or by the users who wants to edit/modify the default SConstruct file


Clone this wiki locally