mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 21:09:03 +02:00
lms7: re-write do_unpack to fix warning
Since the primary tarball unpacks into a non-standard directory create a do_unpack that sets and resets to first unpack the primary tarball and then unpacks the actual src tarball into the correct directory. This is similar to lsof which has a dual tarball also. Fixes this WARNING: WARNING: /srv/hdd/intel/test/tmp/work/corei7-64-poky-linux/lms7/7.1.20-r0/lms-7.1.20 ('S') doesn't exist, please set 'S' to a proper value [YOCTO #7551] Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
This commit is contained in:
parent
8a76aa82e7
commit
4739f47e93
|
@ -12,6 +12,8 @@ SRC_URI = "http://software.intel.com/sites/default/files/m/4/e/a/9/b/37962-${BPN
|
|||
file://atnetworktool-printf-fix.patch \
|
||||
file://readlink-declaration.patch"
|
||||
|
||||
LOCALSRC = "file://${WORKDIR}/outputdir/${BPN}-${PV}-${PV_SUB}.tar.gz"
|
||||
|
||||
COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=7264184cf88d9f27b719a9656255b47b"
|
||||
|
@ -24,12 +26,18 @@ inherit autotools update-rc.d
|
|||
INITSCRIPT_NAME = "lms7"
|
||||
INITSCRIPT_PARAMS = "defaults"
|
||||
|
||||
do_unpack2() {
|
||||
cd ${WORKDIR}
|
||||
tar -xvzf ${WORKDIR}/outputdir/${BPN}-${PV}-${PV_SUB}.tar.gz
|
||||
python do_unpack() {
|
||||
s = d.getVar('S', True)
|
||||
d.setVar('S', '${WORKDIR}/outputdir')
|
||||
bb.build.exec_func('base_do_unpack', d)
|
||||
# temorarily change SRC_URI for unpack
|
||||
src_uri = d.getVar('SRC_URI')
|
||||
d.setVar('SRC_URI', '${LOCALSRC}')
|
||||
d.setVar('S', s)
|
||||
bb.build.exec_func('base_do_unpack', d)
|
||||
d.setVar('SRC_URI', src_uri)
|
||||
}
|
||||
|
||||
addtask unpack2 after do_unpack before do_patch
|
||||
|
||||
do_install_append () {
|
||||
mv ${D}/${sbindir}/lms ${D}/${sbindir}/lms7
|
||||
|
|
Loading…
Reference in New Issue
Block a user