summaryrefslogtreecommitdiff
path: root/recipes/dfu-util/dfu-util-native_svn.bb
blob: ad0bece8fac7ea3c996b6ee2d75b655b75e18a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require dfu-util_${PV}.bb

inherit native

DEPENDS = "libusb-native usbpath-native"

do_stage() {
	install -d ${STAGING_BINDIR_NATIVE}
	install -m 0755 src/dfu-util ${STAGING_BINDIR_NATIVE}/dfu-util-${PV}
	rm -f ${STAGING_BINDIR_NATIVE}/dfu-util
	ln -sf ./dfu-util-${PV} ${STAGING_BINDIR_NATIVE}/dfu-util
}

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