dediprog-flasher: enable native builds
PATCH v3 1/1 dediprog-flasher: enable native builds
From: Denis Mukhin <[email protected]>
Update dediprog-flasher recipe to support native class variants.
Normally, the recipe comes with a USB udev rule. Do not package USB udev rule into nativesdk artifacts because this will pollute the host environment, which is not desired.
Signed-off-by Denis Mukhin <[email protected]>
---
Changes since v2:
- fixed spelling
- dropped FILES target override
--- .../dediprog-flasher/dediprog-flasher_1.14.20.bb | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +13 -3
@@ -12,18 +12,28 @@ SRC_URI = " \ file://0002-Makefile-add-conditional-stripping.patch \ " -EXTRA_OEMAKE = "NOSTRIP=1" +EXTRA_OEMAKE = "NOSTRIP=1 DESTDIR=${D} PREFIX=${prefix}" PV = "1.0+${SRCPV}" S = "${WORKDIR}/git" -do_install () { - oe_runmake DESTDIR=${D} PREFIX=/usr install +do_install() { + oe_runmake install +} + +do_install:append:class-nativesdk() { + # QA override: omit packaging dediprog's udev rule under /etc/udev. + # The file resides outside the nativesdk ${prefix} and must not pollute the + # host environment. + rm -rf ${D}/etc } FILES:${PN} += " \ + ${bindir} \ ${datadir}/DediProg \ " inherit pkgconfig + +BBCLASSEXTEND += " native nativesdk"
Signature · 1 line
2.34.1