exclude striping dir for sysroot

This commit is contained in:
Daniel
2019-09-08 21:29:11 +02:00
committed by GitHub
parent 337e29f666
commit 536a500f7e
+1 -1
View File
@@ -114,7 +114,7 @@ runit()
}
strip_n_pack()
{
find ${PREFIX} -type f | xargs file | grep "ELF" | cut -f 1 -d ":" | xargs strip -S --strip-unneeded #for host
find ${PREFIX} -type f -path ${PREFIX}/${TARGET} -prune -o -print | xargs file | grep "ELF" | cut -f 1 -d ":" | xargs strip -S --strip-unneeded #for host
find ${PREFIX}/${TARGET} -type f -name "*.a" | xargs ${TARGET}-strip -S --strip-unneeded #for sysroot
find ${PREFIX}/${TARGET} -type f -name "*.a" | xargs ${TARGET}-ranlib #for sysroot
find ${PREFIX}/${TARGET} -type f | xargs file | grep "ELF" | cut -f 1 -d ":" | xargs ${TARGET}-strip -S --strip-unneeded #for sysroot