Files
Martin JaMa Jansa c0ac88e928 dfu-util: add version 0.4
* return dfu-util_static, as static binary is more usefull from deploy dir
  I've tried to build static version with libtool, but in the end this
  is easier and someone can use both shared/static version
* Thanks to GNUtoo for initial recipes
  http://shr-project.org/trac/ticket/1465
* move usbpath dependency to dfu-util_0.1

Signed-off-by: Martin JaMa Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-14 13:18:27 +02:00

20 lines
510 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://0001-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