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 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 11 | do_deploy() { |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 12 | install -m 0755 src/dfu-util ${DEPLOYDIR}/dfu-util-${PV} |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | rm -f ${DEPLOYDIR}/dfu-util |
| 14 | ln -sf ./dfu-util-${PV} ${DEPLOYDIR}/dfu-util |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | } |
Brad Bishop | dec060e | 2019-09-23 08:01:31 -0400 | [diff] [blame] | 16 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 17 | addtask deploy before do_package after do_install |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 18 | |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 19 | # cleandirs should possibly be in deploy.bbclass but we need it |
| 20 | do_deploy[cleandirs] = "${DEPLOYDIR}" |
| 21 | # clear stamp-extra-info since MACHINE_ARCH is normally put there by |
| 22 | # deploy.bbclass |
| 23 | do_deploy[stamp-extra-info] = "" |
| 24 | |