abuild: assume GNU tar and store xattrs

This commit is contained in:
Timo Teräs 2014-11-01 17:09:34 +02:00
parent fd6f259cc2
commit 18594ff66c

View File

@ -1136,7 +1136,7 @@ create_apks() {
touch .dummy
set -- .dummy
fi
tar -c "$@" | abuild-tar --hash | gzip -9 >"$dir"/data.tar.gz
tar --xattrs -c "$@" | abuild-tar --hash | gzip -9 >"$dir"/data.tar.gz
msg "Create checksum..."
# append the hash for data.tar.gz
@ -1678,7 +1678,11 @@ stripbin() {
msg "Stripping binaries"
scanelf --recursive --nobanner --etype "ET_DYN,ET_EXEC" . \
| sed -e 's:^ET_DYN ::' -e 's:^ET_EXEC ::' \
| xargs -r ${CROSS_COMPILE}strip
| while read filename; do
XATTR=$(getfattr -d "${filename}")
${CROSS_COMPILE}strip "${filename}"
[ -n "$XATTR" ] && (echo "$XATTR" | setfattr --restore=-)
done
}
# simply list target apks