[oe] [meta-oe][PATCH v2] hwdata: add new recipe

Burton, Ross ross.burton at intel.com
Mon Apr 25 12:18:03 UTC 2016


On 25 April 2016 at 10:35, Dai Caiyun <daicy.fnst at cn.fujitsu.com> 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



More information about the Openembedded-devel mailing list