*** seebs <seebs!~seebs@home.seebs.net> has joined #yocto | 00:02 | |
*** khem` is now known as onoffon | 00:04 | |
jynik | Well yet another dash vs bash item bit me in the arse | 00:11 |
---|---|---|
jynik | printf '\xa2' | hexump -C | 00:11 |
*** YoctoAutoBuilder <YoctoAutoBuilder!~YoctoAuto@yocto-www.yoctoproject.org> has quit IRC | 00:11 | |
jynik | different results in dash and bash | 00:11 |
*** YoctoAutoBuilder <YoctoAutoBuilder!~YoctoAuto@yocto-www.yoctoproject.org> has joined #yocto | 00:12 | |
jynik | dash yields 4 characters, the string "\xa2", wheras bash lands you the byte 0xa2. Long story... part of an image fixup | 00:13 |
*** IvanSB <IvanSB!~IvanSB@host136-114-dynamic.54-79-r.retail.telecomitalia.it> has quit IRC | 00:17 | |
jynik | Anyone happen to know if this is a POSIX-ism or just dash being silly? | 00:17 |
*** Aethenelle <Aethenelle!~Aethenell@199.15.128.78> has quit IRC | 00:18 | |
*** cbzx <cbzx!~cbzx@CPE0015f275ecd5-CM00195edd810c.cpe.net.cable.rogers.com> has quit IRC | 00:22 | |
*** onoffon is now known as khem` | 00:23 | |
jynik | (To answer my own question - man dash explains it pretty well - c89 backescapes only) | 00:24 |
*** sameo <sameo!samuel@nat/intel/x-fagunkwuhkvanatk> has quit IRC | 00:25 | |
*** stwcx <stwcx!~stwcx@32.97.110.52> has quit IRC | 00:38 | |
*** khem` is now known as onoffon | 00:41 | |
*** onoffon is now known as khem` | 00:41 | |
*** khem` is now known as onoffon | 00:42 | |
*** onoffon is now known as khem` | 00:42 | |
*** Aethenelle <Aethenelle!~Aethenell@166.175.57.201> has joined #yocto | 00:42 | |
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has quit IRC | 00:56 | |
*** fledermaus <fledermaus!~vivek@78.32.176.249> has joined #yocto | 00:58 | |
*** Net147 <Net147!~Net147@unaffiliated/net147> has quit IRC | 01:02 | |
*** Net147 <Net147!~Net147@unaffiliated/net147> has joined #yocto | 01:03 | |
*** pevster <pevster!~pev@95.147.121.123> has joined #yocto | 01:45 | |
*** fledermaus <fledermaus!~vivek@78.32.176.249> has quit IRC | 01:49 | |
*** Aethenelle <Aethenelle!~Aethenell@166.175.57.201> has quit IRC | 01:51 | |
kergoth | jynik: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html | 02:08 |
kergoth | jynik: via http://pubs.opengroup.org/onlinepubs/9699919799/ | 02:08 |
*** Snert <Snert!~LoginName@65-70-174-206.gci.net> has joined #yocto | 02:09 | |
*** dreyna4529 <dreyna4529!~dreyna@c-24-5-28-247.hsd1.ca.comcast.net> has quit IRC | 02:16 | |
*** kscherer <kscherer!~kscherer@128.224.252.2> has quit IRC | 02:25 | |
*** Jackie_huang <Jackie_huang!~quassel@106.120.101.38> has quit IRC | 02:47 | |
*** Jackie_huang <Jackie_huang!~quassel@106.120.101.38> has joined #yocto | 02:49 | |
*** sjolley <sjolley!~sjolley@134.134.139.77> has joined #yocto | 03:00 | |
*** sjolley1 <sjolley1!~sjolley@134.134.139.77> has quit IRC | 03:00 | |
*** hsychla <hsychla!~hsychla@pd95c9392.dip0.t-ipconnect.de> has quit IRC | 04:04 | |
*** hsychla <hsychla!~hsychla@pd95c9392.dip0.t-ipconnect.de> has joined #yocto | 04:10 | |
*** pevster <pevster!~pev@95.147.121.123> has quit IRC | 04:12 | |
*** rburton <rburton!~Adium@35.106.2.81.in-addr.arpa> has joined #yocto | 04:12 | |
*** rburton <rburton!~Adium@35.106.2.81.in-addr.arpa> has quit IRC | 04:15 | |
jynik | kergoth: Thanks. I assume it's best to stick closely to that for recipes, eh? | 04:24 |
*** khem` is now known as onoffon | 04:34 | |
*** dvhart <dvhart!~dvhart@134.134.139.72> has quit IRC | 04:51 | |
*** zeddii_home <zeddii_home!~zeddii_ho@CPEe8de27b71faa-CMbcc810032faf.cpe.net.cable.rogers.com> has quit IRC | 05:07 | |
*** deviosity <deviosity!~deviosity@c-67-160-33-141.hsd1.wa.comcast.net> has quit IRC | 05:18 | |
*** cbzx <cbzx!~cbzx@CPE0015f275ecd5-CM00195edd810c.cpe.net.cable.rogers.com> has joined #yocto | 05:23 | |
*** seebs <seebs!~seebs@home.seebs.net> has quit IRC | 05:33 | |
*** seebs <seebs!~seebs@home.seebs.net> has joined #yocto | 05:43 | |
*** Snert_ <Snert_!~snert_@69.161.21.126> has quit IRC | 06:23 | |
*** cbzx <cbzx!~cbzx@CPE0015f275ecd5-CM00195edd810c.cpe.net.cable.rogers.com> has quit IRC | 06:27 | |
*** onoffon is now known as khem` | 06:57 | |
*** slidercrank <slidercrank!~slidercra@unaffiliated/slidercrank> has joined #yocto | 07:02 | |
*** khem` is now known as onoffon | 07:13 | |
*** slidercrank <slidercrank!~slidercra@unaffiliated/slidercrank> has quit IRC | 08:03 | |
*** ecdhe <ecdhe!~ecdhe@173-22-126-166.client.mchsi.com> has quit IRC | 08:09 | |
*** pohly <pohly!~pohly@p5DE8D1B8.dip0.t-ipconnect.de> has joined #yocto | 08:12 | |
*** ecdhe <ecdhe!~ecdhe@173-22-126-166.client.mchsi.com> has joined #yocto | 08:12 | |
*** onoffon <onoffon!~khem@unaffiliated/khem> has quit IRC | 08:30 | |
*** khem` <khem`!~khem@unaffiliated/khem> has joined #yocto | 08:31 | |
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has joined #yocto | 08:51 | |
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has joined #yocto | 09:17 | |
*** hsychla <hsychla!~hsychla@pd95c9392.dip0.t-ipconnect.de> has quit IRC | 09:32 | |
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has quit IRC | 10:01 | |
*** crankslider <crankslider!~slidercra@unaffiliated/slidercrank> has joined #yocto | 10:03 | |
*** evanp_ <evanp_!~evan@192.55.54.42> has joined #yocto | 10:22 | |
*** evanp <evanp!evan@nat/intel/x-stsxcvuriqpjexyi> has quit IRC | 10:24 | |
*** evanp_ is now known as evanp | 10:24 | |
*** townxelliot <townxelliot!~ell@94.7.148.253> has joined #yocto | 10:25 | |
*** townxelliot <townxelliot!~ell@94.7.148.253> has quit IRC | 10:30 | |
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has joined #yocto | 10:31 | |
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has quit IRC | 10:41 | |
*** evanp <evanp!~evan@192.55.54.42> has quit IRC | 10:59 | |
*** evanp <evanp!~evan@134.134.139.77> has joined #yocto | 11:01 | |
*** obsrwr <obsrwr!~obsrwr@188.24.244.199> has joined #yocto | 11:07 | |
*** ndec <ndec!~ndec@linaro/ndec> has quit IRC | 11:22 | |
*** atenart <atenart!~atenart@nat1.foo.tf> has quit IRC | 11:24 | |
*** ndec <ndec!~ndec@linaro/ndec> has joined #yocto | 11:24 | |
*** crankslider is now known as slidercrank | 11:28 | |
*** Crofton <Crofton!~balister@pool-108-44-110-59.ronkva.east.verizon.net> has quit IRC | 11:38 | |
*** atenart <atenart!~atenart@nat1.foo.tf> has joined #yocto | 12:15 | |
*** yann|work <yann|work!~yann@64.191.100.84.rev.sfr.net> has joined #yocto | 12:29 | |
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has quit IRC | 12:30 | |
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has joined #yocto | 12:31 | |
*** slidercrank <slidercrank!~slidercra@unaffiliated/slidercrank> has quit IRC | 12:55 | |
*** Mohican <Mohican!~Doug@187.74.87.227> has joined #yocto | 13:05 | |
*** Mohican-br <Mohican-br!~Doug@201-43-218-187.dsl.telesp.net.br> has joined #yocto | 13:11 | |
*** Mohican <Mohican!~Doug@187.74.87.227> has quit IRC | 13:14 | |
*** grma <grma!~gruberm@chello213047201250.tirol.surfer.at> has joined #yocto | 13:14 | |
*** Mohican-br <Mohican-br!~Doug@201-43-218-187.dsl.telesp.net.br> has quit IRC | 13:25 | |
*** Jackie_huang <Jackie_huang!~quassel@106.120.101.38> has quit IRC | 13:44 | |
*** Jackie <Jackie!~quassel@106.120.101.38> has joined #yocto | 13:45 | |
*** Jackie is now known as Guest14757 | 13:45 | |
obsrwr | Hello, I am a beginner using yocto. I have made a custom layer with a non-yocto kernel (Linus's tree), it compiles and installs fine but at do_package i get these errors http://pastebin.com/t0uxgW7A . I googled around a bit and saw that I should remove these in the do_install function. Could anyone give me a hint on how I can do that? | 14:14 |
*** vdehors_ <vdehors_!~vincent@LAubervilliers-656-1-235-184.w193-248.abo.wanadoo.fr> has joined #yocto | 14:23 | |
*** vdehors_ <vdehors_!~vincent@LAubervilliers-656-1-235-184.w193-248.abo.wanadoo.fr> has joined #yocto | 14:24 | |
*** vdehors__ <vdehors__!~vincent@LAubervilliers-656-1-235-184.w193-248.abo.wanadoo.fr> has quit IRC | 14:27 | |
*** pidge <pidge!~pidge@2a02:8084:0:3000:bc0e:9c7c:b9d4:cdfb> has quit IRC | 15:20 | |
*** pidge <pidge!~pidge@2a02:8084:0:3000:557b:cbc4:e080:8920> has joined #yocto | 15:26 | |
obsrwr | i just added this to my recipe and it seems to have fixed it | 15:47 |
obsrwr | do_install() { | 15:47 |
obsrwr | for x in `find ${B}*.ko.gz`;do | 15:47 |
obsrwr | rm $x | 15:47 |
obsrwr | done | 15:47 |
obsrwr | } | 15:47 |
rZr | obsrwr, your assuming there is no space in paths | 15:53 |
rZr | find -iname -exec rm -f "{}" | 15:54 |
rZr | will be safer isnt it ? | 15:54 |
obsrwr | crap, yes | 15:55 |
obsrwr | thanks | 15:55 |
rZr | you're welcome | 15:55 |
rZr | btw they could be other ways | 15:56 |
obsrwr | I'm sure they could :) but baby steps | 15:57 |
*** pevster <pevster!~pev@95.147.121.123> has joined #yocto | 16:04 | |
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has quit IRC | 16:17 | |
*** dv_ <dv_!~quassel@chello062178118086.5.14.vie.surfer.at> has joined #yocto | 16:20 | |
*** dv__ <dv__!~quassel@chello062178118086.5.14.vie.surfer.at> has quit IRC | 16:21 | |
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has joined #yocto | 16:32 | |
*** fledermaus <fledermaus!~vivek@78.32.176.249> has joined #yocto | 16:32 | |
*** soderstrom <soderstrom!~soderstro@c-608be555.015-59-6c6b7013.cust.bredbandsbolaget.se> has quit IRC | 16:40 | |
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has quit IRC | 16:45 | |
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has joined #yocto | 16:46 | |
*** pevster <pevster!~pev@95.147.121.123> has quit IRC | 16:58 | |
*** crankslider <crankslider!~slidercra@unaffiliated/slidercrank> has joined #yocto | 17:08 | |
*** cesdv <cesdv!~cesdv@client-188-168-43-165.spb-teleport.ru> has quit IRC | 17:27 | |
*** tyler-baker <tyler-baker!tyler-bake@gateway/shell/linaro/x-zmewzuqzsggtmfcc> has quit IRC | 17:41 | |
nerdboy | that for loop will execute the find command each time through the loop | 17:48 |
obsrwr | you know i never really thought it like that in bash | 17:50 |
* nerdboy still on first coffee... | 17:50 | |
nerdboy | but bash is a little weird sometimes | 17:50 |
obsrwr | it's not production code anyway, this is me playing with yocto outside of work xD | 17:50 |
obsrwr | still had a few problems after the rootfs was built, i couldn't mount the ext4 img | 17:51 |
obsrwr | so i'm doing a clean build now | 17:52 |
*** tyler-baker <tyler-baker!tyler-bake@gateway/shell/linaro/x-hsmtnozykyergxmx> has joined #yocto | 17:52 | |
* nerdboy looking at bash stuff | 17:54 | |
nerdboy | that's right, it's mostly the quoting/expansion of (possible) weird stuff | 17:55 |
nerdboy | a glob/regex is safest in the first line i think | 17:56 |
obsrwr | exactly what does ${B} expand to though | 18:02 |
nerdboy | where did you get that? | 18:03 |
obsrwr | i read it in the reference manuals, said it's the build directory, tried it, seems to have worked | 18:03 |
obsrwr | it says it's where objects end up in | 18:04 |
obsrwr | http://www.yoctoproject.org/docs/1.8/dev-manual/dev-manual.html#build-directory | 18:04 |
obsrwr | oh damn it's actually the 2nd path after sourcing oe-init | 18:05 |
obsrwr | i did a really dumb thing | 18:05 |
obsrwr | :) | 18:05 |
obsrwr | that deletes all the modules for all my machines | 18:06 |
obsrwr | because that's all i do in the do_install also, i think none of the modules actually get into my rootfs either | 18:07 |
obsrwr | how do you guys write a custom kernel layer? i just took linux-yocto-custom.bb | 18:08 |
nerdboy | B should be build dir | 18:09 |
nerdboy | and this is the nice but non-posix way: | 18:09 |
nerdboy | find . -name '*.temp' -delete | 18:09 |
nerdboy | plus quote your variables | 18:10 |
nerdboy | rm "${x}" | 18:10 |
obsrwr | this is common practice? | 18:11 |
nerdboy | common practice for recipes? | 18:11 |
obsrwr | yes | 18:11 |
nerdboy | probably shouln't depend on gnu extensions | 18:11 |
obsrwr | ah | 18:12 |
nerdboy | but you don't need a loop for that anyway | 18:12 |
obsrwr | so. find . -name '${B}*.ko.gz' -delete ? | 18:13 |
nerdboy | find "${B}"/foo -name \*.ko | xargs -0 rm | 18:14 |
nerdboy | er, -print0 before the pipe | 18:14 |
obsrwr | oh, got it | 18:15 |
*** cesdv <cesdv!~cesdv@client-188-168-43-165.spb-teleport.ru> has joined #yocto | 18:17 | |
obsrwr | i read that do_install opies from B to D so i'll replace {B} with {D} and see if that works better | 18:23 |
obsrwr | beause the problem is really do_package in my ase | 18:23 |
obsrwr | case* | 18:23 |
nerdboy | here's a nice one from an ebuild: find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g' | 18:25 |
obsrwr | :) | 18:28 |
nerdboy | to be "safe" should really do rm -f or -rf on the end of xargs | 18:32 |
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has quit IRC | 18:32 | |
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has joined #yocto | 18:32 | |
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has joined #yocto | 18:36 | |
obsrwr | huh | 18:40 |
obsrwr | http://pastebin.com/tu9sN2NJ | 18:40 |
obsrwr | do_install() { | 18:41 |
obsrwr | find "${D}" -name \*.ko.gz -print0 | xargs -0 rm | 18:41 |
obsrwr | } | 18:41 |
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has quit IRC | 18:43 | |
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has joined #yocto | 18:44 | |
obsrwr | getting slightly bizzare | 18:44 |
obsrwr | wait, i'm a moron | 18:50 |
obsrwr | nevermind | 18:50 |
obsrwr | can't possibly be something in D cause i'm overriding the do_install function | 18:50 |
obsrwr | __yeah__, i gotta find a better way | 18:53 |
obsrwr | Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. | 18:53 |
obsrwr | how do i get those modules packaged | 18:54 |
*** ddom <ddom!~ddom@ip-37-24-103-185.hsi14.unitymediagroup.de> has joined #yocto | 18:58 | |
kergoth | it just told you | 19:11 |
kergoth | set the FILES variables to include those paths | 19:11 |
kergoth | see the reference manual | 19:11 |
obsrwr | oh, FILES_${PN}.. i have seen the light | 19:17 |
*** fledermaus <fledermaus!~vivek@78.32.176.249> has quit IRC | 19:59 | |
*** domidimi <domidimi!~Dimitar@p54B365D1.dip0.t-ipconnect.de> has quit IRC | 21:11 | |
*** |thrawn| <|thrawn|!thrawn@executor.shadowhunt.de> has joined #yocto | 22:01 | |
*** bavery <bavery!~bavery@98.232.142.195> has quit IRC | 22:22 | |
*** obsrwr <obsrwr!~obsrwr@188.24.244.199> has quit IRC | 22:55 | |
*** bfederau <bfederau!~quassel@service.basyskom.com> has quit IRC | 23:01 | |
*** fmeerkoetter <fmeerkoetter!~quassel@service.basyskom.com> has quit IRC | 23:01 | |
*** bfederau <bfederau!~quassel@service.basyskom.com> has joined #yocto | 23:01 | |
*** fmeerkoetter <fmeerkoetter!~quassel@service.basyskom.com> has joined #yocto | 23:01 | |
*** raykinsella78 <raykinsella78!~rkinsell@192.198.151.44> has joined #yocto | 23:40 | |
*** raykinsella78 <raykinsella78!~rkinsell@192.198.151.44> has left #yocto | 23:59 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!