69365bb834
Integrates the following host configuration into the configuration framework: - Host boot parameters - CPU reservation - Process affinity - Memory huge page allocations Change-Id: I2259e0e93eefd5ce5000271fa32ecaa8d13fa411 Signed-off-by: Matt Peters <matt.peters@windriver.com>
80 lines
2.5 KiB
RPMSpec
80 lines
2.5 KiB
RPMSpec
Summary: Initial compute node hugepages and reserved cpus configuration
|
|
Name: compute-huge
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
License: Apache-2.0
|
|
Group: base
|
|
Packager: Wind River <info@windriver.com>
|
|
URL: unknown
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source1: LICENSE
|
|
|
|
BuildRequires: systemd-devel
|
|
Requires: systemd
|
|
Requires: python
|
|
Requires: /bin/systemctl
|
|
|
|
%description
|
|
Initial compute node hugepages and reserved cpus configuration
|
|
|
|
%define local_bindir /usr/bin/
|
|
%define local_etc_initd /etc/init.d/
|
|
%define local_etc_nova /etc/nova/
|
|
%define local_etc_goenabledd /etc/goenabled.d/
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
%{__python} -m compileall topology.py
|
|
|
|
%install
|
|
|
|
# compute init scripts
|
|
install -d -m 755 %{buildroot}%{local_etc_initd}
|
|
install -p -D -m 755 affine-platform.sh %{buildroot}%{local_etc_initd}/affine-platform.sh
|
|
|
|
# utility scripts
|
|
install -p -D -m 755 cpumap_functions.sh %{buildroot}%{local_etc_initd}/cpumap_functions.sh
|
|
install -p -D -m 755 task_affinity_functions.sh %{buildroot}%{local_etc_initd}/task_affinity_functions.sh
|
|
install -p -D -m 755 log_functions.sh %{buildroot}%{local_etc_initd}/log_functions.sh
|
|
install -d -m 755 %{buildroot}%{local_bindir}
|
|
install -p -D -m 755 ps-sched.sh %{buildroot}%{local_bindir}/ps-sched.sh
|
|
# TODO: Only ship pyc ?
|
|
install -p -D -m 755 topology.py %{buildroot}%{local_bindir}/topology.py
|
|
install -p -D -m 755 topology.pyc %{buildroot}%{local_bindir}/topology.pyc
|
|
install -p -D -m 755 affine-interrupts.sh %{buildroot}%{local_bindir}/affine-interrupts.sh
|
|
install -p -D -m 755 set-cpu-wakeup-latency.sh %{buildroot}%{local_bindir}/set-cpu-wakeup-latency.sh
|
|
install -p -D -m 755 bin/topology %{buildroot}%{local_bindir}/topology
|
|
|
|
# compute config data
|
|
install -d -m 755 %{buildroot}%{local_etc_nova}
|
|
install -p -D -m 755 compute_reserved.conf %{buildroot}%{local_etc_nova}/compute_reserved.conf
|
|
|
|
# goenabled check
|
|
install -d -m 755 %{buildroot}%{local_etc_goenabledd}
|
|
install -p -D -m 755 compute-huge-goenabled.sh %{buildroot}%{local_etc_goenabledd}/compute-huge-goenabled.sh
|
|
|
|
# systemd services
|
|
install -d -m 755 %{buildroot}%{_unitdir}
|
|
install -p -D -m 664 affine-platform.sh.service %{buildroot}%{_unitdir}/affine-platform.sh.service
|
|
|
|
%post
|
|
/bin/systemctl enable affine-platform.sh.service >/dev/null 2>&1
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{local_bindir}/*
|
|
%{local_etc_initd}/*
|
|
%{local_etc_goenabledd}/*
|
|
%config(noreplace) %{local_etc_nova}/compute_reserved.conf
|
|
|
|
%{_unitdir}/affine-platform.sh.service
|