diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-25 10:39:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-25 10:39:51 +0000 |
commit | b96f8e4c12f65b21851d00ea7de2bc53d03eafb2 (patch) | |
tree | e4fc25a32197b678a94c391e7532febee209af69 /common/recipes-bsp/amt | |
parent | 62aa4ca25a943c864838b2910c5b506cca0c9323 (diff) | |
download | meta-intel-b96f8e4c12f65b21851d00ea7de2bc53d03eafb2.tar.gz |
lms: Ensure do_unpack2 task can rerun
If something triggers a rebuild of the do_unpack2 task, it will fail if its
already run once. This patch ensures that it can be called multiple times.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'common/recipes-bsp/amt')
-rw-r--r-- | common/recipes-bsp/amt/lms_7.1.20.bb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/common/recipes-bsp/amt/lms_7.1.20.bb b/common/recipes-bsp/amt/lms_7.1.20.bb index 3fd8c278..1a901f7b 100644 --- a/common/recipes-bsp/amt/lms_7.1.20.bb +++ b/common/recipes-bsp/amt/lms_7.1.20.bb | |||
@@ -25,14 +25,16 @@ INITSCRIPT_PARAMS = "defaults" | |||
25 | PV_SUB = "25" | 25 | PV_SUB = "25" |
26 | 26 | ||
27 | do_unpack2() { | 27 | do_unpack2() { |
28 | # The downloaded 37962 filename is actually lms+7.1.20.25.zip. | 28 | # The downloaded 37962 filename is actually lms+7.1.20.25.zip. |
29 | # It contains lms-7.1.20-25.tar.gz. | 29 | # It contains lms-7.1.20-25.tar.gz. |
30 | # It contains lms-7.1.20-25.tar.gz untars to lms-7.1.20 | 30 | # It contains lms-7.1.20-25.tar.gz untars to lms-7.1.20 |
31 | mv ${WORKDIR}/37962 ${WORKDIR}/${PN}+${PV}.${PV_SUB}.zip | 31 | if [ -e "${WORKDIR}/37962" ]; then |
32 | unzip -o ${WORKDIR}/${PN}+${PV}.${PV_SUB}.zip | 32 | mv ${WORKDIR}/37962 ${WORKDIR}/${PN}+${PV}.${PV_SUB}.zip |
33 | mv ${WORKDIR}/${PN}-${PV}/outputdir/${PN}-${PV}-${PV_SUB}.tar.gz ${WORKDIR}/ | 33 | unzip -o ${WORKDIR}/${PN}+${PV}.${PV_SUB}.zip |
34 | cd ${WORKDIR} | 34 | mv ${WORKDIR}/${PN}-${PV}/outputdir/${PN}-${PV}-${PV_SUB}.tar.gz ${WORKDIR}/ |
35 | tar -xvzf ${PN}-${PV}-${PV_SUB}.tar.gz | 35 | cd ${WORKDIR} |
36 | tar -xvzf ${PN}-${PV}-${PV_SUB}.tar.gz | ||
37 | fi | ||
36 | } | 38 | } |
37 | 39 | ||
38 | addtask unpack2 after do_unpack before do_patch | 40 | addtask unpack2 after do_unpack before do_patch |