aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2012-07-16 17:13:47 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-07-16 17:13:47 -0600
commit1dde2b2384d5edd4a7991ceb21ee11995c9435cb (patch)
treeaaf4052fa68481f1d68543af272628f5472f2e7a /scripts
parent84ce852b89136e29b4194f1a022398d7fa9f0831 (diff)
allow skipping stages
Signed-off-by: John Rigby <john.rigby@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/package_kernel39
1 files changed, 31 insertions, 8 deletions
diff --git a/scripts/package_kernel b/scripts/package_kernel
index 0e02e5b..256af08 100755
--- a/scripts/package_kernel
+++ b/scripts/package_kernel
@@ -281,6 +281,11 @@ trap cleanup EXIT
keyarg=""
+do_merge='true'
+do_create_source_pkg='true'
+do_test_build_source_pkg='true'
+do_publish_source_pkg='true'
+
# process command line arguments
#
while (( $# > 0 )) ; do
@@ -309,15 +314,33 @@ while (( $# > 0 )) ; do
done
check_settings
-setup_kernel_git # cd's to kernel_build/linux
- fixup_socflavour_contents
- fixup_socflavour_filenames
- fixup_vars_file
- add_config
- finish_changelog
- create_source_pkg
- cd .. # now in kernel_build
+
+test "$do_merge" == "true" && {
+ setup_kernel_git # cd's to kernel_build/linux
+ fixup_socflavour_contents
+ fixup_socflavour_filenames
+ fixup_vars_file
+ add_config
+ finish_changelog
+ cd ../..
+}
+
+test "$do_create_source_pkg" == "true" && {
+ cd kernel_build/linux
+ create_source_pkg
+ cd ../..
+}
+
+test "$do_test_build_source_pkg" == true && {
+ cd kernel_build
test_build_source_pkg
+ cd ..
+}
+
+test "$do_publish_source_pkg" == true && {
+ cd kernel_build
publish_source_pkg
+ cd ..
+}
exit 0