[yocto] modify a recipe file - proftpd
Hello, I'm very new to the Yocto Project and I got a Barix module that is to be developped with Yocto. I managed to insert the desired programs into the linux image (nano, rsync, mc, proftpd, vlc) by modifying a recipe file but now I'd like to make some changes. I thought I would start with modifying the proftpd.conf file. As I read the manuals it is clear to me that the best way to do this to make .append files. I created my own proftpd.conf file, modified it a bit, example I only renamed the default server name. After that I modified the bb recipe file's sources section this way: SRC_URI = "ftp://ftp.proftpd.org/distrib/source/${BPN}-${PV}.tar.gz \ file://proftpd.conf \ file://basic.conf.patch \ file://proftpd-basic.init \ file://default \ file://close-RequireValidShell-check.patch \ file://contrib.patch \ file://build_fixup.patch \ file://proftpd.service \ " The red one is a new file among the other patch files however my slight changes will not bitbake. The proftpd is going to be in the image, but with a its default proftpd.conf file. It looks like my config file never gets inserted in the target. Could you please help me out how should I start with this proftpd customisation? Thanks, Zoli -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] meta-layer raspberry
Hello, Do you know if I include tha raspberrypi layer it would compile to a raspberry pi 1 machine as well or only to the later models? thanks, Zoli -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] meta-layer raspberry
Cool, thanks! On 2018. Oct 20., Sat at 0:04, Andrei Gherzan wrote: > > Hi, > > On Fri, Oct 19, 2018 at 11:39 PM Zolee K > wrote: > >> Hello, >> >> Do you know if I include tha raspberrypi layer it would compile to a >> raspberry pi 1 machine as well or only to the later models? >> >> > RaspberryPi 1 should work just fine. > -- > Andrei Gherzan > -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] adding new layer
Hi, I created a new layer, modified the conf file content according to the decumentation: # We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}" # We have recipes-* directories, add to BBFILES BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "saxo" BBFILE_PATTERN_saxo = "^${LAYERDIR}/" BBFILE_PRIORITY_saxo = "4" I copied the proftpd folder with a working bbappend file into the meta-saxo folder. But during bitbake I got an error massage: Warning: No bb files matched BBFILE_PATTERN_saxo '^/home/kz/oe-core/build/../stuff/meta-saxo/' I played around with the priority without success. Do you have any idea what am I doing wrong? I'd like to collect all my modifications in 1 layer. Thanks, Zoli -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] time zone
Hi All, I noticed in my device that the time is 2 hours early and UTC. Could you suggest a correct way to set the timezone with a recipe file to Europe/Budapest? Thanks, Zoli -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] adding own shell script
Hi all, I'd like to install my own test.sh script into the image, I created this recipe file, however I dont know how to have bitbake put the my test.sh into /etc folder SUMMARY = "test.sh" LICENSE = "Z" SRC_URI = "\ file://test.sh \ " do_configure(){ : } do_compile() { : } do_install() { install -d ${D}${sysconfdir} install -m 0770 ${WORKDIR}/test.sh ${D}${sysconfdir}/test.sh } -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] adding own shell script to the image
Hi All, I'm struggling with this: The error message: /home//recipes-z/testing/testing.bb: Unable to get checksum for testing SRC_URI entry testscript: *file could not be found* Which I don't understand, since the file is definitaly there:-( Could you please help me out with this? # this is my test folder: testing/ ├── file │ └── testscript └── testing.bb # cat testing/testing.bb DESCRIPTION = "test script" LICENSE = "Z" SRC_URI = "file://testscript" SRC_URI[md5sum] = "e51375ed8c617ea7a6ac39b81c757e39" do_install() { install -d ${D}${bindir} install -m 0770 testscript ${D}${bindir} } ### cat testing/file/testscript #!/bin/sh echo "hello world" -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] include own script
Hi All, Could you help me out with this? I've been experimenting with this without success, some of you have given me suggestions but neither of them worked yet. ### /recipes-z/testing$ cat testscript.bb DESCRIPTION = "test script" LICENSE = "Zoli" SRC_URI = "file://testscript" SRC_URI[md5sum] = "e51375ed8c617ea7a6ac39b81c757e39" FILESEXTRAPATHS_prepend := "${THISDIR}/file:" S= "${WORKDIR}" do_install() { install -d ${D}${bindir} install -m 0770 testscript ${D}${bindir} } # recipes-z/testing$ cat files/testscript #!/bin/sh echo "hello world" ERROR: testscript-1.0-r0 do_populate_lic: Fatal QA errors found, failing task. ERROR: testscript-1.0-r0 do_populate_lic: Function failed: populate_lic_qa_checksum ERROR: Logfile of failure stored in: /home/kerenyiz/oe-core/build/tmp-glibc/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/testscript/1.0-r0/temp/log.do_populate_lic.4044 ERROR: Task (/home//recipes-z/testing/testscript.bb:do_populate_lic) failed with exit code '1' -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] force a factory-preset sdk to quemu
Hi All, I got my board with Yocto based SDK but there is no quemu in the configfile by default. Is it possible to add quemu capability manually to factory-preset sdk? Id like to run the linux in an emulated enviroment, its quiet boring to burn the sd card for each and every minor changes that I make. Thank, Zoli -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] force a factory-preset sdk to quemu
Thanks for the tip! I'll do it! On 2018. Nov 2., Fri at 10:08, Kosta Zertsekel wrote: > On Fri, Nov 2, 2018, 10:28 Zolee K wrote: > >> I got my board with Yocto based SDK but there is no quemu in the >> configfile by default. Is it possible to add quemu capability manually to >> factory-preset sdk? >> > If Yocto SDK you have is actually Yocto eSDK (extended SDK), you can try > the below: > $ MACHINE=qemux86 bitbake build-image > > --- Kosta Z > >> -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] include own script - custon location
Hi, I'd like to include a javascript file in the target machine in a custom location. I got an warning while bitbake: wavesurfer-1.0-r0 do_package: QA Issue: wavesurfer: Files/directories were installed but not shipped in any package: /usr /usr/local /usr/local/www /usr/local/www/sys /usr/local/www/sys/js /usr/local/www/sys/js/wavesurfer.js Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. wavesurfer: 6 installed and not shipped files. [installed-vs-shipped] Here is the bb file: SUMMARY = "Waveform generator" LICENSE = "CLOSED" LIC_FILES_CHKSUM = "" SRC_URI = "file://wavesurfer.js" SRC_URI[md5sum] = "523052e51d8668b849abaa303404de3e" FILESEXTRAPATHS_prepend := "${THISDIR}/file:" S= "${WORKDIR}" do_install() { install -d ${D}/usr/local/www/sys/js install -m 0644 wavesurfer.js ${D}/usr/local/www/sys/js } I guess something is wrong with the do-install function, I thought it would put the file in the image, but it doesn't. Please help me out on this. Thanks, Zolee -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto