[yocto] how to configure the build packages of a makefile based libary

SIVA SUBRAMANIAN.P psiva87 at gmail.com
Thu Apr 28 03:52:05 PDT 2016


If bins/libs are installed in non standard paths other than usr/bin or
/usr/lib in image directory, then you need to add them explicitly in
your recipe like

FILES_${PN} += "/lib/libxxxx.so"

On Thu, Apr 28, 2016 at 3:20 PM,  <S.Jaritz at esa-grimma.de> wrote:
> Hej
>
> I like to include the hiredis library. I created a recipe and modified the
> EXTRA_OEMAKE. The compilation works (in the git directory object, "so" and
> "a" files are generated). But the generated files are not placed into
> packages.
>
> Any ideas?
>
> below there is the "libhiredis.bb" file:
> #########
> SUMMARY = "libhiredis"
> SECTION = "sek4"
> LICENSE = "COPYING"
> LIC_FILES_CHKSUM =
> "file://${WORKDIR}/git/COPYING;md5=d84d659a35c666d23233e54503aaea51"
>
> # 0.13.3
> # SRCREV = "010756025e8cefd1bc66c6d4ed3b1648ef6f1f95"
> SRC_URI = "git://github.com/redis/hiredis.git;rev=v0.13.3"
>
> S = "${WORKDIR}/git/"
>
> # we need to pass the Cxx parameter extra to the make call
> EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS}
> -I${S}/include' 'BUILDDIR=${S}'"
> #########
>
> Regards!
> Stefan
>
> ------------------------------------------------------------
> ESA Elektroschaltanlagen Grimma GmbH
> Broner Ring 30
> 04668 Grimma
> Telefon: +49 3437 9211 176
> Telefax: +49 3437 9211 26
> E-Mail: s.jaritz at esa-grimma.de
> Internet: www.esa-grimma.de
>
>
> Geschäftsführer:
> Dipl.-Ing. Jörg Gaitzsch
> Jörg Reinker
>
> Sitz der Gesellschaft: Grimma
> Ust.-ID: DE 141784437
> Amtsgericht: Leipzig, HRB 5159
> Steuernummer: 238/108/00755
>
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen.
> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
> erhalten
> haben, informieren Sie bitte sofort den Absender und löschen Sie diese
> Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
> Mail
> ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information. If you
> are
> not the intended recipient (or have received this e-mail in error) please
> notify the sender immediately and destroy this e-mail. Any unauthorized
> copying, disclosure or distribution of the material in this e-mail is
> strictly
> forbidden.
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list