Can you give me an example how to modify my recipe?
I attach the simple code below:
##### myweb.bb ######
SUMMARY = "myweb"
SECTION = "example"
LICENSE = "CLOSED"

SRC_URI = "file://myweb.zip"

DEPENDS = "apache2"

S = "${WORKDIR}"

do_install () {
        install -d ${D}/usr/share/apache2/htdocs/
        cp -r ${S}/myweb/* ${D}/usr/share/apache2/htdocs/
}
FILES_${PN} += "/usr/share/apache2/htdocs/*"
###########

Regards!

Stefan Jaritz
------------------------------------------------------------
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.



Von:    "Burton, Ross" <ross.bur...@intel.com>
An:     s.jar...@esa-grimma.de
Kopie:  "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Datum:  28.09.2016 15:44
Betreff:        Re: [yocto] What is the common way to extend an package 
without bbappend?




On 28 September 2016 at 14:40, <s.jar...@esa-grimma.de> wrote:
When populate_sysroot is called in myweb.bb finishes with the error: 

myweb-1.0-r0 do_populate_sysroot: The recipe myweb is trying to install 
files into a shared area when those files already exist. Those files and 
their manifest location are: 
  
 
/home/user/myTC/poky/build/tmp/sysroots/sama5d3xek/usr/share/apache2/htdocs/index.html
 


because the index.html needs to be overwritten. 

Is there a easy way to overwrite or tell bitbake to uses my index.html? 

Put the myweb content into an entirely new directory and drop a 
configuration file in that tells apache to server from your own directory?

Ross
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to