blob: 76faefefbb4adb3d706dfbaa45cb219fa4d18ccb [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001require dfu-util_${PV}.bb
2
3inherit native deploy
4
5DEPENDS = "libusb1-native"
6
Brad Bishopdec060e2019-09-23 08:01:31 -04007PACKAGECONFIG ??= ""
8
9PACKAGECONFIG[static] = "CFLAGS='${CFLAGS} -pthread -static',,"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010
11do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}"
12do_deploy() {
Brad Bishopdec060e2019-09-23 08:01:31 -040013 install -m 0755 src/dfu-util ${DEPLOYDIR}/dfu-util-${PV}
Brad Bishopd7bf8c12018-02-25 22:55:05 -050014 rm -f ${DEPLOYDIR}/dfu-util
15 ln -sf ./dfu-util-${PV} ${DEPLOYDIR}/dfu-util
Patrick Williamsb48b7b42016-08-17 15:04:38 -050016}
Brad Bishopdec060e2019-09-23 08:01:31 -040017
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018addtask deploy before do_package after do_install