Skip to contentSkip to conversation

devtool and adding specific tag from repo

DISCUSSION Brian Kurle 2 participants 3 messages Apr 19, 2017 – Apr 20, 2017

lore
Share & tools
lore
#0 lore raw

I'm trying to get up to speed on devtool.

I've created a generic eSDK (poky and meta-openembedded) and installed it.

From there, I'm trying to create a new recipe, but I apparently am not executing it correctly to pull the desired tag.

If I execute:

devtool add --version 2.4.2 mbedtls [email protected]:ARMmbed/mbedtls.git

or

devtool add --version 2.4.2 mbedtls [email protected]:ARMmbed/mbedtls.git;tag=mbedtls-2.4.2

or

devtool add --version mbedtls-2.4.2 mbedtls [email protected]:ARMmbed/mbedtls.git

It still manages to get the wrong hash (not even the right branch).

Is this a limitation of devtool, or is a better way to do this? (E.g., just go to the sources directory, check it out and manually update the recipe?)

My goal is to set up a stock recipe off of the mbedtls-2.4.2 tag, where I'll then create a bbappend to add additional patches and configuration specific for our platform. I could do it manually, but it would be nice to know how to do it "the right way" for the documentation I'll pass to others on my team.

Guidance and correction would be most appreciated.

Thanks,

brian

#1 lore raw
Quoted 27 lines · NZST Brian Kurle

I'm trying to get up to speed on devtool.

I've created a generic eSDK (poky and meta-openembedded) and installed it.

From there, I'm trying to create a new recipe, but I apparently am not executing it correctly to pull the desired tag.

If I execute:

devtool add --version 2.4.2 mbedtls [email protected]:ARMmbed/mbedtls.git

or

devtool add --version 2.4.2 mbedtls [email protected]:ARMmbed/mbedtls.git;tag=mbedtls-2.4.2

or

devtool add --version mbedtls-2.4.2 mbedtls
[email protected]:ARMmbed/mbedtls.git

It still manages to get the wrong hash (not even the right branch).

Is this a limitation of devtool, or is a better way to do this? (E.g., just go to the sources directory, check it out and manually update the recipe?)

Quoted 7 lines

My goal is to set up a stock recipe off of the mbedtls-2.4.2 tag, where I'll then create a bbappend to add additional patches and configuration specific for our platform. I could do it manually, but it would be nice to know how to do it "the right way" for the documentation I'll pass to others on my team.

Guidance and correction would be most appreciated.

For everyone's benefit, FYI Brian and I have talked offline, but there are several bugs and opportunities for improvement here as it turns out. I have filed the following bugs:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=11389
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11390
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11391
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11393
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11392

The current workaround for this particular example is to use this:

devtool add --version 2.4.2 mbedtls "git://github.com/ARMmbed/mbedtls;branch=mbedtls-2.4;rev=mbedtls-2.4.2"

By using the default git protocol rather than ssh, we avoid having to use git@ which avoids triggering 11390 or 11391. Also worth noting is that you must use quotes around the URL if you're specifying a revision and/or branch because of the ; character, otherwise your shell will eat that part and because something=value is a valid shell command you won't get an error. It could be that we need to provide additional explicit command-line options for specifying the branch/tag/revision to avoid that, I'm not sure if there's another practical way - suggestions welcome.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw
Quoted 19 lines · Paul Eggleton
Quoted 8 lines

...
My goal is to set up a stock recipe off of the mbedtls-2.4.2 tag, where I'll then create a bbappend to add additional patches and configuration specific for our platform. I could do it manually, but it would be nice to know how to do it "the right way" for the documentation I'll pass to others on my team.

Guidance and correction would be most appreciated.

For everyone's benefit, FYI Brian and I have talked offline, but there are several bugs and opportunities for improvement here as it turns out. I have filed the following bugs:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=11389
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11390
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11391
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11393
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11392

Quoted 4 lines

The current workaround for this particular example is to use this:

devtool add --version 2.4.2 mbedtls "git://github.com/ARMmbed/mbedtls;branch=mbedtls-2.4;rev=mbedtls-2.4.2"
...

Paul,

Again, thanks for the assistance on this.

brian

Quoted 8 lines

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre