-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Support multiple build env variations. #493
Comments
I like the proposed ideas, it is similar to the ini file from platformio, which i use quite a lot. I would also like to see a testbench argument that could be used instead of the E.g.
|
@cavearr, @JohannesSchramm, these are very good ideas and in the spirit of platformio. The next step is making apio.ini required and the central source of project configuration, eliminating the configuration flags such as --board and --fpga. This will make adding new project controls much more maintainable. @cavearr, this is related to item 2 here #453. Any news related to items 2-5? |
Hi @zapta today or tomorrow i'm finishing icestudio integration and testing and we could remove the flags. About the config file i could do it if you have other tasks , count with me, if we decide go in this way i'm advance in Icestudio part to have an apio.ini editor to customize the apio.ini for icestudio projects. Let's go team! |
Hi @cavearr, I can do it and already have a pending change for part of the works but am waiting for OK from you for items 2-5. |
|
Done! |
@zapta, @Obijuan this is a suggestion for improve tha Apio ini file:
Add the ability in Apio.ini of add defines to use into verilog files.
For example:
[env]
board = Sipeed-Tang-Nano-1k
top-module = main
defines =
-KEY1=VALUE1
-KEY2=VALUE2
This defines will be passed as yosys argument with -D option.
In other hand could be interesting the capability of passing defines in build command as argument for example:
apio build --defines KEY1=VALUE1,KEY2=VALUE2
In other way we could define multiple target boards to use the same file for multiple targets, for example:
[env]
board = Sipeed-Tang-Nano-1k
top-module = main
[env:Alhambra-ii]
defines =
-myBoard=ALHAMBRA
[env:Fomu]
defines =
-myBoard=FOMU
-LED=RGB
We could do :
apio build => This only will apply env block
or
apio buils --env Fomu. => This will apply env + env:Fomu blocks
The text was updated successfully, but these errors were encountered: