On 25 April 2016 at 10:35, Dai Caiyun <[email protected]> wrote:

> +do_compile() {
> +}
> +
> +do_install() {
> +    install -m 0744 -d ${D}${sysconfdir}/modprobe.d
> +    install -m 0644 -p ${S}/blacklist.conf ${D}/${sysconfdir}/modprobe.d
> +    install -m 0744 -d ${D}${datadir}/${PN}
> +    install -m 0644 -p ${S}/*.ids ${D}${datadir}/${PN}
> +    install -m 0644 -p ${S}/oui.txt ${D}${datadir}/${PN}
> +}
>

So upstream ships a hand-coded configure script that writes a Makefile.inc
that the hand-crafted (but sane) Makefile then reads.  I'd do this:

do_configure() {
  ${S}/configure --datadir=${datadir} --libdir=${libdir}
}

do_install() {
  oe_runmake install DESTDIR=${D}
}

This is untested, but should work and use the makefile that upstream
provides, instead of replicating the install logic.

Ross
-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to