aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWookey <wookey@wookware.org>2013-06-03 18:35:23 +0100
committerWookey <wookey@wookware.org>2013-06-03 18:35:23 +0100
commitd608ac76e6962a1b125129d326b30d92b8efcd42 (patch)
treef89429b3a7092b22280e85e1f5737d1c50b7fa47
parenteb2f588ac51af64e92e14020ca472fd78b1d230d (diff)
Add an option to pass extra options through to sbuild,crossbuild
to allow for architecture variation
-rwxr-xr-xscripts/package_kernel4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/package_kernel b/scripts/package_kernel
index fb840f6..cb09f86 100755
--- a/scripts/package_kernel
+++ b/scripts/package_kernel
@@ -114,6 +114,7 @@ check_settings()
set_if_notset "DEBARCH" "armhf"
set_if_notset "DEBARCHES" "armhf armel"
set_if_notset "HOST_PPA" "ppa:linaro-maintainers/staging-overlay"
+ set_if_notset "sbuild_options" ""
must_be_set "kernel_repo"
must_be_set "kernel_branch"
@@ -405,7 +406,8 @@ sbuild_source_pkg()
packagetag=$(changelog_get debian.linaro/changelog "Version")
cd ../../out
#$keyarg won't work if its '-uc -us'
- sbuild --host $DEBARCH --nolog -d $distribution $keyarg -c ${distribution}-amd64-sbuild ${packagename}_${packagetag}
+ #arch-specific hackery arm64 chroot cannot be exactly the same
+ sbuild --host $DEBARCH ${sbuild_options} --nolog -d $distribution $keyarg -c ${distribution}-amd64-sbuild ${packagename}_${packagetag}
}