Hej
I like to build an package out of a git repro. This git repro contains
compressed files. One of these files I like to copy into my package. I
looked into the documentation, but it is only described how to use the
fetcher of bitbake. Think I need to add some extra lines of instruction
after fetching.
Maybe you have an idea how to solve that.
My example:
#Source:
-> gitsm:/myGitServer.com/UnpackExample;protocol=http;branch=master
-> Dir struct:
- UnpackExample
- win
- linux
- x86
- arm
- example.tar.gz
#Dest:
example.tar.gz -> opt/*.*
del opt/xyz.bin
#Pseudo recipe:
SUMMARY = "my test"
SECTION = "test"
LICENSE = "CLOSED"
PVBASE := "${PV}"
PV = "${PVBASE}.${SRCPV}"
SRCREV = "${AUTOREV}"
SRC_URI =
"gitsm:/myGitServer.com/UnpackExample;protocol=http;branch=master"
S = "${WORKDIR}/git/linux/arm"
??? do_fetch_append () {
??? extract ${S}/example.tar.gz
??? }
??? do_install () {
??? copy ${S}/ ${D}/opt/
??? }
FILES_${PN} += "/opt/*"
# skip QA that is checking for the GNU_HASH
INSANE_SKIP_${PN} += "ldflags"
########## end of recipe ####################
Regards!
Stefan
------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jar...@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@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto