Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fsl-u-boot-localversion.bbclass: Ensure git is run inside ${S}
Browse files Browse the repository at this point in the history
The tasks does not run inside ${S} by default anymore so we must
ensure to run Git inside it.

Change-Id: I9bba889ed13cc386d23fa4efdac2af5b46e2d65b
Signed-off-by: Otavio Salvador <[email protected]>
  • Loading branch information
otavio committed Aug 22, 2016
1 parent 53cfeee commit 075db78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/fsl-u-boot-localversion.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ UBOOT_LOCALVERSION = "${LOCALVERSION}"
do_compile_prepend() {
if [ "${SCMVERSION}" = "y" ]; then
# Add GIT revision to the local version
head=`git rev-parse --verify --short HEAD 2> /dev/null`
head=`cd ${S} ; git rev-parse --verify --short HEAD 2> /dev/null`
printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${S}/.scmversion
printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${B}/.scmversion
else
Expand Down

0 comments on commit 075db78

Please sign in to comment.