-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change allows users to define custom resource files by placing a…
… resource file of the same name in their project directory. Currently it is enabled only for boards.json and fpga.json but can easily be enabled for other resources. This way, users can use their own custom board without having to burden the stock resource files with niche boards. The bulk of the change here is making the project dir known in resources.py when the resoruces are loaded. If a custom resource file is used, an info message is printed to facilitate in supporting users.
- Loading branch information
Showing
16 changed files
with
268 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# APIO Developers Hints | ||
|
||
This file is not intended for APIO users. | ||
|
||
## Pre commit tests | ||
Before submitting a new commit, make sure the following commands runs successfuly (in the repository root): | ||
|
||
```shell | ||
make lint | ||
make tox | ||
``` | ||
|
||
## Running an individual APIO test | ||
|
||
Run from the repo root. Replace with the path to the desire test. | ||
|
||
```shell | ||
test/code_commands/test_build.py | ||
``` | ||
|
||
## Running APIO in a debugger | ||
|
||
Set the debugger to run the ``apio_run.py`` main with the regular ``apio`` arguments. Set the project directory ot the project file or use the ``--project_dir`` apio argument to point to the project directory. | ||
|
||
Example of an equivalent manual command: | ||
``` | ||
python apio_run.py build --project_dir ~/projects/fpga/repo/hdl | ||
``` | ||
|
||
## Running APIO commands using a dev repo | ||
|
||
One way is to link the pip package to the dev repository. Something along these lines. Adjust patches to match your system. The ``pip show`` command shows the directory where the stock pip package is installed. | ||
|
||
NOTE: This make the command ``apio init --scons`` opsolete since the scons files can be edited in the dev repository. | ||
|
||
``` | ||
pip install apio | ||
pip show apio | ||
cd /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages | ||
mv apio apio.original | ||
ln -s ~/projects/apio_dev/repo/apio | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.