xref: /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/dfu-util/dfu-util-native_0.11.bb (revision 49e9566eb60669f7b1535f0653aa52a1c9ea8af0)
1*49e9566eSWilliam A. Kennington IIIrequire dfu-util_${PV}.bb
2*49e9566eSWilliam A. Kennington III
3*49e9566eSWilliam A. Kennington IIIinherit deploy native
4*49e9566eSWilliam A. Kennington III
5*49e9566eSWilliam A. Kennington IIIDEPENDS = "libusb1-native"
6*49e9566eSWilliam A. Kennington III
7*49e9566eSWilliam A. Kennington IIIPACKAGECONFIG ??= ""
8*49e9566eSWilliam A. Kennington III
9*49e9566eSWilliam A. Kennington IIIPACKAGECONFIG[static] = "CFLAGS='${CFLAGS} -pthread -static',,"
10*49e9566eSWilliam A. Kennington III
11*49e9566eSWilliam A. Kennington IIIdo_deploy() {
12*49e9566eSWilliam A. Kennington III    install -m 0755 src/dfu-util ${DEPLOYDIR}/dfu-util-${PV}
13*49e9566eSWilliam A. Kennington III    rm -f ${DEPLOYDIR}/dfu-util
14*49e9566eSWilliam A. Kennington III    ln -sf ./dfu-util-${PV} ${DEPLOYDIR}/dfu-util
15*49e9566eSWilliam A. Kennington III}
16*49e9566eSWilliam A. Kennington III
17*49e9566eSWilliam A. Kennington IIIaddtask deploy before do_package after do_install
18*49e9566eSWilliam A. Kennington III
19*49e9566eSWilliam A. Kennington III# cleandirs should possibly be in deploy.bbclass but we need it
20*49e9566eSWilliam A. Kennington IIIdo_deploy[cleandirs] = "${DEPLOYDIR}"
21*49e9566eSWilliam A. Kennington III# clear stamp-extra-info since MACHINE_ARCH is normally put there by
22*49e9566eSWilliam A. Kennington III# deploy.bbclass
23*49e9566eSWilliam A. Kennington IIIdo_deploy[stamp-extra-info] = ""
24*49e9566eSWilliam A. Kennington III
25