Skip to content

fusesoc/fusesoc-publish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fusesoc-publish

Overview

fusesoc-publish is a tool for publishing FuseSoC core description files to a FuseSoC Package Database.

Getting Started

Installation

git clone https://github.com/fusesoc/fusesoc-publish
pip install -e fusesoc-publish

Quickstart guide

Create a test server

fusesoc-publish contains some example cores that can be used to test the publishing feature. In order to do so, we also need a server where they can be published. For testing purposes, the simplest way is to set up a private server. The process is described in further detail in the FuseSoC Package Database documentation but the commands below should be sufficient to get started.

# Clone FuseSoC Package Database repo
git clone https://github.com/fusesoc/fusesoc-webserver
cd fusesoc-webserver

# Copy and extend example environment file
cp .env.example .env
echo DJANGO_DEBUG=True >> .env
echo DJANGO_SECRET_KEY=ignoreme >> .env

# Build webserver container
docker compose up --build

The server should now be running at http://localhost:8000

Set up FuseSoC

fusesoc-publish uses the same library parsing and configuration file as fusesoc, so we begin by registering the directory containing the example cores as a FuseSoC library.

# Create an empty workspace directory anywhere in your filesystem
mkdir workspace && cd workspace

# Register the directory of the fusesoc-publish example cores as a library
fusesoc library add <path to>/fusesoc-publish/examples

# Make sure that the example cores can be found
fusesoc core list

Publish a core

From the workspace directory it should now be possible to publish any of the cores in the local library. Try publishing the first example core with

fusesoc-publish basic http://localhost:8000

The published core should now be available to look at in the local server. Try also to add the other example cores to see more features like signing and automatic provider guessing.

Have fun!

NLNet logo This project was sponsored by NLNet Foundation through the NGI0 Commons Fund

About

Command-line tool for publishing FuseSoC cores to a Package Database

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages