mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
Add nib310rio-dev to the Debian build dependencies so the UHD package build fails if the B310 userspace header is unavailable instead of silently disabling B300 support. The Ubuntu installer pipeline downloads the nib310rio Debian package artifact and exposes it to pbuilder as a local apt repository. This lets pbuilder satisfy the new dependency inside the clean build root where CMake checks for nib310rio/nib310rio.h.
33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
parameters:
|
|
- name: uhdSrcDir
|
|
type: string
|
|
- name: uhdInstallerDir
|
|
type: string
|
|
- name: ubuntuReleaseName
|
|
type: string
|
|
- name: cmake_args
|
|
type: string
|
|
default: " "
|
|
- name: nib310rioDebPackageDir
|
|
type: string
|
|
default: ""
|
|
|
|
steps:
|
|
- script: |
|
|
set -euo pipefail
|
|
sudo pbuilder create --debootstrapopts --variant=buildd --distribution ${{ parameters.ubuntuReleaseName }}
|
|
displayName: Setup pbuilder
|
|
- script: |
|
|
set -euo pipefail
|
|
mkdir -p ${{ parameters.uhdInstallerDir }}
|
|
cd ${{ parameters.uhdSrcDir }}
|
|
pbuilder_args=()
|
|
if [[ -n "${{ parameters.nib310rioDebPackageDir }}" ]]; then
|
|
pushd "${{ parameters.nib310rioDebPackageDir }}"
|
|
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
|
|
popd
|
|
pbuilder_args+=(--pbuilder-extra-apt-repo "${{ parameters.nib310rioDebPackageDir }}")
|
|
fi
|
|
python3 tools/debs/uhd_ubuntu_deb.py ${{ parameters.ubuntuReleaseName }} --buildpath ${{ parameters.uhdInstallerDir }} "${pbuilder_args[@]}"
|
|
displayName: Build dsc and debs
|