Add batch 1 (tiny-tpu-v2_tiny-tpu, chili-chips-ba_wireguard-fpga, ultraembedded_biriscv, EttusResearch_uhd, circuitvalley_USB_C_Industrial_Camera_FPGA_USB3)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +132 -0
- EttusResearch_uhd/.ci/docker/scripts/check-url.ps1 +24 -0
- EttusResearch_uhd/.ci/docker/scripts/install-choco-package.ps1 +107 -0
- EttusResearch_uhd/.ci/docker/scripts/install-vcpkg-triplet.ps1 +176 -0
- EttusResearch_uhd/.ci/docker/scripts/install-vs-buildtools.ps1 +101 -0
- EttusResearch_uhd/.ci/docker/uhd-builder-fedora42.Dockerfile +81 -0
- EttusResearch_uhd/.ci/docker/uhd-builder-fedora43.Dockerfile +81 -0
- EttusResearch_uhd/.ci/docker/uhd-builder-fedora44.Dockerfile +81 -0
- EttusResearch_uhd/.ci/docker/uhd-builder-ubuntu2004.Dockerfile +96 -0
- EttusResearch_uhd/.ci/docker/uhd-builder-ubuntu2204.Dockerfile +93 -0
- EttusResearch_uhd/.ci/docker/uhd-builder-ubuntu2404.Dockerfile +91 -0
- EttusResearch_uhd/.ci/docker/uhd-builder-ubuntu2510.Dockerfile +92 -0
- EttusResearch_uhd/.ci/docker/uhd-builder-ubuntu2604.Dockerfile +87 -0
- EttusResearch_uhd/.ci/docker/uhd-builder-vs2022-v143-x64.Dockerfile +96 -0
- EttusResearch_uhd/.ci/docker/uhd-builder-vs2026-v145-x64.Dockerfile +96 -0
- EttusResearch_uhd/.ci/docker/vcpkg/vcpkg-vc2026.txt +6 -0
- EttusResearch_uhd/.ci/docker/vcpkg/vcpkg-vs2026.json +35 -0
- EttusResearch_uhd/.ci/docker/vcpkg/vcpkg.json +30 -0
- EttusResearch_uhd/.ci/docker/vcpkg/vcpkg.txt +6 -0
- EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-b310.yml +108 -0
- EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-e31x.yml +164 -0
- EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-e320.yml +117 -0
- EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-n3xx.yml +294 -0
- EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-x300.yml +179 -0
- EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-x400.yml +147 -0
- EttusResearch_uhd/.ci/fpga/scripts/merge_modelsim_ini.py +22 -0
- EttusResearch_uhd/.ci/fpga/scripts/refresh_ip.sh +38 -0
- EttusResearch_uhd/.ci/fpga/scripts/run_setup.sh +87 -0
- EttusResearch_uhd/.ci/fpga/templates/check_clean_repo_steps.yml +39 -0
- EttusResearch_uhd/.ci/fpga/templates/job-build-cpld.yml +96 -0
- EttusResearch_uhd/.ci/fpga/templates/job-build-fpga-all.yml +141 -0
- EttusResearch_uhd/.ci/fpga/templates/job-build-fpga.yml +181 -0
- EttusResearch_uhd/.ci/fpga/templates/job-build-ip.yml +114 -0
- EttusResearch_uhd/.ci/fpga/templates/job-guarantee-artifacts.yml +55 -0
- EttusResearch_uhd/.ci/fpga/templates/job-package-images.yml +108 -0
- EttusResearch_uhd/.ci/fpga/templates/job-regmap.yml +35 -0
- EttusResearch_uhd/.ci/fpga/templates/job-run-testbenches.yml +52 -0
- EttusResearch_uhd/.ci/fpga/templates/jobs-provide-fpga-artifacts.yml +94 -0
- EttusResearch_uhd/.ci/fpga/templates/setup_steps.yml +58 -0
- EttusResearch_uhd/.ci/hwtools/.gitignore +9 -0
- EttusResearch_uhd/.ci/hwtools/X410/vsmakesettings.py +78 -0
- EttusResearch_uhd/.ci/hwtools/X420/vsmakesettings.py +90 -0
- EttusResearch_uhd/.ci/hwtools/X440/vsmakesettings.py +48 -0
- EttusResearch_uhd/.ci/hwtools/build.py +24 -0
- EttusResearch_uhd/.ci/hwtools/common.py +72 -0
- EttusResearch_uhd/.ci/hwtools/root.py +39 -0
- EttusResearch_uhd/.ci/templates/job-analyze-changeset.yml +106 -0
- EttusResearch_uhd/.ci/templates/job-get-latest-uhd-docker.yml +84 -0
- EttusResearch_uhd/.ci/templates/job-gnuradio-grettus-build-src.yml +128 -0
- EttusResearch_uhd/.ci/templates/job-rfnoc_modtool-test-sw.yml +92 -0
.gitattributes
CHANGED
|
@@ -257,3 +257,135 @@ aolofsson_oh/gpio/fpga/dummy.elf filter=lfs diff=lfs merge=lfs -text
|
|
| 257 |
aolofsson_oh/parallella/fpga/headless_e16_z7010/dummy.elf filter=lfs diff=lfs merge=lfs -text
|
| 258 |
aolofsson_oh/parallella/fpga/headless_e16_z7020/dummy.elf filter=lfs diff=lfs merge=lfs -text
|
| 259 |
aolofsson_oh/spi/fpga/dummy.elf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
aolofsson_oh/parallella/fpga/headless_e16_z7010/dummy.elf filter=lfs diff=lfs merge=lfs -text
|
| 258 |
aolofsson_oh/parallella/fpga/headless_e16_z7020/dummy.elf filter=lfs diff=lfs merge=lfs -text
|
| 259 |
aolofsson_oh/spi/fpga/dummy.elf filter=lfs diff=lfs merge=lfs -text
|
| 260 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev2/inband_1rxhb_1tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 261 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev2/inband_2rxhb_2tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 262 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev2/multi_2rxhb_2tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 263 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev2/multi_4rx_0tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 264 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev2/std_2rxhb_2tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 265 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev2/std_4rx_0tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 266 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev4/inband_1rxhb_1tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 267 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev4/inband_2rxhb_2tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 268 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev4/multi_2rxhb_2tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 269 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev4/multi_4rx_0tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 270 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev4/std_2rxhb_2tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 271 |
+
EttusResearch_uhd/fpga/usrp1/rbf/rev4/std_4rx_0tx.rbf filter=lfs diff=lfs merge=lfs -text
|
| 272 |
+
EttusResearch_uhd/fpga/usrp2/boot_cpld/boot_cpld.ise filter=lfs diff=lfs merge=lfs -text
|
| 273 |
+
EttusResearch_uhd/fpga/usrp2/opencores/i2c/doc/src/I2C_specs.doc filter=lfs diff=lfs merge=lfs -text
|
| 274 |
+
EttusResearch_uhd/fpga/usrp2/opencores/spi/doc/src/spi.doc filter=lfs diff=lfs merge=lfs -text
|
| 275 |
+
EttusResearch_uhd/fpga/usrp3/lib/wb_spi/doc/src/spi.doc filter=lfs diff=lfs merge=lfs -text
|
| 276 |
+
EttusResearch_uhd/fpga/usrp3/top/b200/planahead/planahead.runs/impl_1/b200.xdl filter=lfs diff=lfs merge=lfs -text
|
| 277 |
+
EttusResearch_uhd/fpga/usrp3/top/b300/netlists/b310_g2x4_host_interface.edf filter=lfs diff=lfs merge=lfs -text
|
| 278 |
+
EttusResearch_uhd/fpga/usrp3/top/b300/netlists/b310_jesd204b.edf filter=lfs diff=lfs merge=lfs -text
|
| 279 |
+
EttusResearch_uhd/fpga/usrp3/top/n3xx/dboards/mg/db_ifc/Jesd204bXcvrCore.edf filter=lfs diff=lfs merge=lfs -text
|
| 280 |
+
EttusResearch_uhd/fpga/usrp3/top/n3xx/dboards/mg/doc/mg_timing.xlsx filter=lfs diff=lfs merge=lfs -text
|
| 281 |
+
EttusResearch_uhd/fpga/usrp3/top/n3xx/dboards/rh/db_ifc/Jesd204bXcvrCore.edf filter=lfs diff=lfs merge=lfs -text
|
| 282 |
+
EttusResearch_uhd/fpga/usrp3/top/n3xx/dboards/rh/doc/rh_timing.xlsx filter=lfs diff=lfs merge=lfs -text
|
| 283 |
+
EttusResearch_uhd/fpga/usrp3/top/n3xx/doc/mb_timing.xlsx filter=lfs diff=lfs merge=lfs -text
|
| 284 |
+
EttusResearch_uhd/fpga/usrp3/top/x400/cpld/ip/cmi/PcieCmi.qxp filter=lfs diff=lfs merge=lfs -text
|
| 285 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/eth_data_fifo/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 286 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/icmp_rx_ram_8_256/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 287 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/ila_0/hdl/blk_mem_gen_v8_3_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 288 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/ila_0/ila_0.dcp filter=lfs diff=lfs merge=lfs -text
|
| 289 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/ila_0_1/hdl/blk_mem_gen_v8_3_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 290 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/ila_0_1/ila_0.dcp filter=lfs diff=lfs merge=lfs -text
|
| 291 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/len_fifo/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 292 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/udp_checksum_fifo/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 293 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/udp_ram_8_2048/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 294 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/udp_rx_ram_8_2048/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 295 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/udp_tx_data_fifo/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 296 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/01_rtl/ethernet_test/rgmii_ethernet/eth_test.srcs/sources_1/ip/udp_tx_data_fifo/udp_tx_data_fifo.dcp filter=lfs diff=lfs merge=lfs -text
|
| 297 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/04_PCB/01_Schematics_PDF/AX7201-Carrier.brd filter=lfs diff=lfs merge=lfs -text
|
| 298 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/04_PCB/03_Assembly_Drawings/AX7201_Carrier_Assembly.dxf filter=lfs diff=lfs merge=lfs -text
|
| 299 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/05_component_datasheets/ft232h/CDM[[:space:]]v2.12.28[[:space:]]WHQL[[:space:]]Certified_x64/amd64/ftdibus.sys filter=lfs diff=lfs merge=lfs -text
|
| 300 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/05_component_datasheets/ft232h/CDM[[:space:]]v2.12.28[[:space:]]WHQL[[:space:]]Certified_x64/i386/ftdibus.sys filter=lfs diff=lfs merge=lfs -text
|
| 301 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/06_App_Notes/AN108/ADDA.JPG filter=lfs diff=lfs merge=lfs -text
|
| 302 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/06_App_Notes/AN926/PCB-Sources/ALINX9226结构图.PcbDoc filter=lfs diff=lfs merge=lfs -text
|
| 303 |
+
chili-chips-ba_wireguard-fpga/0.doc/Alinx/AX7201_examples/08_HDMI/TMDS.doc filter=lfs diff=lfs merge=lfs -text
|
| 304 |
+
chili-chips-ba_wireguard-fpga/0.doc/Crypto/PipelineC-Wireguard.pptx filter=lfs diff=lfs merge=lfs -text
|
| 305 |
+
chili-chips-ba_wireguard-fpga/0.doc/SystemVerilog/1.SystemVerilog-Coding-Standards.docx filter=lfs diff=lfs merge=lfs -text
|
| 306 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/FontAwesome/fa-solid-900.eot filter=lfs diff=lfs merge=lfs -text
|
| 307 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/FontAwesome/fa-solid-900.ttf filter=lfs diff=lfs merge=lfs -text
|
| 308 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-bold.eot filter=lfs diff=lfs merge=lfs -text
|
| 309 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-bold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 310 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-bold.woff filter=lfs diff=lfs merge=lfs -text
|
| 311 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-bold.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 312 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-bolditalic.eot filter=lfs diff=lfs merge=lfs -text
|
| 313 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-bolditalic.ttf filter=lfs diff=lfs merge=lfs -text
|
| 314 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-bolditalic.woff filter=lfs diff=lfs merge=lfs -text
|
| 315 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-bolditalic.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 316 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-italic.eot filter=lfs diff=lfs merge=lfs -text
|
| 317 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-italic.ttf filter=lfs diff=lfs merge=lfs -text
|
| 318 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-italic.woff filter=lfs diff=lfs merge=lfs -text
|
| 319 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-italic.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 320 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-regular.eot filter=lfs diff=lfs merge=lfs -text
|
| 321 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 322 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-regular.woff filter=lfs diff=lfs merge=lfs -text
|
| 323 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/Lato/lato-regular.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 324 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/RobotoSlab/roboto-slab-v7-bold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 325 |
+
chili-chips-ba_wireguard-fpga/3.build/csr_build/generated-files/html/fonts/RobotoSlab/roboto-slab-v7-regular.ttf filter=lfs diff=lfs merge=lfs -text
|
| 326 |
+
chili-chips-ba_wireguard-fpga/3.build/hw_build.openXC7/build_artifacts/top.fasm filter=lfs diff=lfs merge=lfs -text
|
| 327 |
+
chili-chips-ba_wireguard-fpga/3.build/hw_build.openXC7/build_artifacts/top.frames filter=lfs diff=lfs merge=lfs -text
|
| 328 |
+
chili-chips-ba_wireguard-fpga/3.build/hw_build.openXC7/build_artifacts/top.json filter=lfs diff=lfs merge=lfs -text
|
| 329 |
+
chili-chips-ba_wireguard-fpga/4.sim/libuser.a filter=lfs diff=lfs merge=lfs -text
|
| 330 |
+
chili-chips-ba_wireguard-fpga/4.sim/libvproc.a filter=lfs diff=lfs merge=lfs -text
|
| 331 |
+
chili-chips-ba_wireguard-fpga/4.sim/models/rv32/lib/librv32lnx.a filter=lfs diff=lfs merge=lfs -text
|
| 332 |
+
chili-chips-ba_wireguard-fpga/4.sim/models/rv32/lib/librv32win.a filter=lfs diff=lfs merge=lfs -text
|
| 333 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/eth_data_fifo/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 334 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/icmp_rx_ram_8_256/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 335 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/ila_0/hdl/blk_mem_gen_v8_3_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 336 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/ila_0/ila_0.dcp filter=lfs diff=lfs merge=lfs -text
|
| 337 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/ila_0_1/hdl/blk_mem_gen_v8_3_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 338 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/ila_0_1/ila_0.dcp filter=lfs diff=lfs merge=lfs -text
|
| 339 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/len_fifo/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 340 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/udp_checksum_fifo/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 341 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/udp_ram_8_2048/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 342 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/udp_rx_ram_8_2048/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 343 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/udp_tx_data_fifo/hdl/blk_mem_gen_v8_4_vhsyn_rfs.vhd filter=lfs diff=lfs merge=lfs -text
|
| 344 |
+
chili-chips-ba_wireguard-fpga/99.warmup/1.hw-eth-test/eth_test.srcs/sources_1/ip/udp_tx_data_fifo/udp_tx_data_fifo.dcp filter=lfs diff=lfs merge=lfs -text
|
| 345 |
+
chili-chips-ba_wireguard-fpga/99.warmup/3.hw-eth-test-axis/ethernet_4port/ethernet_4port.runs/impl_1/ethernet_4port_opt.dcp filter=lfs diff=lfs merge=lfs -text
|
| 346 |
+
chili-chips-ba_wireguard-fpga/99.warmup/3.hw-eth-test-axis/ethernet_4port/ethernet_4port.runs/impl_1/ethernet_4port_physopt.dcp filter=lfs diff=lfs merge=lfs -text
|
| 347 |
+
chili-chips-ba_wireguard-fpga/99.warmup/3.hw-eth-test-axis/ethernet_4port/ethernet_4port.runs/impl_1/ethernet_4port_placed.dcp filter=lfs diff=lfs merge=lfs -text
|
| 348 |
+
chili-chips-ba_wireguard-fpga/99.warmup/3.hw-eth-test-axis/ethernet_4port/ethernet_4port.runs/impl_1/ethernet_4port_power_routed.rpx filter=lfs diff=lfs merge=lfs -text
|
| 349 |
+
chili-chips-ba_wireguard-fpga/99.warmup/3.hw-eth-test-axis/ethernet_4port/ethernet_4port.runs/impl_1/ethernet_4port_routed.dcp filter=lfs diff=lfs merge=lfs -text
|
| 350 |
+
chili-chips-ba_wireguard-fpga/99.warmup/3.hw-eth-test-axis/ethernet_4port/ethernet_4port.runs/impl_1/ethernet_4port_timing_summary_routed.rpx filter=lfs diff=lfs merge=lfs -text
|
| 351 |
+
chili-chips-ba_wireguard-fpga/99.warmup/3.hw-eth-test-axis/ethernet_4port/ethernet_4port.runs/synth_1/ethernet_4port.dcp filter=lfs diff=lfs merge=lfs -text
|
| 352 |
+
chili-chips-ba_wireguard-fpga/99.warmup/3.hw-eth-test-axis/ethernet_4port/ethernet_4port.srcs/utils_1/imports/synth_1/ethernet_4port.dcp filter=lfs diff=lfs merge=lfs -text
|
| 353 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Cypress_FX3_USB_Firmware/Image/USB_C_FX3_CV.img filter=lfs diff=lfs merge=lfs -text
|
| 354 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/01_Camera_Sensors/IMX290_IMX327_IMX462/PCB_Source/IMX290_module_pcb.PcbDoc filter=lfs diff=lfs merge=lfs -text
|
| 355 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/01_Camera_Sensors/IMX290_IMX327_IMX462/PCB_Source/IMX290_module_sch.SchDoc filter=lfs diff=lfs merge=lfs -text
|
| 356 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/01_Camera_Sensors/IMX477/PCB[[:space:]]Source/imx477.PcbDoc filter=lfs diff=lfs merge=lfs -text
|
| 357 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/01_Camera_Sensors/IMX477/PCB[[:space:]]Source/imx477_sensor.SchDoc filter=lfs diff=lfs merge=lfs -text
|
| 358 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/02_FPGA_Core/PCB_Source/FPGA_Core_FX3.PcbDoc filter=lfs diff=lfs merge=lfs -text
|
| 359 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/02_FPGA_Core/PCB_Source/camera.SchDoc filter=lfs diff=lfs merge=lfs -text
|
| 360 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/02_FPGA_Core/PCB_Source/fpga_flash.SchDoc filter=lfs diff=lfs merge=lfs -text
|
| 361 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/02_FPGA_Core/PCB_Source/fpga_gpif.SchDoc filter=lfs diff=lfs merge=lfs -text
|
| 362 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/02_FPGA_Core/PCB_Source/fpga_power.SchDoc filter=lfs diff=lfs merge=lfs -text
|
| 363 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/02_FPGA_Core/PCB_Source/power.SchDoc filter=lfs diff=lfs merge=lfs -text
|
| 364 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/02_FPGA_Core/PCB_Source/psram.SchDoc filter=lfs diff=lfs merge=lfs -text
|
| 365 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/03_USB_Controller/PCB_Source/cam_FX3.PcbDoc filter=lfs diff=lfs merge=lfs -text
|
| 366 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/03_USB_Controller/PCB_Source/power.SchDoc filter=lfs diff=lfs merge=lfs -text
|
| 367 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/03_USB_Controller/PCB_Source/usb.SchDoc filter=lfs diff=lfs merge=lfs -text
|
| 368 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Encolosure_Camera_mount/Lens_mount/C[[:space:]]mount[[:space:]]v1.f3d filter=lfs diff=lfs merge=lfs -text
|
| 369 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/custom[[:space:]]IMX477[[:space:]]Sensor[[:space:]]with[[:space:]]FPGA.JPG filter=lfs diff=lfs merge=lfs -text
|
| 370 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](12)2.JPG filter=lfs diff=lfs merge=lfs -text
|
| 371 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](12)24.JPG filter=lfs diff=lfs merge=lfs -text
|
| 372 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](14)1.JPG filter=lfs diff=lfs merge=lfs -text
|
| 373 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](16)1.JPG filter=lfs diff=lfs merge=lfs -text
|
| 374 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](19).JPG filter=lfs diff=lfs merge=lfs -text
|
| 375 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](24).JPG filter=lfs diff=lfs merge=lfs -text
|
| 376 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](29).JPG filter=lfs diff=lfs merge=lfs -text
|
| 377 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](3).JPG filter=lfs diff=lfs merge=lfs -text
|
| 378 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](31).JPG filter=lfs diff=lfs merge=lfs -text
|
| 379 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](33).JPG filter=lfs diff=lfs merge=lfs -text
|
| 380 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](4).JPG filter=lfs diff=lfs merge=lfs -text
|
| 381 |
+
circuitvalley_USB_C_Industrial_Camera_FPGA_USB3/Hardware/Images/usb_c_fpga_mipi_camera_c_mount_industrial_lattice_crosslink_fpga_xilinx_zynq[[:space:]](6).JPG filter=lfs diff=lfs merge=lfs -text
|
| 382 |
+
tiny-tpu-v2_tiny-tpu/mnist_demo/artifacts/sim/modelsim_de1_soc_mnist_serial_top/work/_lib1_0.qpg filter=lfs diff=lfs merge=lfs -text
|
| 383 |
+
tiny-tpu-v2_tiny-tpu/mnist_demo/artifacts/sim/modelsim_de1_soc_mnist_serial_top/work/_lib1_0.qtl filter=lfs diff=lfs merge=lfs -text
|
| 384 |
+
tiny-tpu-v2_tiny-tpu/mnist_demo/artifacts/sim/modelsim_mnist_jtag_classifier/work/_lib1_0.qpg filter=lfs diff=lfs merge=lfs -text
|
| 385 |
+
tiny-tpu-v2_tiny-tpu/mnist_demo/artifacts/sim/modelsim_mnist_jtag_classifier/work/_lib1_0.qtl filter=lfs diff=lfs merge=lfs -text
|
| 386 |
+
tiny-tpu-v2_tiny-tpu/mnist_demo/artifacts/sim/modelsim_mnist_serial_classifier/work/_lib1_0.qpg filter=lfs diff=lfs merge=lfs -text
|
| 387 |
+
tiny-tpu-v2_tiny-tpu/mnist_demo/artifacts/sim/modelsim_mnist_serial_classifier/work/_lib1_0.qtl filter=lfs diff=lfs merge=lfs -text
|
| 388 |
+
tiny-tpu-v2_tiny-tpu/mnist_demo/artifacts/sim/modelsim_mnist_serial_classifier_full/work/_lib1_0.qpg filter=lfs diff=lfs merge=lfs -text
|
| 389 |
+
tiny-tpu-v2_tiny-tpu/mnist_demo/artifacts/sim/modelsim_mnist_serial_classifier_full/work/_lib1_0.qtl filter=lfs diff=lfs merge=lfs -text
|
| 390 |
+
tiny-tpu-v2_tiny-tpu/mnist_demo/artifacts/sim/modelsim_mnist_tpu_tiled_classifier/work/_lib1_0.qpg filter=lfs diff=lfs merge=lfs -text
|
| 391 |
+
tiny-tpu-v2_tiny-tpu/mnist_demo/artifacts/sim/modelsim_mnist_tpu_tiled_classifier/work/_lib1_0.qtl filter=lfs diff=lfs merge=lfs -text
|
EttusResearch_uhd/.ci/docker/scripts/check-url.ps1
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
param(
|
| 2 |
+
[Parameter(Mandatory = $true)]
|
| 3 |
+
[string]$Url
|
| 4 |
+
)
|
| 5 |
+
|
| 6 |
+
if ([string]::IsNullOrWhiteSpace($Url)) {
|
| 7 |
+
throw "URL check failed: URL parameter is empty or null. Please provide a valid VS Build Tools URL via the VS_BUILD_TOOLS_URL build argument."
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
$resp = Invoke-WebRequest -Uri $Url -UseBasicParsing -Method Head
|
| 11 |
+
if ($resp.StatusCode -ne 200) {
|
| 12 |
+
throw "URL check failed: StatusCode=$($resp.StatusCode)"
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
$ct = $resp.Headers['Content-Type']
|
| 16 |
+
$cl = [int64]($resp.Headers['Content-Length'] | Select-Object -First 1)
|
| 17 |
+
|
| 18 |
+
if ($ct -and $ct -match 'text/html') {
|
| 19 |
+
throw "URL check failed: Content-Type=$ct"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
if ($cl -and $cl -lt 1048576) {
|
| 23 |
+
throw "URL check failed: Content-Length=$cl"
|
| 24 |
+
}
|
EttusResearch_uhd/.ci/docker/scripts/install-choco-package.ps1
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
param(
|
| 2 |
+
[string]$PackageName,
|
| 3 |
+
|
| 4 |
+
[string]$Version = "",
|
| 5 |
+
|
| 6 |
+
[string]$InstallArgs = "",
|
| 7 |
+
|
| 8 |
+
[ValidateRange(0, 20)]
|
| 9 |
+
[int]$RetryCount = 2,
|
| 10 |
+
|
| 11 |
+
[ValidateRange(1, 3600)]
|
| 12 |
+
[int]$RetryDelaySeconds = 30,
|
| 13 |
+
|
| 14 |
+
[ValidateRange(0, 100000)]
|
| 15 |
+
[int]$LogTailLines = 300,
|
| 16 |
+
|
| 17 |
+
[Alias('h')]
|
| 18 |
+
[switch]$Help,
|
| 19 |
+
|
| 20 |
+
[Parameter(ValueFromRemainingArguments = $true)]
|
| 21 |
+
[string[]]$ExtraArgs
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
function Show-Usage {
|
| 25 |
+
Write-Host "Usage:"
|
| 26 |
+
Write-Host " powershell -NoProfile -ExecutionPolicy Bypass -File install-choco-package.ps1 -PackageName <name> [-Version <version>] [-InstallArgs <args>] [-RetryCount <n>] [-RetryDelaySeconds <sec>]"
|
| 27 |
+
Write-Host ""
|
| 28 |
+
Write-Host "Options:"
|
| 29 |
+
Write-Host " -PackageName Chocolatey package ID (required)."
|
| 30 |
+
Write-Host " -Version Optional package version passed as --version."
|
| 31 |
+
Write-Host " -InstallArgs Optional installer args passed as --installargs."
|
| 32 |
+
Write-Host " -RetryCount Number of retries after the first failed attempt (default: 2)."
|
| 33 |
+
Write-Host " -RetryDelaySeconds Wait time between retries in seconds (default: 30)."
|
| 34 |
+
Write-Host " -LogTailLines Number of log lines to show on final failure (default: 300, use 0 to disable)."
|
| 35 |
+
Write-Host " -Help, --help Show this help text."
|
| 36 |
+
Write-Host ""
|
| 37 |
+
Write-Host "Examples:"
|
| 38 |
+
Write-Host " powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 -PackageName doxygen.install -Version 1.9.8"
|
| 39 |
+
Write-Host " powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 -PackageName cmake.install -Version 3.22.3 -InstallArgs \"ADD_CMAKE_TO_PATH=System\""
|
| 40 |
+
Write-Host " powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 -PackageName git"
|
| 41 |
+
Write-Host " powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 -PackageName doxygen.install -Version 1.9.8 -RetryCount 3 -RetryDelaySeconds 30"
|
| 42 |
+
Write-Host " powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 -PackageName doxygen.install -Version 1.9.8 -LogTailLines 1000"
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
if ($Help -or ($ExtraArgs -contains '--help')) {
|
| 46 |
+
Show-Usage
|
| 47 |
+
exit 0
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
if (-not $PackageName) {
|
| 51 |
+
Write-Host "Error: -PackageName is required."
|
| 52 |
+
Write-Host "Run with --help to see usage."
|
| 53 |
+
exit 2
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
$ErrorActionPreference = 'Stop'
|
| 57 |
+
|
| 58 |
+
$chocoRoot = if ($env:ChocolateyInstall) { $env:ChocolateyInstall } else { 'C:\ProgramData\chocolatey' }
|
| 59 |
+
$logPath = Join-Path $chocoRoot 'logs\chocolatey.log'
|
| 60 |
+
$packageLibPath = Join-Path (Join-Path $chocoRoot 'lib') $PackageName
|
| 61 |
+
$maxAttempts = $RetryCount + 1
|
| 62 |
+
|
| 63 |
+
$chocoArgs = @('install', '-y', $PackageName)
|
| 64 |
+
if ($Version) {
|
| 65 |
+
$chocoArgs += @('--version', $Version)
|
| 66 |
+
}
|
| 67 |
+
if ($InstallArgs) {
|
| 68 |
+
$chocoArgs += @('--installargs', $InstallArgs)
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
for ($attempt = 1; $attempt -le $maxAttempts; $attempt++) {
|
| 72 |
+
Write-Host "Installing Chocolatey package: $PackageName (attempt $attempt of $maxAttempts)"
|
| 73 |
+
& choco @chocoArgs
|
| 74 |
+
$exitCode = $LASTEXITCODE
|
| 75 |
+
|
| 76 |
+
if ($exitCode -eq 0) {
|
| 77 |
+
Write-Host "Successfully installed Chocolatey package: $PackageName"
|
| 78 |
+
exit 0
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
Write-Host "Chocolatey install failed for package '$PackageName' (exit code $exitCode)."
|
| 82 |
+
|
| 83 |
+
if ($attempt -lt $maxAttempts) {
|
| 84 |
+
Write-Host "Retrying in $RetryDelaySeconds seconds..."
|
| 85 |
+
Start-Sleep -Seconds $RetryDelaySeconds
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
if ($LogTailLines -gt 0) {
|
| 90 |
+
if (Test-Path $logPath) {
|
| 91 |
+
Write-Host "Showing last $LogTailLines lines from $logPath"
|
| 92 |
+
Get-Content $logPath -Tail $LogTailLines
|
| 93 |
+
}
|
| 94 |
+
else {
|
| 95 |
+
Write-Host "Chocolatey log not found at $logPath"
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
else {
|
| 99 |
+
Write-Host "Skipping Chocolatey log output because -LogTailLines is set to 0"
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
if (Test-Path $packageLibPath) {
|
| 103 |
+
Write-Host "Contents of $packageLibPath"
|
| 104 |
+
Get-ChildItem -Path $packageLibPath -Force
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
exit $exitCode
|
EttusResearch_uhd/.ci/docker/scripts/install-vcpkg-triplet.ps1
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
param(
|
| 2 |
+
[Parameter(Mandatory = $true)]
|
| 3 |
+
[string]$ManifestDir,
|
| 4 |
+
|
| 5 |
+
[Parameter(Mandatory = $true)]
|
| 6 |
+
[string]$Triplet,
|
| 7 |
+
|
| 8 |
+
[string]$VcpkgRoot = 'C:\vcpkg'
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
Set-StrictMode -Version Latest
|
| 12 |
+
$ErrorActionPreference = 'Stop'
|
| 13 |
+
|
| 14 |
+
$vcpkgExe = Join-Path $VcpkgRoot 'vcpkg.exe'
|
| 15 |
+
if (-not (Test-Path -LiteralPath $vcpkgExe)) {
|
| 16 |
+
Write-Error "vcpkg executable not found at: $vcpkgExe"
|
| 17 |
+
exit 2
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
if (-not (Test-Path -LiteralPath $ManifestDir)) {
|
| 21 |
+
Write-Error "Manifest directory not found: $ManifestDir"
|
| 22 |
+
exit 2
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
Write-Host "Running vcpkg install in: $ManifestDir"
|
| 26 |
+
Write-Host "Triplet: $Triplet"
|
| 27 |
+
|
| 28 |
+
Push-Location $ManifestDir
|
| 29 |
+
try {
|
| 30 |
+
& $vcpkgExe install --triplet $Triplet --clean-after-build
|
| 31 |
+
$vcpkgExitCode = $LASTEXITCODE
|
| 32 |
+
}
|
| 33 |
+
finally {
|
| 34 |
+
Pop-Location
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
if ($vcpkgExitCode -eq 0) {
|
| 38 |
+
exit 0
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
Write-Host "##[error]vcpkg install failed with exit code: $vcpkgExitCode"
|
| 42 |
+
|
| 43 |
+
$buildtreesRoot = Join-Path $VcpkgRoot 'buildtrees'
|
| 44 |
+
if (-not (Test-Path -LiteralPath $buildtreesRoot)) {
|
| 45 |
+
Write-Host "No buildtrees directory found at $buildtreesRoot"
|
| 46 |
+
exit $vcpkgExitCode
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
function Write-LogIfExists {
|
| 50 |
+
param([string]$Path)
|
| 51 |
+
if (Test-Path -LiteralPath $Path) {
|
| 52 |
+
$logInfo = Get-Item -LiteralPath $Path
|
| 53 |
+
Write-Host "===== BEGIN LOG: $Path ($([int64]$logInfo.Length) bytes) ====="
|
| 54 |
+
Get-Content -LiteralPath $Path -Raw
|
| 55 |
+
Write-Host "===== END LOG: $Path ====="
|
| 56 |
+
return $true
|
| 57 |
+
}
|
| 58 |
+
return $false
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
function Write-LogFiles {
|
| 62 |
+
param(
|
| 63 |
+
[Parameter(Mandatory = $true)]
|
| 64 |
+
[string]$Directory,
|
| 65 |
+
|
| 66 |
+
[Parameter(Mandatory = $true)]
|
| 67 |
+
[string]$Triplet
|
| 68 |
+
)
|
| 69 |
+
|
| 70 |
+
if (-not (Test-Path -LiteralPath $Directory)) {
|
| 71 |
+
return
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
function Get-LogPriority {
|
| 75 |
+
param([System.IO.FileInfo]$File)
|
| 76 |
+
|
| 77 |
+
if ($File.Name -match '^config-') {
|
| 78 |
+
return 0
|
| 79 |
+
}
|
| 80 |
+
if ($File.Name -match '^stdout-') {
|
| 81 |
+
return 1
|
| 82 |
+
}
|
| 83 |
+
if ($File.Name -match '^stderr-') {
|
| 84 |
+
return 2
|
| 85 |
+
}
|
| 86 |
+
return 3
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
$priorityLogs = Get-ChildItem -LiteralPath $Directory -File -Filter "*${Triplet}*.log" -ErrorAction SilentlyContinue |
|
| 90 |
+
Sort-Object @{ Expression = { Get-LogPriority -File $_ } },
|
| 91 |
+
@{ Expression = { $_.LastWriteTimeUtc }; Descending = $true },
|
| 92 |
+
Name
|
| 93 |
+
|
| 94 |
+
if (-not $priorityLogs) {
|
| 95 |
+
$priorityLogs = Get-ChildItem -LiteralPath $Directory -File -Filter '*.log' -ErrorAction SilentlyContinue |
|
| 96 |
+
Sort-Object @{ Expression = { Get-LogPriority -File $_ } },
|
| 97 |
+
@{ Expression = { $_.LastWriteTimeUtc }; Descending = $true },
|
| 98 |
+
Name
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
if (-not $priorityLogs) {
|
| 102 |
+
Write-Host "No log files found in $Directory"
|
| 103 |
+
return
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
Write-Host "Dumping log files from $Directory"
|
| 107 |
+
foreach ($log in $priorityLogs) {
|
| 108 |
+
if ($log.Length -eq 0) {
|
| 109 |
+
Write-Host "===== SKIP EMPTY LOG: $($log.FullName) ====="
|
| 110 |
+
continue
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
Write-Host "===== BEGIN LOG: $($log.FullName) ($([int64]$log.Length) bytes) ====="
|
| 114 |
+
Get-Content -LiteralPath $log.FullName -Raw
|
| 115 |
+
Write-Host "===== END LOG: $($log.FullName) ====="
|
| 116 |
+
}
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
# Use the most recently modified log of any type to identify the failing port.
|
| 120 |
+
# This catches failures that occur before configure (fetch/extract/patch stage)
|
| 121 |
+
# where no config-*-out.log is ever created.
|
| 122 |
+
$candidate = Get-ChildItem -LiteralPath $buildtreesRoot -Recurse -File -Filter '*.log' -ErrorAction SilentlyContinue |
|
| 123 |
+
Sort-Object LastWriteTimeUtc -Descending |
|
| 124 |
+
Select-Object -First 1
|
| 125 |
+
|
| 126 |
+
# If the most recent log is not a config-*-out.log, also try to find the newest
|
| 127 |
+
# config-*-out.log in the same port directory to seed the related-log dump,
|
| 128 |
+
# since config logs contain the most actionable CMake failure details.
|
| 129 |
+
if ($candidate) {
|
| 130 |
+
$portDirFromRecent = $candidate.DirectoryName
|
| 131 |
+
$configInSamePort = Get-ChildItem -LiteralPath $portDirFromRecent -File -Filter "config-$Triplet-*-out.log" -ErrorAction SilentlyContinue |
|
| 132 |
+
Sort-Object LastWriteTimeUtc -Descending |
|
| 133 |
+
Select-Object -First 1
|
| 134 |
+
if ($configInSamePort) {
|
| 135 |
+
$candidate = $configInSamePort
|
| 136 |
+
}
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
if (-not $candidate) {
|
| 140 |
+
Write-Host "No log files found under $buildtreesRoot"
|
| 141 |
+
exit $vcpkgExitCode
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
$portDir = $candidate.DirectoryName
|
| 145 |
+
$portName = Split-Path -Leaf $portDir
|
| 146 |
+
|
| 147 |
+
Write-Host "Most recent failing dependency candidate: $portName"
|
| 148 |
+
Write-Host "Selected log seed: $($candidate.FullName)"
|
| 149 |
+
|
| 150 |
+
$seedName = [System.IO.Path]::GetFileNameWithoutExtension($candidate.Name)
|
| 151 |
+
if ($seedName.EndsWith('-out', [System.StringComparison]::OrdinalIgnoreCase)) {
|
| 152 |
+
$seedPrefix = $seedName.Substring(0, $seedName.Length - 4)
|
| 153 |
+
$relatedLogs = @(
|
| 154 |
+
(Join-Path $portDir ($seedPrefix + '-CMakeCache.txt.log')),
|
| 155 |
+
(Join-Path $portDir ($seedPrefix + '-CMakeConfigureLog.yaml.log')),
|
| 156 |
+
(Join-Path $portDir ($seedPrefix + '-out.log'))
|
| 157 |
+
)
|
| 158 |
+
|
| 159 |
+
foreach ($log in $relatedLogs) {
|
| 160 |
+
[void](Write-LogIfExists -Path $log)
|
| 161 |
+
}
|
| 162 |
+
} else {
|
| 163 |
+
[void](Write-LogIfExists -Path $candidate.FullName)
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
Write-LogFiles -Directory $portDir -Triplet $Triplet
|
| 167 |
+
|
| 168 |
+
Write-Host 'Recent buildtrees logs (top 20 by timestamp):'
|
| 169 |
+
Get-ChildItem -LiteralPath $buildtreesRoot -Recurse -File -Filter '*.log' -ErrorAction SilentlyContinue |
|
| 170 |
+
Sort-Object LastWriteTimeUtc -Descending |
|
| 171 |
+
Select-Object -First 20 FullName, LastWriteTimeUtc |
|
| 172 |
+
Format-Table -AutoSize |
|
| 173 |
+
Out-String |
|
| 174 |
+
Write-Host
|
| 175 |
+
|
| 176 |
+
exit $vcpkgExitCode
|
EttusResearch_uhd/.ci/docker/scripts/install-vs-buildtools.ps1
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
param(
|
| 2 |
+
[Parameter(Mandatory = $true)]
|
| 3 |
+
[string]$Url,
|
| 4 |
+
|
| 5 |
+
# Optional base temp directory for download and installer extraction.
|
| 6 |
+
# A random subfolder is always created under this base path and cleaned up unless -PreserveTemp is set.
|
| 7 |
+
[string]$TempDir = '',
|
| 8 |
+
|
| 9 |
+
# Preserve the generated temp working directory for debugging.
|
| 10 |
+
[switch]$PreserveTemp,
|
| 11 |
+
|
| 12 |
+
# All remaining arguments are passed directly to vs_buildtools.exe.
|
| 13 |
+
# Example: -InstallerArgs '--quiet','--wait','--norestart','--installPath','C:\VS','--add','Microsoft.VisualStudio.Workload.VCTools','--includeRecommended'
|
| 14 |
+
[string[]]$InstallerArgs = @('--quiet', '--wait', '--norestart', '--add', 'Microsoft.VisualStudio.Workload.VCTools', '--includeRecommended')
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
Set-StrictMode -Version Latest
|
| 18 |
+
$ErrorActionPreference = 'Stop'
|
| 19 |
+
|
| 20 |
+
# --- URL validation (mirrors check-url.ps1 logic) ---
|
| 21 |
+
if ([string]::IsNullOrWhiteSpace($Url)) {
|
| 22 |
+
throw "VS_BUILD_TOOLS_URL is empty. Provide a valid download URL."
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
Write-Host "Validating VS Build Tools URL: $Url"
|
| 26 |
+
$resp = Invoke-WebRequest -Uri $Url -UseBasicParsing -Method Head
|
| 27 |
+
if ($resp.StatusCode -ne 200) {
|
| 28 |
+
throw "URL check failed: StatusCode=$($resp.StatusCode)"
|
| 29 |
+
}
|
| 30 |
+
$ct = $resp.Headers['Content-Type']
|
| 31 |
+
if ($ct -and $ct -match 'text/html') {
|
| 32 |
+
throw "URL check failed: Content-Type=$ct (expected binary)"
|
| 33 |
+
}
|
| 34 |
+
$cl = [int64]($resp.Headers['Content-Length'] | Select-Object -First 1)
|
| 35 |
+
if ($cl -and $cl -lt 1048576) {
|
| 36 |
+
throw "URL check failed: Content-Length=$cl (suspiciously small)"
|
| 37 |
+
}
|
| 38 |
+
Write-Host "URL validation passed (Content-Type: $ct, Content-Length: $cl bytes)."
|
| 39 |
+
|
| 40 |
+
# --- Setup temp directory ---
|
| 41 |
+
if (-not [string]::IsNullOrWhiteSpace($TempDir)) {
|
| 42 |
+
$temp = Join-Path $TempDir ([System.IO.Path]::GetRandomFileName())
|
| 43 |
+
} else {
|
| 44 |
+
$temp = Join-Path $env:TEMP ([System.IO.Path]::GetRandomFileName())
|
| 45 |
+
}
|
| 46 |
+
Write-Host "Using temp directory: $temp"
|
| 47 |
+
New-Item -ItemType Directory -Path $temp -Force | Out-Null
|
| 48 |
+
$env:TEMP = $temp
|
| 49 |
+
$env:TMP = $temp
|
| 50 |
+
|
| 51 |
+
# --- Download ---
|
| 52 |
+
$exe = Join-Path $temp 'vs_buildtools.exe'
|
| 53 |
+
Write-Host "Downloading VS Build Tools to $exe ..."
|
| 54 |
+
Invoke-WebRequest $Url -OutFile $exe -UseBasicParsing
|
| 55 |
+
Write-Host "Download complete: $exe"
|
| 56 |
+
|
| 57 |
+
# --- Install ---
|
| 58 |
+
Push-Location $temp
|
| 59 |
+
try {
|
| 60 |
+
$fullCmd = ".\vs_buildtools.exe " + ($InstallerArgs -join ' ')
|
| 61 |
+
Write-Host "Install command: $fullCmd"
|
| 62 |
+
$p = Start-Process -FilePath '.\vs_buildtools.exe' -ArgumentList $InstallerArgs -Wait -PassThru
|
| 63 |
+
$code = $p.ExitCode
|
| 64 |
+
Write-Host "VS installer exit code: $code"
|
| 65 |
+
|
| 66 |
+
if ($code -ne 0 -and $code -ne 3010) {
|
| 67 |
+
# Dump installer logs to stdout before cleanup
|
| 68 |
+
Get-ChildItem -Path $env:TEMP -Recurse -File -Include 'dd_*', '*.log' -ErrorAction SilentlyContinue |
|
| 69 |
+
Sort-Object LastWriteTime -Descending |
|
| 70 |
+
Select-Object -First 20 -ExpandProperty FullName |
|
| 71 |
+
ForEach-Object { Write-Host ('==== ' + $_ + ' ===='); Get-Content $_ -Tail 250 }
|
| 72 |
+
|
| 73 |
+
$b1 = Join-Path $env:ProgramData 'Microsoft\VisualStudio\Packages\_bootstrapper'
|
| 74 |
+
if (Test-Path $b1) {
|
| 75 |
+
Get-ChildItem -Path $b1 -Recurse -File -Filter '*.log' -ErrorAction SilentlyContinue |
|
| 76 |
+
Sort-Object LastWriteTime -Descending |
|
| 77 |
+
Select-Object -First 20 -ExpandProperty FullName |
|
| 78 |
+
ForEach-Object { Write-Host ('==== ' + $_ + ' ===='); Get-Content $_ -Tail 250 }
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
throw "Installer failed with exit code: $code"
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
finally {
|
| 85 |
+
Pop-Location
|
| 86 |
+
if ($PreserveTemp) {
|
| 87 |
+
Write-Host "Preserving temp directory: $temp"
|
| 88 |
+
} else {
|
| 89 |
+
Remove-Item -LiteralPath $temp -Recurse -Force -ErrorAction SilentlyContinue
|
| 90 |
+
}
|
| 91 |
+
# Give Windows time to flush pending filesystem writes (e.g. msiexec deferred
|
| 92 |
+
# operations) before Docker captures the layer. Without this, hcsshim::ImportLayer
|
| 93 |
+
# can fail with ERROR_PATH_NOT_FOUND (0x3) due to a race condition between
|
| 94 |
+
# NTFS lazy-write completion and the layer snapshot.
|
| 95 |
+
# Runs unconditionally: even a failed install may have partial writes pending.
|
| 96 |
+
Write-Host "Waiting 10 seconds for filesystem writes to flush..."
|
| 97 |
+
Start-Sleep -Seconds 10
|
| 98 |
+
Write-Host "Filesystem flush wait complete."
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
Write-Host "VS Build Tools installed successfully."
|
EttusResearch_uhd/.ci/docker/uhd-builder-fedora42.Dockerfile
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# please follow docker best practices
|
| 2 |
+
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
|
| 3 |
+
|
| 4 |
+
FROM fedora:42
|
| 5 |
+
LABEL maintainer="Ettus Research"
|
| 6 |
+
|
| 7 |
+
ARG PIP_INDEX_HOST
|
| 8 |
+
ARG PIP_INDEX_URL
|
| 9 |
+
|
| 10 |
+
RUN dnf install -y \
|
| 11 |
+
boost-devel \
|
| 12 |
+
ccache \
|
| 13 |
+
clang \
|
| 14 |
+
cmake \
|
| 15 |
+
doxygen \
|
| 16 |
+
dpdk \
|
| 17 |
+
dpdk-devel \
|
| 18 |
+
dpdk-tools \
|
| 19 |
+
gcc \
|
| 20 |
+
gcc-c++ \
|
| 21 |
+
git \
|
| 22 |
+
libusb1-devel \
|
| 23 |
+
make \
|
| 24 |
+
ncompress \
|
| 25 |
+
ninja-build \
|
| 26 |
+
pybind11-devel \
|
| 27 |
+
python3-devel \
|
| 28 |
+
python3-docutils \
|
| 29 |
+
python3-mako \
|
| 30 |
+
python3-numpy \
|
| 31 |
+
python3-pip \
|
| 32 |
+
python3-requests \
|
| 33 |
+
redhat-rpm-config \
|
| 34 |
+
rpm-build \
|
| 35 |
+
rpm-devel \
|
| 36 |
+
rsync \
|
| 37 |
+
tar \
|
| 38 |
+
xz \
|
| 39 |
+
# gRPC baseline
|
| 40 |
+
grpc-devel \
|
| 41 |
+
protobuf-devel \
|
| 42 |
+
# gRPC protobuf compiler
|
| 43 |
+
grpc-plugins \
|
| 44 |
+
# gRPC Python runtime
|
| 45 |
+
python3-grpcio \
|
| 46 |
+
# Install GNURadio dependencies
|
| 47 |
+
python3-sphinx \
|
| 48 |
+
python3-lxml \
|
| 49 |
+
SDL-devel \
|
| 50 |
+
gsl-devel \
|
| 51 |
+
qwt-qt5-devel \
|
| 52 |
+
qt5-qtbase-devel \
|
| 53 |
+
gmp-devel \
|
| 54 |
+
fftw-devel \
|
| 55 |
+
swig \
|
| 56 |
+
gtk3-devel \
|
| 57 |
+
pango-devel \
|
| 58 |
+
PyQt5 \
|
| 59 |
+
log4cpp-devel \
|
| 60 |
+
zeromq-devel \
|
| 61 |
+
cppzmq-devel \
|
| 62 |
+
python3-ruamel-yaml \
|
| 63 |
+
python3-click \
|
| 64 |
+
python3-click-plugins \
|
| 65 |
+
python3-zmq \
|
| 66 |
+
python3-scipy \
|
| 67 |
+
python3-cairo-devel \
|
| 68 |
+
python3-gobject \
|
| 69 |
+
spdlog-devel \
|
| 70 |
+
&& \
|
| 71 |
+
dnf clean all
|
| 72 |
+
|
| 73 |
+
# Optionally use cached index.
|
| 74 |
+
RUN if [[ -n "$PIP_INDEX_URL" ]]; then \
|
| 75 |
+
python3 -m pip config --global set global.index-url $PIP_INDEX_URL && \
|
| 76 |
+
python3 -m pip config --global set global.trusted-host $PIP_INDEX_HOST; \
|
| 77 |
+
fi
|
| 78 |
+
|
| 79 |
+
RUN python3 -m pip config list
|
| 80 |
+
RUN python3 -m pip install --upgrade pip
|
| 81 |
+
RUN pip install pygccxml pyyaml
|
EttusResearch_uhd/.ci/docker/uhd-builder-fedora43.Dockerfile
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# please follow docker best practices
|
| 2 |
+
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
|
| 3 |
+
|
| 4 |
+
FROM fedora:43
|
| 5 |
+
LABEL maintainer="Ettus Research"
|
| 6 |
+
|
| 7 |
+
ARG PIP_INDEX_HOST
|
| 8 |
+
ARG PIP_INDEX_URL
|
| 9 |
+
|
| 10 |
+
RUN dnf install -y \
|
| 11 |
+
boost-devel \
|
| 12 |
+
ccache \
|
| 13 |
+
clang \
|
| 14 |
+
cmake \
|
| 15 |
+
doxygen \
|
| 16 |
+
dpdk \
|
| 17 |
+
dpdk-devel \
|
| 18 |
+
dpdk-tools \
|
| 19 |
+
gcc \
|
| 20 |
+
gcc-c++ \
|
| 21 |
+
git \
|
| 22 |
+
libusb1-devel \
|
| 23 |
+
make \
|
| 24 |
+
ncompress \
|
| 25 |
+
ninja-build \
|
| 26 |
+
pybind11-devel \
|
| 27 |
+
python3-devel \
|
| 28 |
+
python3-docutils \
|
| 29 |
+
python3-mako \
|
| 30 |
+
python3-numpy \
|
| 31 |
+
python3-pip \
|
| 32 |
+
python3-requests \
|
| 33 |
+
redhat-rpm-config \
|
| 34 |
+
rpm-build \
|
| 35 |
+
rpm-devel \
|
| 36 |
+
rsync \
|
| 37 |
+
tar \
|
| 38 |
+
xz \
|
| 39 |
+
# gRPC baseline
|
| 40 |
+
grpc-devel \
|
| 41 |
+
protobuf-devel \
|
| 42 |
+
# gRPC protobuf compiler
|
| 43 |
+
grpc-plugins \
|
| 44 |
+
# gRPC Python runtime
|
| 45 |
+
python3-grpcio \
|
| 46 |
+
# Install GNURadio dependencies
|
| 47 |
+
python3-sphinx \
|
| 48 |
+
python3-lxml \
|
| 49 |
+
SDL-devel \
|
| 50 |
+
gsl-devel \
|
| 51 |
+
qwt-qt5-devel \
|
| 52 |
+
qt5-qtbase-devel \
|
| 53 |
+
gmp-devel \
|
| 54 |
+
fftw-devel \
|
| 55 |
+
swig \
|
| 56 |
+
gtk3-devel \
|
| 57 |
+
pango-devel \
|
| 58 |
+
PyQt5 \
|
| 59 |
+
log4cpp-devel \
|
| 60 |
+
zeromq-devel \
|
| 61 |
+
cppzmq-devel \
|
| 62 |
+
python3-ruamel-yaml \
|
| 63 |
+
python3-click \
|
| 64 |
+
python3-click-plugins \
|
| 65 |
+
python3-zmq \
|
| 66 |
+
python3-scipy \
|
| 67 |
+
python3-cairo-devel \
|
| 68 |
+
python3-gobject \
|
| 69 |
+
spdlog-devel \
|
| 70 |
+
&& \
|
| 71 |
+
dnf clean all
|
| 72 |
+
|
| 73 |
+
# Optionally use cached index.
|
| 74 |
+
RUN if [[ -n "$PIP_INDEX_URL" ]]; then \
|
| 75 |
+
python3 -m pip config --global set global.index-url $PIP_INDEX_URL && \
|
| 76 |
+
python3 -m pip config --global set global.trusted-host $PIP_INDEX_HOST; \
|
| 77 |
+
fi
|
| 78 |
+
|
| 79 |
+
RUN python3 -m pip config list
|
| 80 |
+
RUN python3 -m pip install --upgrade pip
|
| 81 |
+
RUN pip install pygccxml pyyaml
|
EttusResearch_uhd/.ci/docker/uhd-builder-fedora44.Dockerfile
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# please follow docker best practices
|
| 2 |
+
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
|
| 3 |
+
|
| 4 |
+
FROM fedora:44
|
| 5 |
+
LABEL maintainer="Ettus Research"
|
| 6 |
+
|
| 7 |
+
ARG PIP_INDEX_HOST
|
| 8 |
+
ARG PIP_INDEX_URL
|
| 9 |
+
|
| 10 |
+
RUN dnf install -y \
|
| 11 |
+
boost-devel \
|
| 12 |
+
ccache \
|
| 13 |
+
clang \
|
| 14 |
+
cmake \
|
| 15 |
+
doxygen \
|
| 16 |
+
dpdk \
|
| 17 |
+
dpdk-devel \
|
| 18 |
+
dpdk-tools \
|
| 19 |
+
gcc \
|
| 20 |
+
gcc-c++ \
|
| 21 |
+
git \
|
| 22 |
+
libusb1-devel \
|
| 23 |
+
make \
|
| 24 |
+
ncompress \
|
| 25 |
+
ninja-build \
|
| 26 |
+
pybind11-devel \
|
| 27 |
+
python3-devel \
|
| 28 |
+
python3-docutils \
|
| 29 |
+
python3-mako \
|
| 30 |
+
python3-numpy \
|
| 31 |
+
python3-pip \
|
| 32 |
+
python3-requests \
|
| 33 |
+
redhat-rpm-config \
|
| 34 |
+
rpm-build \
|
| 35 |
+
rpm-devel \
|
| 36 |
+
rsync \
|
| 37 |
+
tar \
|
| 38 |
+
xz \
|
| 39 |
+
# gRPC baseline
|
| 40 |
+
grpc-devel \
|
| 41 |
+
protobuf-devel \
|
| 42 |
+
# gRPC protobuf compiler
|
| 43 |
+
grpc-plugins \
|
| 44 |
+
# gRPC Python runtime
|
| 45 |
+
python3-grpcio \
|
| 46 |
+
# Install GNURadio dependencies
|
| 47 |
+
python3-sphinx \
|
| 48 |
+
python3-lxml \
|
| 49 |
+
SDL-devel \
|
| 50 |
+
gsl-devel \
|
| 51 |
+
qwt-qt5-devel \
|
| 52 |
+
qt5-qtbase-devel \
|
| 53 |
+
gmp-devel \
|
| 54 |
+
fftw-devel \
|
| 55 |
+
swig \
|
| 56 |
+
gtk3-devel \
|
| 57 |
+
pango-devel \
|
| 58 |
+
PyQt5 \
|
| 59 |
+
log4cpp-devel \
|
| 60 |
+
zeromq-devel \
|
| 61 |
+
cppzmq-devel \
|
| 62 |
+
python3-ruamel-yaml \
|
| 63 |
+
python3-click \
|
| 64 |
+
python3-click-plugins \
|
| 65 |
+
python3-zmq \
|
| 66 |
+
python3-scipy \
|
| 67 |
+
python3-cairo-devel \
|
| 68 |
+
python3-gobject \
|
| 69 |
+
spdlog-devel \
|
| 70 |
+
&& \
|
| 71 |
+
dnf clean all
|
| 72 |
+
|
| 73 |
+
# Optionally use cached index.
|
| 74 |
+
RUN if [[ -n "$PIP_INDEX_URL" ]]; then \
|
| 75 |
+
python3 -m pip config --global set global.index-url $PIP_INDEX_URL && \
|
| 76 |
+
python3 -m pip config --global set global.trusted-host $PIP_INDEX_HOST; \
|
| 77 |
+
fi
|
| 78 |
+
|
| 79 |
+
RUN python3 -m pip config list
|
| 80 |
+
RUN python3 -m pip install --upgrade pip --root-user-action=ignore
|
| 81 |
+
RUN pip install pygccxml pyyaml --root-user-action=ignore
|
EttusResearch_uhd/.ci/docker/uhd-builder-ubuntu2004.Dockerfile
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# please follow docker best practices
|
| 2 |
+
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
|
| 3 |
+
|
| 4 |
+
FROM ubuntu:20.04
|
| 5 |
+
LABEL maintainer="Ettus Research"
|
| 6 |
+
|
| 7 |
+
ARG PIP_INDEX_HOST
|
| 8 |
+
ARG PIP_INDEX_URL
|
| 9 |
+
# This will make apt-get install without question
|
| 10 |
+
ARG DEBIAN_FRONTEND=noninteractive
|
| 11 |
+
|
| 12 |
+
RUN apt-get update && \
|
| 13 |
+
apt-get -y upgrade && \
|
| 14 |
+
apt-get -y install -q \
|
| 15 |
+
build-essential \
|
| 16 |
+
ccache \
|
| 17 |
+
clang \
|
| 18 |
+
curl \
|
| 19 |
+
git \
|
| 20 |
+
sudo \
|
| 21 |
+
# Install UHD dependencies
|
| 22 |
+
abi-dumper \
|
| 23 |
+
cmake \
|
| 24 |
+
doxygen \
|
| 25 |
+
dpdk \
|
| 26 |
+
libboost-all-dev \
|
| 27 |
+
libdpdk-dev \
|
| 28 |
+
libgps-dev \
|
| 29 |
+
libgps-dev \
|
| 30 |
+
libudev-dev \
|
| 31 |
+
libusb-1.0-0-dev \
|
| 32 |
+
ncompress \
|
| 33 |
+
ninja-build \
|
| 34 |
+
python3-dev \
|
| 35 |
+
python3-docutils \
|
| 36 |
+
python3-mako \
|
| 37 |
+
python3-numpy \
|
| 38 |
+
python3-pip \
|
| 39 |
+
python3-requests \
|
| 40 |
+
pybind11-dev \
|
| 41 |
+
# gRPC baseline
|
| 42 |
+
libgrpc++-dev \
|
| 43 |
+
libprotobuf-dev \
|
| 44 |
+
# gRPC protobuf compiler
|
| 45 |
+
protobuf-compiler-grpc \
|
| 46 |
+
# gRPC Python runtime
|
| 47 |
+
python3-grpcio \
|
| 48 |
+
# Install deb dependencies
|
| 49 |
+
debootstrap \
|
| 50 |
+
devscripts \
|
| 51 |
+
pbuilder \
|
| 52 |
+
debhelper \
|
| 53 |
+
libncurses5-dev \
|
| 54 |
+
python3-ruamel.yaml \
|
| 55 |
+
pkgconf \
|
| 56 |
+
# Install GNURadio dependencies
|
| 57 |
+
python3-sphinx \
|
| 58 |
+
python3-lxml \
|
| 59 |
+
libsdl1.2-dev \
|
| 60 |
+
libgsl-dev \
|
| 61 |
+
libqwt-qt5-dev \
|
| 62 |
+
libqt5opengl5-dev \
|
| 63 |
+
libgmp3-dev \
|
| 64 |
+
libfftw3-dev \
|
| 65 |
+
swig \
|
| 66 |
+
gir1.2-gtk-3.0 \
|
| 67 |
+
libpango1.0-dev \
|
| 68 |
+
python3-pyqt5 \
|
| 69 |
+
liblog4cpp5-dev \
|
| 70 |
+
libzmq3-dev \
|
| 71 |
+
python3-ruamel.yaml \
|
| 72 |
+
python3-click \
|
| 73 |
+
python3-click-plugins \
|
| 74 |
+
python3-zmq \
|
| 75 |
+
python3-scipy \
|
| 76 |
+
python3-gi-cairo \
|
| 77 |
+
python3-pygccxml \
|
| 78 |
+
python3-jsonschema \
|
| 79 |
+
libspdlog-dev \
|
| 80 |
+
libsndfile1-dev \
|
| 81 |
+
&& \
|
| 82 |
+
rm -rf /var/lib/apt/lists/*
|
| 83 |
+
|
| 84 |
+
# Optionally use cached index.
|
| 85 |
+
RUN if [ -n "$PIP_INDEX_URL" ]; then \
|
| 86 |
+
python3 -m pip config --global set global.index-url $PIP_INDEX_URL && \
|
| 87 |
+
python3 -m pip config --global set global.trusted-host $PIP_INDEX_HOST; \
|
| 88 |
+
fi
|
| 89 |
+
|
| 90 |
+
RUN python3 -m pip config list
|
| 91 |
+
RUN python3 -m pip install --upgrade pip
|
| 92 |
+
# Required for running pbuilder to build debs in docker on Ubuntu 20.04
|
| 93 |
+
# because of this bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968927
|
| 94 |
+
RUN wget https://launchpad.net/ubuntu/+archive/primary/+files/debootstrap_1.0.124_all.deb && \
|
| 95 |
+
dpkg -i debootstrap_1.0.124_all.deb && \
|
| 96 |
+
rm debootstrap_1.0.124_all.deb
|
EttusResearch_uhd/.ci/docker/uhd-builder-ubuntu2204.Dockerfile
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# please follow docker best practices
|
| 2 |
+
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
|
| 3 |
+
|
| 4 |
+
FROM ubuntu:22.04
|
| 5 |
+
LABEL maintainer="Ettus Research"
|
| 6 |
+
|
| 7 |
+
ARG PIP_INDEX_HOST
|
| 8 |
+
ARG PIP_INDEX_URL
|
| 9 |
+
# This will make apt-get install without question
|
| 10 |
+
ARG DEBIAN_FRONTEND=noninteractive
|
| 11 |
+
|
| 12 |
+
RUN apt-get update && \
|
| 13 |
+
apt-get -y upgrade && \
|
| 14 |
+
apt-get -y install -q \
|
| 15 |
+
build-essential \
|
| 16 |
+
ccache \
|
| 17 |
+
clang \
|
| 18 |
+
curl \
|
| 19 |
+
git \
|
| 20 |
+
sudo \
|
| 21 |
+
# Install formatting tools
|
| 22 |
+
clang-format-14 \
|
| 23 |
+
# Install UHD dependencies
|
| 24 |
+
abi-dumper \
|
| 25 |
+
cmake \
|
| 26 |
+
doxygen \
|
| 27 |
+
dpdk \
|
| 28 |
+
libboost-all-dev \
|
| 29 |
+
libdpdk-dev \
|
| 30 |
+
libgps-dev \
|
| 31 |
+
libgps-dev \
|
| 32 |
+
libudev-dev \
|
| 33 |
+
libusb-1.0-0-dev \
|
| 34 |
+
ncompress \
|
| 35 |
+
ninja-build \
|
| 36 |
+
python3-dev \
|
| 37 |
+
python3-docutils \
|
| 38 |
+
python3-mako \
|
| 39 |
+
python3-numpy \
|
| 40 |
+
python3-pip \
|
| 41 |
+
python3-requests \
|
| 42 |
+
pybind11-dev \
|
| 43 |
+
# gRPC baseline
|
| 44 |
+
libgrpc++-dev \
|
| 45 |
+
libprotobuf-dev \
|
| 46 |
+
# gRPC protobuf compiler
|
| 47 |
+
protobuf-compiler-grpc \
|
| 48 |
+
# gRPC Python runtime
|
| 49 |
+
python3-grpcio \
|
| 50 |
+
# Install deb dependencies
|
| 51 |
+
debootstrap \
|
| 52 |
+
devscripts \
|
| 53 |
+
pbuilder \
|
| 54 |
+
debhelper \
|
| 55 |
+
libncurses5-dev \
|
| 56 |
+
python3-ruamel.yaml \
|
| 57 |
+
pkgconf \
|
| 58 |
+
# Install GNURadio dependencies
|
| 59 |
+
python3-sphinx \
|
| 60 |
+
python3-lxml \
|
| 61 |
+
libsdl1.2-dev \
|
| 62 |
+
libgsl-dev \
|
| 63 |
+
libqwt-qt5-dev \
|
| 64 |
+
libqt5opengl5-dev \
|
| 65 |
+
libgmp3-dev \
|
| 66 |
+
libfftw3-dev \
|
| 67 |
+
swig \
|
| 68 |
+
gir1.2-gtk-3.0 \
|
| 69 |
+
libpango1.0-dev \
|
| 70 |
+
python3-pyqt5 \
|
| 71 |
+
liblog4cpp5-dev \
|
| 72 |
+
libzmq3-dev \
|
| 73 |
+
python3-ruamel.yaml \
|
| 74 |
+
python3-click \
|
| 75 |
+
python3-click-plugins \
|
| 76 |
+
python3-zmq \
|
| 77 |
+
python3-scipy \
|
| 78 |
+
python3-gi-cairo \
|
| 79 |
+
python3-pygccxml \
|
| 80 |
+
python3-jsonschema \
|
| 81 |
+
libspdlog-dev \
|
| 82 |
+
libsndfile1-dev \
|
| 83 |
+
&& \
|
| 84 |
+
rm -rf /var/lib/apt/lists/*
|
| 85 |
+
|
| 86 |
+
# Optionally use cached index.
|
| 87 |
+
RUN if [ -n "$PIP_INDEX_URL" ]; then \
|
| 88 |
+
python3 -m pip config --global set global.index-url $PIP_INDEX_URL && \
|
| 89 |
+
python3 -m pip config --global set global.trusted-host $PIP_INDEX_HOST; \
|
| 90 |
+
fi
|
| 91 |
+
|
| 92 |
+
RUN python3 -m pip config list
|
| 93 |
+
RUN python3 -m pip install --upgrade pip
|
EttusResearch_uhd/.ci/docker/uhd-builder-ubuntu2404.Dockerfile
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# please follow docker best practices
|
| 2 |
+
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
|
| 3 |
+
|
| 4 |
+
FROM ubuntu:24.04
|
| 5 |
+
LABEL maintainer="Ettus Research"
|
| 6 |
+
|
| 7 |
+
ARG PIP_INDEX_HOST
|
| 8 |
+
ARG PIP_INDEX_URL
|
| 9 |
+
# This will make apt-get install without question
|
| 10 |
+
ARG DEBIAN_FRONTEND=noninteractive
|
| 11 |
+
|
| 12 |
+
RUN apt-get update && \
|
| 13 |
+
apt-get -y upgrade && \
|
| 14 |
+
apt-get -y install -q \
|
| 15 |
+
build-essential \
|
| 16 |
+
ccache \
|
| 17 |
+
clang \
|
| 18 |
+
curl \
|
| 19 |
+
git \
|
| 20 |
+
sudo \
|
| 21 |
+
# Install formatting tools
|
| 22 |
+
clang-format-14 \
|
| 23 |
+
# Install UHD dependencies
|
| 24 |
+
abi-dumper \
|
| 25 |
+
cmake \
|
| 26 |
+
doxygen \
|
| 27 |
+
dpdk \
|
| 28 |
+
libboost-all-dev \
|
| 29 |
+
libdpdk-dev \
|
| 30 |
+
libgps-dev \
|
| 31 |
+
libgps-dev \
|
| 32 |
+
libudev-dev \
|
| 33 |
+
libusb-1.0-0-dev \
|
| 34 |
+
ncompress \
|
| 35 |
+
ninja-build \
|
| 36 |
+
python3-dev \
|
| 37 |
+
python3-docutils \
|
| 38 |
+
python3-mako \
|
| 39 |
+
python3-numpy \
|
| 40 |
+
python3-pip \
|
| 41 |
+
python3-requests \
|
| 42 |
+
pybind11-dev \
|
| 43 |
+
# gRPC baseline
|
| 44 |
+
libgrpc++-dev \
|
| 45 |
+
libprotobuf-dev \
|
| 46 |
+
# gRPC protobuf compiler
|
| 47 |
+
protobuf-compiler-grpc \
|
| 48 |
+
# gRPC Python runtime
|
| 49 |
+
python3-grpcio \
|
| 50 |
+
# Install deb dependencies
|
| 51 |
+
debootstrap \
|
| 52 |
+
devscripts \
|
| 53 |
+
pbuilder \
|
| 54 |
+
debhelper \
|
| 55 |
+
libncurses5-dev \
|
| 56 |
+
python3-ruamel.yaml \
|
| 57 |
+
# Install GNURadio dependencies
|
| 58 |
+
python3-sphinx \
|
| 59 |
+
python3-lxml \
|
| 60 |
+
libsdl1.2-dev \
|
| 61 |
+
libgsl-dev \
|
| 62 |
+
libqwt-qt5-dev \
|
| 63 |
+
libqt5opengl5-dev \
|
| 64 |
+
libgmp3-dev \
|
| 65 |
+
libfftw3-dev \
|
| 66 |
+
swig \
|
| 67 |
+
gir1.2-gtk-3.0 \
|
| 68 |
+
libpango1.0-dev \
|
| 69 |
+
python3-pyqt5 \
|
| 70 |
+
liblog4cpp5-dev \
|
| 71 |
+
libzmq3-dev \
|
| 72 |
+
python3-ruamel.yaml \
|
| 73 |
+
python3-click \
|
| 74 |
+
python3-click-plugins \
|
| 75 |
+
python3-zmq \
|
| 76 |
+
python3-scipy \
|
| 77 |
+
python3-gi-cairo \
|
| 78 |
+
python3-pygccxml \
|
| 79 |
+
python3-jsonschema \
|
| 80 |
+
libspdlog-dev \
|
| 81 |
+
libsndfile1-dev \
|
| 82 |
+
&& \
|
| 83 |
+
rm -rf /var/lib/apt/lists/*
|
| 84 |
+
|
| 85 |
+
# Optionally use cached index.
|
| 86 |
+
RUN if [ -n "$PIP_INDEX_URL" ]; then \
|
| 87 |
+
python3 -m pip config --global set global.index-url $PIP_INDEX_URL && \
|
| 88 |
+
python3 -m pip config --global set global.trusted-host $PIP_INDEX_HOST; \
|
| 89 |
+
fi
|
| 90 |
+
|
| 91 |
+
RUN python3 -m pip config list
|
EttusResearch_uhd/.ci/docker/uhd-builder-ubuntu2510.Dockerfile
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# please follow docker best practices
|
| 2 |
+
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
|
| 3 |
+
|
| 4 |
+
FROM ubuntu:25.10
|
| 5 |
+
LABEL maintainer="Ettus Research"
|
| 6 |
+
|
| 7 |
+
ARG PIP_INDEX_HOST
|
| 8 |
+
ARG PIP_INDEX_URL
|
| 9 |
+
# This will make apt-get install without question
|
| 10 |
+
ARG DEBIAN_FRONTEND=noninteractive
|
| 11 |
+
|
| 12 |
+
RUN apt-get update && \
|
| 13 |
+
apt-get -y upgrade && \
|
| 14 |
+
apt-get -y install -q \
|
| 15 |
+
build-essential \
|
| 16 |
+
ccache \
|
| 17 |
+
clang \
|
| 18 |
+
curl \
|
| 19 |
+
git \
|
| 20 |
+
sudo \
|
| 21 |
+
# Install formatting tools
|
| 22 |
+
clang-format-14 \
|
| 23 |
+
# Install UHD dependencies
|
| 24 |
+
abi-dumper \
|
| 25 |
+
cmake \
|
| 26 |
+
doxygen \
|
| 27 |
+
dpdk \
|
| 28 |
+
libboost-all-dev \
|
| 29 |
+
libdpdk-dev \
|
| 30 |
+
libgps-dev \
|
| 31 |
+
libgps-dev \
|
| 32 |
+
libudev-dev \
|
| 33 |
+
libusb-1.0-0-dev \
|
| 34 |
+
ncompress \
|
| 35 |
+
ninja-build \
|
| 36 |
+
python3-dev \
|
| 37 |
+
python3-docutils \
|
| 38 |
+
python3-mako \
|
| 39 |
+
python3-numpy \
|
| 40 |
+
python3-pip \
|
| 41 |
+
python3-requests \
|
| 42 |
+
python3-setuptools \
|
| 43 |
+
pybind11-dev \
|
| 44 |
+
# gRPC baseline
|
| 45 |
+
libgrpc++-dev \
|
| 46 |
+
libprotobuf-dev \
|
| 47 |
+
# gRPC protobuf compiler
|
| 48 |
+
protobuf-compiler-grpc \
|
| 49 |
+
# gRPC Python runtime
|
| 50 |
+
python3-grpcio \
|
| 51 |
+
# Install deb dependencies
|
| 52 |
+
debootstrap \
|
| 53 |
+
devscripts \
|
| 54 |
+
pbuilder \
|
| 55 |
+
debhelper \
|
| 56 |
+
libncurses5-dev \
|
| 57 |
+
python3-ruamel.yaml \
|
| 58 |
+
# Install GNURadio dependencies
|
| 59 |
+
python3-sphinx \
|
| 60 |
+
python3-lxml \
|
| 61 |
+
libsdl1.2-dev \
|
| 62 |
+
libgsl-dev \
|
| 63 |
+
libqwt-qt5-dev \
|
| 64 |
+
libqt5opengl5-dev \
|
| 65 |
+
libgmp3-dev \
|
| 66 |
+
libfftw3-dev \
|
| 67 |
+
swig \
|
| 68 |
+
gir1.2-gtk-3.0 \
|
| 69 |
+
libpango1.0-dev \
|
| 70 |
+
python3-pyqt5 \
|
| 71 |
+
liblog4cpp5-dev \
|
| 72 |
+
libzmq3-dev \
|
| 73 |
+
python3-ruamel.yaml \
|
| 74 |
+
python3-click \
|
| 75 |
+
python3-click-plugins \
|
| 76 |
+
python3-zmq \
|
| 77 |
+
python3-scipy \
|
| 78 |
+
python3-gi-cairo \
|
| 79 |
+
python3-pygccxml \
|
| 80 |
+
python3-jsonschema \
|
| 81 |
+
libspdlog-dev \
|
| 82 |
+
libsndfile1-dev \
|
| 83 |
+
&& \
|
| 84 |
+
rm -rf /var/lib/apt/lists/*
|
| 85 |
+
|
| 86 |
+
# Optionally use cached index.
|
| 87 |
+
RUN if [ -n "$PIP_INDEX_URL" ]; then \
|
| 88 |
+
python3 -m pip config --global set global.index-url $PIP_INDEX_URL && \
|
| 89 |
+
python3 -m pip config --global set global.trusted-host $PIP_INDEX_HOST; \
|
| 90 |
+
fi
|
| 91 |
+
|
| 92 |
+
RUN python3 -m pip config list
|
EttusResearch_uhd/.ci/docker/uhd-builder-ubuntu2604.Dockerfile
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# please follow docker best practices
|
| 2 |
+
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
|
| 3 |
+
|
| 4 |
+
FROM ubuntu:26.04
|
| 5 |
+
LABEL maintainer="Ettus Research"
|
| 6 |
+
|
| 7 |
+
ARG PIP_INDEX_HOST
|
| 8 |
+
ARG PIP_INDEX_URL
|
| 9 |
+
# This will make apt-get install without question
|
| 10 |
+
ARG DEBIAN_FRONTEND=noninteractive
|
| 11 |
+
|
| 12 |
+
RUN apt-get update && \
|
| 13 |
+
apt-get -y upgrade && \
|
| 14 |
+
apt-get -y install -q \
|
| 15 |
+
build-essential \
|
| 16 |
+
ccache \
|
| 17 |
+
clang \
|
| 18 |
+
curl \
|
| 19 |
+
git \
|
| 20 |
+
sudo \
|
| 21 |
+
# Install UHD dependencies
|
| 22 |
+
abi-dumper \
|
| 23 |
+
cmake \
|
| 24 |
+
doxygen \
|
| 25 |
+
dpdk \
|
| 26 |
+
libboost-all-dev \
|
| 27 |
+
libdpdk-dev \
|
| 28 |
+
libgps-dev \
|
| 29 |
+
libudev-dev \
|
| 30 |
+
libusb-1.0-0-dev \
|
| 31 |
+
ncompress \
|
| 32 |
+
ninja-build \
|
| 33 |
+
python3-dev \
|
| 34 |
+
python3-docutils \
|
| 35 |
+
python3-mako \
|
| 36 |
+
python3-numpy \
|
| 37 |
+
python3-pip \
|
| 38 |
+
python3-requests \
|
| 39 |
+
python3-setuptools \
|
| 40 |
+
pybind11-dev \
|
| 41 |
+
# gRPC baseline
|
| 42 |
+
libgrpc++-dev \
|
| 43 |
+
libprotobuf-dev \
|
| 44 |
+
# gRPC protobuf compiler
|
| 45 |
+
protobuf-compiler-grpc \
|
| 46 |
+
# gRPC Python runtime
|
| 47 |
+
python3-grpcio \
|
| 48 |
+
# Install deb dependencies
|
| 49 |
+
debootstrap \
|
| 50 |
+
devscripts \
|
| 51 |
+
pbuilder \
|
| 52 |
+
debhelper \
|
| 53 |
+
libncurses5-dev \
|
| 54 |
+
python3-ruamel.yaml \
|
| 55 |
+
# Install GNURadio dependencies
|
| 56 |
+
python3-sphinx \
|
| 57 |
+
python3-lxml \
|
| 58 |
+
libsdl1.2-dev \
|
| 59 |
+
libgsl-dev \
|
| 60 |
+
libqwt-qt5-dev \
|
| 61 |
+
libqt5opengl5-dev \
|
| 62 |
+
libgmp3-dev \
|
| 63 |
+
libfftw3-dev \
|
| 64 |
+
gir1.2-gtk-3.0 \
|
| 65 |
+
libpango1.0-dev \
|
| 66 |
+
python3-pyqt5 \
|
| 67 |
+
liblog4cpp5-dev \
|
| 68 |
+
libzmq3-dev \
|
| 69 |
+
python3-click \
|
| 70 |
+
python3-click-plugins \
|
| 71 |
+
python3-zmq \
|
| 72 |
+
python3-scipy \
|
| 73 |
+
python3-gi-cairo \
|
| 74 |
+
python3-pygccxml \
|
| 75 |
+
python3-jsonschema \
|
| 76 |
+
libspdlog-dev \
|
| 77 |
+
libsndfile1-dev \
|
| 78 |
+
&& \
|
| 79 |
+
rm -rf /var/lib/apt/lists/*
|
| 80 |
+
|
| 81 |
+
# Optionally use cached index.
|
| 82 |
+
RUN if [ -n "$PIP_INDEX_URL" ]; then \
|
| 83 |
+
python3 -m pip config --global set global.index-url $PIP_INDEX_URL && \
|
| 84 |
+
python3 -m pip config --global set global.trusted-host $PIP_INDEX_HOST; \
|
| 85 |
+
fi
|
| 86 |
+
|
| 87 |
+
RUN python3 -m pip config list
|
EttusResearch_uhd/.ci/docker/uhd-builder-vs2022-v143-x64.Dockerfile
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Docker build context must be uhd/uhddev root
|
| 2 |
+
|
| 3 |
+
# please follow docker best practices
|
| 4 |
+
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
|
| 5 |
+
|
| 6 |
+
# Defaults for variables used in FROM statement
|
| 7 |
+
ARG WIN_BASE_TAG=ltsc2025
|
| 8 |
+
|
| 9 |
+
FROM mcr.microsoft.com/windows/servercore:${WIN_BASE_TAG}
|
| 10 |
+
LABEL maintainer="Ettus Research"
|
| 11 |
+
|
| 12 |
+
# Minimum required argument
|
| 13 |
+
ARG VS_BUILD_TOOLS_URL
|
| 14 |
+
# Optional arguments for customization
|
| 15 |
+
ARG PYTHON_VERSION=3.10.11
|
| 16 |
+
ARG VCPKG_MANIFEST_FILE=vcpkg.json
|
| 17 |
+
ARG PIP_INDEX_HOST=""
|
| 18 |
+
ARG PIP_INDEX_URL=""
|
| 19 |
+
ENV VCPKG_DISABLE_METRICS=1
|
| 20 |
+
# Optional argument for vcpkg binary cache directory
|
| 21 |
+
ARG VCPKG_BINARY_CACHE_DIR="C:\vcpkg-cache"
|
| 22 |
+
ENV VCPKG_BINARY_SOURCES=clear;files,${VCPKG_BINARY_CACHE_DIR},readwrite
|
| 23 |
+
|
| 24 |
+
# Enable long file paths (>260 characters)
|
| 25 |
+
RUN reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
|
| 26 |
+
|
| 27 |
+
# Install vs build tools
|
| 28 |
+
COPY .ci/docker/scripts/install-vs-buildtools.ps1 C:/Temp/install-vs-buildtools.ps1
|
| 29 |
+
RUN powershell -NoProfile -ExecutionPolicy Bypass -Command \
|
| 30 |
+
"& 'C:\Temp\install-vs-buildtools.ps1' \
|
| 31 |
+
-Url '%VS_BUILD_TOOLS_URL%' \
|
| 32 |
+
-InstallerArgs '--quiet','--wait','--norestart','--nocache', \
|
| 33 |
+
'--add','Microsoft.VisualStudio.Workload.VCTools', \
|
| 34 |
+
'--includeRecommended'"
|
| 35 |
+
|
| 36 |
+
RUN setx chocolateyVersion 1.4.0 /m
|
| 37 |
+
RUN @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" \
|
| 38 |
+
-NoProfile -InputFormat None -ExecutionPolicy Bypass \
|
| 39 |
+
-Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; \
|
| 40 |
+
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && \
|
| 41 |
+
SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" && \
|
| 42 |
+
choco config set webRequestTimeoutSeconds 600
|
| 43 |
+
COPY .ci/docker/scripts/install-choco-package.ps1 C:/Temp/install-choco-package.ps1
|
| 44 |
+
RUN powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 45 |
+
-PackageName doxygen.install -Version 1.9.8 && \
|
| 46 |
+
powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 47 |
+
-PackageName cmake.install -Version 3.22.3 -InstallArgs ADD_CMAKE_TO_PATH=System && \
|
| 48 |
+
powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 49 |
+
-PackageName git && \
|
| 50 |
+
powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 51 |
+
-PackageName NSIS -Version 3.06.1 && \
|
| 52 |
+
powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 53 |
+
-PackageName vim && \
|
| 54 |
+
powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 55 |
+
-PackageName python3 -Version %PYTHON_VERSION%
|
| 56 |
+
|
| 57 |
+
# Optionally use cached index.
|
| 58 |
+
RUN if defined PIP_INDEX_URL ( \
|
| 59 |
+
pip config --global set global.index-url %PIP_INDEX_URL% && \
|
| 60 |
+
pip config --global set global.trusted-host %PIP_INDEX_HOST% \
|
| 61 |
+
)
|
| 62 |
+
|
| 63 |
+
COPY host/python/requirements.txt C:/Temp/requirements.txt
|
| 64 |
+
COPY host/python/requirements_np2.txt C:/Temp/requirements_np2.txt
|
| 65 |
+
RUN pip config list && \
|
| 66 |
+
python -m pip install --upgrade pip && \
|
| 67 |
+
powershell -NoProfile -ExecutionPolicy Bypass -Command \
|
| 68 |
+
"if ([version]('%PYTHON_VERSION%') -ge [version]('3.13')) { \
|
| 69 |
+
pip install -r C:/Temp/requirements_np2.txt \
|
| 70 |
+
} else { \
|
| 71 |
+
pip install -r C:/Temp/requirements.txt \
|
| 72 |
+
}; \
|
| 73 |
+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }"
|
| 74 |
+
|
| 75 |
+
RUN setx VCPKG_INSTALL_DIR "c:\\vcpkg" /m
|
| 76 |
+
RUN git clone https://github.com/microsoft/vcpkg %VCPKG_INSTALL_DIR% && \
|
| 77 |
+
cd %VCPKG_INSTALL_DIR% && \
|
| 78 |
+
bootstrap-vcpkg.bat
|
| 79 |
+
# Add custom UHD vcpkg triplet
|
| 80 |
+
COPY host/cmake/vcpkg/* c:/vcpkg/triplets/
|
| 81 |
+
# Define triplet to be used by this container
|
| 82 |
+
RUN setx VCPKG_TARGET_TRIPLET "uhd-x64-windows-static-md" /m
|
| 83 |
+
RUN echo set(VCPKG_BUILD_TYPE release)>>"%VCPKG_INSTALL_DIR%\triplets\%VCPKG_TARGET_TRIPLET%.cmake"
|
| 84 |
+
RUN type "%VCPKG_INSTALL_DIR%\triplets\%VCPKG_TARGET_TRIPLET%.cmake"
|
| 85 |
+
# Copy vcpkg cache from mapped folder to
|
| 86 |
+
RUN echo Current path %cd%
|
| 87 |
+
COPY .cache/vcpkg ${VCPKG_BINARY_CACHE_DIR}
|
| 88 |
+
|
| 89 |
+
RUN powershell -NoProfile -ExecutionPolicy Bypass -Command \
|
| 90 |
+
"New-Item -ItemType Directory -Path 'c:\uhd-vcpkg' -Force | Out-Null"
|
| 91 |
+
COPY .ci/docker/vcpkg/${VCPKG_MANIFEST_FILE} c:/uhd-vcpkg/vcpkg.json
|
| 92 |
+
COPY .ci/docker/scripts/install-vcpkg-triplet.ps1 C:/Temp/install-vcpkg-triplet.ps1
|
| 93 |
+
RUN powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-vcpkg-triplet.ps1 \
|
| 94 |
+
-ManifestDir C:\uhd-vcpkg \
|
| 95 |
+
-Triplet %VCPKG_TARGET_TRIPLET% \
|
| 96 |
+
-VcpkgRoot %VCPKG_INSTALL_DIR%
|
EttusResearch_uhd/.ci/docker/uhd-builder-vs2026-v145-x64.Dockerfile
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Docker build context must be uhd/uhddev root
|
| 2 |
+
|
| 3 |
+
# please follow docker best practices
|
| 4 |
+
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
|
| 5 |
+
|
| 6 |
+
# Defaults for variables used in FROM statement
|
| 7 |
+
ARG WIN_BASE_TAG=ltsc2025
|
| 8 |
+
|
| 9 |
+
FROM mcr.microsoft.com/windows/servercore:${WIN_BASE_TAG}
|
| 10 |
+
LABEL maintainer="Ettus Research"
|
| 11 |
+
|
| 12 |
+
# Minimum required argument
|
| 13 |
+
ARG VS_BUILD_TOOLS_URL
|
| 14 |
+
# Optional arguments for customization
|
| 15 |
+
ARG PYTHON_VERSION=3.10.11
|
| 16 |
+
ARG VCPKG_MANIFEST_FILE=vcpkg-vs2026.json
|
| 17 |
+
ARG PIP_INDEX_HOST=""
|
| 18 |
+
ARG PIP_INDEX_URL=""
|
| 19 |
+
ENV VCPKG_DISABLE_METRICS=1
|
| 20 |
+
# Optional argument for vcpkg binary cache directory
|
| 21 |
+
ARG VCPKG_BINARY_CACHE_DIR="C:\vcpkg-cache"
|
| 22 |
+
ENV VCPKG_BINARY_SOURCES=clear;files,${VCPKG_BINARY_CACHE_DIR},readwrite
|
| 23 |
+
|
| 24 |
+
# Enable long file paths (>260 characters)
|
| 25 |
+
RUN reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
|
| 26 |
+
|
| 27 |
+
# Install vs build tools
|
| 28 |
+
COPY .ci/docker/scripts/install-vs-buildtools.ps1 C:/Temp/install-vs-buildtools.ps1
|
| 29 |
+
RUN powershell -NoProfile -ExecutionPolicy Bypass -Command \
|
| 30 |
+
"& 'C:\Temp\install-vs-buildtools.ps1' \
|
| 31 |
+
-Url '%VS_BUILD_TOOLS_URL%' \
|
| 32 |
+
-InstallerArgs '--quiet','--wait','--norestart','--nocache', \
|
| 33 |
+
'--add','Microsoft.VisualStudio.Workload.VCTools', \
|
| 34 |
+
'--includeRecommended'"
|
| 35 |
+
|
| 36 |
+
RUN setx chocolateyVersion 2.5.1 /m
|
| 37 |
+
RUN @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" \
|
| 38 |
+
-NoProfile -InputFormat None -ExecutionPolicy Bypass \
|
| 39 |
+
-Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; \
|
| 40 |
+
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && \
|
| 41 |
+
SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" && \
|
| 42 |
+
choco config set webRequestTimeoutSeconds 600
|
| 43 |
+
COPY .ci/docker/scripts/install-choco-package.ps1 C:/Temp/install-choco-package.ps1
|
| 44 |
+
RUN powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 45 |
+
-PackageName doxygen.install -Version 1.9.8 && \
|
| 46 |
+
powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 47 |
+
-PackageName cmake.install -Version 4.2.1 -InstallArgs ADD_CMAKE_TO_PATH=System && \
|
| 48 |
+
powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 49 |
+
-PackageName git && \
|
| 50 |
+
powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 51 |
+
-PackageName NSIS -Version 3.11.0 && \
|
| 52 |
+
powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 53 |
+
-PackageName vim && \
|
| 54 |
+
powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-choco-package.ps1 \
|
| 55 |
+
-PackageName python3 -Version %PYTHON_VERSION%
|
| 56 |
+
|
| 57 |
+
# Optionally use cached index.
|
| 58 |
+
RUN if defined PIP_INDEX_URL ( \
|
| 59 |
+
pip config --global set global.index-url %PIP_INDEX_URL% && \
|
| 60 |
+
pip config --global set global.trusted-host %PIP_INDEX_HOST% \
|
| 61 |
+
)
|
| 62 |
+
|
| 63 |
+
COPY host/python/requirements.txt C:/Temp/requirements.txt
|
| 64 |
+
COPY host/python/requirements_np2.txt C:/Temp/requirements_np2.txt
|
| 65 |
+
RUN pip config list && \
|
| 66 |
+
python -m pip install --upgrade pip && \
|
| 67 |
+
powershell -NoProfile -ExecutionPolicy Bypass -Command \
|
| 68 |
+
"if ([version]('%PYTHON_VERSION%') -ge [version]('3.13')) { \
|
| 69 |
+
pip install -r C:/Temp/requirements_np2.txt \
|
| 70 |
+
} else { \
|
| 71 |
+
pip install -r C:/Temp/requirements.txt \
|
| 72 |
+
}; \
|
| 73 |
+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }"
|
| 74 |
+
|
| 75 |
+
RUN setx VCPKG_INSTALL_DIR "c:\\vcpkg" /m
|
| 76 |
+
RUN git clone https://github.com/microsoft/vcpkg %VCPKG_INSTALL_DIR% && \
|
| 77 |
+
cd %VCPKG_INSTALL_DIR% && \
|
| 78 |
+
bootstrap-vcpkg.bat
|
| 79 |
+
# Add custom UHD vcpkg triplet
|
| 80 |
+
COPY host/cmake/vcpkg/* c:/vcpkg/triplets/
|
| 81 |
+
# Define triplet to be used by this container
|
| 82 |
+
RUN setx VCPKG_TARGET_TRIPLET "uhd-x64-windows-static-md" /m
|
| 83 |
+
RUN echo set(VCPKG_BUILD_TYPE release)>>"%VCPKG_INSTALL_DIR%\triplets\%VCPKG_TARGET_TRIPLET%.cmake"
|
| 84 |
+
RUN type "%VCPKG_INSTALL_DIR%\triplets\%VCPKG_TARGET_TRIPLET%.cmake"
|
| 85 |
+
# Copy vcpkg cache from mapped folder to
|
| 86 |
+
RUN echo Current path %cd%
|
| 87 |
+
COPY .cache/vcpkg ${VCPKG_BINARY_CACHE_DIR}
|
| 88 |
+
|
| 89 |
+
RUN powershell -NoProfile -ExecutionPolicy Bypass -Command \
|
| 90 |
+
"New-Item -ItemType Directory -Path 'c:\uhd-vcpkg' -Force | Out-Null"
|
| 91 |
+
COPY .ci/docker/vcpkg/${VCPKG_MANIFEST_FILE} c:/uhd-vcpkg/vcpkg.json
|
| 92 |
+
COPY .ci/docker/scripts/install-vcpkg-triplet.ps1 C:/Temp/install-vcpkg-triplet.ps1
|
| 93 |
+
RUN powershell -NoProfile -ExecutionPolicy Bypass -File C:\Temp\install-vcpkg-triplet.ps1 \
|
| 94 |
+
-ManifestDir C:\uhd-vcpkg \
|
| 95 |
+
-Triplet %VCPKG_TARGET_TRIPLET% \
|
| 96 |
+
-VcpkgRoot %VCPKG_INSTALL_DIR%
|
EttusResearch_uhd/.ci/docker/vcpkg/vcpkg-vc2026.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The vcpkg.json manifest file is using vcpkg tag "2026.01.16" as builtin-baseline which provides packages in the following versions:
|
| 2 |
+
|
| 3 |
+
boost 1.90
|
| 4 |
+
libusb 1.0.29
|
| 5 |
+
grpc 1.71.0
|
| 6 |
+
protobuf 5.29.5
|
EttusResearch_uhd/.ci/docker/vcpkg/vcpkg-vs2026.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dependencies": [
|
| 3 |
+
"libusb",
|
| 4 |
+
"boost-asio",
|
| 5 |
+
"boost-assign",
|
| 6 |
+
"boost-beast",
|
| 7 |
+
"boost-chrono",
|
| 8 |
+
"boost-circular-buffer",
|
| 9 |
+
"boost-date-time",
|
| 10 |
+
"boost-dll",
|
| 11 |
+
"boost-filesystem",
|
| 12 |
+
"boost-format",
|
| 13 |
+
"boost-graph",
|
| 14 |
+
"boost-interprocess",
|
| 15 |
+
"boost-lexical-cast",
|
| 16 |
+
"boost-locale",
|
| 17 |
+
"boost-lockfree",
|
| 18 |
+
"boost-math",
|
| 19 |
+
"boost-optional",
|
| 20 |
+
"boost-program-options",
|
| 21 |
+
"boost-property-tree",
|
| 22 |
+
"boost-regex",
|
| 23 |
+
"boost-scope-exit",
|
| 24 |
+
"boost-serialization",
|
| 25 |
+
"boost-signals2",
|
| 26 |
+
"boost-system",
|
| 27 |
+
"boost-test",
|
| 28 |
+
"boost-thread",
|
| 29 |
+
"boost-timer",
|
| 30 |
+
"boost-units",
|
| 31 |
+
"grpc",
|
| 32 |
+
"pkgconf"
|
| 33 |
+
],
|
| 34 |
+
"builtin-baseline": "66c0373dc7fca549e5803087b9487edfe3aca0a1"
|
| 35 |
+
}
|
EttusResearch_uhd/.ci/docker/vcpkg/vcpkg.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dependencies": [
|
| 3 |
+
"libusb",
|
| 4 |
+
"boost-asio",
|
| 5 |
+
"boost-assign",
|
| 6 |
+
"boost-atomic",
|
| 7 |
+
"boost-circular-buffer",
|
| 8 |
+
"boost-date-time",
|
| 9 |
+
"boost-dll",
|
| 10 |
+
"boost-exception",
|
| 11 |
+
"boost-filesystem",
|
| 12 |
+
"boost-format",
|
| 13 |
+
"boost-graph",
|
| 14 |
+
"boost-lockfree",
|
| 15 |
+
"boost-math",
|
| 16 |
+
"boost-program-options",
|
| 17 |
+
"boost-regex",
|
| 18 |
+
"boost-serialization",
|
| 19 |
+
"boost-stacktrace",
|
| 20 |
+
"boost-signals2",
|
| 21 |
+
"boost-system",
|
| 22 |
+
"boost-test",
|
| 23 |
+
"boost-thread",
|
| 24 |
+
"boost-timer",
|
| 25 |
+
"boost-units",
|
| 26 |
+
"grpc",
|
| 27 |
+
"pkgconf"
|
| 28 |
+
],
|
| 29 |
+
"builtin-baseline": "f176b58f35a75f9f8f54099cd9df97d2e2793a2e"
|
| 30 |
+
}
|
EttusResearch_uhd/.ci/docker/vcpkg/vcpkg.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The vcpkg.json manifest file is using vcpkg tag "2024.09.23" as builtin-baseline which provides packages in the following versions:
|
| 2 |
+
|
| 3 |
+
boost 1.85
|
| 4 |
+
libusb 1.0.27
|
| 5 |
+
grpc 1.60.0
|
| 6 |
+
protobuf 4.25.1
|
EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-b310.yml
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2025 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template defines a stages-based pipeline for building B310 FPGA
|
| 9 |
+
# targets.
|
| 10 |
+
#
|
| 11 |
+
# See https://aka.ms/yaml for pipeline YAML documentation.
|
| 12 |
+
#
|
| 13 |
+
|
| 14 |
+
parameters:
|
| 15 |
+
## Optional parameters
|
| 16 |
+
# Option to ignore cached artifacts (if available) and perform
|
| 17 |
+
# a clean IP build.
|
| 18 |
+
- name: clean_ip_build
|
| 19 |
+
type: boolean
|
| 20 |
+
default: false
|
| 21 |
+
# Number of parallel jobs to use for IP build
|
| 22 |
+
- name: num_ip_jobs
|
| 23 |
+
type: number
|
| 24 |
+
default: 5
|
| 25 |
+
# Option to publish intermediate files
|
| 26 |
+
- name: publish_int_files
|
| 27 |
+
type: boolean
|
| 28 |
+
default: false
|
| 29 |
+
# Package and publish images
|
| 30 |
+
- name: package_and_publish_images
|
| 31 |
+
type: boolean
|
| 32 |
+
default: true
|
| 33 |
+
# Package access in the SDR server ('Internal' or 'Public')
|
| 34 |
+
- name: package_access
|
| 35 |
+
type: string
|
| 36 |
+
default: 'Internal'
|
| 37 |
+
# From where to pull FPGA bitfiles if we're not building them
|
| 38 |
+
- name: fpga_imgs_source
|
| 39 |
+
type: string
|
| 40 |
+
default: 'Mono Pipeline'
|
| 41 |
+
# B310 FPGA targets to build
|
| 42 |
+
- name: b310_full_targets_matrix
|
| 43 |
+
type: object
|
| 44 |
+
default:
|
| 45 |
+
B310_REPLAY:
|
| 46 |
+
image_core: b310_replay_rfnoc_image_core.yml
|
| 47 |
+
target_name: B310
|
| 48 |
+
image_core_name: usrp_b310_fpga_replay
|
| 49 |
+
artifact_name: B310_REPLAY
|
| 50 |
+
timeout: 720
|
| 51 |
+
max_attempts: 2
|
| 52 |
+
B310_FIFO:
|
| 53 |
+
image_core: b310_fifo_rfnoc_image_core.yml
|
| 54 |
+
target_name: B310
|
| 55 |
+
image_core_name: usrp_b310_fpga_fifo
|
| 56 |
+
artifact_name: B310_FIFO
|
| 57 |
+
timeout: 720
|
| 58 |
+
max_attempts: 2
|
| 59 |
+
- name: b310_reduced_targets_matrix
|
| 60 |
+
type: object
|
| 61 |
+
default:
|
| 62 |
+
B310_REPLAY:
|
| 63 |
+
image_core: b310_replay_rfnoc_image_core.yml
|
| 64 |
+
target_name: B310
|
| 65 |
+
image_core_name: usrp_b310_fpga_replay
|
| 66 |
+
artifact_name: B310_REPLAY
|
| 67 |
+
timeout: 720
|
| 68 |
+
max_attempts: 2
|
| 69 |
+
B310_FIFO:
|
| 70 |
+
image_core: b310_fifo_rfnoc_image_core.yml
|
| 71 |
+
target_name: B310
|
| 72 |
+
image_core_name: usrp_b310_fpga_fifo
|
| 73 |
+
artifact_name: B310_FIFO
|
| 74 |
+
timeout: 720
|
| 75 |
+
max_attempts: 2
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
stages:
|
| 79 |
+
|
| 80 |
+
### START: B310 stages
|
| 81 |
+
|
| 82 |
+
- stage: provide_b310_fpga_images_stage
|
| 83 |
+
displayName: Provide B310 FPGA Images
|
| 84 |
+
dependsOn: analyze_changeset
|
| 85 |
+
variables:
|
| 86 |
+
UhdTestList: $[stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList']]
|
| 87 |
+
BuildRequired: $[or(
|
| 88 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.b310'),
|
| 89 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 90 |
+
)]
|
| 91 |
+
jobs:
|
| 92 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 93 |
+
parameters:
|
| 94 |
+
id: b310
|
| 95 |
+
device_name: B310
|
| 96 |
+
ip_target: B310_IP
|
| 97 |
+
package_name: b3xx_b310_fpga_default
|
| 98 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 99 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 100 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 101 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 102 |
+
package_access: ${{ parameters.package_access }}
|
| 103 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 104 |
+
top_dir: uhddev/fpga/usrp3/top/b300
|
| 105 |
+
target_full_matrix: ${{ parameters.b310_full_targets_matrix }}
|
| 106 |
+
target_reduced_matrix: ${{ parameters.b310_reduced_targets_matrix }}
|
| 107 |
+
|
| 108 |
+
### END: B310 stages
|
EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-e31x.yml
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2024 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template defines a stages-based pipeline for building E31X FPGA targets.
|
| 9 |
+
#
|
| 10 |
+
# See https://aka.ms/yaml for pipeline YAML documentation.
|
| 11 |
+
#
|
| 12 |
+
|
| 13 |
+
parameters:
|
| 14 |
+
## Optional parameters
|
| 15 |
+
# Option to ignore cached artifacts (if available) and perform
|
| 16 |
+
# a clean IP build.
|
| 17 |
+
- name: clean_ip_build
|
| 18 |
+
type: boolean
|
| 19 |
+
default: false
|
| 20 |
+
# Number of parallel jobs to use for IP build
|
| 21 |
+
- name: num_ip_jobs
|
| 22 |
+
type: number
|
| 23 |
+
default: 5
|
| 24 |
+
# Option to publish intermediate files
|
| 25 |
+
- name: publish_int_files
|
| 26 |
+
type: boolean
|
| 27 |
+
default: false
|
| 28 |
+
# Package and publish images
|
| 29 |
+
- name: package_and_publish_images
|
| 30 |
+
type: boolean
|
| 31 |
+
default: true
|
| 32 |
+
# Package access in the SDR server ('Internal' or 'Public')
|
| 33 |
+
- name: package_access
|
| 34 |
+
type: string
|
| 35 |
+
default: 'Internal'
|
| 36 |
+
# From where to pull FPGA bitfiles if we're not building them
|
| 37 |
+
- name: fpga_imgs_source
|
| 38 |
+
type: string
|
| 39 |
+
default: 'Mono Pipeline'
|
| 40 |
+
# E310 FPGA targets to build
|
| 41 |
+
- name: e31x_sg1_full_targets_matrix
|
| 42 |
+
type: object
|
| 43 |
+
default:
|
| 44 |
+
E310_SG1:
|
| 45 |
+
image_core: e310_rfnoc_image_core.yml
|
| 46 |
+
target_name: E310_SG1
|
| 47 |
+
image_core_name: usrp_e310_sg1_fpga
|
| 48 |
+
artifact_name: E310_SG1
|
| 49 |
+
timeout: 720
|
| 50 |
+
max_attempts: 2
|
| 51 |
+
E310_SG1_IDLE:
|
| 52 |
+
image_core: e310_rfnoc_image_core.yml
|
| 53 |
+
target_name: E310_SG1_IDLE
|
| 54 |
+
image_core_name: usrp_e310_sg1_idle_fpga
|
| 55 |
+
artifact_name: E310_SG1_IDLE
|
| 56 |
+
timeout: 720
|
| 57 |
+
max_attempts: 2
|
| 58 |
+
- name: e31x_sg1_reduced_targets_matrix
|
| 59 |
+
type: object
|
| 60 |
+
default:
|
| 61 |
+
E310_SG1:
|
| 62 |
+
image_core: e310_rfnoc_image_core.yml
|
| 63 |
+
target_name: E310_SG1
|
| 64 |
+
image_core_name: usrp_e310_sg1_fpga
|
| 65 |
+
artifact_name: E310_SG1
|
| 66 |
+
timeout: 720
|
| 67 |
+
max_attempts: 2
|
| 68 |
+
- name: e31x_sg3_full_targets_matrix
|
| 69 |
+
type: object
|
| 70 |
+
default:
|
| 71 |
+
E310_SG3:
|
| 72 |
+
image_core: e310_rfnoc_image_core.yml
|
| 73 |
+
target_name: E310_SG3
|
| 74 |
+
image_core_name: usrp_e310_sg3_fpga
|
| 75 |
+
artifact_name: E310_SG3
|
| 76 |
+
timeout: 720
|
| 77 |
+
max_attempts: 2
|
| 78 |
+
E310_SG3_IDLE:
|
| 79 |
+
image_core: e310_rfnoc_image_core.yml
|
| 80 |
+
target_name: E310_SG3_IDLE
|
| 81 |
+
artifact_name: E310_SG3_IDLE
|
| 82 |
+
image_core_name: usrp_e310_sg3_idle_fpga
|
| 83 |
+
timeout: 720
|
| 84 |
+
max_attempts: 2
|
| 85 |
+
- name: e31x_sg3_reduced_targets_matrix
|
| 86 |
+
type: object
|
| 87 |
+
default:
|
| 88 |
+
E310_SG3:
|
| 89 |
+
image_core: e310_rfnoc_image_core.yml
|
| 90 |
+
target_name: E310_SG3
|
| 91 |
+
image_core_name: usrp_e310_sg3_fpga
|
| 92 |
+
artifact_name: E310_SG3
|
| 93 |
+
timeout: 720
|
| 94 |
+
max_attempts: 2
|
| 95 |
+
- name: additional_setup_steps
|
| 96 |
+
type: stepList
|
| 97 |
+
default: []
|
| 98 |
+
- name: rfnoc_include_dir
|
| 99 |
+
type: string
|
| 100 |
+
default: ""
|
| 101 |
+
displayName: RFNoC OOT module path
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
stages:
|
| 105 |
+
|
| 106 |
+
### START: E310 stages
|
| 107 |
+
|
| 108 |
+
- stage: provide_e31x_sg1_fpga_images_stage
|
| 109 |
+
displayName: Provide E310 SG1 FPGA Images
|
| 110 |
+
dependsOn: analyze_changeset
|
| 111 |
+
variables:
|
| 112 |
+
UhdTestList: $[stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList']]
|
| 113 |
+
BuildRequired: $[or(
|
| 114 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.e31x'),
|
| 115 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 116 |
+
)]
|
| 117 |
+
jobs:
|
| 118 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 119 |
+
parameters:
|
| 120 |
+
id: e31x_sg1
|
| 121 |
+
device_name: E310 SG1
|
| 122 |
+
ip_target: E310_SG1_IP
|
| 123 |
+
package_name: e3xx_e310_sg1_fpga_default
|
| 124 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 125 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 126 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 127 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 128 |
+
package_access: ${{ parameters.package_access }}
|
| 129 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 130 |
+
top_dir: uhddev/fpga/usrp3/top/e31x
|
| 131 |
+
target_full_matrix: ${{ parameters.e31x_sg1_full_targets_matrix }}
|
| 132 |
+
target_reduced_matrix: ${{ parameters.e31x_sg1_reduced_targets_matrix }}
|
| 133 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 134 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 135 |
+
|
| 136 |
+
- stage: provide_e31x_sg3_fpga_images_stage
|
| 137 |
+
displayName: Provide E310 SG3 FPGA Images
|
| 138 |
+
dependsOn: analyze_changeset
|
| 139 |
+
variables:
|
| 140 |
+
UhdTestList: $[stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList']]
|
| 141 |
+
BuildRequired: $[or(
|
| 142 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.e31x'),
|
| 143 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 144 |
+
)]
|
| 145 |
+
jobs:
|
| 146 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 147 |
+
parameters:
|
| 148 |
+
id: e31x_sg3
|
| 149 |
+
device_name: E310 SG3
|
| 150 |
+
ip_target: E310_SG3_IP
|
| 151 |
+
package_name: e3xx_e310_sg3_fpga_default
|
| 152 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 153 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 154 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 155 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 156 |
+
package_access: ${{ parameters.package_access }}
|
| 157 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 158 |
+
top_dir: uhddev/fpga/usrp3/top/e31x
|
| 159 |
+
target_full_matrix: ${{ parameters.e31x_sg3_full_targets_matrix }}
|
| 160 |
+
target_reduced_matrix: ${{ parameters.e31x_sg3_reduced_targets_matrix }}
|
| 161 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 162 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 163 |
+
|
| 164 |
+
### END: E310 stages
|
EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-e320.yml
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2024 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template defines a stages-based pipeline for building E320 FPGA targets.
|
| 9 |
+
#
|
| 10 |
+
# See https://aka.ms/yaml for pipeline YAML documentation.
|
| 11 |
+
#
|
| 12 |
+
|
| 13 |
+
parameters:
|
| 14 |
+
## Optional parameters
|
| 15 |
+
# Option to ignore cached artifacts (if available) and perform
|
| 16 |
+
# a clean IP build.
|
| 17 |
+
- name: clean_ip_build
|
| 18 |
+
type: boolean
|
| 19 |
+
default: false
|
| 20 |
+
# Number of parallel jobs to use for IP build
|
| 21 |
+
- name: num_ip_jobs
|
| 22 |
+
type: number
|
| 23 |
+
default: 5
|
| 24 |
+
# Option to publish intermediate files
|
| 25 |
+
- name: publish_int_files
|
| 26 |
+
type: boolean
|
| 27 |
+
default: false
|
| 28 |
+
# Package and publish images
|
| 29 |
+
- name: package_and_publish_images
|
| 30 |
+
type: boolean
|
| 31 |
+
default: true
|
| 32 |
+
# Package access in the SDR server ('Internal' or 'Public')
|
| 33 |
+
- name: package_access
|
| 34 |
+
type: string
|
| 35 |
+
default: 'Internal'
|
| 36 |
+
# From where to pull FPGA bitfiles if we're not building them
|
| 37 |
+
- name: fpga_imgs_source
|
| 38 |
+
type: string
|
| 39 |
+
default: 'Mono Pipeline'
|
| 40 |
+
# E320 FPGA targets to build
|
| 41 |
+
- name: e320_full_targets_matrix
|
| 42 |
+
type: object
|
| 43 |
+
default:
|
| 44 |
+
E320_1G:
|
| 45 |
+
image_core: e320_rfnoc_image_core.yml
|
| 46 |
+
target_name: E320_1G
|
| 47 |
+
artifact_name: E320_1G
|
| 48 |
+
image_core_name: usrp_e320_fpga_1G
|
| 49 |
+
timeout: 720
|
| 50 |
+
max_attempts: 2
|
| 51 |
+
E320_XG:
|
| 52 |
+
image_core: e320_rfnoc_image_core.yml
|
| 53 |
+
target_name: E320_XG
|
| 54 |
+
artifact_name: E320_XG
|
| 55 |
+
image_core_name: usrp_e320_fpga_XG
|
| 56 |
+
timeout: 720
|
| 57 |
+
max_attempts: 2
|
| 58 |
+
E320_AA:
|
| 59 |
+
image_core: e320_rfnoc_image_core.yml
|
| 60 |
+
target_name: E320_AA
|
| 61 |
+
artifact_name: E320_AA
|
| 62 |
+
image_core_name: usrp_e320_fpga_AA
|
| 63 |
+
timeout: 720
|
| 64 |
+
max_attempts: 2
|
| 65 |
+
- name: e320_reduced_targets_matrix
|
| 66 |
+
type: object
|
| 67 |
+
default:
|
| 68 |
+
E320_XG:
|
| 69 |
+
image_core: e320_rfnoc_image_core.yml
|
| 70 |
+
target_name: E320_XG
|
| 71 |
+
artifact_name: E320_XG
|
| 72 |
+
image_core_name: usrp_e320_fpga_XG
|
| 73 |
+
timeout: 720
|
| 74 |
+
max_attempts: 2
|
| 75 |
+
E320_1G:
|
| 76 |
+
image_core: e320_rfnoc_image_core.yml
|
| 77 |
+
target_name: E320_1G
|
| 78 |
+
artifact_name: E320_1G
|
| 79 |
+
image_core_name: usrp_e320_fpga_1G
|
| 80 |
+
timeout: 720
|
| 81 |
+
max_attempts: 2
|
| 82 |
+
- name: additional_setup_steps
|
| 83 |
+
type: stepList
|
| 84 |
+
default: []
|
| 85 |
+
- name: rfnoc_include_dir
|
| 86 |
+
type: string
|
| 87 |
+
default: ""
|
| 88 |
+
displayName: RFNoC OOT module path
|
| 89 |
+
|
| 90 |
+
stages:
|
| 91 |
+
- stage: provide_e320_fpga_images_stage
|
| 92 |
+
displayName: Provide E320 FPGA Images
|
| 93 |
+
dependsOn: analyze_changeset
|
| 94 |
+
variables:
|
| 95 |
+
UhdTestList: $[stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList']]
|
| 96 |
+
BuildRequired: $[or(
|
| 97 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.e320'),
|
| 98 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 99 |
+
)]
|
| 100 |
+
jobs:
|
| 101 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 102 |
+
parameters:
|
| 103 |
+
id: e320
|
| 104 |
+
device_name: E320
|
| 105 |
+
ip_target: E320_IP
|
| 106 |
+
package_name: e3xx_e320_fpga_default
|
| 107 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 108 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 109 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 110 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 111 |
+
package_access: ${{ parameters.package_access }}
|
| 112 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 113 |
+
top_dir: uhddev/fpga/usrp3/top/e320
|
| 114 |
+
target_full_matrix: ${{ parameters.e320_full_targets_matrix }}
|
| 115 |
+
target_reduced_matrix: ${{ parameters.e320_reduced_targets_matrix }}
|
| 116 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 117 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-n3xx.yml
ADDED
|
@@ -0,0 +1,294 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2024 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template defines a stages-based pipeline for building N3xx FPGA targets.
|
| 9 |
+
#
|
| 10 |
+
# See https://aka.ms/yaml for pipeline YAML documentation.
|
| 11 |
+
#
|
| 12 |
+
|
| 13 |
+
parameters:
|
| 14 |
+
## Optional parameters
|
| 15 |
+
# Option to ignore cached artifacts (if available) and perform
|
| 16 |
+
# a clean IP build.
|
| 17 |
+
- name: clean_ip_build
|
| 18 |
+
type: boolean
|
| 19 |
+
default: false
|
| 20 |
+
# Number of parallel jobs to use for IP build
|
| 21 |
+
- name: num_ip_jobs
|
| 22 |
+
type: number
|
| 23 |
+
default: 5
|
| 24 |
+
# Option to publish intermediate files
|
| 25 |
+
- name: publish_int_files
|
| 26 |
+
type: boolean
|
| 27 |
+
default: false
|
| 28 |
+
# Package and publish images
|
| 29 |
+
- name: package_and_publish_images
|
| 30 |
+
type: boolean
|
| 31 |
+
default: true
|
| 32 |
+
# Package access in the SDR server ('Internal' or 'Public')
|
| 33 |
+
- name: package_access
|
| 34 |
+
type: string
|
| 35 |
+
default: 'Internal'
|
| 36 |
+
# From where to pull FPGA bitfiles if we're not building them
|
| 37 |
+
- name: fpga_imgs_source
|
| 38 |
+
type: string
|
| 39 |
+
default: 'Mono Pipeline'
|
| 40 |
+
# N300 FPGA targets to build
|
| 41 |
+
- name: n300_full_targets_matrix
|
| 42 |
+
type: object
|
| 43 |
+
default:
|
| 44 |
+
N300_HG:
|
| 45 |
+
image_core: n300_rfnoc_image_core.yml
|
| 46 |
+
target_name: N300_HG
|
| 47 |
+
artifact_name: N300_HG
|
| 48 |
+
image_core_name: usrp_n300_fpga_HG
|
| 49 |
+
timeout: 720
|
| 50 |
+
max_attempts: 2
|
| 51 |
+
N300_XG:
|
| 52 |
+
image_core: n300_rfnoc_image_core.yml
|
| 53 |
+
target_name: N300_XG
|
| 54 |
+
artifact_name: N300_XG
|
| 55 |
+
image_core_name: usrp_n300_fpga_XG
|
| 56 |
+
timeout: 720
|
| 57 |
+
max_attempts: 2
|
| 58 |
+
N300_WX:
|
| 59 |
+
image_core: n300_rfnoc_image_core.yml
|
| 60 |
+
target_name: N300_WX
|
| 61 |
+
artifact_name: N300_WX
|
| 62 |
+
image_core_name: usrp_n300_fpga_WX
|
| 63 |
+
timeout: 720
|
| 64 |
+
max_attempts: 2
|
| 65 |
+
N300_AA:
|
| 66 |
+
image_core: n300_bist_rfnoc_image_core.yml
|
| 67 |
+
target_name: N300_AA
|
| 68 |
+
artifact_name: N300_AA
|
| 69 |
+
image_core_name: usrp_n300_fpga_AA
|
| 70 |
+
timeout: 720
|
| 71 |
+
max_attempts: 2
|
| 72 |
+
- name: n300_reduced_targets_matrix
|
| 73 |
+
type: object
|
| 74 |
+
default:
|
| 75 |
+
N300_HG:
|
| 76 |
+
image_core: n300_rfnoc_image_core.yml
|
| 77 |
+
target_name: N300_HG
|
| 78 |
+
artifact_name: N300_HG
|
| 79 |
+
image_core_name: usrp_n300_fpga_HG
|
| 80 |
+
timeout: 720
|
| 81 |
+
max_attempts: 2
|
| 82 |
+
# N310 FPGA targets to build
|
| 83 |
+
- name: n310_full_targets_matrix
|
| 84 |
+
type: object
|
| 85 |
+
default:
|
| 86 |
+
N310_HG:
|
| 87 |
+
image_core: n310_rfnoc_image_core.yml
|
| 88 |
+
target_name: N310_HG
|
| 89 |
+
artifact_name: N310_HG
|
| 90 |
+
image_core_name: usrp_n310_fpga_HG
|
| 91 |
+
timeout: 720
|
| 92 |
+
max_attempts: 2
|
| 93 |
+
N310_XG:
|
| 94 |
+
image_core: n310_rfnoc_image_core.yml
|
| 95 |
+
target_name: N310_XG
|
| 96 |
+
artifact_name: N310_XG
|
| 97 |
+
image_core_name: usrp_n310_fpga_XG
|
| 98 |
+
timeout: 720
|
| 99 |
+
max_attempts: 2
|
| 100 |
+
N310_WX:
|
| 101 |
+
image_core: n310_rfnoc_image_core.yml
|
| 102 |
+
target_name: N310_WX
|
| 103 |
+
artifact_name: N310_WX
|
| 104 |
+
image_core_name: usrp_n310_fpga_WX
|
| 105 |
+
timeout: 720
|
| 106 |
+
max_attempts: 2
|
| 107 |
+
N310_AA:
|
| 108 |
+
image_core: n310_bist_rfnoc_image_core.yml
|
| 109 |
+
target_name: N310_AA
|
| 110 |
+
artifact_name: N310_AA
|
| 111 |
+
image_core_name: usrp_n310_fpga_AA
|
| 112 |
+
timeout: 720
|
| 113 |
+
max_attempts: 2
|
| 114 |
+
- name: n310_reduced_targets_matrix
|
| 115 |
+
type: object
|
| 116 |
+
default:
|
| 117 |
+
N310_HG:
|
| 118 |
+
image_core: n310_rfnoc_image_core.yml
|
| 119 |
+
target_name: N310_HG
|
| 120 |
+
artifact_name: N310_HG
|
| 121 |
+
image_core_name: usrp_n310_fpga_HG
|
| 122 |
+
timeout: 720
|
| 123 |
+
max_attempts: 2
|
| 124 |
+
N310_XG:
|
| 125 |
+
image_core: n310_rfnoc_image_core.yml
|
| 126 |
+
target_name: N310_XG
|
| 127 |
+
artifact_name: N310_XG
|
| 128 |
+
image_core_name: usrp_n310_fpga_XG
|
| 129 |
+
timeout: 720
|
| 130 |
+
max_attempts: 2
|
| 131 |
+
# N320 FPGA targets to build
|
| 132 |
+
- name: n320_full_targets_matrix
|
| 133 |
+
type: object
|
| 134 |
+
default:
|
| 135 |
+
N320_HG:
|
| 136 |
+
image_core: n320_rfnoc_image_core.yml
|
| 137 |
+
target_name: N320_HG
|
| 138 |
+
artifact_name: N320_HG
|
| 139 |
+
image_core_name: usrp_n320_fpga_HG
|
| 140 |
+
timeout: 720
|
| 141 |
+
max_attempts: 2
|
| 142 |
+
N320_XG:
|
| 143 |
+
image_core: n320_rfnoc_image_core.yml
|
| 144 |
+
target_name: N320_XG
|
| 145 |
+
artifact_name: N320_XG
|
| 146 |
+
image_core_name: usrp_n320_fpga_XG
|
| 147 |
+
timeout: 720
|
| 148 |
+
max_attempts: 2
|
| 149 |
+
N320_WX:
|
| 150 |
+
image_core: n320_rfnoc_image_core.yml
|
| 151 |
+
target_name: N320_WX
|
| 152 |
+
artifact_name: N320_WX
|
| 153 |
+
image_core_name: usrp_n320_fpga_WX
|
| 154 |
+
timeout: 720
|
| 155 |
+
max_attempts: 2
|
| 156 |
+
N320_AA:
|
| 157 |
+
image_core: n320_bist_rfnoc_image_core.yml
|
| 158 |
+
target_name: N320_AA
|
| 159 |
+
artifact_name: N320_AA
|
| 160 |
+
image_core_name: usrp_n320_fpga_AA
|
| 161 |
+
timeout: 720
|
| 162 |
+
max_attempts: 2
|
| 163 |
+
N320_AQ:
|
| 164 |
+
image_core: n320_rfnoc_image_core.yml
|
| 165 |
+
target_name: N320_AQ
|
| 166 |
+
artifact_name: N320_AQ
|
| 167 |
+
image_core_name: usrp_n320_fpga_AQ
|
| 168 |
+
timeout: 720
|
| 169 |
+
max_attempts: 2
|
| 170 |
+
N320_XQ:
|
| 171 |
+
image_core: n320_rfnoc_image_core.yml
|
| 172 |
+
target_name: N320_XQ
|
| 173 |
+
artifact_name: N320_XQ
|
| 174 |
+
image_core_name: usrp_n320_fpga_XQ
|
| 175 |
+
timeout: 720
|
| 176 |
+
max_attempts: 2
|
| 177 |
+
- name: n320_reduced_targets_matrix
|
| 178 |
+
type: object
|
| 179 |
+
default:
|
| 180 |
+
N320_HG:
|
| 181 |
+
image_core: n320_rfnoc_image_core.yml
|
| 182 |
+
target_name: N320_HG
|
| 183 |
+
artifact_name: N320_HG
|
| 184 |
+
image_core_name: usrp_n320_fpga_HG
|
| 185 |
+
timeout: 720
|
| 186 |
+
max_attempts: 2
|
| 187 |
+
N320_XG:
|
| 188 |
+
image_core: n320_rfnoc_image_core.yml
|
| 189 |
+
target_name: N320_XG
|
| 190 |
+
artifact_name: N320_XG
|
| 191 |
+
image_core_name: usrp_n320_fpga_XG
|
| 192 |
+
timeout: 720
|
| 193 |
+
max_attempts: 2
|
| 194 |
+
N320_XQ:
|
| 195 |
+
image_core: n320_rfnoc_image_core.yml
|
| 196 |
+
target_name: N320_XQ
|
| 197 |
+
artifact_name: N320_XQ
|
| 198 |
+
image_core_name: usrp_n320_fpga_XQ
|
| 199 |
+
timeout: 720
|
| 200 |
+
max_attempts: 2
|
| 201 |
+
- name: additional_setup_steps
|
| 202 |
+
type: stepList
|
| 203 |
+
default: []
|
| 204 |
+
- name: rfnoc_include_dir
|
| 205 |
+
type: string
|
| 206 |
+
default: ""
|
| 207 |
+
displayName: RFNoC OOT module path
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
stages:
|
| 211 |
+
|
| 212 |
+
- stage: provide_n300_fpga_images_stage
|
| 213 |
+
displayName: Provide N300 FPGA Images
|
| 214 |
+
dependsOn: analyze_changeset
|
| 215 |
+
variables:
|
| 216 |
+
UhdTestList: $[stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList']]
|
| 217 |
+
BuildRequired: $[or(
|
| 218 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.n3xx'),
|
| 219 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 220 |
+
)]
|
| 221 |
+
jobs:
|
| 222 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 223 |
+
parameters:
|
| 224 |
+
id: n300
|
| 225 |
+
device_name: N300
|
| 226 |
+
ip_target: N300_IP
|
| 227 |
+
package_name: n3xx_n300_fpga_default
|
| 228 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 229 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 230 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 231 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 232 |
+
package_access: ${{ parameters.package_access }}
|
| 233 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 234 |
+
top_dir: uhddev/fpga/usrp3/top/n3xx
|
| 235 |
+
target_full_matrix: ${{ parameters.n300_full_targets_matrix }}
|
| 236 |
+
target_reduced_matrix: ${{ parameters.n300_reduced_targets_matrix }}
|
| 237 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 238 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 239 |
+
|
| 240 |
+
- stage: provide_n310_fpga_images_stage
|
| 241 |
+
displayName: Provide N310 FPGA Images
|
| 242 |
+
dependsOn: analyze_changeset
|
| 243 |
+
variables:
|
| 244 |
+
UhdTestList: $[stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList']]
|
| 245 |
+
BuildRequired: $[or(
|
| 246 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.n3xx'),
|
| 247 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 248 |
+
)]
|
| 249 |
+
jobs:
|
| 250 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 251 |
+
parameters:
|
| 252 |
+
id: n310
|
| 253 |
+
device_name: N310
|
| 254 |
+
ip_target: N310_IP
|
| 255 |
+
package_name: n3xx_n310_fpga_default
|
| 256 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 257 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 258 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 259 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 260 |
+
package_access: ${{ parameters.package_access }}
|
| 261 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 262 |
+
top_dir: uhddev/fpga/usrp3/top/n3xx
|
| 263 |
+
target_full_matrix: ${{ parameters.n310_full_targets_matrix }}
|
| 264 |
+
target_reduced_matrix: ${{ parameters.n310_reduced_targets_matrix }}
|
| 265 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 266 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 267 |
+
|
| 268 |
+
- stage: provide_n320_fpga_images_stage
|
| 269 |
+
displayName: Provide N320 FPGA Images
|
| 270 |
+
dependsOn: analyze_changeset
|
| 271 |
+
variables:
|
| 272 |
+
UhdTestList: $[stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList']]
|
| 273 |
+
BuildRequired: $[or(
|
| 274 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.n3xx'),
|
| 275 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 276 |
+
)]
|
| 277 |
+
jobs:
|
| 278 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 279 |
+
parameters:
|
| 280 |
+
id: n320
|
| 281 |
+
device_name: N320
|
| 282 |
+
ip_target: N320_IP
|
| 283 |
+
package_name: n3xx_n320_fpga_default
|
| 284 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 285 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 286 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 287 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 288 |
+
package_access: ${{ parameters.package_access }}
|
| 289 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 290 |
+
top_dir: uhddev/fpga/usrp3/top/n3xx
|
| 291 |
+
target_full_matrix: ${{ parameters.n320_full_targets_matrix }}
|
| 292 |
+
target_reduced_matrix: ${{ parameters.n320_reduced_targets_matrix }}
|
| 293 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 294 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-x300.yml
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2024 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template defines a stages-based pipeline for building X300 and X310 FPGA.
|
| 9 |
+
#
|
| 10 |
+
# See https://aka.ms/yaml for pipeline YAML documentation.
|
| 11 |
+
#
|
| 12 |
+
|
| 13 |
+
parameters:
|
| 14 |
+
## Optional parameters
|
| 15 |
+
# Option to ignore cached artifacts (if available) and perform
|
| 16 |
+
# a clean IP build.
|
| 17 |
+
- name: clean_ip_build
|
| 18 |
+
type: boolean
|
| 19 |
+
default: false
|
| 20 |
+
# Number of parallel jobs to use for IP build
|
| 21 |
+
- name: num_ip_jobs
|
| 22 |
+
type: number
|
| 23 |
+
default: 5
|
| 24 |
+
# Option to publish intermediate files
|
| 25 |
+
- name: publish_int_files
|
| 26 |
+
type: boolean
|
| 27 |
+
default: false
|
| 28 |
+
# Package and publish images
|
| 29 |
+
- name: package_and_publish_images
|
| 30 |
+
type: boolean
|
| 31 |
+
default: true
|
| 32 |
+
# Package access in the SDR server ('Internal' or 'Public')
|
| 33 |
+
- name: package_access
|
| 34 |
+
type: string
|
| 35 |
+
default: 'Internal'
|
| 36 |
+
# From where to pull FPGA bitfiles if we're not building them
|
| 37 |
+
- name: fpga_imgs_source
|
| 38 |
+
type: string
|
| 39 |
+
default: 'Mono Pipeline'
|
| 40 |
+
# X300 FPGA targets to build
|
| 41 |
+
- name: x300_full_targets_matrix
|
| 42 |
+
type: object
|
| 43 |
+
default:
|
| 44 |
+
X300_HG:
|
| 45 |
+
image_core: x300_HG_rfnoc_image_core.yml
|
| 46 |
+
image_core_name: usrp_x300_fpga_HG
|
| 47 |
+
target_name: X300_HG
|
| 48 |
+
artifact_name: X300_HG
|
| 49 |
+
timeout: 720
|
| 50 |
+
max_attempts: 2
|
| 51 |
+
X300_XG:
|
| 52 |
+
image_core: x300_XG_rfnoc_image_core.yml
|
| 53 |
+
image_core_name: usrp_x300_fpga_XG
|
| 54 |
+
target_name: X300_XG
|
| 55 |
+
artifact_name: X300_XG
|
| 56 |
+
timeout: 720
|
| 57 |
+
max_attempts: 2
|
| 58 |
+
- name: x300_reduced_targets_matrix
|
| 59 |
+
type: object
|
| 60 |
+
default:
|
| 61 |
+
X300_HG:
|
| 62 |
+
image_core: x300_HG_rfnoc_image_core.yml
|
| 63 |
+
image_core_name: usrp_x300_fpga_HG
|
| 64 |
+
target_name: X300_HG
|
| 65 |
+
artifact_name: X300_HG
|
| 66 |
+
timeout: 720
|
| 67 |
+
max_attempts: 2
|
| 68 |
+
X300_XG:
|
| 69 |
+
image_core: x300_XG_rfnoc_image_core.yml
|
| 70 |
+
image_core_name: usrp_x300_fpga_XG
|
| 71 |
+
target_name: X300_XG
|
| 72 |
+
artifact_name: X300_XG
|
| 73 |
+
timeout: 720
|
| 74 |
+
max_attempts: 2
|
| 75 |
+
# X310 FPGA targets to build
|
| 76 |
+
- name: x310_full_targets_matrix
|
| 77 |
+
type: object
|
| 78 |
+
default:
|
| 79 |
+
X310_HG:
|
| 80 |
+
image_core: x310_HG_rfnoc_image_core.yml
|
| 81 |
+
image_core_name: usrp_x310_fpga_HG
|
| 82 |
+
target_name: X310_HG
|
| 83 |
+
artifact_name: X310_HG
|
| 84 |
+
timeout: 720
|
| 85 |
+
max_attempts: 2
|
| 86 |
+
X310_XG:
|
| 87 |
+
image_core: x310_XG_rfnoc_image_core.yml
|
| 88 |
+
image_core_name: usrp_x310_fpga_XG
|
| 89 |
+
target_name: X310_XG
|
| 90 |
+
artifact_name: X310_XG
|
| 91 |
+
timeout: 720
|
| 92 |
+
max_attempts: 2
|
| 93 |
+
- name: x310_reduced_targets_matrix
|
| 94 |
+
type: object
|
| 95 |
+
default:
|
| 96 |
+
X310_HG:
|
| 97 |
+
image_core: x310_HG_rfnoc_image_core.yml
|
| 98 |
+
image_core_name: usrp_x310_fpga_HG
|
| 99 |
+
target_name: X310_HG
|
| 100 |
+
artifact_name: X310_HG
|
| 101 |
+
timeout: 720
|
| 102 |
+
max_attempts: 2
|
| 103 |
+
X310_XG:
|
| 104 |
+
image_core: x310_XG_rfnoc_image_core.yml
|
| 105 |
+
image_core_name: usrp_x310_fpga_XG
|
| 106 |
+
target_name: X310_XG
|
| 107 |
+
artifact_name: X310_XG
|
| 108 |
+
timeout: 720
|
| 109 |
+
max_attempts: 2
|
| 110 |
+
- name: additional_setup_steps
|
| 111 |
+
type: stepList
|
| 112 |
+
default: []
|
| 113 |
+
- name: rfnoc_include_dir
|
| 114 |
+
type: string
|
| 115 |
+
default: ""
|
| 116 |
+
displayName: RFNoC OOT module path
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
stages:
|
| 120 |
+
|
| 121 |
+
### START: X300 stages
|
| 122 |
+
|
| 123 |
+
- stage: provide_x300_fpga_images_stage
|
| 124 |
+
displayName: Provide X300 FPGA Images
|
| 125 |
+
dependsOn: analyze_changeset
|
| 126 |
+
variables:
|
| 127 |
+
UhdTestList: $[stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList']]
|
| 128 |
+
BuildRequired: $[or(
|
| 129 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.x3xx'),
|
| 130 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 131 |
+
)]
|
| 132 |
+
jobs:
|
| 133 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 134 |
+
parameters:
|
| 135 |
+
id: x300
|
| 136 |
+
device_name: X300
|
| 137 |
+
ip_target: X300_IP
|
| 138 |
+
package_name: x3xx_x300_fpga_default
|
| 139 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 140 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 141 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 142 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 143 |
+
package_access: ${{ parameters.package_access }}
|
| 144 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 145 |
+
top_dir: uhddev/fpga/usrp3/top/x300
|
| 146 |
+
target_full_matrix: ${{ parameters.x300_full_targets_matrix }}
|
| 147 |
+
target_reduced_matrix: ${{ parameters.x300_reduced_targets_matrix }}
|
| 148 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 149 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 150 |
+
|
| 151 |
+
- stage: provide_x310_fpga_images_stage
|
| 152 |
+
displayName: Provide X310 FPGA Images
|
| 153 |
+
dependsOn: analyze_changeset
|
| 154 |
+
variables:
|
| 155 |
+
UhdTestList: $[stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList']]
|
| 156 |
+
BuildRequired: $[or(
|
| 157 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.x3xx'),
|
| 158 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 159 |
+
)]
|
| 160 |
+
jobs:
|
| 161 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 162 |
+
parameters:
|
| 163 |
+
id: x310
|
| 164 |
+
device_name: X310
|
| 165 |
+
ip_target: X310_IP
|
| 166 |
+
package_name: x3xx_x310_fpga_default
|
| 167 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 168 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 169 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 170 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 171 |
+
package_access: ${{ parameters.package_access }}
|
| 172 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 173 |
+
top_dir: uhddev/fpga/usrp3/top/x300
|
| 174 |
+
target_full_matrix: ${{ parameters.x310_full_targets_matrix }}
|
| 175 |
+
target_reduced_matrix: ${{ parameters.x310_reduced_targets_matrix }}
|
| 176 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 177 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 178 |
+
|
| 179 |
+
### END: X310 stages
|
EttusResearch_uhd/.ci/fpga/devices/job-build-fpga-x400.yml
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2024 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template defines a stages-based pipeline for building X410 and X440 FPGA.
|
| 9 |
+
#
|
| 10 |
+
# See https://aka.ms/yaml for pipeline YAML documentation.
|
| 11 |
+
#
|
| 12 |
+
|
| 13 |
+
parameters:
|
| 14 |
+
## Optional parameters
|
| 15 |
+
# Option to ignore cached artifacts (if available) and perform
|
| 16 |
+
# a clean IP build.
|
| 17 |
+
- name: clean_ip_build
|
| 18 |
+
type: boolean
|
| 19 |
+
default: false
|
| 20 |
+
# Number of parallel jobs to use for IP build
|
| 21 |
+
- name: num_ip_jobs
|
| 22 |
+
type: number
|
| 23 |
+
default: 5
|
| 24 |
+
# Option to publish intermediate files
|
| 25 |
+
- name: publish_int_files
|
| 26 |
+
type: boolean
|
| 27 |
+
default: false
|
| 28 |
+
# Package and publish images
|
| 29 |
+
- name: package_and_publish_images
|
| 30 |
+
type: boolean
|
| 31 |
+
default: true
|
| 32 |
+
# Package access in the SDR server ('Internal' or 'Public')
|
| 33 |
+
- name: package_access
|
| 34 |
+
type: string
|
| 35 |
+
default: 'Internal'
|
| 36 |
+
# From where to pull FPGA bitfiles if we're not building them
|
| 37 |
+
- name: fpga_imgs_source
|
| 38 |
+
type: string
|
| 39 |
+
default: 'Mono Pipeline'
|
| 40 |
+
# X410 FPGA targets to build
|
| 41 |
+
- name: x410_targets_matrix
|
| 42 |
+
type: object
|
| 43 |
+
default: {}
|
| 44 |
+
# X420 FPGA targets to build
|
| 45 |
+
- name: x420_targets_matrix
|
| 46 |
+
type: object
|
| 47 |
+
default: {}
|
| 48 |
+
# X440 FPGA targets to build
|
| 49 |
+
- name: x440_targets_matrix
|
| 50 |
+
type: object
|
| 51 |
+
default: {}
|
| 52 |
+
- name: additional_setup_steps
|
| 53 |
+
type: stepList
|
| 54 |
+
default: []
|
| 55 |
+
- name: rfnoc_include_dir
|
| 56 |
+
type: string
|
| 57 |
+
default: ""
|
| 58 |
+
displayName: RFNoC OOT module path
|
| 59 |
+
|
| 60 |
+
stages:
|
| 61 |
+
|
| 62 |
+
- stage: provide_x410_fpga_images_stage
|
| 63 |
+
displayName: Provide X410 FPGA Images
|
| 64 |
+
dependsOn: analyze_changeset
|
| 65 |
+
variables:
|
| 66 |
+
BuildRequired: $[or(
|
| 67 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.x410'),
|
| 68 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.x4xx'),
|
| 69 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 70 |
+
)]
|
| 71 |
+
jobs:
|
| 72 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 73 |
+
parameters:
|
| 74 |
+
id: x410
|
| 75 |
+
device_name: X410
|
| 76 |
+
ip_target: X410_IP
|
| 77 |
+
package_name: x4xx_x410_fpga_default
|
| 78 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 79 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 80 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 81 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 82 |
+
package_access: ${{ parameters.package_access }}
|
| 83 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 84 |
+
top_dir: uhddev/fpga/usrp3/top/x400
|
| 85 |
+
target_full_matrix: ${{ parameters.x410_targets_matrix }}
|
| 86 |
+
target_reduced_matrix: ${{ parameters.x410_targets_matrix }}
|
| 87 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 88 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 89 |
+
|
| 90 |
+
- stage: provide_x420_fpga_images_stage
|
| 91 |
+
displayName: Provide X420 FPGA Images
|
| 92 |
+
dependsOn: analyze_changeset
|
| 93 |
+
variables:
|
| 94 |
+
BuildRequired: $[or(
|
| 95 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.x420'),
|
| 96 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.x4xx'),
|
| 97 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 98 |
+
)]
|
| 99 |
+
jobs:
|
| 100 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 101 |
+
parameters:
|
| 102 |
+
id: x420
|
| 103 |
+
device_name: X420
|
| 104 |
+
ip_target: X420_IP
|
| 105 |
+
package_name: x4xx_x420_fpga_default
|
| 106 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 107 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 108 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 109 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 110 |
+
package_access: ${{ parameters.package_access }}
|
| 111 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 112 |
+
top_dir: uhddev/fpga/usrp3/top/x400
|
| 113 |
+
target_full_matrix: ${{ parameters.x420_targets_matrix }}
|
| 114 |
+
target_reduced_matrix: ${{ parameters.x420_targets_matrix }}
|
| 115 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 116 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 117 |
+
|
| 118 |
+
- stage: provide_x440_fpga_images_stage
|
| 119 |
+
displayName: Provide X440 FPGA Images
|
| 120 |
+
dependsOn: analyze_changeset
|
| 121 |
+
variables:
|
| 122 |
+
BuildRequired: $[or(
|
| 123 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.x440'),
|
| 124 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.x4xx'),
|
| 125 |
+
contains(stageDependencies.analyze_changeset.analyze.outputs['gen_testlist.UhdTestList'], 'fpga.usrp3.all')
|
| 126 |
+
)]
|
| 127 |
+
jobs:
|
| 128 |
+
- template: ../templates/jobs-provide-fpga-artifacts.yml
|
| 129 |
+
parameters:
|
| 130 |
+
id: x440
|
| 131 |
+
device_name: X440
|
| 132 |
+
ip_target: X440_IP
|
| 133 |
+
package_name: x4xx_x440_fpga_default
|
| 134 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 135 |
+
num_ip_jobs: ${{ parameters.num_ip_jobs }}
|
| 136 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 137 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 138 |
+
package_access: ${{ parameters.package_access }}
|
| 139 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 140 |
+
top_dir: uhddev/fpga/usrp3/top/x400
|
| 141 |
+
target_full_matrix: ${{ parameters.x440_targets_matrix }}
|
| 142 |
+
target_reduced_matrix: ${{ parameters.x440_targets_matrix }}
|
| 143 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 144 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
### END: X440 stages
|
EttusResearch_uhd/.ci/fpga/scripts/merge_modelsim_ini.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
+
Copyright 2025 Ettus Research, a National Instruments Brand
|
| 4 |
+
|
| 5 |
+
SPDX-License-Identifier: LGPL-3.0-or-later
|
| 6 |
+
|
| 7 |
+
Merge multiple INI files into a single one.
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
import configparser
|
| 11 |
+
import argparse
|
| 12 |
+
|
| 13 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 14 |
+
parser.add_argument('files', type=str, nargs='+', help='a list of INI files to merge')
|
| 15 |
+
parser.add_argument('-o', '--output', type=str, default='modelsim.ini', help='the output file name')
|
| 16 |
+
args = parser.parse_args()
|
| 17 |
+
|
| 18 |
+
config = configparser.ConfigParser()
|
| 19 |
+
config.read(args.files)
|
| 20 |
+
|
| 21 |
+
with open(args.output, 'w') as configfile:
|
| 22 |
+
config.write(configfile)
|
EttusResearch_uhd/.ci/fpga/scripts/refresh_ip.sh
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2022 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This script first refreshes a given build IP directory to the current time
|
| 9 |
+
# (assume all the IP files within that directory were just built) and then
|
| 10 |
+
# the script touches all the files that changed between the current repo's
|
| 11 |
+
# working tree and a given hash (used to build IP).
|
| 12 |
+
# This allows the user to download pre-built IP (e.g. cached) and re-build
|
| 13 |
+
# only those IP components that changed in between the cached commit and the
|
| 14 |
+
# current working tree.
|
| 15 |
+
#
|
| 16 |
+
# Arguments:
|
| 17 |
+
#
|
| 18 |
+
# $1 = absolute path to build-ip/ directory
|
| 19 |
+
# $2 = git hash used to build IP in $1
|
| 20 |
+
#
|
| 21 |
+
# Example:
|
| 22 |
+
#
|
| 23 |
+
# bash .refresh_ip.sh `realpath path/to/build-ip` 1234abc
|
| 24 |
+
#
|
| 25 |
+
|
| 26 |
+
# # Step 1: refresh build-ip/ directory to current time
|
| 27 |
+
echo "[refresh_ip.sh] Resetting timestamp for files in $1"
|
| 28 |
+
find $1 -type f -exec touch --no-create {} +
|
| 29 |
+
|
| 30 |
+
# # Step 2: determine all files that changed and update their time (dirty)
|
| 31 |
+
echo "[refresh_ip.sh] Differences between $2 and working tree (marked dirty):"
|
| 32 |
+
git diff --line-prefix=`git rev-parse --show-toplevel`/ --name-only $2 | \
|
| 33 |
+
while read -r line; do \
|
| 34 |
+
if [[ $line == *"ip/"* ]]; then \
|
| 35 |
+
echo " $line"; \
|
| 36 |
+
touch --no-create $line; \
|
| 37 |
+
fi \
|
| 38 |
+
done
|
EttusResearch_uhd/.ci/fpga/scripts/run_setup.sh
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2022 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# Script to run NI hwsetup and UHD setupenv for the target build. Always
|
| 9 |
+
# source this file.
|
| 10 |
+
#
|
| 11 |
+
# Arguments:
|
| 12 |
+
#
|
| 13 |
+
# $1 = Directory where setupenv is located
|
| 14 |
+
#
|
| 15 |
+
# Example:
|
| 16 |
+
#
|
| 17 |
+
# source run_setup.sh ./usrp3/top/x400
|
| 18 |
+
#
|
| 19 |
+
|
| 20 |
+
set -e
|
| 21 |
+
|
| 22 |
+
echo "---- Set environment variables ----"
|
| 23 |
+
export PATH=$HWT_SCRIPTS_DIR:$PATH
|
| 24 |
+
export NETWORK_LIB_BASE_PATH="/mnt/argo/RnD/eda/libraries"
|
| 25 |
+
# Avoid "ERROR: [Common 17-356] Failed to install all user apps."
|
| 26 |
+
export XILINX_LOCAL_USER_DATA=no
|
| 27 |
+
# Some of the FPGA tools expect TERM to be set. This avoids a bunch of error
|
| 28 |
+
# messages about it from being printed in the logs.
|
| 29 |
+
export TERM=xterm-256color
|
| 30 |
+
|
| 31 |
+
echo "---- Run hwsetup ----"
|
| 32 |
+
# This script sets the XILINX_VIVADO, MODELSIM, and LIB_BASE_PATH
|
| 33 |
+
# variables based on the agent's configuration so we can find the EDA
|
| 34 |
+
# tools.
|
| 35 |
+
pushd $BUILD_SOURCESDIRECTORY/uhddev/.ci/hwtools
|
| 36 |
+
source hwsetup.sh
|
| 37 |
+
popd
|
| 38 |
+
|
| 39 |
+
echo "---- Fetch the FPGA simulation libraries ----"
|
| 40 |
+
# Compiling the simulation libraries.
|
| 41 |
+
# Extracting the modelsim.ini path from the output.
|
| 42 |
+
# Creating a temporary modelsim.mpf file for the scripting to work.
|
| 43 |
+
echo "[Library]" > modelsim.mpf
|
| 44 |
+
compileFpgaLibs vivado | tee compileFpgaLib.log
|
| 45 |
+
VIVADO_MODELSIM_INI_PATH=$(grep Reading compileFpgaLib.log | awk '{print $3}' | sed 's/\x1b\[[0-9;]*m//g')
|
| 46 |
+
compileFpgaLibs diamond | tee compileFpgaLib.log
|
| 47 |
+
DIAMOND_MODELSIM_INI_PATH=$(grep Reading compileFpgaLib.log | awk '{print $3}' | sed 's/\x1b\[[0-9;]*m//g')
|
| 48 |
+
# Combine all modelsim.ini files to local copy
|
| 49 |
+
python $(dirname $BASH_SOURCE)/merge_modelsim_ini.py \
|
| 50 |
+
-o $BUILD_SOURCESDIRECTORY/modelsim.ini \
|
| 51 |
+
$VIVADO_MODELSIM_INI_PATH $DIAMOND_MODELSIM_INI_PATH
|
| 52 |
+
# Removing the temporary files
|
| 53 |
+
rm -f modelsim.mpf compileFpgaLib.log
|
| 54 |
+
|
| 55 |
+
echo "---- Fetch Vivado patches ----"
|
| 56 |
+
export PATCHES_DIR=$BUILD_SOURCESDIRECTORY/patches
|
| 57 |
+
mkdir -p $PATCHES_DIR
|
| 58 |
+
pushd $PATCHES_DIR
|
| 59 |
+
# Fetch the AR76780 patch for Vivado
|
| 60 |
+
cp /opt/synced/Xilinx/patches/AR76780_Vivado_2021_1_preliminary_rev1.zip ./AR76780_Vivado_2021_1_preliminary_rev1.zip
|
| 61 |
+
unzip -q -o ./AR76780_Vivado_2021_1_preliminary_rev1.zip -d ./AR76780_Vivado_2021/
|
| 62 |
+
rm -f AR76780_Vivado_2021_1_preliminary_rev1.zip
|
| 63 |
+
# Add the AR76780 patch for the simulation library
|
| 64 |
+
cp /opt/synced/modelsim/patches/fir_compiler_v7_2_76780.zip ./fir_compiler_v7_2_76780.zip
|
| 65 |
+
unzip -q -o ./fir_compiler_v7_2_76780.zip -d ./fir_compiler_v7_2_76780/
|
| 66 |
+
rm -f ./fir_compiler_v7_2_76780.zip
|
| 67 |
+
popd
|
| 68 |
+
|
| 69 |
+
echo "---- Apply the Vivado patches ----"
|
| 70 |
+
pushd $BUILD_SOURCESDIRECTORY
|
| 71 |
+
# Apply the patch to Vivado
|
| 72 |
+
export XILINX_PATH=$PATCHES_DIR/AR76780_Vivado_2021/vivado
|
| 73 |
+
# Add the FIR compiler simulation model to local modelsim.ini
|
| 74 |
+
# Delete all lines containing "fir_compiler_v7_2_76780" to avoid duplicates
|
| 75 |
+
sed -i -e '/fir_compiler_v7_2_76780/d' ./modelsim.ini
|
| 76 |
+
# Duplicate line containing "fir_compiler_v7_2_16"
|
| 77 |
+
sed -i -e '/fir_compiler_v7_2_16/p' ./modelsim.ini
|
| 78 |
+
# Replace the first "fir_compiler_v7_2_16" line with our new library
|
| 79 |
+
PATCHES_DIR_ESC=$(echo $PATCHES_DIR | sed 's_/_\\/_g')
|
| 80 |
+
sed -i -e "0,/fir_compiler_v7_2_16/s/^fir_compiler_v7_2_16.*\$/fir_compiler_v7_2_76780 = $PATCHES_DIR_ESC\/fir_compiler_v7_2_76780/" ./modelsim.ini
|
| 81 |
+
# Tell our build tools to use this modelsim.ini for this session
|
| 82 |
+
export MODELSIM_INI=$(pwd)/modelsim.ini
|
| 83 |
+
export MSIM_VIV_COMPLIBDIR=$(pwd)
|
| 84 |
+
popd
|
| 85 |
+
|
| 86 |
+
echo "---- Run setupenv ----"
|
| 87 |
+
source $1/setupenv.sh --vivado-path $(dirname $XILINX_VIVADO) --modelsim-path $(dirname $MODELSIM)
|
EttusResearch_uhd/.ci/fpga/templates/check_clean_repo_steps.yml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2021 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# Checks for a clean repository (no untracked or modified files).
|
| 9 |
+
#
|
| 10 |
+
|
| 11 |
+
parameters:
|
| 12 |
+
# Directory to execute the commands in
|
| 13 |
+
- name: directory
|
| 14 |
+
type: string
|
| 15 |
+
default: $(Agent.BuildDirectory)/s/uhddev
|
| 16 |
+
|
| 17 |
+
steps:
|
| 18 |
+
- powershell: |
|
| 19 |
+
# Using git status as a way to check for a clean repo can produce
|
| 20 |
+
# misleading results when the line endings have been modified (XmlParse has
|
| 21 |
+
# a tendency to modify line endings). "git diff" seems to produce more
|
| 22 |
+
# reliable results, and the --exit-code is useful for detecting a change/no
|
| 23 |
+
# change summary.
|
| 24 |
+
|
| 25 |
+
# Add all untracked files and checked changes in staged area.
|
| 26 |
+
git add -A .
|
| 27 |
+
git diff --cached --binary --exit-code > clean_repo.patch
|
| 28 |
+
|
| 29 |
+
# Use exit code to determine if there are any changes, and if so, fail the build
|
| 30 |
+
if ($LASTEXITCODE -ne 0) {
|
| 31 |
+
throw "Repository is not clean. See clean_repo.patch for details."
|
| 32 |
+
}
|
| 33 |
+
displayName: 'Check clean repository'
|
| 34 |
+
workingDirectory: ${{ parameters.directory }}
|
| 35 |
+
|
| 36 |
+
- publish: ${{ parameters.directory }}/clean_repo.patch
|
| 37 |
+
artifact: '$(System.JobDisplayName) clean repo patch'
|
| 38 |
+
condition: failed()
|
| 39 |
+
displayName: 'Publish clean repo patch file'
|
EttusResearch_uhd/.ci/fpga/templates/job-build-cpld.yml
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2025 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template should be used for CPLD builds.
|
| 9 |
+
# Exports the final programming files as pipeline artifacts.
|
| 10 |
+
#
|
| 11 |
+
# See description for the parameters below.
|
| 12 |
+
#
|
| 13 |
+
|
| 14 |
+
parameters:
|
| 15 |
+
# Publishes the intermediate files from the build-* directories as pipeline artifacts.
|
| 16 |
+
- name: publish_int_files
|
| 17 |
+
type: boolean
|
| 18 |
+
default: false
|
| 19 |
+
|
| 20 |
+
# cpldBuilds: List of CPLD builds to be executed
|
| 21 |
+
# each element is a list of 3 strings (displayName, workingDirectory, artifactName)
|
| 22 |
+
# e.g ['ZBX CPLD Build', './top/x400/dboards/zbx/cpld', 'CPLD_ZBX']
|
| 23 |
+
- name: cpldBuilds
|
| 24 |
+
type: object
|
| 25 |
+
default: []
|
| 26 |
+
|
| 27 |
+
jobs:
|
| 28 |
+
- ${{ each cpldBuild in parameters.cpldBuilds }}:
|
| 29 |
+
- job:
|
| 30 |
+
displayName: ${{ cpldBuild.displayName }}
|
| 31 |
+
timeoutInMinutes: 30
|
| 32 |
+
pool:
|
| 33 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 34 |
+
demands:
|
| 35 |
+
- Agent.OS -equals Linux
|
| 36 |
+
variables:
|
| 37 |
+
- group: sdr-pipeline-vars
|
| 38 |
+
steps:
|
| 39 |
+
- template: setup_steps.yml
|
| 40 |
+
parameters:
|
| 41 |
+
includeAdditionalSources: ${{ coalesce(cpldBuild.includeAdditionalSources, false) }}
|
| 42 |
+
ref: ${{ coalesce(cpldBuild.ref, '') }}
|
| 43 |
+
|
| 44 |
+
- bash: |
|
| 45 |
+
# Find the directory containing setupenv.sh by searching upwards from the working directory
|
| 46 |
+
search_dir="${{ cpldBuild.workingDirectory }}"
|
| 47 |
+
while [[ "$search_dir" != "." && "$search_dir" != "/" ]]; do
|
| 48 |
+
if [[ -f "$search_dir/setupenv.sh" ]]; then
|
| 49 |
+
setup_dir="$search_dir"
|
| 50 |
+
break
|
| 51 |
+
fi
|
| 52 |
+
search_dir="$(dirname "$search_dir")"
|
| 53 |
+
done
|
| 54 |
+
|
| 55 |
+
if [[ -z "$setup_dir" ]]; then
|
| 56 |
+
echo "setupenv.sh not found in hierarchy."
|
| 57 |
+
exit 1
|
| 58 |
+
else
|
| 59 |
+
echo "Found setupenv.sh in: $setup_dir"
|
| 60 |
+
fi
|
| 61 |
+
|
| 62 |
+
source $(Build.SourcesDirectory)/uhddev/.ci/fpga/scripts/run_setup.sh $setup_dir
|
| 63 |
+
|
| 64 |
+
echo "---- Run build: ${{ cpldBuild.displayName }} ----"
|
| 65 |
+
cd ${{ cpldBuild.workingDirectory }}
|
| 66 |
+
make
|
| 67 |
+
workingDirectory: uhddev/fpga/usrp3
|
| 68 |
+
env:
|
| 69 |
+
PATCHES_PATH: $(sdr-vivado-patches)
|
| 70 |
+
displayName: ${{ cpldBuild.displayName }}
|
| 71 |
+
|
| 72 |
+
# Publish the final result only if all previous steps passed
|
| 73 |
+
- publish: uhddev/fpga/usrp3/${{ cpldBuild.workingDirectory }}/build
|
| 74 |
+
artifact: ${{ cpldBuild.artifactName }}
|
| 75 |
+
displayName: 'Publish ${{ cpldBuild.displayName }}'
|
| 76 |
+
|
| 77 |
+
# Publish CPLD build intermediate files on request (even if the build failed)
|
| 78 |
+
# Publish uhddev/fpga/usrp3/${{ cpldBuild.workingDirectory }}/build-*
|
| 79 |
+
- bash: |
|
| 80 |
+
cd ${{ cpldBuild.workingDirectory }}
|
| 81 |
+
cp -r build-* $(Build.ArtifactStagingDirectory)
|
| 82 |
+
workingDirectory: uhddev/fpga/usrp3
|
| 83 |
+
env:
|
| 84 |
+
PATCHES_PATH: $(sdr-vivado-patches)
|
| 85 |
+
displayName: 'Copy build directories'
|
| 86 |
+
condition: and(always(), eq('${{ parameters.publish_int_files }}', true))
|
| 87 |
+
|
| 88 |
+
- publish: $(Build.ArtifactStagingDirectory)
|
| 89 |
+
artifact: '${{ cpldBuild.artifactName }}_Build_Directory Attempt $(System.JobAttempt)'
|
| 90 |
+
displayName: 'Publish ${{ cpldBuild.displayName }} Directory'
|
| 91 |
+
condition: and(always(), eq('${{ parameters.publish_int_files }}', true))
|
| 92 |
+
|
| 93 |
+
# Check if CPLD build left any untracked files.
|
| 94 |
+
- template: check_clean_repo_steps.yml
|
| 95 |
+
parameters:
|
| 96 |
+
directory: uhddev/
|
EttusResearch_uhd/.ci/fpga/templates/job-build-fpga-all.yml
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2025 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template defines a stages-based pipeline for building all FPGA bitfiles.
|
| 9 |
+
#
|
| 10 |
+
|
| 11 |
+
parameters:
|
| 12 |
+
## Optional parameters
|
| 13 |
+
# Option to ignore cached artifacts (if available) and perform
|
| 14 |
+
# a clean IP build.
|
| 15 |
+
- name: clean_ip_build
|
| 16 |
+
type: boolean
|
| 17 |
+
default: false
|
| 18 |
+
# Number of parallel jobs to use for IP build
|
| 19 |
+
- name: num_ip_jobs
|
| 20 |
+
type: number
|
| 21 |
+
default: 5
|
| 22 |
+
# Option to publish intermediate files
|
| 23 |
+
- name: publish_int_files
|
| 24 |
+
type: boolean
|
| 25 |
+
default: false
|
| 26 |
+
# Package and publish images
|
| 27 |
+
- name: package_and_publish_images
|
| 28 |
+
type: boolean
|
| 29 |
+
default: true
|
| 30 |
+
# Package access in the SDR server ('Internal' or 'Public')
|
| 31 |
+
- name: package_access
|
| 32 |
+
type: string
|
| 33 |
+
default: 'Internal'
|
| 34 |
+
# From where to pull FPGA bitfiles if we're not building them
|
| 35 |
+
- name: fpga_imgs_source
|
| 36 |
+
type: string
|
| 37 |
+
default: 'Mono Pipeline'
|
| 38 |
+
## Device-specific parameters
|
| 39 |
+
- name: x410_targets_matrix
|
| 40 |
+
type: object
|
| 41 |
+
default: {}
|
| 42 |
+
- name: x420_targets_matrix
|
| 43 |
+
type: object
|
| 44 |
+
default: {}
|
| 45 |
+
- name: x440_targets_matrix
|
| 46 |
+
type: object
|
| 47 |
+
default: {}
|
| 48 |
+
- name: additional_setup_steps
|
| 49 |
+
type: stepList
|
| 50 |
+
default: []
|
| 51 |
+
- name: rfnoc_include_dir
|
| 52 |
+
type: string
|
| 53 |
+
default: ""
|
| 54 |
+
displayName: RFNoC OOT module path
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
stages:
|
| 58 |
+
### START: X400 stages
|
| 59 |
+
|
| 60 |
+
- template: ../devices/job-build-fpga-x400.yml
|
| 61 |
+
parameters:
|
| 62 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 63 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 64 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 65 |
+
package_access: ${{ parameters.package_access }}
|
| 66 |
+
x410_targets_matrix: ${{ parameters.x410_targets_matrix }}
|
| 67 |
+
x420_targets_matrix: ${{ parameters.x420_targets_matrix }}
|
| 68 |
+
x440_targets_matrix: ${{ parameters.x440_targets_matrix }}
|
| 69 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 70 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 71 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 72 |
+
|
| 73 |
+
### END: X400 stages
|
| 74 |
+
|
| 75 |
+
### START: X3x0 stages
|
| 76 |
+
|
| 77 |
+
- template: ../devices/job-build-fpga-x300.yml
|
| 78 |
+
parameters:
|
| 79 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 80 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 81 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 82 |
+
package_access: ${{ parameters.package_access }}
|
| 83 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 84 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 85 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 86 |
+
|
| 87 |
+
### END: X3x0 stages
|
| 88 |
+
|
| 89 |
+
### START: N3xx stages
|
| 90 |
+
|
| 91 |
+
- template: ../devices/job-build-fpga-n3xx.yml
|
| 92 |
+
parameters:
|
| 93 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 94 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 95 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 96 |
+
package_access: ${{ parameters.package_access }}
|
| 97 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 98 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 99 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 100 |
+
|
| 101 |
+
### END: N3xx stages
|
| 102 |
+
|
| 103 |
+
### START: E31x stages
|
| 104 |
+
|
| 105 |
+
- template: ../devices/job-build-fpga-e31x.yml
|
| 106 |
+
parameters:
|
| 107 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 108 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 109 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 110 |
+
package_access: ${{ parameters.package_access }}
|
| 111 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 112 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 113 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 114 |
+
|
| 115 |
+
### END: E31x stages
|
| 116 |
+
|
| 117 |
+
### START: E320 stages
|
| 118 |
+
|
| 119 |
+
- template: ../devices/job-build-fpga-e320.yml
|
| 120 |
+
parameters:
|
| 121 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 122 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 123 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 124 |
+
package_access: ${{ parameters.package_access }}
|
| 125 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 126 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 127 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 128 |
+
|
| 129 |
+
### END: E320 stages
|
| 130 |
+
|
| 131 |
+
### START: B310 stages
|
| 132 |
+
|
| 133 |
+
- template: ../devices/job-build-fpga-b310.yml
|
| 134 |
+
parameters:
|
| 135 |
+
clean_ip_build: ${{ parameters.clean_ip_build }}
|
| 136 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 137 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 138 |
+
package_access: ${{ parameters.package_access }}
|
| 139 |
+
fpga_imgs_source: ${{ parameters.fpga_imgs_source }}
|
| 140 |
+
|
| 141 |
+
### END: B310 stages
|
EttusResearch_uhd/.ci/fpga/templates/job-build-fpga.yml
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2022 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template shall be used for FPGA builds within the uhddev
|
| 9 |
+
# repository. Exports the FPGA build results (bitfile, device tree and build
|
| 10 |
+
# report from build directory) as artifacts '<target>'.
|
| 11 |
+
#
|
| 12 |
+
# See description for the parameters below.
|
| 13 |
+
#
|
| 14 |
+
|
| 15 |
+
parameters:
|
| 16 |
+
### Required parameters
|
| 17 |
+
# FPGA targets to be built.
|
| 18 |
+
# E.g.
|
| 19 |
+
# targets_matrix:
|
| 20 |
+
# X410_XG_100:
|
| 21 |
+
# target: X410_XG_100
|
| 22 |
+
# timeout: 480
|
| 23 |
+
# X410_X4_200:
|
| 24 |
+
# target: X410_X4_200
|
| 25 |
+
# timeout: 480
|
| 26 |
+
- name: targets_matrix
|
| 27 |
+
type: object
|
| 28 |
+
# IP artifact name (from pipeline) to be used
|
| 29 |
+
- name: ip_artifact
|
| 30 |
+
type: string
|
| 31 |
+
# PATH to device's top directory (where Makefile is located)
|
| 32 |
+
- name: top_dir
|
| 33 |
+
type: string
|
| 34 |
+
|
| 35 |
+
### Optional parameters
|
| 36 |
+
# Set to true if the intermediate files from build-<target> directory should
|
| 37 |
+
# be exported for debugging as artifact 'Build artifacts <target> (Attempt <attempt>)'
|
| 38 |
+
- name: publish_int_files
|
| 39 |
+
type: boolean
|
| 40 |
+
default: false
|
| 41 |
+
- name: max_parallel
|
| 42 |
+
type: number
|
| 43 |
+
default: 20
|
| 44 |
+
displayName: 'Max parallel jobs'
|
| 45 |
+
- name: additional_setup_steps
|
| 46 |
+
type: stepList
|
| 47 |
+
default: []
|
| 48 |
+
- name: rfnoc_include_dir
|
| 49 |
+
type: string
|
| 50 |
+
default: ""
|
| 51 |
+
displayName: RFNoC OOT module path
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
jobs:
|
| 55 |
+
- job: build_fpga
|
| 56 |
+
displayName: 'Build FPGA'
|
| 57 |
+
timeoutInMinutes: $[ variables['timeout'] ]
|
| 58 |
+
pool:
|
| 59 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 60 |
+
demands:
|
| 61 |
+
- Agent.OS -equals Linux
|
| 62 |
+
- SUPER_HIGH_CPU_PER_THREAD
|
| 63 |
+
variables:
|
| 64 |
+
- group: sdr-pipeline-vars
|
| 65 |
+
strategy:
|
| 66 |
+
matrix:
|
| 67 |
+
${{ parameters.targets_matrix }}
|
| 68 |
+
maxParallel: ${{ parameters.max_parallel }}
|
| 69 |
+
dependsOn: ${{ parameters.ip_artifact }}
|
| 70 |
+
condition: and(succeeded(), eq(variables.BuildRequired, true))
|
| 71 |
+
steps:
|
| 72 |
+
- ${{ parameters.additional_setup_steps }}
|
| 73 |
+
- template: setup_steps.yml
|
| 74 |
+
|
| 75 |
+
- download: current
|
| 76 |
+
artifact: ${{ parameters.ip_artifact }}
|
| 77 |
+
displayName: 'Download ${{ parameters.ip_artifact }}'
|
| 78 |
+
|
| 79 |
+
- bash: |
|
| 80 |
+
mv $(Pipeline.Workspace)/${{ parameters.ip_artifact }} \
|
| 81 |
+
${{ parameters.top_dir }}/build-ip/
|
| 82 |
+
displayName: 'Populate build-ip'
|
| 83 |
+
|
| 84 |
+
- bash: |
|
| 85 |
+
# Purge any existing UHD install
|
| 86 |
+
rm -rf $(Build.BinariesDirectory)/prefix $(Build.BinariesDirectory)/build_image_builder
|
| 87 |
+
mkdir -p $(Build.BinariesDirectory)/prefix
|
| 88 |
+
# hwtools hwsetup.sh will setup a venv, so we'll reuse that for the
|
| 89 |
+
# image builder! That's also why we install the image builder in the
|
| 90 |
+
# same step as building the bitfile: To avoid having to run hwsetup.sh
|
| 91 |
+
# twice.
|
| 92 |
+
echo "##[group]Setting up build environment..."
|
| 93 |
+
source $(Build.SourcesDirectory)/uhddev/.ci/fpga/scripts/run_setup.sh ./
|
| 94 |
+
python3 -m pip install --upgrade pip
|
| 95 |
+
pip3 install -U numpy mako "ruamel.yaml<0.18.0" jsonschema
|
| 96 |
+
set -o xtrace
|
| 97 |
+
# hwsetup.sh injects garbage cmake versions into PATH, so avoid that by
|
| 98 |
+
# going straight to /usr/bin/cmake
|
| 99 |
+
/usr/bin/cmake -S $(Build.SourcesDirectory)/uhddev/host \
|
| 100 |
+
-B $(Build.BinariesDirectory)/build_image_builder \
|
| 101 |
+
-DCMAKE_INSTALL_PREFIX=$(Build.BinariesDirectory)/prefix \
|
| 102 |
+
-DUHD_BOOST_REQUIRED=OFF \
|
| 103 |
+
-DENABLE_LIBUHD=OFF -DENABLE_PYMOD_UTILS=ON \
|
| 104 |
+
-DENABLE_DOXYGEN=OFF -DENABLE_MAN_PAGES=OFF -DENABLE_MANUAL=OFF
|
| 105 |
+
/usr/bin/cmake --build $(Build.BinariesDirectory)/build_image_builder
|
| 106 |
+
/usr/bin/cmake --install $(Build.BinariesDirectory)/build_image_builder
|
| 107 |
+
echo "##[group]Executing FPGA build..."
|
| 108 |
+
# rfnoc_image_builder does not currently get installed to a bin/ folder
|
| 109 |
+
# via pip, so we add it to PATH
|
| 110 |
+
export PATH=$BUILD_BINARIESDIRECTORY/prefix/bin:$VIRTUAL_ENV/bin:$PATH
|
| 111 |
+
if [ -n "$TARGET_NAME" ]; then
|
| 112 |
+
export TARGET_ARG="--target $TARGET_NAME"
|
| 113 |
+
fi
|
| 114 |
+
if [ -z "$IMAGE_CORE_NAME" ]; then
|
| 115 |
+
echo "##vso[task.logissue type=error]image_core_name must be set for proper functioning of pipeline!"
|
| 116 |
+
exit 1
|
| 117 |
+
fi
|
| 118 |
+
if [[ -z "$BUILD_SEED" ]]
|
| 119 |
+
then
|
| 120 |
+
export BUILD_SEED=$(($(System.JobAttempt)-1))
|
| 121 |
+
fi
|
| 122 |
+
# Add timeout arg if provided, otherwise don't specify a timeout.
|
| 123 |
+
if [ -n "$ATTEMPT_TIMEOUT" ]; then
|
| 124 |
+
# Convert from minutes to hours
|
| 125 |
+
export TIMEOUT_ARG="--timeout $(echo "scale=2; $ATTEMPT_TIMEOUT / 60.0" | bc)"
|
| 126 |
+
else
|
| 127 |
+
export TIMEOUT_ARG=""
|
| 128 |
+
fi
|
| 129 |
+
if [[ -n "${{ parameters.rfnoc_include_dir }}" ]]; then
|
| 130 |
+
export INCLUDE_DIR_ARG="--include-dir ${{ parameters.rfnoc_include_dir }}"
|
| 131 |
+
fi
|
| 132 |
+
python3 ../../tools/utils/repeat_fpga_build.py \
|
| 133 |
+
--image-core $(image_core) $TARGET_ARG $BITFILE_NAME_ARG $INCLUDE_DIR_ARG \
|
| 134 |
+
--image-core-name $IMAGE_CORE_NAME \
|
| 135 |
+
--vivado-path $(dirname $XILINX_VIVADO) \
|
| 136 |
+
--num $(max_attempts) --seed $BUILD_SEED --persistent \
|
| 137 |
+
$TIMEOUT_ARG
|
| 138 |
+
pip3 uninstall -y uhd
|
| 139 |
+
workingDirectory: ${{ parameters.top_dir }}
|
| 140 |
+
displayName: 'Build Target'
|
| 141 |
+
name: build_target
|
| 142 |
+
|
| 143 |
+
# Publish the final result only if all previous steps passed
|
| 144 |
+
- publish: ${{ parameters.top_dir }}/build
|
| 145 |
+
artifact: '$(artifact_name)'
|
| 146 |
+
displayName: 'Publish FPGA'
|
| 147 |
+
|
| 148 |
+
# Create a variable so we know that we generated this artifact
|
| 149 |
+
- bash: |
|
| 150 |
+
echo "##vso[task.setvariable variable=GeneratedArtifact_$(artifact_name);isOutput=true]true"
|
| 151 |
+
echo "##vso[task.setvariable variable=GeneratedArtifact;isOutput=true]true"
|
| 152 |
+
echo "Variable name: GeneratedArtifact_$(artifact_name)"
|
| 153 |
+
displayName: 'Set GeneratedArtifact variable'
|
| 154 |
+
name: set_generated_artifact_variable
|
| 155 |
+
|
| 156 |
+
# extract build artifact directory
|
| 157 |
+
- bash: |
|
| 158 |
+
export BUILD_ARTIFACT_DIR=`ls | grep build-usrp`
|
| 159 |
+
echo "Build artifact dir: $BUILD_ARTIFACT_DIR"
|
| 160 |
+
echo "##vso[task.setvariable variable=BuildArtifactDir;isOutput=true]$BUILD_ARTIFACT_DIR"
|
| 161 |
+
echo "##vso[task.setvariable variable=image_core_basename;isOutput=true]`basename $(image_core)`"
|
| 162 |
+
workingDirectory: ${{ parameters.top_dir }}
|
| 163 |
+
displayName: 'Find Build Artifact Directory'
|
| 164 |
+
name: find_build_artifact_dir
|
| 165 |
+
condition: and(always(), eq('${{ parameters.publish_int_files }}', true))
|
| 166 |
+
|
| 167 |
+
# Publish intermediate files.
|
| 168 |
+
- publish: ${{ parameters.top_dir }}/$(find_build_artifact_dir.BuildArtifactDir)
|
| 169 |
+
artifact: 'Build artifacts for $(find_build_artifact_dir.image_core_basename) (Target $(target_name), Image core name $(image_core_name), Attempt $(System.JobAttempt))'
|
| 170 |
+
condition: and(always(), eq('${{ parameters.publish_int_files }}', true))
|
| 171 |
+
displayName: 'Publish Build Directory'
|
| 172 |
+
|
| 173 |
+
# Check if FPGA build left any untracked files.
|
| 174 |
+
- template: check_clean_repo_steps.yml
|
| 175 |
+
parameters:
|
| 176 |
+
directory: ${{ parameters.top_dir }}
|
| 177 |
+
|
| 178 |
+
- bash: |
|
| 179 |
+
make cleanall
|
| 180 |
+
workingDirectory: ${{ parameters.top_dir }}
|
| 181 |
+
displayName: 'Clean up build artifacts'
|
EttusResearch_uhd/.ci/fpga/templates/job-build-ip.yml
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2022 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template should be used for IP builds within the uhddev repository.
|
| 9 |
+
# This job uses Azure's caching mechanism to speed up the build. A
|
| 10 |
+
# successful job publishes the corresponding build-ip/ directory as a
|
| 11 |
+
# pipeline artifact.
|
| 12 |
+
#
|
| 13 |
+
# See description for the parameters below.
|
| 14 |
+
#
|
| 15 |
+
|
| 16 |
+
parameters:
|
| 17 |
+
### Required parameters
|
| 18 |
+
# PATH to device's top directory (where Makefile is located)
|
| 19 |
+
- name: directory
|
| 20 |
+
type: string
|
| 21 |
+
# Name of the IP Make target (e.g. X410_IP for X410's IP)
|
| 22 |
+
- name: ip_target
|
| 23 |
+
type: string
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
### Optional parameters
|
| 27 |
+
# Option to ignore cached artifacts (when available) and perform
|
| 28 |
+
# a clean IP build.
|
| 29 |
+
- name: clean_build
|
| 30 |
+
type: boolean
|
| 31 |
+
default: false
|
| 32 |
+
# Number of parallel jobs to use for IP build
|
| 33 |
+
- name: num_jobs
|
| 34 |
+
type: number
|
| 35 |
+
default: 5
|
| 36 |
+
- name: additional_setup_steps
|
| 37 |
+
type: stepList
|
| 38 |
+
default: []
|
| 39 |
+
|
| 40 |
+
jobs:
|
| 41 |
+
- job: ${{ parameters.ip_target }}
|
| 42 |
+
displayName: 'Build ${{ parameters.ip_target }}'
|
| 43 |
+
pool:
|
| 44 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 45 |
+
demands:
|
| 46 |
+
- Agent.OS -equals Linux
|
| 47 |
+
- HIGH_CPU_PER_THREAD
|
| 48 |
+
timeoutInMinutes: 240
|
| 49 |
+
variables:
|
| 50 |
+
- group: sdr-pipeline-vars
|
| 51 |
+
condition: and(succeeded(), eq(variables.BuildRequired, true))
|
| 52 |
+
steps:
|
| 53 |
+
- ${{ parameters.additional_setup_steps }}
|
| 54 |
+
- template: setup_steps.yml
|
| 55 |
+
|
| 56 |
+
# Pipeline caching is leveraged in this job to minimize the time it takes
|
| 57 |
+
# to build all the IP.
|
| 58 |
+
# At a high level, the pipeline checks for an available and valid cache
|
| 59 |
+
# artifact from its scope (target branch in PR or its own branch) and
|
| 60 |
+
# downloads it to the workspace (Cache hit).
|
| 61 |
+
# If no valid cache artifact exists (Cache miss), then the build will run
|
| 62 |
+
# and the pipeline will automatically save the result as a cache artifact
|
| 63 |
+
# for subsequent runs.
|
| 64 |
+
# Further details on "Pipeline caching" available online:
|
| 65 |
+
# https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops
|
| 66 |
+
# We always allow the Cache task to run, even in clean builds. This way
|
| 67 |
+
# when in a cache miss, the IP build from that run will be saved as an
|
| 68 |
+
# artifact for subsequent CI and PR runs to fetch.
|
| 69 |
+
- task: Cache@2
|
| 70 |
+
inputs:
|
| 71 |
+
key: "uhddev-fpga-${{ parameters.ip_target }}"
|
| 72 |
+
path: ${{ parameters.directory }}/build-ip
|
| 73 |
+
cacheHitVar: CACHE_RESTORED
|
| 74 |
+
displayName: Cache IP
|
| 75 |
+
|
| 76 |
+
- bash: |
|
| 77 |
+
BUILD_IP_CACHE_HASH=`cat build-ip/.ci/build-hash`
|
| 78 |
+
echo "BUILD_IP_CACHE_HASH=$BUILD_IP_CACHE_HASH"
|
| 79 |
+
git fetch origin $BUILD_IP_CACHE_HASH
|
| 80 |
+
bash $(Build.SourcesDirectory)/uhddev/.ci/fpga/scripts/refresh_ip.sh \
|
| 81 |
+
`realpath build-ip/` $BUILD_IP_CACHE_HASH
|
| 82 |
+
workingDirectory: ${{ parameters.directory }}
|
| 83 |
+
# Refresh IP when caching is allowed (clean_build = false) and a cache
|
| 84 |
+
# artifact was fetched.
|
| 85 |
+
condition: and(eq('${{ parameters.clean_build }}', 'false'), eq(variables.CACHE_RESTORED, 'true'))
|
| 86 |
+
displayName: "Refresh IP"
|
| 87 |
+
|
| 88 |
+
- bash: |
|
| 89 |
+
echo "Clean IP build requested, removing existing build-ip"
|
| 90 |
+
rm -rf build-ip
|
| 91 |
+
workingDirectory: ${{ parameters.directory }}
|
| 92 |
+
# Remove build-ip directory whenever a clean IP build is requested.
|
| 93 |
+
condition: eq('${{ parameters.clean_build }}', 'true')
|
| 94 |
+
displayName: "Prune IP"
|
| 95 |
+
|
| 96 |
+
- bash: |
|
| 97 |
+
source $(Build.SourcesDirectory)/uhddev/.ci/fpga/scripts/run_setup.sh ./
|
| 98 |
+
make -j ${{ parameters.num_jobs }} ${{ parameters.ip_target }}
|
| 99 |
+
mkdir -p build-ip/.ci/
|
| 100 |
+
git rev-parse --verify HEAD 2>/dev/null 1>build-ip/.ci/build-hash
|
| 101 |
+
workingDirectory: ${{ parameters.directory }}
|
| 102 |
+
displayName: "Build IP"
|
| 103 |
+
|
| 104 |
+
- publish: ${{ parameters.directory }}/build-ip
|
| 105 |
+
artifact: '${{ parameters.ip_target }} (Attempt $(System.JobAttempt))'
|
| 106 |
+
condition: failed()
|
| 107 |
+
|
| 108 |
+
- publish: ${{ parameters.directory }}/build-ip
|
| 109 |
+
artifact: ${{ parameters.ip_target }}
|
| 110 |
+
condition: succeeded()
|
| 111 |
+
|
| 112 |
+
- template: check_clean_repo_steps.yml
|
| 113 |
+
parameters:
|
| 114 |
+
directory: ${{ parameters.directory }}
|
EttusResearch_uhd/.ci/fpga/templates/job-guarantee-artifacts.yml
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2025 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This job guarantees the availability of FPGA artifacts for downstream jobs.
|
| 9 |
+
# If the artifacts are not available, they are downloaded from a different
|
| 10 |
+
# pipeline (declared by uhdFpgaArtifactSource) and published.
|
| 11 |
+
#
|
| 12 |
+
# This job requires a variable "ArtifactsGenerated" to be set to "NotGenerated"
|
| 13 |
+
# or "Generated" to determine if the artifacts are already available.
|
| 14 |
+
|
| 15 |
+
parameters:
|
| 16 |
+
- name: id
|
| 17 |
+
default: ''
|
| 18 |
+
type: string
|
| 19 |
+
- name: artifacts_matrix
|
| 20 |
+
default: []
|
| 21 |
+
type: object
|
| 22 |
+
# Identify a pipeline resource. This should never be "current", because this
|
| 23 |
+
# is for downloading artifacts from other pipelines!
|
| 24 |
+
- name: uhdFpgaArtifactSource
|
| 25 |
+
type: string
|
| 26 |
+
default: uhd_mono_pipeline
|
| 27 |
+
|
| 28 |
+
jobs:
|
| 29 |
+
- job: check_artifact_availability_${{ parameters.id }}
|
| 30 |
+
variables:
|
| 31 |
+
- group: sdr-pipeline-vars
|
| 32 |
+
dependsOn: build_fpga
|
| 33 |
+
condition: ne(variables.BuildRequired, true)
|
| 34 |
+
pool:
|
| 35 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 36 |
+
demands:
|
| 37 |
+
- Agent.OS -equals Linux
|
| 38 |
+
displayName: 'Check FPGA artifacts availability for ${{ parameters.id }}'
|
| 39 |
+
|
| 40 |
+
steps:
|
| 41 |
+
- checkout: none
|
| 42 |
+
- ${{ each artifact in parameters.artifacts_matrix }}:
|
| 43 |
+
- download: ${{ parameters.uhdFpgaArtifactSource }}
|
| 44 |
+
artifact: ${{ artifact.key }}
|
| 45 |
+
displayName: 'Download ${{ artifact.value.artifact_name }}'
|
| 46 |
+
name: download_${{ artifact.key }}
|
| 47 |
+
|
| 48 |
+
- task: PublishPipelineArtifact@1
|
| 49 |
+
inputs:
|
| 50 |
+
targetPath: $(Agent.BuildDirectory)/${{ parameters.uhdFpgaArtifactSource }}/${{ artifact.key }}
|
| 51 |
+
artifact: ${{ artifact.key }}
|
| 52 |
+
displayName: 'Publish ${{ artifact.key }}'
|
| 53 |
+
# We continue on error, because the error means that the artifact already
|
| 54 |
+
# exists and we did something wrong elsewhere.
|
| 55 |
+
continueOnError: true
|
EttusResearch_uhd/.ci/fpga/templates/job-package-images.yml
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2022 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template shall be used to package images.
|
| 9 |
+
#
|
| 10 |
+
# See description for the parameters below.
|
| 11 |
+
#
|
| 12 |
+
|
| 13 |
+
parameters:
|
| 14 |
+
### Required parameters
|
| 15 |
+
# Package name for identification purposes
|
| 16 |
+
- name: package_name
|
| 17 |
+
type: string
|
| 18 |
+
# FPGA artifacts to be downloaded to "build_directory"
|
| 19 |
+
# Note that the value for each key is not used in this job.
|
| 20 |
+
# E.g.
|
| 21 |
+
# targets_matrix:
|
| 22 |
+
# X410_XG_100:
|
| 23 |
+
# target: X410_XG_100
|
| 24 |
+
# timeout: 480
|
| 25 |
+
# X410_X4_200:
|
| 26 |
+
# target: X410_X4_200
|
| 27 |
+
# timeout: 480
|
| 28 |
+
- name: artifacts_matrix
|
| 29 |
+
type: object
|
| 30 |
+
# PATH to device's build directory (where artifacts will be copied and
|
| 31 |
+
# packaging utility will be run)
|
| 32 |
+
- name: build_directory
|
| 33 |
+
type: string
|
| 34 |
+
- name: package_and_publish_images
|
| 35 |
+
type: boolean
|
| 36 |
+
### Optional parameters
|
| 37 |
+
# Package access in the SDR server ('Internal' or 'Public')
|
| 38 |
+
- name: package_access
|
| 39 |
+
type: string
|
| 40 |
+
default: 'Internal'
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
jobs:
|
| 44 |
+
- job: ${{ parameters.package_name }}
|
| 45 |
+
displayName: 'Package & Publish ${{ parameters.package_name }}'
|
| 46 |
+
timeoutInMinutes: 10
|
| 47 |
+
dependsOn: build_fpga
|
| 48 |
+
condition: and(succeeded(), eq(variables.BuildRequired, true), eq('${{ parameters.package_and_publish_images }}', 'true'))
|
| 49 |
+
pool:
|
| 50 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 51 |
+
demands:
|
| 52 |
+
- Agent.OS -equals Linux
|
| 53 |
+
variables:
|
| 54 |
+
- group: sdr-pipeline-vars
|
| 55 |
+
steps:
|
| 56 |
+
- checkout: self
|
| 57 |
+
clean: true
|
| 58 |
+
|
| 59 |
+
- ${{ each artifact in parameters.artifacts_matrix }}:
|
| 60 |
+
- download: current
|
| 61 |
+
artifact: ${{ artifact.value.artifact_name }}
|
| 62 |
+
displayName: 'Download ${{ artifact.value.artifact_name }}'
|
| 63 |
+
|
| 64 |
+
- ${{ each artifact in parameters.artifacts_matrix }}:
|
| 65 |
+
- bash: |
|
| 66 |
+
mkdir -p ${{ parameters.build_directory }}
|
| 67 |
+
cp $(Pipeline.Workspace)/${{ artifact.value.artifact_name }}/* \
|
| 68 |
+
${{ parameters.build_directory }}/
|
| 69 |
+
rm -rf $(Pipeline.Workspace)/${{ artifact.value.artifact_name }}/
|
| 70 |
+
displayName: 'Populate ${{ artifact.value.artifact_name }} artifacts'
|
| 71 |
+
|
| 72 |
+
- bash: |
|
| 73 |
+
OSS_REPO_HASH="$(git rev-parse --verify HEAD --short=7 2>/dev/null)"
|
| 74 |
+
echo "##vso[task.setvariable variable=OSS_REPO_HASH]$OSS_REPO_HASH"
|
| 75 |
+
echo "OSS Repo hash: $OSS_REPO_HASH"
|
| 76 |
+
python3 $(Build.SourcesDirectory)/fpga/usrp3/tools/utils/package_images.py \
|
| 77 |
+
--manifest $(Build.SourcesDirectory)/images/manifest.txt \
|
| 78 |
+
--githash "uhd-$OSS_REPO_HASH"
|
| 79 |
+
git diff --patch $(Build.SourcesDirectory)/images/manifest.txt > \
|
| 80 |
+
${{ parameters.package_name }}-g$OSS_REPO_HASH.patch
|
| 81 |
+
git restore $(Build.SourcesDirectory)/images/manifest.txt
|
| 82 |
+
rm -f *.bit *.dts *.rpt *.md5
|
| 83 |
+
workingDirectory: ${{ parameters.build_directory }}
|
| 84 |
+
displayName: 'Run package_images.py'
|
| 85 |
+
|
| 86 |
+
# Publish the final result only if all previous steps passed
|
| 87 |
+
- publish: ${{ parameters.build_directory }}
|
| 88 |
+
artifact: '${{ parameters.package_name }}-g$(OSS_REPO_HASH)'
|
| 89 |
+
displayName: 'Publish package to AzDO'
|
| 90 |
+
|
| 91 |
+
- bash: |
|
| 92 |
+
if [[ "${{ parameters.package_access }}" == *"Public"* ]]; then
|
| 93 |
+
echo "##vso[task.setvariable variable=publish_path]$(sdr-public-binaries)";
|
| 94 |
+
else
|
| 95 |
+
echo "##vso[task.setvariable variable=publish_path]$(sdr-internal-binaries)";
|
| 96 |
+
fi
|
| 97 |
+
workingDirectory: ${{ parameters.build_directory }}
|
| 98 |
+
displayName: 'Determine SDR server publishing path'
|
| 99 |
+
|
| 100 |
+
- task: CopyFilesOverSSH@0
|
| 101 |
+
inputs:
|
| 102 |
+
sshEndpoint: 'sdr-server-ssh'
|
| 103 |
+
sourceFolder: '${{ parameters.build_directory }}'
|
| 104 |
+
contents: 'cache/*/**'
|
| 105 |
+
targetFolder: $(publish_path)
|
| 106 |
+
readyTimeout: '20000'
|
| 107 |
+
failOnEmptySource: true
|
| 108 |
+
displayName: 'Publish package to SDR server'
|
EttusResearch_uhd/.ci/fpga/templates/job-regmap.yml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2025 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# Updating the register maps for the X400 based FPGA designs.
|
| 9 |
+
#
|
| 10 |
+
jobs:
|
| 11 |
+
- job:
|
| 12 |
+
displayName: "Check regmaps"
|
| 13 |
+
timeoutInMinutes: 30
|
| 14 |
+
pool:
|
| 15 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 16 |
+
demands:
|
| 17 |
+
- Agent.OS -equals Linux
|
| 18 |
+
variables:
|
| 19 |
+
- group: sdr-pipeline-vars
|
| 20 |
+
steps:
|
| 21 |
+
- template: setup_steps.yml
|
| 22 |
+
parameters:
|
| 23 |
+
includeAdditionalSources: true
|
| 24 |
+
|
| 25 |
+
- bash: |
|
| 26 |
+
# Set up the hwtools path and run the build script
|
| 27 |
+
source $(Build.SourcesDirectory)/uhddev/.ci/fpga/scripts/run_setup.sh $(Build.SourcesDirectory)/uhddev/fpga/usrp3/top/x400
|
| 28 |
+
python build.py
|
| 29 |
+
workingDirectory: uhddev/.ci/hwtools
|
| 30 |
+
displayName: "Run xmlparse"
|
| 31 |
+
|
| 32 |
+
# Check if regmaps are up to date
|
| 33 |
+
- template: check_clean_repo_steps.yml
|
| 34 |
+
parameters:
|
| 35 |
+
directory: uhddev
|
EttusResearch_uhd/.ci/fpga/templates/job-run-testbenches.yml
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Copyright 2022 Ettus Research, a National Instruments Brand
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 5 |
+
#
|
| 6 |
+
# Description:
|
| 7 |
+
#
|
| 8 |
+
# This template is used to run all the testbenches using the requested simulator.
|
| 9 |
+
#
|
| 10 |
+
|
| 11 |
+
parameters:
|
| 12 |
+
### Required parameters
|
| 13 |
+
# Simulator to use (e.g. modelsim, xsim, etc.)
|
| 14 |
+
- name: simulator
|
| 15 |
+
type: string
|
| 16 |
+
|
| 17 |
+
jobs:
|
| 18 |
+
- job:
|
| 19 |
+
displayName: "${{ parameters.simulator }} Simulation"
|
| 20 |
+
timeoutInMinutes: 360
|
| 21 |
+
pool:
|
| 22 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 23 |
+
demands:
|
| 24 |
+
- Agent.OS -equals Linux
|
| 25 |
+
variables:
|
| 26 |
+
- group: sdr-pipeline-vars
|
| 27 |
+
- name: excludes_file
|
| 28 |
+
value: ${{ iif(eq(parameters.simulator, 'xsim'), 'testbenches', parameters.simulator) }}
|
| 29 |
+
steps:
|
| 30 |
+
- template: setup_steps.yml
|
| 31 |
+
parameters:
|
| 32 |
+
includeAdditionalSources: true
|
| 33 |
+
|
| 34 |
+
- bash: |
|
| 35 |
+
source $(Build.SourcesDirectory)/uhddev/.ci/fpga/scripts/run_setup.sh ./top/x300
|
| 36 |
+
|
| 37 |
+
echo "---- Run testbenches ----"
|
| 38 |
+
pushd ./tools/utils
|
| 39 |
+
python3 -m pip install --upgrade pip
|
| 40 |
+
pip3 install -r requirements.txt
|
| 41 |
+
python3 ./run_testbenches.py --logged --simulator ${{ parameters.simulator }} --excludes=${{ variables.excludes_file }}.excludes -j4 --report $(Build.ArtifactStagingDirectory)/junit.xml run
|
| 42 |
+
popd
|
| 43 |
+
workingDirectory: uhddev/fpga/usrp3
|
| 44 |
+
displayName: "Run Testbenches"
|
| 45 |
+
|
| 46 |
+
- task: PublishTestResults@2
|
| 47 |
+
inputs:
|
| 48 |
+
testResultsFormat: 'JUnit'
|
| 49 |
+
testResultsFiles: 'junit.xml'
|
| 50 |
+
searchFolder: $(Build.ArtifactStagingDirectory)
|
| 51 |
+
failTaskOnFailedTests: True
|
| 52 |
+
condition: succeededOrFailed()
|
EttusResearch_uhd/.ci/fpga/templates/jobs-provide-fpga-artifacts.yml
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
parameters:
|
| 2 |
+
# A short identifier to create unique names
|
| 3 |
+
- name: id
|
| 4 |
+
default: ''
|
| 5 |
+
type: string
|
| 6 |
+
# The variable name of the Boolean that tells us if we need to build new artifacts
|
| 7 |
+
# Device name, only used for pretty-printing
|
| 8 |
+
- name: device_name
|
| 9 |
+
default: ''
|
| 10 |
+
type: string
|
| 11 |
+
# IP target to build
|
| 12 |
+
- name: ip_target
|
| 13 |
+
default: ''
|
| 14 |
+
type: string
|
| 15 |
+
# Package name (e.g., e
|
| 16 |
+
- name: package_name
|
| 17 |
+
type: string
|
| 18 |
+
default: ''
|
| 19 |
+
- name: clean_ip_build
|
| 20 |
+
type: boolean
|
| 21 |
+
default: false
|
| 22 |
+
- name: num_ip_jobs
|
| 23 |
+
type: number
|
| 24 |
+
default: 5
|
| 25 |
+
# Option to publish intermediate files
|
| 26 |
+
- name: publish_int_files
|
| 27 |
+
type: boolean
|
| 28 |
+
default: false
|
| 29 |
+
# Package and publish images
|
| 30 |
+
- name: package_and_publish_images
|
| 31 |
+
type: boolean
|
| 32 |
+
default: true
|
| 33 |
+
# Package access in the SDR server ('Internal' or 'Public')
|
| 34 |
+
- name: package_access
|
| 35 |
+
type: string
|
| 36 |
+
default: 'Internal'
|
| 37 |
+
# From where to pull FPGA bitfiles if we're not building them
|
| 38 |
+
- name: fpga_imgs_source
|
| 39 |
+
type: string
|
| 40 |
+
default: 'Mono Pipeline'
|
| 41 |
+
# Path to the top directory of the device (e.g., uhddev/fpga/usrp3/top/e31x)
|
| 42 |
+
- name: top_dir
|
| 43 |
+
type: string
|
| 44 |
+
default: ''
|
| 45 |
+
# Full matrix of FPGA targets to build
|
| 46 |
+
- name: target_full_matrix
|
| 47 |
+
type: object
|
| 48 |
+
# Reduced matrix of FPGA targets to build
|
| 49 |
+
- name: target_reduced_matrix
|
| 50 |
+
type: object
|
| 51 |
+
- name: additional_setup_steps
|
| 52 |
+
type: stepList
|
| 53 |
+
default: []
|
| 54 |
+
- name: rfnoc_include_dir
|
| 55 |
+
type: string
|
| 56 |
+
default: ""
|
| 57 |
+
displayName: RFNoC OOT module path
|
| 58 |
+
|
| 59 |
+
jobs:
|
| 60 |
+
- template: job-build-ip.yml
|
| 61 |
+
parameters:
|
| 62 |
+
directory: ${{ parameters.top_dir }}
|
| 63 |
+
ip_target: ${{ parameters.ip_target }}
|
| 64 |
+
clean_build: ${{ parameters.clean_ip_build }}
|
| 65 |
+
num_jobs: ${{ parameters.num_ip_jobs }}
|
| 66 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 67 |
+
- template: ../templates/job-build-fpga.yml
|
| 68 |
+
parameters:
|
| 69 |
+
${{ if eq(parameters.package_and_publish_images, true) }}:
|
| 70 |
+
targets_matrix: ${{ parameters.target_full_matrix }}
|
| 71 |
+
${{ else }}:
|
| 72 |
+
targets_matrix: ${{ parameters.target_reduced_matrix }}
|
| 73 |
+
ip_artifact: ${{ parameters.ip_target }}
|
| 74 |
+
top_dir: ${{ parameters.top_dir }}
|
| 75 |
+
publish_int_files: ${{ parameters.publish_int_files }}
|
| 76 |
+
additional_setup_steps: ${{ parameters.additional_setup_steps }}
|
| 77 |
+
rfnoc_include_dir: ${{ parameters.rfnoc_include_dir }}
|
| 78 |
+
- template: ../templates/job-package-images.yml
|
| 79 |
+
parameters:
|
| 80 |
+
package_name: ${{ parameters.package_name }}
|
| 81 |
+
artifacts_matrix: ${{ parameters.target_full_matrix }}
|
| 82 |
+
build_directory: ${{ parameters.top_dir }}/build/
|
| 83 |
+
package_access: ${{ parameters.package_access }}
|
| 84 |
+
package_and_publish_images: ${{ parameters.package_and_publish_images }}
|
| 85 |
+
- template: job-guarantee-artifacts.yml
|
| 86 |
+
parameters:
|
| 87 |
+
id: ${{ parameters.id }}
|
| 88 |
+
artifacts_matrix: ${{ parameters.target_full_matrix }}
|
| 89 |
+
${{ if eq(parameters.fpga_imgs_source, 'Mono Pipeline PR') }}:
|
| 90 |
+
uhdFpgaArtifactSource: uhd_mono_pipeline_pr
|
| 91 |
+
${{ elseif eq(parameters.fpga_imgs_source, 'FPGA Pipeline') }}:
|
| 92 |
+
uhdFpgaArtifactSource: uhd_fpga_pipeline
|
| 93 |
+
${{ else }}:
|
| 94 |
+
uhdFpgaArtifactSource: uhd_mono_pipeline
|
EttusResearch_uhd/.ci/fpga/templates/setup_steps.yml
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
parameters:
|
| 2 |
+
- name: checkoutSteps
|
| 3 |
+
type: stepList
|
| 4 |
+
default:
|
| 5 |
+
# Checkout the repository under test
|
| 6 |
+
- checkout: self
|
| 7 |
+
clean: true
|
| 8 |
+
fetchDepth: 1
|
| 9 |
+
persistCredentials: true
|
| 10 |
+
# Checkout hwtools repo
|
| 11 |
+
- checkout: hwtools
|
| 12 |
+
fetchDepth: '1'
|
| 13 |
+
fetchTags: false
|
| 14 |
+
path: s/hwtools/head
|
| 15 |
+
persistCredentials: true
|
| 16 |
+
- name: demands_default
|
| 17 |
+
type: object
|
| 18 |
+
default:
|
| 19 |
+
pool:
|
| 20 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 21 |
+
demands:
|
| 22 |
+
- Agent.OS -equals Linux
|
| 23 |
+
hwhookVersion: 2
|
| 24 |
+
# include additional sources (e.g. for merging a branch) before the build
|
| 25 |
+
- name: includeAdditionalSources
|
| 26 |
+
type: boolean
|
| 27 |
+
default: false
|
| 28 |
+
# specific git ref to checkout
|
| 29 |
+
- name: ref
|
| 30 |
+
type: string
|
| 31 |
+
default: ''
|
| 32 |
+
|
| 33 |
+
steps:
|
| 34 |
+
- template: build/pipelines/helpers/setup_steps.yml@hwtools
|
| 35 |
+
parameters:
|
| 36 |
+
caller: setup_steps.yml
|
| 37 |
+
pool: Drivers-NIBuildFarm-RFMIBUILD
|
| 38 |
+
checkoutSteps: ${{ parameters.checkoutSteps }}
|
| 39 |
+
demands: ${{ parameters.demands_default }}
|
| 40 |
+
repoBase: $(Build.SourcesDirectory)
|
| 41 |
+
directory: uhddev
|
| 42 |
+
name: FPGA build
|
| 43 |
+
- ${{ if eq(parameters.includeAdditionalSources, true) }}:
|
| 44 |
+
- bash: |
|
| 45 |
+
set -e
|
| 46 |
+
git fetch --unshallow --progress
|
| 47 |
+
git merge origin/$(hbx-branch-name)
|
| 48 |
+
git log -1
|
| 49 |
+
displayName: "Merge HBX branch"
|
| 50 |
+
workingDirectory: uhddev
|
| 51 |
+
- ${{ if ne(parameters.ref, '') }}:
|
| 52 |
+
- bash: |
|
| 53 |
+
set -e
|
| 54 |
+
git fetch --progress origin ${{ parameters.ref }}
|
| 55 |
+
git checkout ${{ parameters.ref }}
|
| 56 |
+
displayName: "Checkout ref ${{ parameters.ref }}"
|
| 57 |
+
workingDirectory: uhddev
|
| 58 |
+
|
EttusResearch_uhd/.ci/hwtools/.gitignore
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Ignore objects/ directory created by hwtools
|
| 2 |
+
objects/
|
| 3 |
+
# Ignore Python bytecode cache files
|
| 4 |
+
__pycache__/
|
| 5 |
+
# Ignore modelsim related files
|
| 6 |
+
**/modelsim/
|
| 7 |
+
**/transcript
|
| 8 |
+
# Ignore python version file created by pyenv
|
| 9 |
+
.python-version
|
EttusResearch_uhd/.ci/hwtools/X410/vsmakesettings.py
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
#
|
| 3 |
+
# Copyright 2025 Ettus Research, a National Instruments Brand
|
| 4 |
+
#
|
| 5 |
+
# SPDX-License-Identifier: MIT
|
| 6 |
+
#
|
| 7 |
+
|
| 8 |
+
from hwtools.api import vapi
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def do_options():
|
| 12 |
+
vapi.set_project_name(name="X410_FPGA", pretty_name="USRP X410 FPGA")
|
| 13 |
+
vapi.set_top_sim_entity("x4xx")
|
| 14 |
+
vapi.set_top_synth_entity("x4xx")
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def do_files():
|
| 18 |
+
# x400 related files
|
| 19 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400", tree=False)
|
| 20 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/cpld/common")
|
| 21 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/cpld/x410")
|
| 22 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/dboards", tree=False)
|
| 23 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/dboards/zbx")
|
| 24 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/common")
|
| 25 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/100m")
|
| 26 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/200m")
|
| 27 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/400m")
|
| 28 |
+
vapi.find_files_and_add_to_fileset(
|
| 29 |
+
base="repo", path="fpga/usrp3/top/x400/ip/x4xx_ps_rfdc_bd/common/regmap"
|
| 30 |
+
)
|
| 31 |
+
vapi.find_files_and_add_to_fileset(
|
| 32 |
+
base="repo", path="fpga/usrp3/top/x400/ip/x4xx_ps_rfdc_bd/x410_ps_rfdc_bd/regmap"
|
| 33 |
+
)
|
| 34 |
+
|
| 35 |
+
# library
|
| 36 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/lib/rfnoc")
|
| 37 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/lib/control")
|
| 38 |
+
|
| 39 |
+
# regmap files
|
| 40 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/regmap", tree=False)
|
| 41 |
+
vapi.find_files_and_add_to_fileset(
|
| 42 |
+
base="repo", path="fpga/usrp3/top/x400/regmap/x410", tree=False
|
| 43 |
+
)
|
| 44 |
+
vapi.find_files_and_add_to_fileset(
|
| 45 |
+
base="repo", path="fpga/usrp3/top/x400/cpld/regmap", tree=False
|
| 46 |
+
)
|
| 47 |
+
vapi.find_files_and_add_to_fileset(
|
| 48 |
+
base="repo", path="fpga/usrp3/top/x400/cpld/regmap/x410", tree=False
|
| 49 |
+
)
|
| 50 |
+
|
| 51 |
+
# simulation files
|
| 52 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/sim")
|
| 53 |
+
|
| 54 |
+
vapi.remove_from_fileset("/build-ip/")
|
| 55 |
+
vapi.remove_from_fileset("/build")
|
| 56 |
+
vapi.remove_from_fileset("/xsim_proj/")
|
| 57 |
+
vapi.remove_from_fileset(".*lib/rfnoc/.*_tb")
|
| 58 |
+
vapi.remove_from_fileset("pll-v")
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def do_preparse():
|
| 62 |
+
pass
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
def do_precompile():
|
| 66 |
+
pass
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
def do_presynth():
|
| 70 |
+
pass
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
def do_finish():
|
| 74 |
+
vapi.run_user_function(function="update_xmlparse_files", base="self", path="../common.py")
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def vhook_warn_filter(msgstr):
|
| 78 |
+
return False
|
EttusResearch_uhd/.ci/hwtools/X420/vsmakesettings.py
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
#
|
| 3 |
+
# Copyright 2025 Ettus Research, a National Instruments Brand
|
| 4 |
+
#
|
| 5 |
+
# SPDX-License-Identifier: MIT
|
| 6 |
+
#
|
| 7 |
+
|
| 8 |
+
import os
|
| 9 |
+
import sys
|
| 10 |
+
|
| 11 |
+
from hwtools.api import vapi, pathapi, pp
|
| 12 |
+
|
| 13 |
+
def do_options():
|
| 14 |
+
vapi.set_project_name(name="X420_FPGA", pretty_name="USRP X420 FPGA")
|
| 15 |
+
vapi.set_top_synth_entity("x4xx")
|
| 16 |
+
vapi.set_top_sim_entity("x4xx")
|
| 17 |
+
pathapi.set_workspace_base("repo")
|
| 18 |
+
|
| 19 |
+
def do_files():
|
| 20 |
+
# Pull in xilinx libraries.
|
| 21 |
+
if not vapi.is_xmlparse():
|
| 22 |
+
vapi.find_files_and_add_to_fileset(
|
| 23 |
+
path="%XILINX%/data/verilog/src/unisims"
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
# x400 related files
|
| 27 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400", tree=False)
|
| 28 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/cpld/common")
|
| 29 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/cpld/x410")
|
| 30 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/dboards", tree=False)
|
| 31 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/dboards/hbx")
|
| 32 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/common")
|
| 33 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/x420")
|
| 34 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/1000m")
|
| 35 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/400m_x420")
|
| 36 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/400m", regex="adc*")
|
| 37 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/400m", regex="dac*")
|
| 38 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/full/rf_core_full.sv")
|
| 39 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/ip/x4xx_ps_rfdc_bd/common/regmap")
|
| 40 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/ip/x4xx_ps_rfdc_bd/x420_ps_rfdc_bd/regmap")
|
| 41 |
+
# library
|
| 42 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/lib/axi")
|
| 43 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/lib/axi4s_sv")
|
| 44 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/lib/control")
|
| 45 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/lib/dsp")
|
| 46 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/lib/fifo")
|
| 47 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/lib/rfnoc")
|
| 48 |
+
vapi.remove_from_fileset("axi_fifo_2clk.v")
|
| 49 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/lib/sim/fifo/axi_fifo_2clk_sim.v")
|
| 50 |
+
|
| 51 |
+
# regmap files
|
| 52 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/regmap", tree=False)
|
| 53 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/regmap/x420", tree=False)
|
| 54 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/cpld/regmap", tree=False)
|
| 55 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/cpld/regmap/x410", tree=False)
|
| 56 |
+
|
| 57 |
+
# duplicate exclusions
|
| 58 |
+
vapi.remove_from_fileset("build-.*")
|
| 59 |
+
vapi.remove_from_fileset("xsim_proj")
|
| 60 |
+
vapi.remove_from_fileset("lattice/impl1")
|
| 61 |
+
vapi.remove_from_fileset("crossbar_tb/")
|
| 62 |
+
vapi.remove_from_fileset("glbl.v")
|
| 63 |
+
|
| 64 |
+
# simulation files
|
| 65 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/sim/packages")
|
| 66 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/sim/rfnoc")
|
| 67 |
+
|
| 68 |
+
# check for hbx CPLD
|
| 69 |
+
cpld_impl_path = "fpga/usrp3/top/x400/dboards/hbx/cpld/"
|
| 70 |
+
cpld_source_path = pathapi.get_abs_path(base="repo", path=cpld_impl_path, checkexist=False)
|
| 71 |
+
if not os.path.isdir(cpld_source_path):
|
| 72 |
+
pp.printerr(f"HBX implementation is missing. {os.linesep}"
|
| 73 |
+
f"Please copy the HBX files to your workspace by executing the following command: {os.linesep}"
|
| 74 |
+
f"git restore --source HBX_SOURCE_BRANCH -- {cpld_source_path}")
|
| 75 |
+
sys.exit(1)
|
| 76 |
+
|
| 77 |
+
def do_preparse():
|
| 78 |
+
pass
|
| 79 |
+
|
| 80 |
+
def do_precompile():
|
| 81 |
+
pass
|
| 82 |
+
|
| 83 |
+
def do_presynth():
|
| 84 |
+
pass
|
| 85 |
+
|
| 86 |
+
def do_finish():
|
| 87 |
+
vapi.run_user_function(function="update_xmlparse_files", base="self", path="../common.py")
|
| 88 |
+
|
| 89 |
+
def vhook_warn_filter(msgstr):
|
| 90 |
+
return False
|
EttusResearch_uhd/.ci/hwtools/X440/vsmakesettings.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
#
|
| 3 |
+
# Copyright 2025 Ettus Research, a National Instruments Brand
|
| 4 |
+
#
|
| 5 |
+
# SPDX-License-Identifier: MIT
|
| 6 |
+
#
|
| 7 |
+
|
| 8 |
+
from hwtools.api import vapi
|
| 9 |
+
|
| 10 |
+
def do_options():
|
| 11 |
+
vapi.set_project_name(name="X440_FPGA", pretty_name="USRP X440 FPGA")
|
| 12 |
+
|
| 13 |
+
def do_files():
|
| 14 |
+
# x400 related files
|
| 15 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400", tree=False)
|
| 16 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/cpld/common")
|
| 17 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/cpld/x440")
|
| 18 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/dboards", tree=False)
|
| 19 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/dboards/fbx")
|
| 20 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/common")
|
| 21 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/full")
|
| 22 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/rf/200m_x440")
|
| 23 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/ip/x4xx_ps_rfdc_bd/common/regmap")
|
| 24 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/ip/x4xx_ps_rfdc_bd/x440_ps_rfdc_bd/regmap")
|
| 25 |
+
|
| 26 |
+
# library
|
| 27 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/lib/rfnoc")
|
| 28 |
+
|
| 29 |
+
# regmap files
|
| 30 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/regmap", tree=False)
|
| 31 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/regmap/x440", tree=False)
|
| 32 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/cpld/regmap", tree=False)
|
| 33 |
+
vapi.find_files_and_add_to_fileset(base="repo", path="fpga/usrp3/top/x400/cpld/regmap/x440", tree=False)
|
| 34 |
+
|
| 35 |
+
def do_preparse():
|
| 36 |
+
pass
|
| 37 |
+
|
| 38 |
+
def do_precompile():
|
| 39 |
+
pass
|
| 40 |
+
|
| 41 |
+
def do_presynth():
|
| 42 |
+
pass
|
| 43 |
+
|
| 44 |
+
def do_finish():
|
| 45 |
+
vapi.run_user_function(function="update_xmlparse_files", base="self", path="../common.py")
|
| 46 |
+
|
| 47 |
+
def vhook_warn_filter(msgstr):
|
| 48 |
+
return False
|
EttusResearch_uhd/.ci/hwtools/build.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
#
|
| 3 |
+
# Copyright 2025 Ettus Research, a National Instruments Brand
|
| 4 |
+
#
|
| 5 |
+
# SPDX-License-Identifier: MIT
|
| 6 |
+
#
|
| 7 |
+
# Generates the register maps for the X400 based FPGA designs.
|
| 8 |
+
#
|
| 9 |
+
|
| 10 |
+
import os
|
| 11 |
+
from hwtools.api import WorkingFolder, cmd
|
| 12 |
+
|
| 13 |
+
# enumerate the subdirectories
|
| 14 |
+
sub_directories = [d for d in os.listdir() if os.path.isdir(d)]
|
| 15 |
+
|
| 16 |
+
# assume the variant is called as the directory
|
| 17 |
+
for variant in sub_directories:
|
| 18 |
+
with WorkingFolder(variant, delete_and_recreate=False, create_ok=False):
|
| 19 |
+
# check if vsmakesettings.py exists
|
| 20 |
+
if not os.path.isfile("vsmakesettings.py"):
|
| 21 |
+
continue
|
| 22 |
+
# generate register map
|
| 23 |
+
cmd.runlive("xmlparse", "--clean", raise_on_err=True)
|
| 24 |
+
cmd.runlive("xmlparse", raise_on_err=True)
|
EttusResearch_uhd/.ci/hwtools/common.py
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
#
|
| 3 |
+
# Copyright 2025 Ettus Research, a National Instruments Brand
|
| 4 |
+
#
|
| 5 |
+
# SPDX-License-Identifier: MIT
|
| 6 |
+
#
|
| 7 |
+
|
| 8 |
+
import shutil
|
| 9 |
+
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
|
| 12 |
+
from hwtools.api import vapi, pathapi, cmd
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
# Revert changes that only update the year in copyright statements for the given file
|
| 16 |
+
def revert_year_only_changes(file_path):
|
| 17 |
+
cmd.run("git", "diff", "--unified=0", file_path, raise_on_err=False)
|
| 18 |
+
lines = cmd.stdout.splitlines()
|
| 19 |
+
if lines:
|
| 20 |
+
# skip the unified header of 5 lines
|
| 21 |
+
lines = lines[5:]
|
| 22 |
+
remaining_lines = [line for line in lines if not ("Copyright" in line or "(c)" in line)]
|
| 23 |
+
if not remaining_lines:
|
| 24 |
+
cmd.run("git", "checkout", file_path, raise_on_err=False)
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def update_xmlparse_files():
|
| 28 |
+
if vapi.is_xmlparse():
|
| 29 |
+
# copy the register map to the correct location
|
| 30 |
+
project_name = vapi.get_project_name()
|
| 31 |
+
src_file = pathapi.get_abs_path(
|
| 32 |
+
f"{project_name}/xmlparse/pri1/{project_name}.htm", base="objects"
|
| 33 |
+
)
|
| 34 |
+
# determine FPGA and CPLD destination location
|
| 35 |
+
variant = project_name.split("_")[0]
|
| 36 |
+
if ("FPGA" in project_name):
|
| 37 |
+
dest_file = pathapi.get_abs_path(
|
| 38 |
+
f"fpga/usrp3/top/x400/doc/{variant}/{project_name}.htm", base="repo"
|
| 39 |
+
)
|
| 40 |
+
else:
|
| 41 |
+
dest_file = pathapi.get_abs_path(
|
| 42 |
+
f"fpga/usrp3/top/x400/dboards/{variant.lower()}/cpld/doc/{project_name}.htm",
|
| 43 |
+
base="repo"
|
| 44 |
+
)
|
| 45 |
+
shutil.copy(src_file, dest_file)
|
| 46 |
+
revert_year_only_changes(dest_file)
|
| 47 |
+
|
| 48 |
+
# get the directory of generated files and check each file in it
|
| 49 |
+
xmlparse_hdl_dir = Path(pathapi.get_abs_path("pri1/hdl", base="xmlparse"))
|
| 50 |
+
for gen_file in xmlparse_hdl_dir.iterdir():
|
| 51 |
+
print(f"Checking {gen_file.name}")
|
| 52 |
+
|
| 53 |
+
# check for matching files in the repo
|
| 54 |
+
existing_files = vapi.get_files_from_fileset("/" + gen_file.name)
|
| 55 |
+
if (len(existing_files) != 1):
|
| 56 |
+
# if there is no match for vhd files this might be fine for the NI-USRP case
|
| 57 |
+
if (len(existing_files) == 0) and (gen_file.name.endswith(".vhd")):
|
| 58 |
+
print(f"Skipped")
|
| 59 |
+
continue
|
| 60 |
+
# print if there are multiple or no matches
|
| 61 |
+
raise Exception(f"File {gen_file.name} match set was not unique. Possible targets: {existing_files}")
|
| 62 |
+
|
| 63 |
+
# update the file in the repo
|
| 64 |
+
# Remove lines containing "not implemented" from the copied file
|
| 65 |
+
with open(gen_file, "r") as file:
|
| 66 |
+
lines = file.readlines()
|
| 67 |
+
with open(existing_files[0], "w") as file:
|
| 68 |
+
for line in lines:
|
| 69 |
+
if "not implemented" not in line:
|
| 70 |
+
file.write(line)
|
| 71 |
+
|
| 72 |
+
revert_year_only_changes(existing_files[0])
|
EttusResearch_uhd/.ci/hwtools/root.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
#
|
| 3 |
+
# Copyright 2025 Ettus Research, a National Instruments Brand
|
| 4 |
+
#
|
| 5 |
+
# SPDX-License-Identifier: LGPL-3.0-or-later
|
| 6 |
+
#
|
| 7 |
+
# Description:
|
| 8 |
+
#
|
| 9 |
+
# Setup script for configuring the pipeline agent's environment to allow us
|
| 10 |
+
# to run proprietary EDA vendor tools.
|
| 11 |
+
#
|
| 12 |
+
|
| 13 |
+
import sys
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def do_setup():
|
| 17 |
+
from hwtools.api import rootapi
|
| 18 |
+
|
| 19 |
+
rootapi.set_workspace_name(name="uhddev", pretty_name="UHD FPGA")
|
| 20 |
+
rootapi.set_major_version("1")
|
| 21 |
+
|
| 22 |
+
# Note: The hwtools version for CI purposes is fixed in run_setup.sh
|
| 23 |
+
rootapi.add_tool(name="hwtools", version="head")
|
| 24 |
+
rootapi.add_tool(name="Vivado", version="2021.1", allowlater=False)
|
| 25 |
+
rootapi.add_tool(name="modelsim", version="2020.4", allowlater=True)
|
| 26 |
+
rootapi.add_tool(name="Diamond", version="3.12", allowlater=True)
|
| 27 |
+
rootapi.add_tool(name="Quartus", version="20.1", allowlater=True)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def do_finish():
|
| 31 |
+
pass
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def do_publish():
|
| 35 |
+
pass
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
if __name__ == "__main__":
|
| 39 |
+
sys.exit(-1)
|
EttusResearch_uhd/.ci/templates/job-analyze-changeset.yml
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This job will execute the changeset_testlist.py script, which in turn will
|
| 2 |
+
# compute a list of tests that need to be executed.
|
| 3 |
+
# The script itself produces the correct output to set a variable for a future
|
| 4 |
+
# stage.
|
| 5 |
+
|
| 6 |
+
parameters:
|
| 7 |
+
- name: reference_pipeline_name
|
| 8 |
+
type: string
|
| 9 |
+
- name: add_tests
|
| 10 |
+
type: string
|
| 11 |
+
default: "none"
|
| 12 |
+
- name: remove_tests
|
| 13 |
+
type: string
|
| 14 |
+
default: "none"
|
| 15 |
+
- name: skip_rule_checking
|
| 16 |
+
type: boolean
|
| 17 |
+
default: False
|
| 18 |
+
|
| 19 |
+
jobs:
|
| 20 |
+
- job: analyze
|
| 21 |
+
displayName: Analyze Changeset
|
| 22 |
+
variables:
|
| 23 |
+
- ${{ if not(parameters.skip_rule_checking) }}:
|
| 24 |
+
- group: github-ettusresearch-uhddev
|
| 25 |
+
pool:
|
| 26 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 27 |
+
demands:
|
| 28 |
+
- Agent.OS -equals Linux
|
| 29 |
+
steps:
|
| 30 |
+
- ${{ if parameters.skip_rule_checking }}:
|
| 31 |
+
- checkout: none
|
| 32 |
+
- bash : |
|
| 33 |
+
echo "Task List = $ADD_TESTS"
|
| 34 |
+
echo "##vso[task.setvariable variable=UhdTestList;isoutput=true]$ADD_TESTS"
|
| 35 |
+
name: gen_testlist
|
| 36 |
+
displayName: Set Test-List Variable
|
| 37 |
+
env:
|
| 38 |
+
ADD_TESTS: ${{ parameters.add_tests }}
|
| 39 |
+
- ${{ else }}:
|
| 40 |
+
# Use checkout depth of large number in order to transfer history of merge commit only.
|
| 41 |
+
- checkout: self
|
| 42 |
+
clean: true
|
| 43 |
+
fetchDepth: 1000000000
|
| 44 |
+
fetchTags: false
|
| 45 |
+
persistCredentials: true
|
| 46 |
+
- bash: |
|
| 47 |
+
git fetch origin +$PIPELINE_SOURCE_COMMIT
|
| 48 |
+
displayName: Git fetch source commit
|
| 49 |
+
env:
|
| 50 |
+
PIPELINE_SOURCE_COMMIT: $(resources.pipeline.${{ parameters.reference_pipeline_name }}.sourceCommit)
|
| 51 |
+
- bash: |
|
| 52 |
+
python3 -m venv $AGENT_TEMPDIRECTORY/ac_venv
|
| 53 |
+
source $AGENT_TEMPDIRECTORY/ac_venv/bin/activate
|
| 54 |
+
pip install --upgrade pip
|
| 55 |
+
pip install ruamel.yaml clang-format==14.0.6 ni-python-styleguide requests
|
| 56 |
+
displayName: setup venv
|
| 57 |
+
- bash: |
|
| 58 |
+
source $AGENT_TEMPDIRECTORY/ac_venv/bin/activate
|
| 59 |
+
set -e
|
| 60 |
+
set -o xtrace
|
| 61 |
+
if [ "$BUILD_REASON" == "PullRequest" ]; then
|
| 62 |
+
EXTRA_ARGS="--github-label-api-endpoint https://oauth2:$OAUTH_TOKEN@api.github.com/repos/$BUILD_REPOSITORY_ID/issues/$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER/labels"
|
| 63 |
+
EXTRA_ARGS="$EXTRA_ARGS --source-branch $SYSTEM_PULLREQUEST_SOURCECOMMITID"
|
| 64 |
+
fi
|
| 65 |
+
if [ -n "$ADD_TESTS" ] && [ "$ADD_TESTS" != "none" ]; then
|
| 66 |
+
EXTRA_ARGS="$EXTRA_ARGS --add-test $ADD_TESTS"
|
| 67 |
+
fi
|
| 68 |
+
if [ -n "$REMOVE_TESTS" ] && [ "$REMOVE_TESTS" != "none" ]; then
|
| 69 |
+
EXTRA_ARGS="$EXTRA_ARGS --remove-test $REMOVE_TESTS"
|
| 70 |
+
fi
|
| 71 |
+
echo "Using pipeline $PIPELINE_PIPELINE_NAME / $PIPELINE_RUN_NAME as reference (branch $PIPELINE_SOURCE_BRANCH, commit $PIPELINE_SOURCE_COMMIT)"
|
| 72 |
+
python3 tools/changeset_testlist.py \
|
| 73 |
+
--target-branch $PIPELINE_SOURCE_COMMIT \
|
| 74 |
+
--set-azdo-var UhdTestList \
|
| 75 |
+
--list-tests --verbose $EXTRA_ARGS
|
| 76 |
+
name: gen_testlist
|
| 77 |
+
displayName: Generate Test-List
|
| 78 |
+
env:
|
| 79 |
+
OAUTH_TOKEN: $(github_uhddev_token)
|
| 80 |
+
PIPELINE_SOURCE_BRANCH: $(resources.pipeline.${{ parameters.reference_pipeline_name }}.sourceBranch)
|
| 81 |
+
PIPELINE_SOURCE_COMMIT: $(resources.pipeline.${{ parameters.reference_pipeline_name }}.sourceCommit)
|
| 82 |
+
PIPELINE_PIPELINE_NAME: $(resources.pipeline.${{ parameters.reference_pipeline_name }}.pipelineName)
|
| 83 |
+
PIPELINE_RUN_NAME: $(resources.pipeline.${{ parameters.reference_pipeline_name }}.runName)
|
| 84 |
+
ADD_TESTS: ${{ parameters.add_tests }}
|
| 85 |
+
REMOVE_TESTS: ${{ parameters.remove_tests }}
|
| 86 |
+
|
| 87 |
+
- bash: |
|
| 88 |
+
if [[ $AGENT_OS == "Windows_NT" ]]; then
|
| 89 |
+
VENV_BIN_DIR="Scripts"
|
| 90 |
+
else
|
| 91 |
+
VENV_BIN_DIR="bin"
|
| 92 |
+
fi
|
| 93 |
+
source $AGENT_TEMPDIRECTORY/ac_venv/$VENV_BIN_DIR/activate
|
| 94 |
+
if [[ $GEN_TESTLIST_UHDTESTLIST =~ "clang-format" ]]; then
|
| 95 |
+
$AGENT_TEMPDIRECTORY/ac_venv/$VENV_BIN_DIR/python3 \
|
| 96 |
+
tools/run-clang-format.py . -r --patch-file clang-format.patch \
|
| 97 |
+
--clang-format-executable `which clang-format`
|
| 98 |
+
fi
|
| 99 |
+
name: run_clang_format
|
| 100 |
+
displayName: Conditionally run clang-format
|
| 101 |
+
|
| 102 |
+
- publish: clang-format.patch
|
| 103 |
+
artifact: clang-format patch file
|
| 104 |
+
displayName: Publish clang-format patch file
|
| 105 |
+
condition: failed()
|
| 106 |
+
|
EttusResearch_uhd/.ci/templates/job-get-latest-uhd-docker.yml
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Must include uhd-pipeline-vars.yml in top line pipeline to include this template
|
| 2 |
+
# Reads and sets uhd docker builder information to variables
|
| 3 |
+
# dockerBuildNumber, dockerImagePrefix, dockerImageMatrix
|
| 4 |
+
# Reference the data by calling:
|
| 5 |
+
# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerBuildNumber'] ]
|
| 6 |
+
# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImagePrefix'] ]
|
| 7 |
+
# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixLin'] ]
|
| 8 |
+
# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixWin'] ]
|
| 9 |
+
# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixUbuntuDeb'] ]
|
| 10 |
+
# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.macOSBuilders'] ]
|
| 11 |
+
# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixSourcePackageBuilders'] ]
|
| 12 |
+
# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixFedoraRpm'] ]
|
| 13 |
+
jobs:
|
| 14 |
+
- job: get_latest_uhd_docker
|
| 15 |
+
displayName: Get Last Docker Build Version
|
| 16 |
+
pool:
|
| 17 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 18 |
+
demands: sh
|
| 19 |
+
steps:
|
| 20 |
+
- checkout: self
|
| 21 |
+
clean: true
|
| 22 |
+
- download: uhd_build_docker_container
|
| 23 |
+
displayName: Download Docker Image List
|
| 24 |
+
# The following script pulls each line from the DockerImageNames
|
| 25 |
+
# file and variablizes them in the AzDO Pipeline Context.
|
| 26 |
+
# sed '1q;d' pulls the first line, sed '2q;d' pulls the second, etc.
|
| 27 |
+
- script: |
|
| 28 |
+
set -euo pipefail
|
| 29 |
+
cd $(Pipeline.Workspace)/uhd_build_docker_container/
|
| 30 |
+
artifact_file="$(UHDPipelineDockerImageArtifactName)/$(UHDPipelineDockerImageArtifactName)"
|
| 31 |
+
derive_script="$(Build.SourcesDirectory)/.ci/utils/derive_docker_image_matrix.py"
|
| 32 |
+
|
| 33 |
+
line_count=$(wc -l < "$artifact_file")
|
| 34 |
+
if [ "$line_count" -eq 9 ]; then
|
| 35 |
+
macos_line=6
|
| 36 |
+
docker_image_matrix_lin=$(sed '3q;d' "$artifact_file")
|
| 37 |
+
docker_image_matrix_win=$(sed '4q;d' "$artifact_file")
|
| 38 |
+
docker_image_matrix_ubuntu_deb=$(sed '5q;d' "$artifact_file")
|
| 39 |
+
docker_image_matrix_source_package=$(sed '7q;d' "$artifact_file")
|
| 40 |
+
docker_image_matrix_fedora_rpm=$(sed '8q;d' "$artifact_file")
|
| 41 |
+
docker_image_matrix_windows_python_build=$(sed '9q;d' "$artifact_file")
|
| 42 |
+
elif [ "$line_count" -eq 6 ]; then
|
| 43 |
+
macos_line=5
|
| 44 |
+
# Keep derive failures blocking for strict CI reasons (CI/scheduled),
|
| 45 |
+
# but allow non-CI/manual debug runs to continue with '{}' fallback.
|
| 46 |
+
# PR runs also use fallback mode.
|
| 47 |
+
# The behavior is implemented by derive_docker_image_matrix.py.
|
| 48 |
+
docker_image_matrix_lin=$(python3 "$derive_script" --empty-on-error-non-ci --input "$artifact_file" --type build --os linux)
|
| 49 |
+
docker_image_matrix_win=$(python3 "$derive_script" --empty-on-error-non-ci --input "$artifact_file" --type build --os windows)
|
| 50 |
+
docker_image_matrix_ubuntu_deb=$(python3 "$derive_script" --empty-on-error-non-ci --input "$artifact_file" --type installer --os linux --package deb --filter-out "focal,questing")
|
| 51 |
+
docker_image_matrix_source_package=$(python3 "$derive_script" --empty-on-error-non-ci --input "$artifact_file" --type source --os linux --select noble)
|
| 52 |
+
docker_image_matrix_fedora_rpm=$(python3 "$derive_script" --empty-on-error-non-ci --input "$artifact_file" --type installer --os linux --package rpm)
|
| 53 |
+
docker_image_matrix_windows_python_build=$(python3 "$derive_script" --empty-on-error-non-ci --input "$artifact_file" --section windows-python-build-matrix)
|
| 54 |
+
else
|
| 55 |
+
echo "Error: Unexpected DockerImageNames format with $line_count lines; expected 6 or 9"
|
| 56 |
+
exit 1
|
| 57 |
+
fi
|
| 58 |
+
|
| 59 |
+
docker_build_number=$(sed '1q;d' "$artifact_file")
|
| 60 |
+
docker_image_prefix=$(sed '2q;d' "$artifact_file")
|
| 61 |
+
macos_builders=$(sed "${macos_line}q;d" "$artifact_file")
|
| 62 |
+
|
| 63 |
+
echo "##vso[task.setvariable variable=dockerBuildNumber;isOutput=true;]$docker_build_number"
|
| 64 |
+
echo "##vso[task.setvariable variable=dockerImagePrefix;isOutput=true;]$docker_image_prefix"
|
| 65 |
+
echo "##vso[task.setvariable variable=dockerImageMatrixLin;isOutput=true;]$docker_image_matrix_lin"
|
| 66 |
+
echo "##vso[task.setvariable variable=dockerImageMatrixWin;isOutput=true;]$docker_image_matrix_win"
|
| 67 |
+
echo "##vso[task.setvariable variable=dockerImageMatrixUbuntuDeb;isOutput=true;]$docker_image_matrix_ubuntu_deb"
|
| 68 |
+
echo "##vso[task.setvariable variable=macOSBuilders;isOutput=true;]$macos_builders"
|
| 69 |
+
echo "##vso[task.setvariable variable=dockerImageMatrixSourcePackageBuilders;isOutput=true;]$docker_image_matrix_source_package"
|
| 70 |
+
echo "##vso[task.setvariable variable=dockerImageMatrixFedoraRpm;isOutput=true;]$docker_image_matrix_fedora_rpm"
|
| 71 |
+
echo "##vso[task.setvariable variable=dockerImageMatrixWinPythonBuild;isOutput=true;]$docker_image_matrix_windows_python_build"
|
| 72 |
+
name: setDockerVar
|
| 73 |
+
- script: |
|
| 74 |
+
echo "Docker Build Number: "
|
| 75 |
+
echo $(setDockerVar.dockerBuildNumber)
|
| 76 |
+
echo $(setDockerVar.dockerImagePrefix)
|
| 77 |
+
echo $(setDockerVar.dockerImageMatrixLin)
|
| 78 |
+
echo $(setDockerVar.dockerImageMatrixWin)
|
| 79 |
+
echo $(setDockerVar.dockerImageMatrixUbuntuDeb)
|
| 80 |
+
echo $(setDockerVar.macOSBuilders)
|
| 81 |
+
echo $(setDockerVar.dockerImageMatrixSourcePackageBuilders)
|
| 82 |
+
echo $(setDockerVar.dockerImageMatrixFedoraRpm)
|
| 83 |
+
echo $(setDockerVar.dockerImageMatrixWinPythonBuild)
|
| 84 |
+
name: echoDockerVar
|
EttusResearch_uhd/.ci/templates/job-gnuradio-grettus-build-src.yml
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
parameters:
|
| 2 |
+
- name: 'toolset'
|
| 3 |
+
type: string
|
| 4 |
+
values:
|
| 5 |
+
- make
|
| 6 |
+
|
| 7 |
+
jobs:
|
| 8 |
+
- job: build_and_upload_gnuradio_grettus_${{ parameters.toolset }}
|
| 9 |
+
displayName: ${{ parameters.toolset }}, ctest, and upload gnuradio and grettus
|
| 10 |
+
dependsOn: get_latest_uhd_docker
|
| 11 |
+
timeoutInMinutes: 90
|
| 12 |
+
variables:
|
| 13 |
+
# Docker vars from job-get-latest-uhd-docker.yml
|
| 14 |
+
dockerBuildNumber: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerBuildNumber'] ]
|
| 15 |
+
dockerImagePrefix: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImagePrefix'] ]
|
| 16 |
+
dockerImageMatrixLin: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixLin'] ]
|
| 17 |
+
dockerImageMatrixWin: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixWin'] ]
|
| 18 |
+
dockerImageMatrixUbuntuDeb: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixUbuntuDeb'] ]
|
| 19 |
+
macOSBuilders: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.macOSBuilders'] ]
|
| 20 |
+
dockerImageMatrixSourcePackageBuilders: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixSourcePackageBuilders'] ]
|
| 21 |
+
dockerImageMatrixFedoraRpm: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixFedoraRpm'] ]
|
| 22 |
+
dockerImageMatrixWinPythonBuild: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixWinPythonBuild'] ]
|
| 23 |
+
pool:
|
| 24 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 25 |
+
demands:
|
| 26 |
+
- ${{ if eq(parameters.toolset, 'msbuild') }}:
|
| 27 |
+
- docker
|
| 28 |
+
- Agent.OS -equals Windows_NT
|
| 29 |
+
- ${{ if or(eq(parameters.toolset, 'make'), eq(parameters.toolset, 'make_trace'), eq(parameters.toolset, 'ninja'), eq(parameters.toolset, 'make_custom_boost_version')) }}:
|
| 30 |
+
- docker
|
| 31 |
+
- Agent.OS -equals Linux
|
| 32 |
+
- ${{ if eq(parameters.toolset, 'make_homebrew_macos') }}:
|
| 33 |
+
- Agent.OS -equals Darwin
|
| 34 |
+
- Agent.OSVersion -equals $(macOSVersionDemand)
|
| 35 |
+
- Agent.OSArchitecture -equals $(macOSArchDemand)
|
| 36 |
+
workspace:
|
| 37 |
+
clean: outputs
|
| 38 |
+
strategy:
|
| 39 |
+
${{ if eq(parameters.toolset, 'msbuild') }}:
|
| 40 |
+
matrix: $[ variables.dockerImageMatrixWin ]
|
| 41 |
+
${{ if or(eq(parameters.toolset, 'make'), eq(parameters.toolset, 'make_trace'), eq(parameters.toolset, 'ninja'), eq(parameters.toolset, 'make_custom_boost_version')) }}:
|
| 42 |
+
matrix: $[ variables.dockerImageMatrixLin ]
|
| 43 |
+
${{ if eq(parameters.toolset, 'make_homebrew_macos') }}:
|
| 44 |
+
matrix: $[ variables.macOSBuilders ]
|
| 45 |
+
${{ if ne(parameters.toolset, 'make_homebrew_macos') }}:
|
| 46 |
+
container:
|
| 47 |
+
${{ if eq(parameters.toolset, 'msbuild') }}:
|
| 48 |
+
options: --cpu-count 6 --memory 12G
|
| 49 |
+
image: '$(dockerImagePrefix)$(DockerImageName):$(dockerBuildNumber)'
|
| 50 |
+
${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/heads/UHD-')) }}:
|
| 51 |
+
endpoint: rnd-docker-niartifacts-ci-readonly
|
| 52 |
+
${{ else }}:
|
| 53 |
+
endpoint: rnd-docker-niartifacts-pre-readonly
|
| 54 |
+
steps:
|
| 55 |
+
- checkout: self
|
| 56 |
+
clean: true
|
| 57 |
+
- checkout: gnuradio
|
| 58 |
+
clean: true
|
| 59 |
+
submodules: recursive
|
| 60 |
+
- checkout: volk
|
| 61 |
+
clean: true
|
| 62 |
+
submodules: true
|
| 63 |
+
|
| 64 |
+
- task: DeleteFiles@1
|
| 65 |
+
inputs:
|
| 66 |
+
SourceFolder: $(Agent.BuildDirectory)
|
| 67 |
+
Contents: |
|
| 68 |
+
uhddev-$(buildOSName)-${{ parameters.toolset }}
|
| 69 |
+
displayName: Delete uhddev artifacts folder
|
| 70 |
+
|
| 71 |
+
- download: uhd_build_docker_container
|
| 72 |
+
|
| 73 |
+
- download: current
|
| 74 |
+
artifact: uhddev-$(buildOSName)-${{ parameters.toolset }}
|
| 75 |
+
displayName: Download pipeline artifact uhddev-$(buildOSName)-${{ parameters.toolset }}
|
| 76 |
+
|
| 77 |
+
- task: ExtractFiles@1
|
| 78 |
+
inputs:
|
| 79 |
+
archiveFilePatterns: $(Pipeline.Workspace)/uhddev-$(buildOSName)-${{ parameters.toolset }}/uhddev-$(buildOSName)-${{ parameters.toolset }}.tar.gz
|
| 80 |
+
destinationFolder: $(Agent.BuildDirectory)/uhddev-$(buildOSName)-${{ parameters.toolset }}
|
| 81 |
+
cleanDestinationFolder: false
|
| 82 |
+
displayName: Extract uhddev-$(buildOSName)-${{ parameters.toolset }} artifacts
|
| 83 |
+
|
| 84 |
+
- ${{ if eq(parameters.toolset, 'make') }}:
|
| 85 |
+
- template: steps-build-volk-make.yml
|
| 86 |
+
parameters:
|
| 87 |
+
volkSrcDir: $(Build.SourcesDirectory)/volk
|
| 88 |
+
volkBuildDir: $(Build.BinariesDirectory)/volk/build
|
| 89 |
+
volkInstallPath: $(Build.BinariesDirectory)/volk/build-installed
|
| 90 |
+
|
| 91 |
+
- ${{ if eq(parameters.toolset, 'make') }}:
|
| 92 |
+
- template: steps-build-gnuradio-make.yml
|
| 93 |
+
parameters:
|
| 94 |
+
gnuradioSrcDir: $(Build.SourcesDirectory)/gnuradio
|
| 95 |
+
gnuradioBuildDir: $(Build.BinariesDirectory)/gnuradio/build
|
| 96 |
+
gnuradioInstallPath: $(Build.BinariesDirectory)/gnuradio/build-installed
|
| 97 |
+
volkInstalledArtifactPath: $(Build.BinariesDirectory)/volk/build-installed
|
| 98 |
+
uhdInstalledArtifactPath: $(Agent.BuildDirectory)/uhddev-$(buildOSName)-${{ parameters.toolset }}/uhddev/build-installed
|
| 99 |
+
|
| 100 |
+
- task: CopyFiles@2.246.0
|
| 101 |
+
inputs:
|
| 102 |
+
sourceFolder: $(Build.BinariesDirectory)
|
| 103 |
+
targetFolder: $(Build.BinariesDirectory)/artifacts
|
| 104 |
+
contents: |
|
| 105 |
+
**/build-installed/**
|
| 106 |
+
displayName: Copy only build-installed folders to artifact folder
|
| 107 |
+
|
| 108 |
+
- task: ArchiveFiles@2
|
| 109 |
+
inputs:
|
| 110 |
+
rootFolderOrFile: $(Build.BinariesDirectory)/artifacts
|
| 111 |
+
includeRootFolder: false
|
| 112 |
+
archiveType: tar
|
| 113 |
+
tarCompression: gz
|
| 114 |
+
archiveFile: $(Build.ArtifactStagingDirectory)/gnuradio-grettus-$(buildOSName)-${{ parameters.toolset }}.tar.gz
|
| 115 |
+
replaceExistingArchive: true
|
| 116 |
+
displayName: Compress build files
|
| 117 |
+
|
| 118 |
+
- task: CopyFiles@2.246.0
|
| 119 |
+
inputs:
|
| 120 |
+
sourceFolder: $(Pipeline.Workspace)/uhd_build_docker_container/$(UHDPipelineDockerImageArtifactName)
|
| 121 |
+
targetFolder: $(Build.ArtifactStagingDirectory)
|
| 122 |
+
displayName: Copy builder container version to artifact folder
|
| 123 |
+
|
| 124 |
+
- task: PublishPipelineArtifact@1
|
| 125 |
+
inputs:
|
| 126 |
+
targetPath: '$(Build.ArtifactStagingDirectory)'
|
| 127 |
+
artifactName: 'gnuradio-grettus-$(buildOSName)-${{ parameters.toolset }}'
|
| 128 |
+
displayName: Upload gnuradio and gr-ettus build artifacts
|
EttusResearch_uhd/.ci/templates/job-rfnoc_modtool-test-sw.yml
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
jobs:
|
| 2 |
+
- job: uhd_rfnoc_modtool_test_sw
|
| 3 |
+
displayName: rfnoc_modtool test software
|
| 4 |
+
dependsOn: get_latest_uhd_docker
|
| 5 |
+
timeoutInMinutes: 20
|
| 6 |
+
variables:
|
| 7 |
+
# Docker vars from job-get-latest-uhd-docker.yml
|
| 8 |
+
dockerBuildNumber: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerBuildNumber'] ]
|
| 9 |
+
dockerImagePrefix: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImagePrefix'] ]
|
| 10 |
+
uhd_artifact_name: uhddev-ubuntu2404-make
|
| 11 |
+
uhd_builder_name: uhd-builder-ubuntu2404
|
| 12 |
+
pool:
|
| 13 |
+
name: Drivers-NIBuildFarm-RFMIBUILD
|
| 14 |
+
demands:
|
| 15 |
+
- Agent.OS -equals Linux
|
| 16 |
+
- docker
|
| 17 |
+
workspace:
|
| 18 |
+
clean: outputs
|
| 19 |
+
container:
|
| 20 |
+
image: $(dockerImagePrefix)$(uhd_builder_name):$(dockerBuildNumber)
|
| 21 |
+
${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/heads/UHD-')) }}:
|
| 22 |
+
endpoint: rnd-docker-niartifacts-ci-readonly
|
| 23 |
+
${{ else }}:
|
| 24 |
+
endpoint: rnd-docker-niartifacts-pre-readonly
|
| 25 |
+
|
| 26 |
+
steps:
|
| 27 |
+
- checkout: self
|
| 28 |
+
clean: true
|
| 29 |
+
fetchDepth: 1
|
| 30 |
+
|
| 31 |
+
- bash: |
|
| 32 |
+
echo '##vso[task.setvariable variable=uhd_artifact_name]uhddev-ubuntu'`lsb_release -s -r | tr -d .`-make
|
| 33 |
+
displayName: Set uhddev pipeline artifact information
|
| 34 |
+
|
| 35 |
+
- download: current
|
| 36 |
+
artifact: $(uhd_artifact_name)
|
| 37 |
+
displayName: Download uhddev artifact
|
| 38 |
+
|
| 39 |
+
- task: ExtractFiles@1
|
| 40 |
+
inputs:
|
| 41 |
+
archiveFilePatterns: $(Agent.BuildDirectory)/$(uhd_artifact_name)/$(uhd_artifact_name).tar.gz
|
| 42 |
+
destinationFolder: $(Build.BinariesDirectory)
|
| 43 |
+
cleanDestinationFolder: true
|
| 44 |
+
|
| 45 |
+
# Test SW only firsts
|
| 46 |
+
- bash: |
|
| 47 |
+
ls -l $(Build.SourcesDirectory)
|
| 48 |
+
export LD_LIBRARY_PATH=$(Build.BinariesDirectory)/uhddev/build/lib:$LD_LIBRARY_PATH
|
| 49 |
+
export PATH=$(Build.BinariesDirectory)/uhddev/build-installed/bin:$PATH
|
| 50 |
+
export PYTHONPATH=`find $(Build.BinariesDirectory)/uhddev/build-installed/lib -name site-packages`:$PYTHONPATH
|
| 51 |
+
export UHD_DIR=$(Build.BinariesDirectory)/uhddev/build-installed
|
| 52 |
+
export UHD_PKG_DATA_PATH=$UHD_DIR/share/uhd
|
| 53 |
+
mkdir -p $(Agent.TempDirectory)/rfnoc_modtool
|
| 54 |
+
ls -l $(Build.SourcesDirectory)/host/tests/
|
| 55 |
+
python3 $(Build.SourcesDirectory)/host/tests/test_modtool.py \
|
| 56 |
+
--base-dir $(Agent.TempDirectory)/rfnoc_modtool \
|
| 57 |
+
--rfnoc-oot-name test \
|
| 58 |
+
--uhd-repo-dir $(Build.SourcesDirectory) \
|
| 59 |
+
--skip-testbenches
|
| 60 |
+
ls -lR $(Agent.TempDirectory)/rfnoc_modtool
|
| 61 |
+
displayName: Run rfnoc_modtool SW test
|
| 62 |
+
|
| 63 |
+
# Test rfnoc-gain icore builds
|
| 64 |
+
- bash: |
|
| 65 |
+
set -e
|
| 66 |
+
ls -l $(Build.SourcesDirectory)
|
| 67 |
+
export LD_LIBRARY_PATH=$(Build.BinariesDirectory)/uhddev/build/lib:$LD_LIBRARY_PATH
|
| 68 |
+
export PATH=$(Build.BinariesDirectory)/uhddev/build-installed/bin:$PATH
|
| 69 |
+
export PYTHONPATH=`find $(Build.BinariesDirectory)/uhddev/build-installed/lib -name site-packages`:$PYTHONPATH
|
| 70 |
+
export UHD_DIR=$(Build.BinariesDirectory)/uhddev/build-installed
|
| 71 |
+
export UHD_PKG_DATA_PATH=$UHD_DIR/share/uhd
|
| 72 |
+
mkdir -p $(Build.SourcesDirectory)/host/examples/rfnoc-gain/build
|
| 73 |
+
cd $(Build.SourcesDirectory)/host/examples/rfnoc-gain/build
|
| 74 |
+
rfnoc_image_builder -F $(Build.SourcesDirectory)/fpga -I ../rfnoc -HDG -y ../icores/x310_rfnoc_image_core.yml
|
| 75 |
+
rfnoc_image_builder -F $(Build.SourcesDirectory)/fpga -I ../rfnoc -HDG -y ../icores/x410_XG_200_rfnoc_image_core.yml
|
| 76 |
+
ls -lR .
|
| 77 |
+
rm -rf $(Build.SourcesDirectory)/host/examples/rfnoc-gain/build
|
| 78 |
+
displayName: Run rfnoc_image_builder on rfnoc-gain image cores
|
| 79 |
+
|
| 80 |
+
- task: ArchiveFiles@2
|
| 81 |
+
inputs:
|
| 82 |
+
rootFolderOrFile: $(Agent.TempDirectory)/rfnoc_modtool
|
| 83 |
+
includeRootFolder: false
|
| 84 |
+
archiveType: 'tar'
|
| 85 |
+
tarCompression: 'gz'
|
| 86 |
+
archiveFile: '$(Build.ArtifactStagingDirectory)/rfnoc_test_oot.tar.gz'
|
| 87 |
+
|
| 88 |
+
- task: PublishPipelineArtifact@1
|
| 89 |
+
inputs:
|
| 90 |
+
targetPath: '$(Build.ArtifactStagingDirectory)'
|
| 91 |
+
artifactName: 'rfnoc_test_oot'
|
| 92 |
+
displayName: Upload rfnoc_test_oot build artifacts
|