mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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:
parent
09d3af94b0
commit
1d6095b73f
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user