mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
62aa4ca25a
commit
b96f8e4c12
|
@ -28,11 +28,13 @@ do_unpack2() {
|
|||
# The downloaded 37962 filename is actually lms+7.1.20.25.zip.
|
||||
# It contains lms-7.1.20-25.tar.gz.
|
||||
# It contains lms-7.1.20-25.tar.gz untars to lms-7.1.20
|
||||
if [ -e "${WORKDIR}/37962" ]; then
|
||||
mv ${WORKDIR}/37962 ${WORKDIR}/${PN}+${PV}.${PV_SUB}.zip
|
||||
unzip -o ${WORKDIR}/${PN}+${PV}.${PV_SUB}.zip
|
||||
mv ${WORKDIR}/${PN}-${PV}/outputdir/${PN}-${PV}-${PV_SUB}.tar.gz ${WORKDIR}/
|
||||
cd ${WORKDIR}
|
||||
tar -xvzf ${PN}-${PV}-${PV_SUB}.tar.gz
|
||||
fi
|
||||
}
|
||||
|
||||
addtask unpack2 after do_unpack before do_patch
|
||||
|
|
Loading…
Reference in New Issue
Block a user