From 1d6095b73fa21062fde2b347cd61b6c5104390d9 Mon Sep 17 00:00:00 2001 From: Denis Mukhin Date: Wed, 14 May 2025 22:16:18 +0000 Subject: [PATCH] dediprog-flasher: enable native builds 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 Signed-off-by: Khem Raj --- .../dediprog-flasher/dediprog-flasher_1.14.20.bb | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb b/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb index 83a88ab75f..42256a7afd 100644 --- a/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +++ b/meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb @@ -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"