LetoThe2nd changed the topic of #yocto to: Welcome to the Yocto Project | Learn more: https://www.yoctoproject.org | Community: https://www.yoctoproject.org/community | IRC logs: http://irc.yoctoproject.org/irc/ | Having difficulty on the list, with someone on the list or on IRC, contact Yocto Project Community Manager Letothe2nd | CoC: https://www.yoctoproject.org/community/code-of-conduct
lexano has quit [Ping timeout: 272 seconds]
Perflosopher has joined #yocto
davidinux has quit [Ping timeout: 252 seconds]
davidinux has joined #yocto
jclsn has quit [Ping timeout: 256 seconds]
jclsn has joined #yocto
mrpelotazo has quit [Read error: Connection reset by peer]
mrpelotazo has joined #yocto
amitk has joined #yocto
xmn has quit [Ping timeout: 268 seconds]
enok has joined #yocto
thomas_34 has joined #yocto
<thomas_34> Hey good morning. I have a include files, which defines variables and tasks for a lot (20) of recipes. At which point makes it sense to convert that into a bbclass?
<thomas_34> Can someone explain me whats the difference in general between .inc-Files and bbclass? What is the bigger picture here?
hnez has joined #yocto
alessioigor has joined #yocto
alperak has joined #yocto
bharathbck has joined #yocto
<mcfrisk_> thomas_34: or a recipe which the 20 other recipes DEPEND at build time to use the headers
<mcfrisk_> bblasses are consumed by recipes and build tools, mostly. An .inc is a way for multiple recipes to share common stuff. bbclass can be used across layers, .inc needs to be in the same directory as recipes.
goliath has joined #yocto
<thomas_34> mcfrisk_, "An .inc is a way for multiple recipes to share common stuff." Is that also valid doing by bbclass?
<thomas_34> Or are bbclasses limited to only share common functions and not variables?
<mcfrisk_> thomas_34: bblasses can share anything which ends up in recipes, variables, funcions, asks etc etc
<mcfrisk_> but, a set of header files sounds like a SW package and thus would to me belong to a recipe.
<thomas_34> Ähm.. wait. Where does these "header files" come from?
<thomas_34> From me: "I have include files, which defines variables"... I mean I have .inc files with bitbake variables defined, which I reuse in lot of recipes
<mcfrisk_> thomas_34: ah my bad, too little coffee
<mcfrisk_> include files sounded too much like .h
enok has quit [Ping timeout: 272 seconds]
<thomas_34> Ahh okay, no. I'm entirely within bitbake ;)
<mcfrisk_> if the data is recipe variables etc for a small set of recipes, then an .inc. for a lot of recipes across layers, a bbclass
<mcfrisk_> but the things could also be in distro configuration, e.g. DISTRO_FEATURES, or in the machine config like MACHINE_FEATURES
<thomas_34> Ahhh... okay. The the "border" for .inc files are layers? Is that a "practical" distinction?
<mcfrisk_> how recipes find .inc, only recipes within same directory will find it. For bbclasses, all recipes from all layers will find them.
<thomas_34> Okay thank you. Now I get the bigger picture I guess
<mcfrisk_> no problem, hope this helps
rob_w has joined #yocto
olani has quit [Ping timeout: 264 seconds]
ptsneves has joined #yocto
linfax has joined #yocto
gsalazar has joined #yocto
mckoan|away is now known as mckoan
<mckoan> good morning
ablu has quit [Read error: Connection reset by peer]
enok has joined #yocto
ablu has joined #yocto
leon-anavi has joined #yocto
Kubu_work has joined #yocto
<thomas_34> Can I access a "recipe-variable" within a bbclass? Just asking if that should be possible, before I search for my error :S
<thomas_34> Example: recipe.bb: "foo = "bar" inherit class"     class.bbclass: "fooo = ${foo}"
enok has quit [Ping timeout: 256 seconds]
<landgraf> thomas_34: yes, you can.
<thomas_34> Thank you landgraf
vladest has quit [Ping timeout: 256 seconds]
hnez has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
olani has joined #yocto
thomas_44 has joined #yocto
thomas_34 has quit [Ping timeout: 250 seconds]
Saur_Home has quit [Quit: Client closed]
Saur_Home has joined #yocto
chep has joined #yocto
vladest has joined #yocto
hnez has joined #yocto
Saur_Home has quit [Quit: Client closed]
Saur_Home has joined #yocto
enok has joined #yocto
thomas_44 has quit [Quit: Client closed]
amitk_ has joined #yocto
amitk has quit [Ping timeout: 260 seconds]
ptsneves has quit [Ping timeout: 260 seconds]
rfuentess has joined #yocto
mvlad has joined #yocto
frieder has joined #yocto
phako_ has joined #yocto
michalsieron has joined #yocto
florian has joined #yocto
<michalsieron> hello there, I tried using `INCLUDE_PYCS = "0"` to remove `*.pyc` files from generated packages (from python3 recipe). However, it seems that many `.pyc` files are still being included. I guess it's because some packages in `python3-manifest.json` have empty list for the `.pyc` files (`"cached": []`)? Is there some nicer way of dealing with those
<michalsieron> files than using `find+rm` in .bbappend?
enok has quit [Ping timeout: 255 seconds]
Saur_Home has quit [Quit: Client closed]
Saur_Home has joined #yocto
LocutusOfBorg has quit [Read error: Connection reset by peer]
LocutusOfBorg has joined #yocto
LocutusOfBorg has quit [Read error: Connection reset by peer]
florian_kc has joined #yocto
LocutusOfBorg has joined #yocto
enok has joined #yocto
hnez has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jsandman has quit [Remote host closed the connection]
hnez has joined #yocto
starblue has quit [Ping timeout: 260 seconds]
tomzy has joined #yocto
starblue has joined #yocto
tomzy is now known as tomzy-0
Ad0 has joined #yocto
tomzy-0 has quit [Ping timeout: 250 seconds]
DvorkinDmitry has joined #yocto
<DvorkinDmitry> is it OK to put INITRAMFS_IMAGE = definition to image file?
<mcfrisk_> DvorkinDmitry: I wondered the same few days ago, conclusion was that no, it's not enough for image recipe to know which INITRAMFS_IMAGE to build. I kept this in distro config then.
<DvorkinDmitry> mcfrisk_, thank you
enok has quit [Ping timeout: 264 seconds]
tomzy has joined #yocto
xmn has joined #yocto
michalsieron has quit [Quit: Client closed]
TehRiizQ has joined #yocto
enok has joined #yocto
bharathbck has quit [Ping timeout: 250 seconds]
tomzy has quit [Quit: Client closed]
lexano has joined #yocto
ldywicki has joined #yocto
<rburton> DvorkinDmitry: initramfs_image is for a kernel, so no
<DvorkinDmitry> rburton, where is it better to place except local.conf?
<rburton> your distro or machine conf
<DvorkinDmitry> rburton, thank you
Saur_Home has quit [Quit: Client closed]
Saur_Home has joined #yocto
tomzy has joined #yocto
florian_kc has quit [Ping timeout: 255 seconds]
prabhakalad has quit [Quit: Konversation terminated!]
prabhakalad has joined #yocto
ptsneves has joined #yocto
thomas_34 has joined #yocto
<thomas_34> Is it possible to see somewhere the indicated patch? I'm really eager to see what was the cause
<rburton> RP: why would that be an unclosed function when there's just leading whitespace (or is the bitbake parser actually that strict and it needs the closing brace to be on a line of its own)
<thomas_34> rburton Thank you :) I can test this, when its merged
<thomas_34> RP, I dont know. Maybe its related that python is kinda strict about line indention etc...
<thomas_34> *indentation
TehRiizQ has quit [Ping timeout: 250 seconds]
rm5248 has joined #yocto
GillesM has joined #yocto
GillesM has quit [Client Quit]
Jones42 has joined #yocto
thomas_34 has quit [Ping timeout: 250 seconds]
phako_ has quit [Quit: Client closed]
ptsneves has quit [Ping timeout: 255 seconds]
<RP> rburton: the closing brace needs to be unintended to ensure it is different from whitespace indented python. Yes, it could work differently but it currently doesn't
<rburton> fair
<Jones42> Hi, at the Chemnitzer Linux-Tage last month, Marco Felsch from Pengutronix mentioned something about upstreaming their own image_types_verity.bbclass . Has someone already seen some patches flying around regarding that? I tried to search the mailing lists, but without success
Jones42 has quit [Ping timeout: 250 seconds]
simonew has joined #yocto
simonew has quit [Ping timeout: 250 seconds]
<Crofton> @shoragan: might know
Jones42 has joined #yocto
sakoman has quit [Ping timeout: 264 seconds]
tomzy has quit [Quit: Client closed]
sev99 has joined #yocto
vvn has quit [Quit: WeeChat 4.2.1]
vvn has joined #yocto
sakoman has joined #yocto
vladest has quit [Ping timeout: 256 seconds]
sudip has quit [Quit: ZNC - http://znc.in]
sudip has joined #yocto
<_sfo> Hi, I just saw bmaptool is now maintained by yocto. Is it okay to send patches via email directly to the maintainers?
vladest has joined #yocto
rob_w has quit [Remote host closed the connection]
sakoman has quit [Ping timeout: 240 seconds]
Jones71 has joined #yocto
Jones71 has quit [Client Quit]
Jones45 has joined #yocto
Jones42 has quit [Ping timeout: 250 seconds]
enok has quit [Ping timeout: 268 seconds]
Minvera has joined #yocto
simonew has joined #yocto
sakoman has joined #yocto
altru has joined #yocto
linfax has quit [Ping timeout: 260 seconds]
a1batross has quit [Ping timeout: 255 seconds]
leon-anavi has quit [Quit: Leaving]
altru has quit [Quit: Client closed]
<rburton> _sfo: pull requests to https://github.com/yoctoproject/bmaptool best
mvlad has quit [Remote host closed the connection]
Jones45 has quit [Ping timeout: 250 seconds]
goliath has quit [Quit: SIGSEGV]
enok has joined #yocto
simonew has quit [Quit: Client closed]
Bardon_ has joined #yocto
Bardon has quit [Ping timeout: 264 seconds]
Saur_Home has quit [Quit: Client closed]
Saur_Home has joined #yocto
frieder has quit [Remote host closed the connection]
mckoan is now known as mckoan|away
Guest1337 has joined #yocto
Guest1337 has quit [Client Quit]
<OnkelUlla> Jones42, Crofton: Still work in progress, currently getting polished a little bit.
sev99 has quit [Quit: Client closed]
rfuentess has quit [Remote host closed the connection]
enok has quit [Ping timeout: 264 seconds]
sev99 has joined #yocto
sakoman has quit [Ping timeout: 256 seconds]
<_sfo> rburton: Thanks, but I'm a GH outsider, that's why I'm asking.
Saur_Home has quit [Quit: Client closed]
Saur_Home has joined #yocto
Guest1337 has joined #yocto
<Guest1337> how do i create a symbolic link inside the image from a bitbake recipe?
<rburton> Guest1337: in a recipe's do_install, create a symlink
<rburton> $D is the 'root'
<Guest1337> do_install:append() {
<Guest1337>     install -d ${D}/${systemd_unitdir}/system
<Guest1337>     ln -s -r ${WORKDIR}/irst_boot.service ${WORKDIR}/multi-user.target.wants/first_boot.service
<Guest1337> }
<Guest1337> ive tried this
<Guest1337> however, getting build error: No such file or directory
<rburton> the workdir is the build tree, so that's no good
<rburton> you want ${D}
<rburton> well, ${D}/${systemd_unitdir}/system
amitk has joined #yocto
<Guest1337> oh so my do_install is also wrong I suppose
<Guest1337> do_install() {
<Guest1337>     install -d ${D}/${systemd_unitdir}/system
<Guest1337>     install -m 0644 \
<Guest1337>         ${WORKDIR}/first_boot.service \
<Guest1337>         ${WORKDIR}/usb_hub_control.service \
<Guest1337>         ${WORKDIR}/usb3_control.service \
<Guest1337>         ${D}/${systemd_unitdir}/system
<Guest1337>     install -d ${D}/etc/first_boot
<Guest1337>     install -d ${D}/usr/bin
<Guest1337>     install -m 0770 \
<Guest1337>         ${WORKDIR}/first_boot.sh \
<Guest1337>         ${WORKDIR}/usb_hub_control.sh \
<Guest1337>         ${WORKDIR}/usb3_control.sh \
<Guest1337>         ${D}/usr/bin
<Guest1337> }
<rburton> that's right. you're copying from WORKDIR (which is where unpack puts files, and where the build happens) into D, which is the root of the package contents
amitk has quit [Remote host closed the connection]
<Guest1337> well im confused. i want to put all the services to /etc/systemd/system and the shell script into /usr/bin
<Guest1337> do_install() {
<Guest1337>     install -d ${D}/${systemd_unitdir}/system
<Guest1337>     install -m 0644 \
<Guest1337>         ${WORKDIR}/dcs_first_boot.service \
<Guest1337>         ${WORKDIR}/usb_hub_control.service \
<Guest1337>         ${WORKDIR}/usb3_control.service \
<Guest1337>         ${D}/${systemd_unitdir}/system
<Guest1337>     install -d ${D}/etc/first_boot
<Guest1337>     install -d ${D}/usr/bin
<Guest1337>     install -m 0770 \
<Guest1337>         ${WORKDIR}/dcs_first_boot.sh \
<Guest1337>         ${WORKDIR}/usb_hub_control.sh \
<Guest1337>         ${WORKDIR}/usb3_control.sh \
<Guest1337>         ${D}/usr/bin
<Guest1337> }
<Guest1337> do_install:append() {
<Guest1337>     install -d ${D}/${systemd_unitdir}/system
<rburton> why do you have a do_install and a do_install:append, if you wrote the recipe?
<rburton> its simple: copy files from WORKDIR into D. then make symlinks in D.
<rburton> the packaging will take everything in D, and put it in packages
<Saur> Guest1337: Please use pastebin when pasting recipes etc...
<Guest1337>     install -m 0644 \
<Guest1337>         ${WORKDIR}/dcs_first_boot.service \
<Guest1337>         ${WORKDIR}/usb_hub_control.service \
<Guest1337>         ${WORKDIR}/usb3_control.service \
<Guest1337>         ${D}/${systemd_unitdir}/system
<Guest1337> so, doesnt this install/copy my services to systemd/system/ ?
<rburton> yes, copies from WORKDIR into D
<Guest1337> so...
<Guest1337> ln -s -r ${D}/${systemd_unitdir}/system/dcs_first_boot.service ${D}/${systemd_unitdir}/system/multi-user.target.wants/dcs_first_boot.service
<Guest1337> this should work but im still getting no such file or directory?
amitk has joined #yocto
sakoman has joined #yocto
<Saur> Guest1337: You do not seem to create the ${D}/${systemd_unitdir}/system/multi-user.target.wants directory...
<rburton> yeah
<rburton> recipes are built in isolation, do_install isn't used to construct the rootfs itself
<rburton> so if you want to put something in a folder, make it first
sev99 has quit [Quit: Client closed]
<Guest1337> https://rlim.com/CulaLoNa2N ended up like this. Can it be better written/simplified ?
<rburton> FILES could be just ${systemd_unitdir}, it will scan recursively
<rburton> the link for the wants, couldn't that just be in the service file? the systemd class will cause that to be generated, i believe
<rburton> also its bad practise to put 'package managed' stuff into /usr/local, just put your stuff in /usr with everything else.
<rburton> also you don't depend on bash
<Guest1337> Thank you. Will fix these
Guest1337 has quit [Ping timeout: 250 seconds]
enok has joined #yocto
sev99 has joined #yocto
enok has quit [Quit: enok]
enok71 has joined #yocto
enok71 is now known as enok
amitk has quit [Remote host closed the connection]
enok has quit [Ping timeout: 255 seconds]
gsalazar has quit [Remote host closed the connection]
ptsneves has joined #yocto
vladest has quit [Remote host closed the connection]
enok has joined #yocto
vladest has joined #yocto
dankm has quit [Remote host closed the connection]
dankm has joined #yocto
sev99 has quit [Quit: Client closed]
ptsneves has quit [Ping timeout: 255 seconds]
dgriego has joined #yocto
<gmorell> anyone have any good hints on building cmake projects with LLVM, I'm running into similar errors to these mailing list entries from 2017/2020 https://docs.yoctoproject.org/pipermail/yocto/2017-June/036521.html https://www.mail-archive.com/yocto@lists.yoctoproject.org/msg02935.html
<gmorell> (even after enabling meta-clang)
enok has quit [Ping timeout: 246 seconds]
sev99 has joined #yocto
<rm5248> I haven't tried to compile with llvm before, so I don't have much insight there. It /could/ be a cmake problem though, I know some people were complaining about cmake the other week and prefer meson for cross-compiling
simone has joined #yocto
<gmorell> yeah the program in question theoretically can compile with gcc but the docs are super not helpful
<gmorell> I'm just going to grab a bin from the releases
<gmorell> and drop it in the correct place
usvi has quit [Remote host closed the connection]
simonew has joined #yocto
simone has quit [Ping timeout: 272 seconds]
simonew has quit [Remote host closed the connection]
simonew has joined #yocto
ferry_ has joined #yocto
florian_kc has joined #yocto
florian_kc has quit [Ping timeout: 255 seconds]
xmn has quit [Ping timeout: 256 seconds]
imx has joined #yocto
<imx> Hello
<imx> How can I add some lines to the fstab? I followed the last post: https://stackoverflow.com/questions/43283825/yocto-recipe-to-update-etc-fstab
<imx> Without result Fstab is still the old one. I add a file fstab with only 1 line inside.
florian_kc has joined #yocto
Haxxa has quit [Quit: Haxxa flies away.]
Haxxa has joined #yocto
imx has quit [Ping timeout: 250 seconds]
ferry_ has quit [Quit: http://quassel-irc.org - Chat comfortabel. Waar dan ook.]
Kubu_work has quit [Quit: Leaving.]
alessioigor has quit [Ping timeout: 246 seconds]
alessioigor has joined #yocto
florian_kc has quit [Ping timeout: 252 seconds]
schtobia has quit [Quit: Bye!]
schtobia has joined #yocto
alperak has quit [Quit: Connection closed for inactivity]
florian_kc has joined #yocto
florian_kc has quit [Ping timeout: 240 seconds]
pabigot has quit [Remote host closed the connection]
ak77 has quit [Quit: No Ping reply in 180 seconds.]
ak77 has joined #yocto
enok has joined #yocto
tealbird has quit [Remote host closed the connection]
mattsm6 has joined #yocto
mattsm has quit [Ping timeout: 272 seconds]
mattsm6 is now known as mattsm