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 <dmukhin@ford.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Denis Mukhin 2025-05-14 22:16:18 +00:00 committed by Khem Raj
parent 09d3af94b0
commit 1d6095b73f
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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"