Skip to content

Set RPM_BUILD_CPUS earlier

Major Hayden requested to merge set-cpu-count-for-rpm-earlier into master

When kernel source RPMs are built, a script runs the following:

rpm --eval %{_smp_mflags}

That returns the total number of CPUs on the system, not in the container. Instead, set the RPM_BUILD_NCPUS environment variable earlier so that it is obeyed when creating the source RPM.

Signed-off-by: Major Hayden major@redhat.com

Merge request reports