summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-oe/recipes-support/dfu-util/dfu-util-native_0.10.bb
blob: 4641b0181aef246b0614915c7275f2998b2eb9e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require dfu-util_${PV}.bb

inherit deploy native

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] = ""