A little question/remark Carlos,
Your tutorial explains well how to modify a board and share it with others doing a PR.
But if i want to make a change that is only good for me like:
- add folkloric pin names adapted to my own usage of the board. eg: like renaming pmod1-5 to VGAsync ... because i always use a vgapmod adapter on this pmod
i will clone the generic board and rename the pins, but i will not make a PR because this change will just not be good for others.
So the next time i install the new icestudio wip, all the board folder and files will be overwritten with the last "fpga generic boards" from github and i will loose my cloned and modified boards.
Do you think something simple can be done for that case?
This last year, for doing this, i was using a python script that i run after each icestudio instalation, that just copy my "specially modified" files, that i stored in a non icestudio folder, to the board folders
here is the script:
===============================================================================
@echo off
REM Script to copy boards.json, menu.json and the Polvo-ecp5-25k_(FT2232H) folder
REM 1. Run generator.py to update the pinout.JSON files
echo Updating JSON files with generator.py ...
python generator.py Polvo-ecp5-25k_(FT2232H)
python generator.py Polvo-ecp5-45k_(FT2232H)
REM 2. Copy boards.json to apio resources as well as menu.json, polvo25k & polvo45k folders to icestudio boards
set SOURCE1=boards.json
set DEST1=C:\Users\J\.icestudio\venv\Lib\site-packages\apio\resources
echo Copying %SOURCE1% to %DEST1% ...
copy /Y "%SOURCE1%" "%DEST1%"
REM 3. Copy menu.json, polvo25k and polvo45k folders to icestudio boards
set SOURCE2=menu.json
set DEST2=C:\Program Files\icestudio\package.nw\resources\boards
set SOURCE3=Polvo-ecp5-25k_(FT2232H)
set DEST3=C:\Program Files\icestudio\package.nw\resources\boards
set SOURCE4=Polvo-ecp5-45k_(FT2232H)
set DEST4=C:\Program Files\icestudio\package.nw\resources\boards
echo Copying %SOURCE2% to %DEST2% ...
copy /Y "%SOURCE2%" "%DEST2%"
echo Copying folder %SOURCE3% to %DEST3% ...
xcopy /E /I /Y "%SOURCE3%" "%DEST3%\%SOURCE3%"
echo Copying folder %SOURCE4% to %DEST4% ...
xcopy /E /I /Y "%SOURCE4%" "%DEST4%\%SOURCE4%"
echo Done!
pause
===============================================================================
Of course time to time, i have to update my archived files (boards.json, menu.json ) to include the new fpga boards ( specially if i need to use some of this new boards).
i understand that being able to save such personal preferences can be complex. And personally, i am fine continuing using my python script!
But if by some chances you see a simple solution to this, it may be useful for other people using icestudio.
Thanks again for this big job you did and have a good day.