Skip to content

Commit

Permalink
Change from git submodules to PDM for dependency management.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyp committed Sep 6, 2024
1 parent eef9553 commit 1d50265
Show file tree
Hide file tree
Showing 19 changed files with 521 additions and 75 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
- run: git fetch --prune --unshallow --no-recurse-submodules
- uses: YosysHQ/setup-oss-cad-suite@v2
- uses: gregdavill/[email protected]
- run: python3 -m pip install wheel construct meson ninja setuptools setuptools_scm Jinja2
- run: ./orbtrace_builder.py --platform orbtrace_mini --build
- run: python3 -m pip install pdm meson ninja
- run: pdm install
- run: pdm run orbtrace_builder --platform orbtrace_mini --build
- uses: actions/upload-artifact@v3
with:
name: orbtrace_mini
Expand All @@ -32,8 +33,9 @@ jobs:
- run: git fetch --prune --unshallow --no-recurse-submodules
- uses: YosysHQ/setup-oss-cad-suite@v2
- uses: gregdavill/[email protected]
- run: python3 -m pip install wheel construct meson ninja setuptools setuptools_scm Jinja2
- run: ./orbtrace_builder.py --platform orbtrace_mini --profile dfu --build
- run: python3 -m pip install pdm meson ninja
- run: pdm install
- run: pdm run orbtrace_builder --platform orbtrace_mini --profile dfu --build
- uses: actions/upload-artifact@v3
with:
name: orbtrace_mini_dfu
Expand All @@ -50,8 +52,9 @@ jobs:
- run: git fetch --prune --unshallow --no-recurse-submodules
- uses: YosysHQ/setup-oss-cad-suite@v2
- uses: gregdavill/[email protected]
- run: python3 -m pip install wheel construct meson ninja setuptools setuptools_scm Jinja2
- run: ./orbtrace_builder.py --platform orbtrace_mini --profile test --build
- run: python3 -m pip install pdm meson ninja
- run: pdm install
- run: pdm run orbtrace_builder --platform orbtrace_mini --profile test --build
- uses: actions/upload-artifact@v3
with:
name: orbtrace_mini_test
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ tags
r
.#*
fp-info-cache
/.venv/
/.pdm-build/
/.pdm-python
33 changes: 0 additions & 33 deletions .gitmodules

This file was deleted.

16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ Full documentation for Orbtrace is available via Read The Docs at https://orbtra
Building
--------

`./orbtrace_builder.py --platform orbtrace_mini --build`
First install dependencies:

`pdm install`

Then build the gateware by running:

`pdm run orbtrace_builder --platform orbtrace_mini --build`

(You might also want `--profile dfu` and `--profile test` if you're working on those elements. They build in separate directories.)

Expand All @@ -26,14 +32,6 @@ To burn application firmware using boot button hold down the boot button while p

and power cycle.

in addition...To ensure everything is up to date;

```
rm -rf build
git pull --recurse-submodules
git submodule update --init --recursive
```

To burn bootloader and application using openFPGALoader;

`openFPGALoader -c ft232 -f -o 0x0 build/orbtrace_mini_dfu/gateware/orbtrace_mini.bit`
Expand Down
14 changes: 0 additions & 14 deletions deps/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion deps/amaranth
Submodule amaranth deleted from a2f3c5
1 change: 0 additions & 1 deletion deps/litehyperbus
Submodule litehyperbus deleted from 1cde46
1 change: 0 additions & 1 deletion deps/litespi
Submodule litespi deleted from 96de79
1 change: 0 additions & 1 deletion deps/litex
Submodule litex deleted from 67cfca
1 change: 0 additions & 1 deletion deps/litex-boards
Submodule litex-boards deleted from dd27a3
1 change: 0 additions & 1 deletion deps/luna
Submodule luna deleted from 76d2ee
1 change: 0 additions & 1 deletion deps/migen
Submodule migen deleted from 50934a
1 change: 0 additions & 1 deletion deps/python-usb-protocol
Submodule python-usb-protocol deleted from a98307
1 change: 0 additions & 1 deletion deps/pythondata-cpu-vexriscv
Submodule pythondata-cpu-vexriscv deleted from 03d8c4
1 change: 0 additions & 1 deletion deps/pythondata-software-compiler_rt
Submodule pythondata-software-compiler_rt deleted from fcb032
1 change: 0 additions & 1 deletion deps/pythondata-software-picolibc
Submodule pythondata-software-picolibc deleted from a5e112
2 changes: 0 additions & 2 deletions orbtrace_builder.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env python3

import deps

import os
import argparse

Expand Down
Loading

0 comments on commit 1d50265

Please sign in to comment.