diff options
author | Rob Savoye <rob.savoye@linaro.org> | 2014-12-10 15:12:00 -0700 |
---|---|---|
committer | Rob Savoye <rob.savoye@linaro.org> | 2014-12-10 15:12:20 -0700 |
commit | 933267ef41bfac009bb7cc422bc547ae0305892f (patch) | |
tree | 5ef5da12c32019be39d10867cbbb4c72373e84f5 | |
parent | 72219d328fee4e334c19ce30d21806458b7fa494 (diff) |
don't try to package a non-existent sysroot for native tarballs
-rwxr-xr-x | lib/make.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/make.sh b/lib/make.sh index 2e0e1db..2460a2e 100755 --- a/lib/make.sh +++ b/lib/make.sh @@ -198,7 +198,7 @@ build_all() fi binary_toolchain fi - if test "`echo ${with_packages} | grep -c sysroot`" -gt 0; then + if test "`echo ${with_packages} | grep -c sysroot`" -gt 0 -a x"${build}" != x"${target}"; then binary_sysroot fi # if test "`echo ${with_packages} | grep -c gdb`" -gt 0; then @@ -568,10 +568,15 @@ make_install() if test x"${tool}" = x"gcc"; then local libs="`find ${builddir}/${target} -name \*.so\* -o -name \*.a`" - if test ! -e ${sysroots}/usr/lib; then - dryrun "mkdir -p ${sysroots}/usr/lib/" + if test "`echo ${target} | grep -c aarch64`" -gt 0 ; then + gcc_libpath=${sysroots}/usr/lib64/ + else + gcc_libpath=${sysroots}/usr/lib/ fi - dryrun "rsync -av ${libs} ${sysroots}/usr/lib/" + if test ! -e ${gcc_libpath}; then + dryrun "mkdir -p ${gcc_libpath}" + fi + dryrun "rsync -av ${libs} ${gcc_libpath}" fi if test "`echo ${tool} | grep -c glibc`" -gt 0 -a "`echo ${target} | grep -c aarch64`" -gt 0; then |