*** lexano <lexano!~lexano@pool-174-119-69-134.cpe.net.cable.rogers.com> has quit IRC (Ping timeout: 272 seconds) | 00:37 | |
*** Perflosopher <Perflosopher!~perflosop@136.62.181.44> has joined #yocto | 00:50 | |
*** davidinux <davidinux!~davidinux@194.34.233.219> has quit IRC (Ping timeout: 252 seconds) | 01:04 | |
*** davidinux <davidinux!~davidinux@194.34.233.225> has joined #yocto | 01:11 | |
*** jclsn <jclsn!~jclsn@2a04:4540:6528:cf00:2ce:39ff:fecf:efcd> has quit IRC (Ping timeout: 256 seconds) | 01:16 | |
*** jclsn <jclsn!~jclsn@2a04:4540:652a:ac00:2ce:39ff:fecf:efcd> has joined #yocto | 01:18 | |
*** mrpelotazo <mrpelotazo!~mrpelotaz@user/mrpelotazo> has quit IRC (Read error: Connection reset by peer) | 01:31 | |
*** mrpelotazo <mrpelotazo!~mrpelotaz@user/mrpelotazo> has joined #yocto | 01:36 | |
*** amitk <amitk!~amit@58.84.60.21> has joined #yocto | 02:27 | |
*** xmn <xmn!~xmn@pool-108-46-142-76.nycmny.fios.verizon.net> has quit IRC (Ping timeout: 268 seconds) | 02:29 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has joined #yocto | 04:37 | |
*** thomas_34 <thomas_34!~thomas_34@host-80-81-12-253.static.customer.m-online.net> has joined #yocto | 04:46 | |
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? | 04:53 |
---|---|---|
thomas_34 | Can someone explain me whats the difference in general between .inc-Files and bbclass? What is the bigger picture here? | 04:53 |
*** hnez <hnez!~quassel@flummi.grey.stw.pengutronix.de> has joined #yocto | 05:00 | |
*** alessioigor <alessioigor!~alessioig@185.178.95.238> has joined #yocto | 05:20 | |
*** alperak <alperak!uid641238@id-641238.ilkley.irccloud.com> has joined #yocto | 05:37 | |
*** bharathbck <bharathbck!~bharathbc@164.164.23.9> has joined #yocto | 05:42 | |
mcfrisk_ | thomas_34: or a recipe which the 20 other recipes DEPEND at build time to use the headers | 05:58 |
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. | 05:59 |
*** goliath <goliath!~goliath@user/goliath> has joined #yocto | 06:01 | |
thomas_34 | mcfrisk_, "An .inc is a way for multiple recipes to share common stuff." Is that also valid doing by bbclass? | 06:02 |
thomas_34 | Or are bbclasses limited to only share common functions and not variables? | 06:02 |
mcfrisk_ | thomas_34: bblasses can share anything which ends up in recipes, variables, funcions, asks etc etc | 06:04 |
mcfrisk_ | but, a set of header files sounds like a SW package and thus would to me belong to a recipe. | 06:04 |
thomas_34 | Ähm.. wait. Where does these "header files" come from? | 06:05 |
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 | 06:06 |
mcfrisk_ | thomas_34: ah my bad, too little coffee | 06:06 |
mcfrisk_ | include files sounded too much like .h | 06:06 |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has quit IRC (Ping timeout: 272 seconds) | 06:06 | |
thomas_34 | Ahh okay, no. I'm entirely within bitbake ;) | 06:07 |
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 | 06:07 |
mcfrisk_ | but the things could also be in distro configuration, e.g. DISTRO_FEATURES, or in the machine config like MACHINE_FEATURES | 06:08 |
thomas_34 | Ahhh... okay. The the "border" for .inc files are layers? Is that a "practical" distinction? | 06:08 |
mcfrisk_ | how recipes find .inc, only recipes within same directory will find it. For bbclasses, all recipes from all layers will find them. | 06:09 |
thomas_34 | Okay thank you. Now I get the bigger picture I guess | 06:09 |
mcfrisk_ | no problem, hope this helps | 06:10 |
*** rob_w <rob_w!~bob@host-82-135-31-73.customer.m-online.net> has joined #yocto | 06:13 | |
*** olani <olani!~olani@wlan-gw.se.axis.com> has quit IRC (Ping timeout: 264 seconds) | 06:35 | |
*** ptsneves <ptsneves!~Thunderbi@89.151.23.56> has joined #yocto | 06:40 | |
*** linfax <linfax!~linfax@eumail.topcon.com> has joined #yocto | 06:40 | |
*** gsalazar <gsalazar!~gsalazar@107.105.60.94.rev.vodafone.pt> has joined #yocto | 06:41 | |
*** mckoan|away is now known as mckoan | 06:55 | |
mckoan | good morning | 06:56 |
*** ablu <ablu!~m-bfyrfh@user/Ablu> has quit IRC (Read error: Connection reset by peer) | 06:56 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has joined #yocto | 06:58 | |
*** ablu <ablu!~m-bfyrfh@user/Ablu> has joined #yocto | 07:01 | |
*** leon-anavi <leon-anavi!~Leon@46.55.231.62> has joined #yocto | 07:01 | |
*** Kubu_work <Kubu_work!~kubu@2a01cb05949d5800e3ef2d7a4131071f.ipv6.abo.wanadoo.fr> has joined #yocto | 07:05 | |
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 | 07:16 |
thomas_34 | Example: recipe.bb: "foo = "bar" inherit class" class.bbclass: "fooo = ${foo}" | 07:17 |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has quit IRC (Ping timeout: 256 seconds) | 07:18 | |
landgraf | thomas_34: yes, you can. | 07:19 |
thomas_34 | Thank you landgraf | 07:19 |
*** vladest <vladest!~Thunderbi@adsl-89-217-204-83.adslplus.ch> has quit IRC (Ping timeout: 256 seconds) | 07:23 | |
*** hnez <hnez!~quassel@flummi.grey.stw.pengutronix.de> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 07:23 | |
*** olani <olani!~olani@wlan-gw.se.axis.com> has joined #yocto | 07:28 | |
*** thomas_44 <thomas_44!~thomas_34@host-80-81-12-253.static.customer.m-online.net> has joined #yocto | 07:29 | |
*** thomas_34 <thomas_34!~thomas_34@host-80-81-12-253.static.customer.m-online.net> has quit IRC (Ping timeout: 250 seconds) | 07:33 | |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has quit IRC (Quit: Client closed) | 07:39 | |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has joined #yocto | 07:39 | |
*** chep <chep!chep@gateway/vpn/airvpn/chep> has joined #yocto | 07:43 | |
*** vladest <vladest!~Thunderbi@217.192.139.41> has joined #yocto | 07:53 | |
*** hnez <hnez!~quassel@flummi.grey.stw.pengutronix.de> has joined #yocto | 07:53 | |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has quit IRC (Quit: Client closed) | 08:04 | |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has joined #yocto | 08:04 | |
*** enok <enok!~Thunderbi@94.191.136.212.mobile.tre.se> has joined #yocto | 08:10 | |
*** thomas_44 <thomas_44!~thomas_34@host-80-81-12-253.static.customer.m-online.net> has quit IRC (Quit: Client closed) | 08:14 | |
*** amitk_ <amitk_!~amit@58.84.61.97> has joined #yocto | 08:22 | |
*** amitk <amitk!~amit@58.84.60.21> has quit IRC (Ping timeout: 260 seconds) | 08:25 | |
*** ptsneves <ptsneves!~Thunderbi@89.151.23.56> has quit IRC (Ping timeout: 260 seconds) | 08:29 | |
*** rfuentess <rfuentess!~rfuentess@lfbn-lyo-1-1566-5.w90-52.abo.wanadoo.fr> has joined #yocto | 08:31 | |
*** mvlad <mvlad!~mvlad@2a02:2f05:850d:7800:e88e:21ff:fe65:be18> has joined #yocto | 08:33 | |
*** frieder <frieder!~frieder@i4DF677E2.static.tripleplugandplay.com> has joined #yocto | 08:35 | |
*** phako_ <phako_!~phako_@mskpcx29305.desy.de> has joined #yocto | 08:37 | |
*** michalsieron <michalsieron!~michalsie@131.228.32.167> has joined #yocto | 08:41 | |
*** florian <florian!~florian@port-217-146-132-69.static.as20676.net> has joined #yocto | 08:48 | |
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 | 08:50 |
michalsieron | files than using `find+rm` in .bbappend? | 08:50 |
*** enok <enok!~Thunderbi@94.191.136.212.mobile.tre.se> has quit IRC (Ping timeout: 255 seconds) | 08:59 | |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has quit IRC (Quit: Client closed) | 09:04 | |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has joined #yocto | 09:04 | |
*** LocutusOfBorg <LocutusOfBorg!~locutusof@151.58.174.15> has quit IRC (Read error: Connection reset by peer) | 09:08 | |
*** LocutusOfBorg <LocutusOfBorg!~locutusof@151.58.174.15> has joined #yocto | 09:10 | |
*** LocutusOfBorg <LocutusOfBorg!~locutusof@151.58.174.15> has quit IRC (Read error: Connection reset by peer) | 09:20 | |
*** florian_kc <florian_kc!~florian@port-217-146-132-69.static.as20676.net> has joined #yocto | 09:21 | |
*** LocutusOfBorg <LocutusOfBorg!~locutusof@151.58.174.15> has joined #yocto | 09:22 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has joined #yocto | 09:23 | |
*** hnez <hnez!~quassel@flummi.grey.stw.pengutronix.de> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 09:30 | |
*** jsandman <jsandman!~jsandman@95.179.203.88> has quit IRC (Remote host closed the connection) | 09:38 | |
*** hnez <hnez!~quassel@flummi.grey.stw.pengutronix.de> has joined #yocto | 09:52 | |
*** starblue <starblue!~juergen@87.122.37.37> has quit IRC (Ping timeout: 260 seconds) | 10:04 | |
*** tomzy <tomzy!~tomzy@213.192.77.249> has joined #yocto | 10:04 | |
*** starblue <starblue!~juergen@87.122.37.37> has joined #yocto | 10:06 | |
*** tomzy is now known as tomzy-0 | 10:07 | |
*** Ad0 <Ad0!~Ad0@93.124.245.194> has joined #yocto | 10:10 | |
*** tomzy-0 <tomzy-0!~tomzy@213.192.77.249> has quit IRC (Ping timeout: 250 seconds) | 10:14 | |
*** DvorkinDmitry <DvorkinDmitry!~dvorkin@5.167.98.73> has joined #yocto | 10:19 | |
DvorkinDmitry | is it OK to put INITRAMFS_IMAGE = definition to image file? | 10:22 |
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. | 10:23 |
DvorkinDmitry | mcfrisk_, thank you | 10:26 |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has quit IRC (Ping timeout: 264 seconds) | 10:26 | |
*** tomzy <tomzy!~tomzy@213.192.77.249> has joined #yocto | 10:38 | |
*** xmn <xmn!~xmn@pool-108-46-142-76.nycmny.fios.verizon.net> has joined #yocto | 10:43 | |
*** michalsieron <michalsieron!~michalsie@131.228.32.167> has quit IRC (Quit: Client closed) | 10:49 | |
*** TehRiizQ <TehRiizQ!~TehRiizQ@136.163.203.4> has joined #yocto | 10:50 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has joined #yocto | 10:51 | |
*** bharathbck <bharathbck!~bharathbc@164.164.23.9> has quit IRC (Ping timeout: 250 seconds) | 10:52 | |
*** tomzy <tomzy!~tomzy@213.192.77.249> has quit IRC (Quit: Client closed) | 11:01 | |
*** lexano <lexano!~lexano@pool-174-119-69-134.cpe.net.cable.rogers.com> has joined #yocto | 11:08 | |
*** ldywicki <ldywicki!uid202900@user/ldywicki> has joined #yocto | 11:08 | |
rburton | DvorkinDmitry: initramfs_image is for a kernel, so no | 11:08 |
DvorkinDmitry | rburton, where is it better to place except local.conf? | 11:09 |
rburton | your distro or machine conf | 11:09 |
DvorkinDmitry | rburton, thank you | 11:10 |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has quit IRC (Quit: Client closed) | 11:17 | |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has joined #yocto | 11:17 | |
*** tomzy <tomzy!~tomzy@213.192.77.249> has joined #yocto | 11:26 | |
*** florian_kc <florian_kc!~florian@port-217-146-132-69.static.as20676.net> has quit IRC (Ping timeout: 255 seconds) | 11:26 | |
*** prabhakalad <prabhakalad!~prabhakar@147.161.225.85> has quit IRC (Quit: Konversation terminated!) | 11:31 | |
*** prabhakalad <prabhakalad!~prabhakar@147.161.225.85> has joined #yocto | 11:32 | |
*** ptsneves <ptsneves!~Thunderbi@89.151.23.56> has joined #yocto | 11:33 | |
*** thomas_34 <thomas_34!~thomas_34@host-80-81-12-253.static.customer.m-online.net> has joined #yocto | 11:42 | |
thomas_34 | https://bugzilla.yoctoproject.org/show_bug.cgi?id=15470 | 11:46 |
thomas_34 | Is it possible to see somewhere the indicated patch? I'm really eager to see what was the cause | 11:46 |
rburton | thomas_34: https://lore.kernel.org/bitbake-devel/20240412170335.2321226-1-richard.purdie@linuxfoundation.org/T/#u i guess | 11:48 |
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) | 11:49 |
thomas_34 | rburton Thank you :) I can test this, when its merged | 11:49 |
thomas_34 | RP, I dont know. Maybe its related that python is kinda strict about line indention etc... | 11:52 |
thomas_34 | *indentation | 11:53 |
*** TehRiizQ <TehRiizQ!~TehRiizQ@136.163.203.4> has quit IRC (Ping timeout: 250 seconds) | 11:55 | |
*** rm5248 <rm5248!~rm5248@c-76-100-95-162.hsd1.va.comcast.net> has joined #yocto | 11:59 | |
*** GillesM <GillesM!~gilles@77.200.219.43> has joined #yocto | 12:03 | |
*** GillesM <GillesM!~gilles@77.200.219.43> has quit IRC (Client Quit) | 12:05 | |
*** Jones42 <Jones42!~Jones42@212.121.145.5> has joined #yocto | 12:05 | |
*** thomas_34 <thomas_34!~thomas_34@host-80-81-12-253.static.customer.m-online.net> has quit IRC (Ping timeout: 250 seconds) | 12:07 | |
*** phako_ <phako_!~phako_@mskpcx29305.desy.de> has quit IRC (Quit: Client closed) | 12:08 | |
*** ptsneves <ptsneves!~Thunderbi@89.151.23.56> has quit IRC (Ping timeout: 255 seconds) | 12:22 | |
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 | 12:23 |
rburton | fair | 12:26 |
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 | 12:27 |
*** Jones42 <Jones42!~Jones42@212.121.145.5> has quit IRC (Ping timeout: 250 seconds) | 12:36 | |
*** simonew <simonew!~simonew@eth1-fw1-nbg6.eb.noris.de> has joined #yocto | 12:37 | |
*** simonew <simonew!~simonew@eth1-fw1-nbg6.eb.noris.de> has quit IRC (Ping timeout: 250 seconds) | 12:43 | |
Crofton | @shoragan: might know | 12:49 |
*** Jones42 <Jones42!~Jones42@212.121.145.7> has joined #yocto | 12:51 | |
*** sakoman <sakoman!~sakoman-l@199.58.97.236> has quit IRC (Ping timeout: 264 seconds) | 13:00 | |
*** tomzy <tomzy!~tomzy@213.192.77.249> has quit IRC (Quit: Client closed) | 13:04 | |
*** sev99 <sev99!~sev99@pool-108-32-48-117.pitbpa.fios.verizon.net> has joined #yocto | 13:09 | |
*** vvn <vvn!~vivien@bras-base-mtrlpq02huw-grc-03-174-88-247-147.dsl.bell.ca> has quit IRC (Quit: WeeChat 4.2.1) | 13:11 | |
*** vvn <vvn!~vivien@bras-base-mtrlpq02huw-grc-03-174-88-247-147.dsl.bell.ca> has joined #yocto | 13:14 | |
*** sakoman <sakoman!~sakoman-l@199.58.97.236> has joined #yocto | 13:15 | |
*** vladest <vladest!~Thunderbi@217.192.139.41> has quit IRC (Ping timeout: 256 seconds) | 13:25 | |
*** sudip <sudip!~sudipmukh@78.40.148.182> has quit IRC (Quit: ZNC - http://znc.in) | 13:29 | |
*** sudip <sudip!~sudipmukh@78.40.148.182> has joined #yocto | 13:30 | |
_sfo | Hi, I just saw bmaptool is now maintained by yocto. Is it okay to send patches via email directly to the maintainers? | 13:38 |
*** vladest <vladest!~Thunderbi@adsl-89-217-204-83.adslplus.ch> has joined #yocto | 13:46 | |
*** rob_w <rob_w!~bob@host-82-135-31-73.customer.m-online.net> has quit IRC (Remote host closed the connection) | 13:48 | |
*** sakoman <sakoman!~sakoman-l@199.58.97.236> has quit IRC (Ping timeout: 240 seconds) | 13:49 | |
*** Jones71 <Jones71!~Jones42@212.121.145.5> has joined #yocto | 13:51 | |
*** Jones71 <Jones71!~Jones42@212.121.145.5> has quit IRC (Client Quit) | 13:51 | |
*** Jones45 <Jones45!~Jones42@212.121.145.5> has joined #yocto | 13:51 | |
*** Jones42 <Jones42!~Jones42@212.121.145.7> has quit IRC (Ping timeout: 250 seconds) | 13:52 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has quit IRC (Ping timeout: 268 seconds) | 13:54 | |
*** Minvera <Minvera!~Minvera@user/Minvera> has joined #yocto | 13:56 | |
*** simonew <simonew!~simonew@eth1-fw1-nbg6.eb.noris.de> has joined #yocto | 14:01 | |
*** sakoman <sakoman!~sakoman-l@199.58.97.236> has joined #yocto | 14:05 | |
*** altru <altru!~altru@static-css-ccs-204145.business.bouyguestelecom.com> has joined #yocto | 14:05 | |
*** linfax <linfax!~linfax@eumail.topcon.com> has quit IRC (Ping timeout: 260 seconds) | 14:14 | |
*** a1batross <a1batross!39b1386cf2@jabberfr.org> has quit IRC (Ping timeout: 255 seconds) | 14:28 | |
*** leon-anavi <leon-anavi!~Leon@46.55.231.62> has quit IRC (Quit: Leaving) | 14:31 | |
*** altru <altru!~altru@static-css-ccs-204145.business.bouyguestelecom.com> has quit IRC (Quit: Client closed) | 14:40 | |
rburton | _sfo: pull requests to https://github.com/yoctoproject/bmaptool best | 14:41 |
*** mvlad <mvlad!~mvlad@2a02:2f05:850d:7800:e88e:21ff:fe65:be18> has quit IRC (Remote host closed the connection) | 14:47 | |
*** Jones45 <Jones45!~Jones42@212.121.145.5> has quit IRC (Ping timeout: 250 seconds) | 14:49 | |
*** goliath <goliath!~goliath@user/goliath> has quit IRC (Quit: SIGSEGV) | 14:59 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has joined #yocto | 15:05 | |
*** simonew <simonew!~simonew@eth1-fw1-nbg6.eb.noris.de> has quit IRC (Quit: Client closed) | 15:06 | |
*** Bardon_ <Bardon_!~Bardon@user/Bardon> has joined #yocto | 15:17 | |
*** Bardon <Bardon!~Bardon@user/Bardon> has quit IRC (Ping timeout: 264 seconds) | 15:20 | |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has quit IRC (Quit: Client closed) | 15:20 | |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has joined #yocto | 15:20 | |
*** frieder <frieder!~frieder@i4DF677E2.static.tripleplugandplay.com> has quit IRC (Remote host closed the connection) | 15:28 | |
*** mckoan is now known as mckoan|away | 15:37 | |
*** Guest1337 <Guest1337!~Guest1337@132.198.137.78.rev.vodafone.pt> has joined #yocto | 15:39 | |
*** Guest1337 <Guest1337!~Guest1337@132.198.137.78.rev.vodafone.pt> has quit IRC (Client Quit) | 15:42 | |
OnkelUlla | Jones42, Crofton: Still work in progress, currently getting polished a little bit. | 15:43 |
*** sev99 <sev99!~sev99@pool-108-32-48-117.pitbpa.fios.verizon.net> has quit IRC (Quit: Client closed) | 15:47 | |
*** rfuentess <rfuentess!~rfuentess@lfbn-lyo-1-1566-5.w90-52.abo.wanadoo.fr> has quit IRC (Remote host closed the connection) | 15:49 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has quit IRC (Ping timeout: 264 seconds) | 15:50 | |
*** sev99 <sev99!~sev99@pool-108-32-48-117.pitbpa.fios.verizon.net> has joined #yocto | 15:56 | |
*** sakoman <sakoman!~sakoman-l@199.58.97.236> has quit IRC (Ping timeout: 256 seconds) | 15:57 | |
_sfo | rburton: Thanks, but I'm a GH outsider, that's why I'm asking. | 15:57 |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has quit IRC (Quit: Client closed) | 15:58 | |
*** Saur_Home <Saur_Home!~Saur_Home@94-137-113-31.customers.ownit.se> has joined #yocto | 15:58 | |
*** Guest1337 <Guest1337!~Guest1337@132.198.137.78.rev.vodafone.pt> has joined #yocto | 16:01 | |
Guest1337 | how do i create a symbolic link inside the image from a bitbake recipe? | 16:01 |
rburton | Guest1337: in a recipe's do_install, create a symlink | 16:02 |
rburton | $D is the 'root' | 16:02 |
Guest1337 | do_install:append() { | 16:02 |
Guest1337 | install -d ${D}/${systemd_unitdir}/system | 16:02 |
Guest1337 | ln -s -r ${WORKDIR}/irst_boot.service ${WORKDIR}/multi-user.target.wants/first_boot.service | 16:02 |
Guest1337 | } | 16:02 |
Guest1337 | ive tried this | 16:02 |
Guest1337 | however, getting build error: No such file or directory | 16:02 |
rburton | the workdir is the build tree, so that's no good | 16:02 |
rburton | you want ${D} | 16:03 |
rburton | well, ${D}/${systemd_unitdir}/system | 16:03 |
*** amitk <amitk!~amit@58.84.61.97> has joined #yocto | 16:04 | |
Guest1337 | oh so my do_install is also wrong I suppose | 16:04 |
Guest1337 | do_install() { | 16:04 |
Guest1337 | install -d ${D}/${systemd_unitdir}/system | 16:04 |
Guest1337 | install -m 0644 \ | 16:04 |
Guest1337 | ${WORKDIR}/first_boot.service \ | 16:04 |
Guest1337 | ${WORKDIR}/usb_hub_control.service \ | 16:04 |
Guest1337 | ${WORKDIR}/usb3_control.service \ | 16:04 |
Guest1337 | ${D}/${systemd_unitdir}/system | 16:04 |
Guest1337 | install -d ${D}/etc/first_boot | 16:04 |
Guest1337 | install -d ${D}/usr/bin | 16:04 |
Guest1337 | install -m 0770 \ | 16:04 |
Guest1337 | ${WORKDIR}/first_boot.sh \ | 16:04 |
Guest1337 | ${WORKDIR}/usb_hub_control.sh \ | 16:04 |
Guest1337 | ${WORKDIR}/usb3_control.sh \ | 16:04 |
Guest1337 | ${D}/usr/bin | 16:04 |
Guest1337 | } | 16:04 |
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 | 16:05 |
*** amitk <amitk!~amit@58.84.61.97> has quit IRC (Remote host closed the connection) | 16:06 | |
Guest1337 | well im confused. i want to put all the services to /etc/systemd/system and the shell script into /usr/bin | 16:07 |
Guest1337 | do_install() { | 16:07 |
Guest1337 | install -d ${D}/${systemd_unitdir}/system | 16:07 |
Guest1337 | install -m 0644 \ | 16:07 |
Guest1337 | ${WORKDIR}/dcs_first_boot.service \ | 16:07 |
Guest1337 | ${WORKDIR}/usb_hub_control.service \ | 16:07 |
Guest1337 | ${WORKDIR}/usb3_control.service \ | 16:07 |
Guest1337 | ${D}/${systemd_unitdir}/system | 16:07 |
Guest1337 | install -d ${D}/etc/first_boot | 16:07 |
Guest1337 | install -d ${D}/usr/bin | 16:07 |
Guest1337 | install -m 0770 \ | 16:07 |
Guest1337 | ${WORKDIR}/dcs_first_boot.sh \ | 16:07 |
Guest1337 | ${WORKDIR}/usb_hub_control.sh \ | 16:07 |
Guest1337 | ${WORKDIR}/usb3_control.sh \ | 16:07 |
Guest1337 | ${D}/usr/bin | 16:07 |
Guest1337 | } | 16:07 |
Guest1337 | do_install:append() { | 16:07 |
Guest1337 | install -d ${D}/${systemd_unitdir}/system | 16:07 |
rburton | why do you have a do_install and a do_install:append, if you wrote the recipe? | 16:07 |
rburton | its simple: copy files from WORKDIR into D. then make symlinks in D. | 16:07 |
rburton | the packaging will take everything in D, and put it in packages | 16:08 |
Saur | Guest1337: Please use pastebin when pasting recipes etc... | 16:08 |
Guest1337 | install -m 0644 \ | 16:10 |
Guest1337 | ${WORKDIR}/dcs_first_boot.service \ | 16:10 |
Guest1337 | ${WORKDIR}/usb_hub_control.service \ | 16:10 |
Guest1337 | ${WORKDIR}/usb3_control.service \ | 16:10 |
Guest1337 | ${D}/${systemd_unitdir}/system | 16:10 |
Guest1337 | so, doesnt this install/copy my services to systemd/system/ ? | 16:10 |
rburton | yes, copies from WORKDIR into D | 16:11 |
Guest1337 | so... | 16:12 |
Guest1337 | ln -s -r ${D}/${systemd_unitdir}/system/dcs_first_boot.service ${D}/${systemd_unitdir}/system/multi-user.target.wants/dcs_first_boot.service | 16:12 |
Guest1337 | this should work but im still getting no such file or directory? | 16:12 |
*** amitk <amitk!~amit@58.84.61.97> has joined #yocto | 16:12 | |
*** sakoman <sakoman!~sakoman-l@199.58.97.236> has joined #yocto | 16:13 | |
Saur | Guest1337: You do not seem to create the ${D}/${systemd_unitdir}/system/multi-user.target.wants directory... | 16:14 |
rburton | yeah | 16:14 |
rburton | recipes are built in isolation, do_install isn't used to construct the rootfs itself | 16:15 |
rburton | so if you want to put something in a folder, make it first | 16:15 |
*** sev99 <sev99!~sev99@pool-108-32-48-117.pitbpa.fios.verizon.net> has quit IRC (Quit: Client closed) | 16:21 | |
Guest1337 | https://rlim.com/CulaLoNa2N ended up like this. Can it be better written/simplified ? | 16:22 |
rburton | FILES could be just ${systemd_unitdir}, it will scan recursively | 16:23 |
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 | 16:23 |
rburton | also its bad practise to put 'package managed' stuff into /usr/local, just put your stuff in /usr with everything else. | 16:24 |
rburton | also you don't depend on bash | 16:24 |
Guest1337 | Thank you. Will fix these | 16:26 |
*** Guest1337 <Guest1337!~Guest1337@132.198.137.78.rev.vodafone.pt> has quit IRC (Ping timeout: 250 seconds) | 16:35 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has joined #yocto | 16:47 | |
*** sev99 <sev99!~sev99@pool-108-32-48-117.pitbpa.fios.verizon.net> has joined #yocto | 16:47 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has quit IRC (Quit: enok) | 17:09 | |
*** enok71 <enok71!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has joined #yocto | 17:09 | |
*** enok71 is now known as enok | 17:12 | |
*** amitk <amitk!~amit@58.84.61.97> has quit IRC (Remote host closed the connection) | 17:14 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has quit IRC (Ping timeout: 255 seconds) | 17:20 | |
*** gsalazar <gsalazar!~gsalazar@107.105.60.94.rev.vodafone.pt> has quit IRC (Remote host closed the connection) | 17:26 | |
*** ptsneves <ptsneves!~Thunderbi@89.151.23.56> has joined #yocto | 17:32 | |
*** vladest <vladest!~Thunderbi@adsl-89-217-204-83.adslplus.ch> has quit IRC (Remote host closed the connection) | 17:44 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has joined #yocto | 17:53 | |
*** vladest <vladest!~Thunderbi@adsl-89-217-204-83.adslplus.ch> has joined #yocto | 18:05 | |
*** dankm <dankm!~dan@user/dankm> has quit IRC (Remote host closed the connection) | 18:09 | |
*** dankm <dankm!~dan@user/dankm> has joined #yocto | 18:11 | |
*** sev99 <sev99!~sev99@pool-108-32-48-117.pitbpa.fios.verizon.net> has quit IRC (Quit: Client closed) | 18:32 | |
*** ptsneves <ptsneves!~Thunderbi@89.151.23.56> has quit IRC (Ping timeout: 255 seconds) | 18:34 | |
*** dgriego <dgriego!~dgriego@user/dgriego> has joined #yocto | 18:37 | |
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 | 18:39 |
gmorell | (even after enabling meta-clang) | 18:40 |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has quit IRC (Ping timeout: 246 seconds) | 18:43 | |
*** sev99 <sev99!~sev99@pool-108-32-48-117.pitbpa.fios.verizon.net> has joined #yocto | 18:56 | |
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 | 19:01 |
*** simone <simone!~ile@2a02:810d:a940:35fc:d41a:4d13:a4f1:fce2> has joined #yocto | 19:03 | |
gmorell | yeah the program in question theoretically can compile with gcc but the docs are super not helpful | 19:10 |
gmorell | I'm just going to grab a bin from the releases | 19:10 |
gmorell | and drop it in the correct place | 19:11 |
*** usvi <usvi!~janne@55860f8a.adsl.multi.fi> has quit IRC (Remote host closed the connection) | 19:17 | |
*** simonew <simonew!~ile@2a02:810d:a940:35fc:57d9:e36f:4d6f:6875> has joined #yocto | 19:21 | |
*** simone <simone!~ile@2a02:810d:a940:35fc:d41a:4d13:a4f1:fce2> has quit IRC (Ping timeout: 272 seconds) | 19:21 | |
*** simonew <simonew!~ile@2a02:810d:a940:35fc:57d9:e36f:4d6f:6875> has quit IRC (Remote host closed the connection) | 19:25 | |
*** simonew <simonew!~ile@2a02:810d:a940:35fc:2251:e05c:3506:bee1> has joined #yocto | 19:26 | |
*** ferry_ <ferry_!~quassel@2a02-a466-68ed-1-3726-1d7f-2306-4d52.fixed6.kpn.net> has joined #yocto | 19:26 | |
*** florian_kc <florian_kc!~florian@78.48.7.205> has joined #yocto | 19:31 | |
*** florian_kc <florian_kc!~florian@78.48.7.205> has quit IRC (Ping timeout: 255 seconds) | 19:38 | |
*** xmn <xmn!~xmn@pool-108-46-142-76.nycmny.fios.verizon.net> has quit IRC (Ping timeout: 256 seconds) | 19:45 | |
*** imx <imx!~imx@212.233.6.210> has joined #yocto | 19:55 | |
imx | Hello | 19:57 |
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 | 19:57 |
imx | Without result Fstab is still the old one. I add a file fstab with only 1 line inside. | 19:57 |
*** florian_kc <florian_kc!~florian@dynamic-078-048-007-205.78.48.pool.telefonica.de> has joined #yocto | 19:57 | |
*** Haxxa <Haxxa!~Haxxa@89npm846bxqq5k2x8n39.ip6.superloop.au> has quit IRC (Quit: Haxxa flies away.) | 20:15 | |
*** Haxxa <Haxxa!~Haxxa@116.255.4.123> has joined #yocto | 20:17 | |
*** imx <imx!~imx@212.233.6.210> has quit IRC (Ping timeout: 250 seconds) | 20:19 | |
*** ferry_ <ferry_!~quassel@2a02-a466-68ed-1-3726-1d7f-2306-4d52.fixed6.kpn.net> has quit IRC (Quit: http://quassel-irc.org - Chat comfortabel. Waar dan ook.) | 20:19 | |
*** Kubu_work <Kubu_work!~kubu@2a01cb05949d5800e3ef2d7a4131071f.ipv6.abo.wanadoo.fr> has quit IRC (Quit: Leaving.) | 20:25 | |
*** alessioigor <alessioigor!~alessioig@185.178.95.238> has quit IRC (Ping timeout: 246 seconds) | 20:48 | |
*** alessioigor <alessioigor!~alessioig@185.178.95.238> has joined #yocto | 20:52 | |
*** florian_kc <florian_kc!~florian@dynamic-078-048-007-205.78.48.pool.telefonica.de> has quit IRC (Ping timeout: 252 seconds) | 20:55 | |
*** schtobia <schtobia!~quassel@schmidl.dev> has quit IRC (Quit: Bye!) | 21:00 | |
*** schtobia <schtobia!~quassel@schmidl.dev> has joined #yocto | 21:00 | |
*** alperak <alperak!uid641238@id-641238.ilkley.irccloud.com> has quit IRC (Quit: Connection closed for inactivity) | 21:46 | |
*** florian_kc <florian_kc!~florian@78.48.7.205> has joined #yocto | 21:58 | |
*** florian_kc <florian_kc!~florian@78.48.7.205> has quit IRC (Ping timeout: 240 seconds) | 22:32 | |
*** pabigot <pabigot!~pab@c-73-127-94-148.hsd1.az.comcast.net> has quit IRC (Remote host closed the connection) | 22:49 | |
*** ak77 <ak77!~ak77@93-103-41-115.dynamic.t-2.net> has quit IRC (Quit: No Ping reply in 180 seconds.) | 22:59 | |
*** ak77 <ak77!~ak77@93-103-41-115.dynamic.t-2.net> has joined #yocto | 23:00 | |
*** enok <enok!~Thunderbi@c-da42e655.06-290-73746f71.bbcust.telenor.se> has joined #yocto | 23:01 | |
*** tealbird <tealbird!~pidgin@c-98-248-236-18.hsd1.ca.comcast.net> has quit IRC (Remote host closed the connection) | 23:24 | |
*** mattsm6 <mattsm6!~mattsm@64.154.148.114> has joined #yocto | 23:42 | |
*** mattsm <mattsm!~mattsm@64.154.148.114> has quit IRC (Ping timeout: 272 seconds) | 23:44 | |
*** mattsm6 is now known as mattsm | 23:44 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!