diff options
author | zhengruoqin <zhengrq.fnst@cn.fujitsu.com> | 2020-12-01 10:17:30 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-11-30 22:42:20 -0800 |
commit | a7ea60d81596dc6dc15a17d9a0b184be49f2f7d7 (patch) | |
tree | 67b16b55ac09e7b450474eb89ae8a2ef5da4cd24 /meta-oe/recipes-support/dfu-util/dfu-util-native_0.10.bb | |
parent | 89eb9a1ddeb278c79fef8258e500bc02306a361f (diff) | |
download | meta-openembedded-contrib-a7ea60d81596dc6dc15a17d9a0b184be49f2f7d7.tar.gz |
dfu-util: upgrade 0.9 -> 0.10
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/dfu-util/dfu-util-native_0.10.bb')
-rw-r--r-- | meta-oe/recipes-support/dfu-util/dfu-util-native_0.10.bb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util-native_0.10.bb b/meta-oe/recipes-support/dfu-util/dfu-util-native_0.10.bb new file mode 100644 index 0000000000..4305e3b408 --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util-native_0.10.bb @@ -0,0 +1,24 @@ +require dfu-util_${PV}.bb + +inherit native deploy + +DEPENDS = "libusb1-native" + +PACKAGECONFIG ??= "" + +PACKAGECONFIG[static] = "CFLAGS='${CFLAGS} -pthread -static',," + +do_deploy() { + install -m 0755 src/dfu-util ${DEPLOYDIR}/dfu-util-${PV} + rm -f ${DEPLOYDIR}/dfu-util + ln -sf ./dfu-util-${PV} ${DEPLOYDIR}/dfu-util +} + +addtask deploy before do_package after do_install + +# cleandirs should possibly be in deploy.bbclass but we need it +do_deploy[cleandirs] = "${DEPLOYDIR}" +# clear stamp-extra-info since MACHINE_ARCH is normally put there by +# deploy.bbclass +do_deploy[stamp-extra-info] = "" + |