integ/base/pf-bb-config/centos/pf-bb-config.spec
Douglas Henrique Koerich 3f8401fe26 Add pf-bb-config configuration file for N3000
In the context of starting usage of pf-bb-config tool to configure the
N3000 (Intel FPGA) FEC device, it is necessary to include in the utility
package the corresponding file with the parameters set into the device.

For now, it is only fpga_5gnr/fpga_5gnr_config_vf.cfg from pf-bb-config
GitHub site (https://github.com/intel/pf-bb-config/tree/v21.6) that is
being taken for N3000 configuration, and used as is.

Task: 42784
Story: 2009036
Signed-off-by: Douglas Henrique Koerich <douglashenrique.koerich@windriver.com>
Change-Id: I219ddcf639f0ac80644b6f25cd50b883752c012e
2021-07-06 13:48:16 -03:00

47 lines
1.5 KiB
RPMSpec

%global git_sha d7d5f1ddd17b4c80e3e0d6ce87660926f58f8585
Summary: PF BBDEV (baseband device) Configuration Application.
Name: pf-bb-config
Version: 21.6
Release: 0%{?_tis_dist}.%{tis_patch_ver}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: https://github.com/intel/pf-bb-config/tree/v21.6
Source0: %{name}-%{git_sha}.tar.gz
Patch0: Reject-device-configuration-if-not-enabled.patch
BuildRequires: gcc
BuildRequires: inih
%define debug_package %{nil}
%description
The PF BBDEV (baseband device) Configuration Application "pf_bb_config" provides a means to
configure the baseband device at the host-level. The program accesses the configuration
space and sets the various parameters through memory-mapped IO read/writes.
%prep
%setup
%patch0 -p1
%build
make
%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/pf-bb-config/acc100
install -p -D -m 700 pf_bb_config %{buildroot}%{_bindir}/pf_bb_config
install -p -D -m 700 acc100/acc100_config_1vf_4g5g.cfg %{buildroot}%{_datadir}/pf-bb-config/acc100/acc100_config_1vf_4g5g.cfg
install -p -D -m 700 acc100/acc100_config_vf_5g.cfg %{buildroot}%{_datadir}/pf-bb-config/acc100/acc100_config_vf_5g.cfg
install -p -D -m 700 fpga_5gnr/fpga_5gnr_config_vf.cfg %{buildroot}%{_datadir}/pf-bb-config/fpga_5gnr/fpga_5gnr_config_vf.cfg
install -p -D -m 644 README.md %{buildroot}%{_datadir}/pf-bb-config/README.md
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_datadir}/*