47a895f
#! /bin/sh
47a895f
# Description:
47a895f
#     rpmbuild combo to build the given architecture without
47a895f
#     debugging information, perf or tools.
47a895f
#
47a895f
# Sample usage:
47a895f
#     ./fast-build.sh x86_64 kernel-4.7.0-0.rc1.git1.2.fc25.src.rpm
47a895f
47a895f
if [ -z "$1" ] || [ -z "$2" ]; then
47a895f
    echo "usage: $0 [ arch ] [ kernel-x.x.x.fcxx.src.rpm ] "
47a895f
fi
47a895f
47a895f
rpmbuild --target $1 --without debug --without debuginfo --without perf --without tools --rebuild $2