diff options
author | Wookey <wookey@wookware.org> | 2013-06-05 02:55:55 +0100 |
---|---|---|
committer | Wookey <wookey@wookware.org> | 2013-06-05 02:55:55 +0100 |
commit | 1035d14538851bcf621dcdaaf240f94a997890d8 (patch) | |
tree | 23198855b540222f598f2d350ee10731fd444793 | |
parent | d608ac76e6962a1b125129d326b30d92b8efcd42 (diff) |
Run configchrootforarch script to set up chroot for target arch
-rwxr-xr-x | scripts/package_kernel | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/package_kernel b/scripts/package_kernel index cb09f86..391d382 100755 --- a/scripts/package_kernel +++ b/scripts/package_kernel @@ -86,7 +86,7 @@ set_if_notset() { test "${!1}" && return 0 info "defaulting $1 to $2" - eval "export $1=$2" + eval export $1="$2" } must_be_set() @@ -105,7 +105,7 @@ should_be_set() test "${!1}" && return 0 warn "$1 should be set \ using default ${!2} from $2" - eval "export $1=${!2}" + eval export $1="${!2}" } check_settings() @@ -114,7 +114,6 @@ 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" @@ -406,8 +405,8 @@ sbuild_source_pkg() packagetag=$(changelog_get debian.linaro/changelog "Version") cd ../../out #$keyarg won't work if its '-uc -us' - #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} + #arch-specific hackery: arm64 chroot cannot be exactly the same + sbuild --host $DEBARCH --chroot-setup-commands="configchrootforarch $DEBARCH" --nolog -d $distribution $keyarg -c ${distribution}-amd64-sbuild ${packagename}_${packagetag} } |