Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | require dfu-util_${PV}.bb |
| 2 | |
| 3 | inherit native deploy |
| 4 | |
| 5 | DEPENDS = "libusb1-native" |
| 6 | |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame^] | 7 | PACKAGECONFIG ??= "" |
| 8 | |
| 9 | PACKAGECONFIG[static] = "CFLAGS='${CFLAGS} -pthread -static',," |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 10 | |
| 11 | do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}" |
| 12 | do_deploy() { |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame^] | 13 | install -m 0755 src/dfu-util ${DEPLOYDIR}/dfu-util-${PV} |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 14 | rm -f ${DEPLOYDIR}/dfu-util |
| 15 | ln -sf ./dfu-util-${PV} ${DEPLOYDIR}/dfu-util |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 16 | } |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame^] | 17 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | addtask deploy before do_package after do_install |