dediprog-flasher: enable native builds
PATCH v2 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.
--- .../dediprog-flasher_1.14.20.bb | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +17 -3
@@ -12,18 +12,32 @@ 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 redides outside the nativesdk ${prefix} and must not pollute the + # host environment. + rm -rf ${D}/etc } FILES:${PN} += " \ + ${bindir} \ ${datadir}/DediProg \ " +FILES:${PN}:append:class-target = " \ + ${sysconfdir}/udev \ +" + inherit pkgconfig + +BBCLASSEXTEND += " native nativesdk"
Signature · 1 line
2.34.1
Quoted 28 lines · On Wed, May 14, 2025 at 2:23 PM <[email protected]> wrote:
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]>--- .../dediprog-flasher_1.14.20.bb | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +1
-1@@ -12,18 +12,32 @@ 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"
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb SRC_URI = " \ · line 27
Quoted 10 lines
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +7
-2-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 redides outside the nativesdk ${prefix} and must not pollute the
^^^
Typo
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb SRC_URI = " \ · line 37
Quoted 10 lines
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +4
-0+ # host environment. + rm -rf ${D}/etc } FILES:${PN} += " \ + ${bindir} \ ${datadir}/DediProg \ " +FILES:${PN}:append:class-target = " \
I think we can do away with using target override here.
Quoted 10 lines
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +5
-1+ ${sysconfdir}/udev \ +" + inherit pkgconfig + +BBCLASSEXTEND += " native nativesdk" --2.34.1
Quoted 40 lines · Khem Raj
Quoted 28 lines · On Wed, May 14, 2025 at 2:23 PM <[email protected]> wrote:
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]>--- .../dediprog-flasher_1.14.20.bb | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +1
-1@@ -12,18 +12,32 @@ 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"meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb SRC_URI = " \ · line 27
Quoted 10 lines
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +7
-2-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 redides outside the nativesdk ${prefix} and must not pollute the^^^
Quoted 1 line
Typo
Thanks!
Quoted 5 lines
Quoted 5 lines
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +2
-0+ # host environment. + rm -rf ${D}/etc }
Quoted 8 lines
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb SRC_URI = " \ · line 37
Quoted 6 lines
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +2
-0FILES:${PN} += " \ + ${bindir} \ ${datadir}/DediProg \ " +FILES:${PN}:append:class-target = " \I think we can do away with using target override here.
Oh, that's right, thank you!
Quoted 11 lines
Quoted 11 lines
meta-oe/recipes-bsp/dediprog-flasher/dediprog-flasher_1.14.20.bb +5
-1+ ${sysconfdir}/udev \ +" + inherit pkgconfig + +BBCLASSEXTEND += " native nativesdk" --2.34.1