diff options
author | Martin Braun <martin.braun@ettus.com> | 2023-11-29 12:47:25 +0100 |
---|---|---|
committer | Wade Fife <wade.fife@ettus.com> | 2024-02-15 10:18:34 -0600 |
commit | 4861318d3bdccd8d1baa627a8473eb34f76583b1 (patch) | |
tree | 908acf17b1df8589acbed93f0ccbb1b75398eba3 | |
parent | docs: Update build info (diff) | |
download | uhd-4861318d3bdccd8d1baa627a8473eb34f76583b1.tar.xz uhd-4861318d3bdccd8d1baa627a8473eb34f76583b1.zip |
fpga: utils: Add update_image_cores.sh
This utility will regenerate all the image core .v files from the
available YAML files. It won't rebuild bitfiles.
-rwxr-xr-x | fpga/usrp3/tools/utils/update_image_cores.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fpga/usrp3/tools/utils/update_image_cores.sh b/fpga/usrp3/tools/utils/update_image_cores.sh new file mode 100755 index 000000000..f4f678034 --- /dev/null +++ b/fpga/usrp3/tools/utils/update_image_cores.sh @@ -0,0 +1,13 @@ +#!/usr/bin/bash + +TOP_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../../top + +for device_top in e31x e320 n3xx x300 x400; do + curr_path=$(realpath ${TOP_DIR}/${device_top}) + echo "Updating image cores in $curr_path..." + cd $curr_path + for yml_f in *core.yml; do + echo "Regenerating from $yml_f..." + rfnoc_image_builder -y $yml_f -o `basename $yml_f .yml`.v -H -D -G -l warning $@ + done +done |