apollo-lhc / cm_mcu

Microcontroller source code for the APOLLO blade for the CMS tracker HL-LHC upgrade.
MIT License
2 stars 2 forks source link

update release generation to have the tar file structure built in #222

Open pwittich opened 1 month ago

pwittich commented 1 month ago

Right now the TGZ file produced in the make release has the following structure

(base) [Downloads] tar ztf cm_mcu_rev2_v0.99.8.tar.gz                 13:08:14 
v0.99.8/REV2/
v0.99.8/REV2/cm_mcu_rev2.bin
v0.99.8/REV2/bl_main_rev2.bin
v0.99.8/REV2/cm_mcu_rev2.axf
v0.99.8/REV2/bl_main_rev2.axf
v0.99.8/REV2/PL_MEM_CM_rev2.xml

In the final form the files need to go here

[cms@apollo205 fw]$ cd /fw/CM
[cms@apollo205 CM]$ tree CornellCM_MCU/
CornellCM_MCU/
└── address_table
    ├── address_apollo.xml
    ├── connections.xml
    └── modules_CM_MCU
        ├── PL_MEM_CM_rev2.xml
        └── PL_MEM_CM.xml -> PL_MEM_CM_rev2.xml

2 directories, 4 files

The content of address_apollo.xml and connections.xml is always the same. We should generate the directory structure under CornellCM_MCU including the soft link such that we can just untar on the Zynq and have it be in the right place.

The content of the static XML files can be found here.