summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Mukhin <dmukhin@ford.com>2025-05-14 22:16:18 +0000
committerKhem Raj <raj.khem@gmail.com>2025-05-14 15:51:46 -0700
commit1d6095b73fa21062fde2b347cd61b6c5104390d9 (patch)
treec53061729aff31ef9a6095327f26b8faacb9e7cb
parent09d3af94b0448b0d50d4494d723997006175d55c (diff)
downloadmeta-openembedded-1d6095b73fa21062fde2b347cd61b6c5104390d9.tar.gz
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>
-rw-r--r--meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb16
1 files 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 = " \
12 file://0002-Makefile-add-conditional-stripping.patch \ 12 file://0002-Makefile-add-conditional-stripping.patch \
13 " 13 "
14 14
15EXTRA_OEMAKE = "NOSTRIP=1" 15EXTRA_OEMAKE = "NOSTRIP=1 DESTDIR=${D} PREFIX=${prefix}"
16 16
17PV = "1.0+${SRCPV}" 17PV = "1.0+${SRCPV}"
18 18
19S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"
20 20
21do_install () { 21do_install() {
22 oe_runmake DESTDIR=${D} PREFIX=/usr install 22 oe_runmake install
23}
24
25do_install:append:class-nativesdk() {
26 # QA override: omit packaging dediprog's udev rule under /etc/udev.
27 # The file resides outside the nativesdk ${prefix} and must not pollute the
28 # host environment.
29 rm -rf ${D}/etc
23} 30}
24 31
25FILES:${PN} += " \ 32FILES:${PN} += " \
33 ${bindir} \
26 ${datadir}/DediProg \ 34 ${datadir}/DediProg \
27" 35"
28 36
29inherit pkgconfig 37inherit pkgconfig
38
39BBCLASSEXTEND += " native nativesdk"