kernel-module-redpine: force short SHA1 revision length

So it matches what the bitbake recipe expects.

https://jira.digi.com/browse/DEL-870

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2013-11-19 12:54:21 +01:00
parent 6861e5dfcc
commit 6545748379
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ tarball:
install -m 0644 $${i} $(TAR_DIR)/$$(dirname $${i})/; \
done
cp -r RS.GENR.LNX.SD_GPL/include $(TAR_DIR)/RS.GENR.LNX.SD_GPL/
REV="$$(git rev-parse --short --verify HEAD)"; \
# The SHA1 length must match SRCREV_SHORT in bitbake recipe
REV="$$(git rev-parse --short=7 --verify HEAD)"; \
rm -f redpine-$(DEL_PLATFORM)-$${REV}.tar.gz && \
tar cz --transform 's,\(^[^/]\+/\),\1$(DEL_PLATFORM)/,' \
--numeric-owner --owner 0 --group 0 -f redpine-$(DEL_PLATFORM)-$${REV}.tar.gz -C $(TAR_DIR) .