mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-17 20:51:57 +02:00
Upgrade dfu-util from 0.7 to 0.8. Modify SRC_URI,since the original one can‘t be opened. Modify 0001-configure.ac-Don-t-check-for-usbpath.patch,since the datas has been changed. Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
20 lines
522 B
BlitzBasic
20 lines
522 B
BlitzBasic
require dfu-util_${PV}.bb
|
|
|
|
inherit native deploy
|
|
do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}"
|
|
|
|
DEPENDS = "libusb1-native"
|
|
|
|
FILESPATH =. "${FILE_DIRNAME}/${BPN}-${PV}:"
|
|
SRC_URI += "file://0002-Revert-Makefile.am-Drop-static-dfu-util.patch"
|
|
|
|
do_deploy() {
|
|
install -d ${DEPLOY_DIR_TOOLS}
|
|
install -m 0755 src/dfu-util_static ${DEPLOY_DIR_TOOLS}/dfu-util-${PV}
|
|
rm -f ${DEPLOY_DIR_TOOLS}/dfu-util
|
|
ln -sf ./dfu-util-${PV} ${DEPLOY_DIR_TOOLS}/dfu-util
|
|
|
|
}
|
|
|
|
addtask deploy before do_package after do_install
|