Saturday, 2015-12-05

*** seebs <seebs!> has joined #yocto00:02
*** khem` is now known as onoffon00:04
jynikWell yet another dash vs bash item bit me in the arse00:11
jynikprintf '\xa2' | hexump -C00:11
*** YoctoAutoBuilder <YoctoAutoBuilder!> has quit IRC00:11
jynikdifferent results in dash and bash00:11
*** YoctoAutoBuilder <YoctoAutoBuilder!> has joined #yocto00:12
jynikdash yields 4 characters, the string "\xa2", wheras bash lands you the byte 0xa2. Long story... part of an image fixup00:13
*** IvanSB <IvanSB!> has quit IRC00:17
jynikAnyone happen to know if this is a POSIX-ism or just dash being silly?00:17
*** Aethenelle <Aethenelle!~Aethenell@> has quit IRC00:18
*** cbzx <cbzx!> has quit IRC00: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 IRC00:25
*** stwcx <stwcx!~stwcx@> has quit IRC00:38
*** khem` is now known as onoffon00:41
*** onoffon is now known as khem`00:41
*** khem` is now known as onoffon00:42
*** onoffon is now known as khem`00:42
*** Aethenelle <Aethenelle!~Aethenell@> has joined #yocto00:42
*** soderstrom <soderstrom!> has quit IRC00:56
*** fledermaus <fledermaus!~vivek@> has joined #yocto00:58
*** Net147 <Net147!~Net147@unaffiliated/net147> has quit IRC01:02
*** Net147 <Net147!~Net147@unaffiliated/net147> has joined #yocto01:03
*** pevster <pevster!~pev@> has joined #yocto01:45
*** fledermaus <fledermaus!~vivek@> has quit IRC01:49
*** Aethenelle <Aethenelle!~Aethenell@> has quit IRC01:51
kergothjynik: via
*** Snert <Snert!> has joined #yocto02:09
*** dreyna4529 <dreyna4529!> has quit IRC02:16
*** kscherer <kscherer!~kscherer@> has quit IRC02:25
*** Jackie_huang <Jackie_huang!~quassel@> has quit IRC02:47
*** Jackie_huang <Jackie_huang!~quassel@> has joined #yocto02:49
*** sjolley <sjolley!~sjolley@> has joined #yocto03:00
*** sjolley1 <sjolley1!~sjolley@> has quit IRC03:00
*** hsychla <hsychla!> has quit IRC04:04
*** hsychla <hsychla!> has joined #yocto04:10
*** pevster <pevster!~pev@> has quit IRC04:12
*** rburton <rburton!> has joined #yocto04:12
*** rburton <rburton!> has quit IRC04:15
jynikkergoth: Thanks. I assume it's best to stick closely to that for recipes, eh?04:24
*** khem` is now known as onoffon04:34
*** dvhart <dvhart!~dvhart@> has quit IRC04:51
*** zeddii_home <zeddii_home!> has quit IRC05:07
*** deviosity <deviosity!> has quit IRC05:18
*** cbzx <cbzx!> has joined #yocto05:23
*** seebs <seebs!> has quit IRC05:33
*** seebs <seebs!> has joined #yocto05:43
*** Snert_ <Snert_!~snert_@> has quit IRC06:23
*** cbzx <cbzx!> has quit IRC06:27
*** onoffon is now known as khem`06:57
*** slidercrank <slidercrank!~slidercra@unaffiliated/slidercrank> has joined #yocto07:02
*** khem` is now known as onoffon07:13
*** slidercrank <slidercrank!~slidercra@unaffiliated/slidercrank> has quit IRC08:03
*** ecdhe <ecdhe!> has quit IRC08:09
*** pohly <pohly!> has joined #yocto08:12
*** ecdhe <ecdhe!> has joined #yocto08:12
*** onoffon <onoffon!~khem@unaffiliated/khem> has quit IRC08:30
*** khem` <khem`!~khem@unaffiliated/khem> has joined #yocto08:31
*** domidimi <domidimi!> has joined #yocto08:51
*** soderstrom <soderstrom!> has joined #yocto09:17
*** hsychla <hsychla!> has quit IRC09:32
*** domidimi <domidimi!> has quit IRC10:01
*** crankslider <crankslider!~slidercra@unaffiliated/slidercrank> has joined #yocto10:03
*** evanp_ <evanp_!~evan@> has joined #yocto10:22
*** evanp <evanp!evan@nat/intel/x-stsxcvuriqpjexyi> has quit IRC10:24
*** evanp_ is now known as evanp10:24
*** townxelliot <townxelliot!~ell@> has joined #yocto10:25
*** townxelliot <townxelliot!~ell@> has quit IRC10:30
*** domidimi <domidimi!> has joined #yocto10:31
*** domidimi <domidimi!> has quit IRC10:41
*** evanp <evanp!~evan@> has quit IRC10:59
*** evanp <evanp!~evan@> has joined #yocto11:01
*** obsrwr <obsrwr!~obsrwr@> has joined #yocto11:07
*** ndec <ndec!~ndec@linaro/ndec> has quit IRC11:22
*** atenart <atenart!> has quit IRC11:24
*** ndec <ndec!~ndec@linaro/ndec> has joined #yocto11:24
*** crankslider is now known as slidercrank11:28
*** Crofton <Crofton!> has quit IRC11:38
*** atenart <atenart!> has joined #yocto12:15
*** yann|work <yann|work!> has joined #yocto12:29
*** soderstrom <soderstrom!> has quit IRC12:30
*** soderstrom <soderstrom!> has joined #yocto12:31
*** slidercrank <slidercrank!~slidercra@unaffiliated/slidercrank> has quit IRC12:55
*** Mohican <Mohican!~Doug@> has joined #yocto13:05
*** Mohican-br <Mohican-br!> has joined #yocto13:11
*** Mohican <Mohican!~Doug@> has quit IRC13:14
*** grma <grma!> has joined #yocto13:14
*** Mohican-br <Mohican-br!> has quit IRC13:25
*** Jackie_huang <Jackie_huang!~quassel@> has quit IRC13:44
*** Jackie <Jackie!~quassel@> has joined #yocto13:45
*** Jackie is now known as Guest1475713:45
obsrwrHello, 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 . 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_!> has joined #yocto14:23
*** vdehors_ <vdehors_!> has joined #yocto14:24
*** vdehors__ <vdehors__!> has quit IRC14:27
*** pidge <pidge!~pidge@2a02:8084:0:3000:bc0e:9c7c:b9d4:cdfb> has quit IRC15:20
*** pidge <pidge!~pidge@2a02:8084:0:3000:557b:cbc4:e080:8920> has joined #yocto15:26
obsrwri just added this to my recipe and it seems to have fixed it15:47
obsrwrdo_install() {15:47
obsrwr        for x in `find ${B}*.ko.gz`;do15:47
obsrwr                rm $x15:47
obsrwr        done15:47
rZrobsrwr, your assuming there is no space in paths15:53
rZrfind -iname -exec rm -f "{}"15:54
rZrwill be safer isnt it ?15:54
obsrwrcrap, yes15:55
rZryou're welcome15:55
rZrbtw they could be other ways15:56
obsrwrI'm sure they could :) but baby steps15:57
*** pevster <pevster!~pev@> has joined #yocto16:04
*** soderstrom <soderstrom!> has quit IRC16:17
*** dv_ <dv_!> has joined #yocto16:20
*** dv__ <dv__!> has quit IRC16:21
*** soderstrom <soderstrom!> has joined #yocto16:32
*** fledermaus <fledermaus!~vivek@> has joined #yocto16:32
*** soderstrom <soderstrom!> has quit IRC16:40
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has quit IRC16:45
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has joined #yocto16:46
*** pevster <pevster!~pev@> has quit IRC16:58
*** crankslider <crankslider!~slidercra@unaffiliated/slidercrank> has joined #yocto17:08
*** cesdv <cesdv!> has quit IRC17:27
*** tyler-baker <tyler-baker!tyler-bake@gateway/shell/linaro/x-zmewzuqzsggtmfcc> has quit IRC17:41
nerdboythat for loop will execute the find command each time through the loop17:48
obsrwryou know i never really thought it like that in bash17:50
* nerdboy still on first coffee...17:50
nerdboybut bash is a little weird sometimes17:50
obsrwrit's not production code anyway, this is me playing with yocto outside of work xD17:50
obsrwrstill had a few problems after the rootfs was built, i couldn't mount the ext4 img17:51
obsrwrso i'm doing a clean build now17:52
*** tyler-baker <tyler-baker!tyler-bake@gateway/shell/linaro/x-hsmtnozykyergxmx> has joined #yocto17:52
* nerdboy looking at bash stuff17:54
nerdboythat's right, it's mostly the quoting/expansion of (possible) weird stuff17:55
nerdboya glob/regex is safest in the first line i think17:56
obsrwrexactly what does ${B} expand to though18:02
nerdboywhere did you get that?18:03
obsrwri read it in the reference manuals, said it's the build directory, tried it, seems to have worked18:03
obsrwrit says it's where objects end up in18:04
obsrwroh damn it's actually the 2nd path after sourcing oe-init18:05
obsrwri did a really dumb thing18:05
obsrwrthat deletes all the modules for all my machines18:06
obsrwrbecause that's all i do in the do_install also, i think none of the modules actually get into my rootfs either18:07
obsrwrhow do you guys write a custom kernel layer? i just took linux-yocto-custom.bb18:08
nerdboyB should be build dir18:09
nerdboyand this is the nice but non-posix way:18:09
nerdboyfind . -name '*.temp' -delete18:09
nerdboyplus quote your variables18:10
nerdboyrm "${x}"18:10
obsrwrthis is common practice?18:11
nerdboycommon practice for recipes?18:11
nerdboyprobably shouln't depend on gnu extensions18:11
nerdboybut you don't need a loop for that anyway18:12
obsrwrso. find . -name '${B}*.ko.gz' -delete ?18:13
nerdboyfind "${B}"/foo -name \*.ko | xargs -0 rm18:14
nerdboyer, -print0 before the pipe18:14
obsrwroh, got it18:15
*** cesdv <cesdv!> has joined #yocto18:17
obsrwri read that do_install opies from B to D so i'll replace {B} with {D} and see if that works better18:23
obsrwrbeause the problem is really do_package in my ase18:23
nerdboyhere's a nice one from an ebuild: find . -name -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'18:25
nerdboyto be "safe" should really do rm -f or -rf on the end of xargs18:32
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has quit IRC18:32
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has joined #yocto18:32
*** domidimi <domidimi!> has joined #yocto18:36
obsrwrdo_install() {18:41
obsrwr        find "${D}" -name \*.ko.gz -print0 | xargs -0 rm18:41
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has quit IRC18:43
*** psadro <psadro!~Thunderbi@2620:0:ed0:800a:72f3:95ff:fe1d:9866> has joined #yocto18:44
obsrwrgetting slightly bizzare18:44
obsrwrwait, i'm a moron18:50
obsrwrcan't possibly be something in D cause i'm overriding the do_install function18:50
obsrwr__yeah__, i gotta find a better way18:53
obsrwrPlease set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.18:53
obsrwrhow do i get those modules packaged18:54
*** ddom <ddom!> has joined #yocto18:58
kergothit just told you19:11
kergothset the FILES variables to include those paths19:11
kergothsee the reference manual19:11
obsrwroh, FILES_${PN}.. i have seen the light19:17
*** fledermaus <fledermaus!~vivek@> has quit IRC19:59
*** domidimi <domidimi!> has quit IRC21:11
*** |thrawn| <|thrawn|!> has joined #yocto22:01
*** bavery <bavery!~bavery@> has quit IRC22:22
*** obsrwr <obsrwr!~obsrwr@> has quit IRC22:55
*** bfederau <bfederau!> has quit IRC23:01
*** fmeerkoetter <fmeerkoetter!> has quit IRC23:01
*** bfederau <bfederau!> has joined #yocto23:01
*** fmeerkoetter <fmeerkoetter!> has joined #yocto23:01
*** raykinsella78 <raykinsella78!~rkinsell@> has joined #yocto23:40
*** raykinsella78 <raykinsella78!~rkinsell@> has left #yocto23:59

Generated by 2.11.0 by Marius Gedminas - find it at!