<hcg>
I am having an issue trying to append to do_patch in a bbappend of a particular kernel recipe, in this instance trying to bbappend linux-ti-staging_6.1 from meta-ti. I receive a syntax error and it appears as though bitbake is attempting to treat the code within my do_patch:append(){} block as python code as opposed to shell script code. I have
<hcg>
previously used the same mechanism in linux-yocto bbappends and in those recipes the shell script code is interpreted correctly as shell script code. Has anyone encountered this behavior?
pjoh has joined #yocto
pjoh has quit [Client Quit]
<yocton>
hcg: do_patch may be a python task in linux-ti-staging_6.1 ? "bitbake -e linux-ti-staging_6.1" should tell you
pabigot has quit [Ping timeout: 264 seconds]
<yocton>
hcg: If I'm not mistaken, you can extend a task in another langage (python vs shell) by using the pre/postfuncs mecanism
Vonter has quit [Remote host closed the connection]
pabigot has joined #yocto
Vonter has joined #yocto
neofutur_ has quit [Ping timeout: 255 seconds]
neofutur has joined #yocto
hcg has quit [Ping timeout: 250 seconds]
goliath has joined #yocto
lthadeus has joined #yocto
zpfvo has quit [Ping timeout: 256 seconds]
hcg has joined #yocto
zpfvo has joined #yocto
alessioigor has quit [Quit: alessioigor]
alessioigor has joined #yocto
<hcg>
yocton: thanks for the tip - in the mean-time I had extended it by using:
<hcg>
do_patch:append() {
<hcg>
bb.build.exec_func('custom_do_patch', d)
<hcg>
}
<hcg>
and my custom_do_patch shell script, so at least I can do what I intended, but I will dig further to try to figure out why do_patch in that recipe is a python task
amitk_ has joined #yocto
starblue has quit [Ping timeout: 245 seconds]
starblue has joined #yocto
hcg has quit [Quit: Client closed]
hcg has joined #yocto
lthadeus has quit [Ping timeout: 245 seconds]
alessioigor has quit [Quit: alessioigor]
alessioigor has joined #yocto
<mckoan>
hcg: how do you argue iyt is called as python ?
<mckoan>
s/iyt/it
<hcg>
mckoan: I see the following error message:
<hcg>
File "/home/guh/work1/master4/evalboard-build/meta/poky/bitbake/lib/bb/codeparser.py", line 319, in PythonParser.parse_python(node="\n bb.build.exec_func('patch_do_patch', d)\n # install device tree into source tree\n cp ${WORKDIR}/*.dts* ${S}/arch/${ARCH}/boot/dts/\n", lineno=1, filename='autogenerated'):
<rburton>
yeah do_patch is python, you can't just :append. as yocton said, use a postfunc.
<rburton>
append is literal string append, so only for the brave and when you know what you're appending.
<mckoan>
hcg: IMHO do_patch is not the right place to such 'cp'
<hcg>
rburton: I am very confused because I use :append in bbappends on the linux-yocto recipes from poky and that works perfectly - I am migrating one of our legacy platforms which was using the kirkstone version of linux-yocto to use the 6.1 kernel in meta-ti and hit this issue in the migration, so do_patch appears to be shell script in the linux-yocto
<hcg>
recipes
<rburton>
remember what I said about knowing what you're doing?
<hcg>
Ah, that explains it fully then - thank you very much!
<hcg>
I see, yes
alessioigor has quit [Quit: alessioigor]
alessioigor has joined #yocto
lthadeus has joined #yocto
Kubu_work has joined #yocto
amitk_ has quit [Ping timeout: 256 seconds]
hcg91 has joined #yocto
hcg91 has quit [Client Quit]
hcg49 has joined #yocto
hcg49 has quit [Client Quit]
hcg has quit [Ping timeout: 250 seconds]
lthadeus has quit [Ping timeout: 268 seconds]
RobertBerger has joined #yocto
rber|res has quit [Ping timeout: 264 seconds]
neofutur has quit [Ping timeout: 252 seconds]
neofutur_ has joined #yocto
RobertBerger has quit [Quit: Leaving]
qorin has joined #yocto
<qorin>
hi all, has anyone had any experience with creating custom do_fetch with curl? I am trying to download a maven azure artifact feed package and wget won't work.
Vonter has quit [Ping timeout: 240 seconds]
Vonter has joined #yocto
alperak has quit [Quit: Client closed]
<rburton>
qorin: why doesn't wget work (and why do would using curl work)
<qorin>
like so and beside dot and dash there are no other special characters. i use the same url2 variable in curl and there is no issue.
<rburton>
fun
<qorin>
:D
<rburton>
if you're feeling adventurous you could change the fetchcmd in that recipe so it uses curl
<rburton>
FETCHCMD_wget is the variable used to run wget. i'm curious how much it gets extended with wget options...
<qorin>
how can i add curl before do_fetch ? i used DEPENDS="curl-native" but i look at the task order do_fetch is always run first idk what will happen if the order of these are changed..
<rburton>
DEPENDS is shorthand for do_configure[depends]
<rburton>
so you want do_fetch[depends] += "curl-native:do_populate_sysroot"
<qorin>
ah
<qorin>
nice
<rburton>
and filing a wget bug seems like a good idea
<rburton>
if there's an option i can't see it from a skim of the manpage
<qorin>
i only saw there is an option to change max redirect. also skim trhough a bunch of stackoverflow pages, most people recommend to just use curl..
mvlad has quit [Remote host closed the connection]
xmn has joined #yocto
vladest has joined #yocto
neofutur has quit [Ping timeout: 268 seconds]
neofutur_ has joined #yocto
<yocton>
Shouldn't this be `&uart0_pins{` ? The definition look like this "[label:] node-name[@unit-address] { ..." and you can only do a "&ref" to a label
cordelia has joined #yocto
cordelia has quit [Quit: Client closed]
<yocton>
yudjinn: ^
qorin has joined #yocto
<qorin>
rburton while typing your name the auto name-link replace the thank :D
alessioigor has quit [Quit: alessioigor]
jmd has quit [Remote host closed the connection]
Notgnoshi has joined #yocto
nots has quit [Ping timeout: 245 seconds]
qorin has quit [Quit: Client closed]
prabhakarlad has quit [Quit: Client closed]
Saur_Home32 has quit [Quit: Client closed]
Saur_Home32 has joined #yocto
alimon has quit [Ping timeout: 268 seconds]
Estrella has quit [Ping timeout: 268 seconds]
prabhakarlad has joined #yocto
Saur_Home32 has quit [Quit: Client closed]
Saur_Home32 has joined #yocto
Estrella has joined #yocto
nerdboy has quit [Remote host closed the connection]