diff options
author | Rob Savoye <rob.savoye@linaro.org> | 2015-04-28 13:02:04 -0600 |
---|---|---|
committer | Rob Savoye <rob.savoye@linaro.org> | 2015-04-28 13:02:04 -0600 |
commit | 158a4e81e44ad7fa10e3cdf27ec2eb202c8b2817 (patch) | |
tree | 3e537899e9f93abc685d355e6a237146bad2a497 /scripts | |
parent | 63aeecb0ce7642b0226914db8fe97deaf3adb63e (diff) |
allow the C library to be specified
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/MakeRelease.job | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/MakeRelease.job b/scripts/MakeRelease.job index 071ef7e8..802a0263 100755 --- a/scripts/MakeRelease.job +++ b/scripts/MakeRelease.job @@ -75,23 +75,31 @@ if test x"${date}" != x; then release="${date}" fi +libc= +if test x"${clibrary}" != x; then + # ELF based targets are bare metal only + if test "`echo ${target} | grep -c linux`"; then + libc="--set libc=${clibrary}" + fi +fi + # Build a toolchain, run the tests, and the create a source release as a tarball if test x"${tarsrc}" = x"yes"; then $CONFIG_SHELL ${abe_dir}/abe.sh --release ${release} \ - --tarsrc ${check} gcc=${gcc_source} ${platform} -build all + --tarsrc ${check} gcc=${gcc_source} ${platform} -build all ${libc} fi # Build a binary release tarball, then run the tests on the installed binaries if test x"${tarbin}" = x"yes"; then # Canadian cross builds require a Linux hosted cross compiler first if test x"${canadian}" = x"true"; then - $CONFIG_SHELL ${abe_dir}/abe.sh --disable update --release ${release} ${check} gcc=${gcc_src} binutils=${binutils_src} ${platform} --build all + $CONFIG_SHELL ${abe_dir}/abe.sh --disable update --release ${release} ${check} gcc=${gcc_src} binutils=${binutils_src} ${platform} --build all ${libc} host="--host i686-w64-mingw32" rm -fr ${local_builds}/${host}/${target}/ else host="" fi - $CONFIG_SHELL ${abe_dir}/abe.sh --disable update --release ${release} --tarbin ${check} gcc=${gcc_source} ${platform} ${host} --build all + $CONFIG_SHELL ${abe_dir}/abe.sh --disable update --release ${release} --tarbin ${check} gcc=${gcc_source} ${platform} ${host} --build all ${libc} fi # force a failure if abe has build problems. |