diff options
author | Miguel Flores Silverio <floresmigu3l@gmail.com> | 2016-06-15 11:16:48 -0700 |
---|---|---|
committer | Laura Abbott <labbott@fedoraproject.org> | 2016-06-22 17:56:19 -0700 |
commit | e43790fe842c00d7ce79e40b827a8bb04bf2b71c (patch) | |
tree | 7e0b10c922cdb90c7c1d300539736934522c86fa | |
parent | fb65b02dcfa012909c25c04910d3c8a5aaa686e8 (diff) | |
download | kernel-e43790fe842c00d7ce79e40b827a8bb04bf2b71c.tar.gz kernel-e43790fe842c00d7ce79e40b827a8bb04bf2b71c.tar.xz kernel-e43790fe842c00d7ce79e40b827a8bb04bf2b71c.zip |
rpmbuild combination for bare minimum custom kernel
[labbott: Tweaked comment text to clarify]
Signed-off-by: Miguel Flores Silverio <floresmigu3l@gmail.com>
-rwxr-xr-x | scripts/fast-build.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/fast-build.sh b/scripts/fast-build.sh new file mode 100755 index 000000000..8286a110f --- /dev/null +++ b/scripts/fast-build.sh @@ -0,0 +1,13 @@ +#! /bin/sh +# Description: +# rpmbuild combo to build the given architecture without +# debugging information, perf or tools. +# +# Sample usage: +# ./fast-build.sh x86_64 kernel-4.7.0-0.rc1.git1.2.fc25.src.rpm + +if [ -z "$1" ] || [ -z "$2" ]; then + echo "usage: $0 [ arch ] [ kernel-x.x.x.fcxx.src.rpm ] " +fi + +rpmbuild --target $1 --without debug --without debuginfo --without perf --without tools --rebuild $2 |