Commit a823ed05 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Tom Rini

scripts: pass %{_smp_mflags} to make(1) in scripts/package/mkspec

This patch passes %{_smp_mflags} to various build phases in
scripts/package/mkspec so that -j$N is honored by make rpm.

From: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent deea123d
......@@ -57,14 +57,14 @@ fi
echo "%build"
if ! $PREBUILT; then
echo "make clean && make"
echo "make clean && make %{_smp_mflags}"
echo ""
fi
echo "%install"
echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make modules_install'
echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{_smp_mflags} modules_install'
echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$KERNELRELEASE"
echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$KERNELRELEASE"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment