diff options
Diffstat (limited to 'recipes/dfu-util/dfu-util-native_svn.bb')
-rw-r--r-- | recipes/dfu-util/dfu-util-native_svn.bb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/dfu-util/dfu-util-native_svn.bb b/recipes/dfu-util/dfu-util-native_svn.bb new file mode 100644 index 0000000000..ad0bece8fa --- /dev/null +++ b/recipes/dfu-util/dfu-util-native_svn.bb @@ -0,0 +1,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 |