Getting TI tools into [host] SDK
I'm trying to build a [host] SDK for my target which uses some TI tools, via -c populate_sdk_ext
In particular, I'm using recipes-ti/devtools/ti-cgt-pru_2.1.4.bb
I include ti-cgt-pru-native to use the tools in my bitbake recipes - that works fine. I include ti-cgt-pru in my target image to get the tools on my board - that also works.
The problem is that in my SDK, none of the binaries are included, including clpru:
$ ls -l /home/gthomas/my_ti_sdk/tmp/sysroots/rainier-p8701/usr/share/ti/cgt-pru total 16 drwxrwxr-x 2 gthomas gthomas 12288 Mar 8 08:22 include drwxrwxr-x 3 gthomas gthomas 4096 Mar 8 08:22 lib
I added this to try and include the files:
TOOLCHAIN_HOST_TASK += "'nativesdk-ti-cgt-pru"
and I can see that there was a nativesdk-ti-cgt-pru built which does have all the executables included, they just aren't being packaged.
$ ls tmp/work/x86_64-nativesdk-mysdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/mydistro/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/bin abspru arpru cgpru clpru dispru hexpru libinfopru nmpru optpru xrefpru acpiapru asmpru clistpru dempru embedpru ilkpru lnkpru ofdpru strippru
Any ideas on what I need to do to get the binary executables into my SDK?
Note: I copied just those (bin) files into my SDK target sysroot usr/bin and the compiler runs just fine. I just need to figure out the recipe magic to make this happen.
Thanks
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 14 lines · Gary Thomas
I'm trying to build a [host] SDK for my target which uses some TI tools, via -c
populate_sdk_extIn particular, I'm using recipes-ti/devtools/ti-cgt-pru_2.1.4.bb
I include ti-cgt-pru-native to use the tools in my bitbake recipes - that works fine. I include ti-cgt-pru in my target image to get the tools on my board - that also works.The problem is that in my SDK, none of the binaries are included, including clpru:
$ ls -l /home/gthomas/my_ti_sdk/tmp/sysroots/rainier-p8701/usr/share/ti/cgt-pru total 16 drwxrwxr-x 2 gthomas gthomas 12288 Mar 8 08:22 include drwxrwxr-x 3 gthomas gthomas 4096 Mar 8 08:22 lib
Quoted 6 lines
I added this to try and include the files:
TOOLCHAIN_HOST_TASK+= "'nativesdk-ti-cgt-pru"
and I can see that there was a nativesdk-ti-cgt-pru built which does have all the executables included, they just aren't being packaged.$ ls tmp/work/x86_64-nativesdk-mysdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/mydistro/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/bin
perhaps you need to correct the install location for nativesdk may be via overriding do_install
Quoted 20 lines
abspru arpru cgpru clpru dispru hexpru libinfopru nmpru optpru xrefpru acpiapru asmpru clistpru dempru embedpru ilkpru lnkpru ofdpru strippruAny ideas on what I need to do to get the binary executables into my SDK?
Note: I copied just those (bin) files into my SDK target sysroot usr/bin and the compiler runs just fine. I just need to figure out the recipe magic to make this happen.
Thanks
Signature · 9 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 3 lines · Khem Raj
Quoted 2 lines · Gary Thomas
I'm trying to build a [host] SDK for my target which uses some TI tools, via -c
populate_sdk_ext
Gary,
We don't use -c populate_sdk to produce SDKs. Instead, we still rely on the old meta-toolchain mechanism. First, because it can be incorporated into other recipes - i.e. we have a recipe that combines rootfs and SDK into one tarball. Second, it provides more control to what get's packaged into SDK. Third, it doesn't have this undefined magic to packaging stuff - i.e. this post is an example of it failing. And only one slight drawback - requires keeping rootfs image recipe in sync with meta-toolchain SDK recipe...
Quoted 16 lines
Quoted 16 lines
In particular, I'm using recipes-ti/devtools/ti-cgt-pru_2.1.4.bb
I include ti-cgt-pru-native to use the tools in my bitbake recipes - that works fine. I include ti-cgt-pru in my target image to get the tools on my board - that also works.The problem is that in my SDK, none of the binaries are included, including clpru:
$ ls -l /home/gthomas/my_ti_sdk/tmp/sysroots/rainier-p8701/usr/share/ti/cgt-pru total 16 drwxrwxr-x 2 gthomas gthomas 12288 Mar 8 08:22 include drwxrwxr-x 3 gthomas gthomas 4096 Mar 8 08:22 libI added this to try and include the files:
TOOLCHAIN_HOST_TASK+= "'nativesdk-ti-cgt-pru"
and I can see that there was a nativesdk-ti-cgt-pru built which does have all the executables included, they just aren't being packaged.
Quoted 4 lines
Quoted 1 line
$ ls tmp/work/x86_64-nativesdk-mysdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/mydistro/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/binperhaps you need to correct the install location for nativesdk may be via overriding
do_install
Why?
Signature · 1 line
Denys
Quoted 7 lines
Quoted 7 lines
abspru arpru cgpru clpru dispru hexpru libinfopru nmpru optpru xrefpru acpiapru asmpru clistpru dempru embedpru ilkpru lnkpru ofdpru strippruAny ideas on what I need to do to get the binary executables into my SDK?
Note: I copied just those (bin) files into my SDK target sysroot usr/bin and the compiler runs just fine. I just need to figure out the recipe magic to make this happen.
Quoted 32 lines · Denys Dmytriyenko
Quoted 3 lines · Khem Raj
Quoted 2 lines · Gary Thomas
I'm trying to build a [host] SDK for my target which uses some TI tools, via -c
populate_sdk_extGary,
We don't use -c
populate_sdkto produce SDKs. Instead, we still rely on the old meta-toolchain mechanism. First, because it can be incorporated into other recipes - i.e. we have a recipe that combines rootfs and SDK into one tarball. Second, it provides more control to what get's packaged into SDK. Third, it doesn't have this undefined magic to packaging stuff - i.e. this post is an example of it failing. And only one slight drawback - requires keeping rootfs image recipe in sync with meta-toolchain SDK recipe...Quoted 16 lines
Quoted 16 lines
In particular, I'm using recipes-ti/devtools/ti-cgt-pru_2.1.4.bb
I include ti-cgt-pru-native to use the tools in my bitbake recipes - that works fine. I include ti-cgt-pru in my target image to get the tools on my board - that also works.The problem is that in my SDK, none of the binaries are included, including clpru:
$ ls -l /home/gthomas/my_ti_sdk/tmp/sysroots/rainier-p8701/usr/share/ti/cgt-pru total 16 drwxrwxr-x 2 gthomas gthomas 12288 Mar 8 08:22 include drwxrwxr-x 3 gthomas gthomas 4096 Mar 8 08:22 libI added this to try and include the files:
TOOLCHAIN_HOST_TASK+= "'nativesdk-ti-cgt-pru"
and I can see that there was a nativesdk-ti-cgt-pru built which does have all the executables included, they just aren't being packaged.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
$ ls tmp/work/x86_64-nativesdk-mysdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/mydistro/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/binperhaps you need to correct the install location for nativesdk may be via overriding
do_installWhy?
because /usr/share doesnt look normal place for putting executables.
Quoted 35 lines · Khem Raj
Quoted 32 lines · Denys Dmytriyenko
Quoted 3 lines · Khem Raj
Quoted 2 lines · Gary Thomas
I'm trying to build a [host] SDK for my target which uses some TI tools, via -c
populate_sdk_extGary,
We don't use -c
populate_sdkto produce SDKs. Instead, we still rely on the old meta-toolchain mechanism. First, because it can be incorporated into other recipes - i.e. we have a recipe that combines rootfs and SDK into one tarball. Second, it provides more control to what get's packaged into SDK. Third, it doesn't have this undefined magic to packaging stuff - i.e. this post is an example of it failing. And only one slight drawback - requires keeping rootfs image recipe in sync with meta-toolchain SDK recipe...Quoted 16 lines
Quoted 16 lines
In particular, I'm using recipes-ti/devtools/ti-cgt-pru_2.1.4.bb
I include ti-cgt-pru-native to use the tools in my bitbake recipes - that works fine. I include ti-cgt-pru in my target image to get the tools on my board - that also works.The problem is that in my SDK, none of the binaries are included, including clpru:
$ ls -l /home/gthomas/my_ti_sdk/tmp/sysroots/rainier-p8701/usr/share/ti/cgt-pru total 16 drwxrwxr-x 2 gthomas gthomas 12288 Mar 8 08:22 include drwxrwxr-x 3 gthomas gthomas 4096 Mar 8 08:22 libI added this to try and include the files:
TOOLCHAIN_HOST_TASK+= "'nativesdk-ti-cgt-pru"
and I can see that there was a nativesdk-ti-cgt-pru built which does have all the executables included, they just aren't being packaged.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
$ ls tmp/work/x86_64-nativesdk-mysdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/mydistro/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/binperhaps you need to correct the install location for nativesdk may be via overriding
do_installWhy?
because
/usr/sharedoesnt look normal place for putting executables.
True in general, but that shouldn't matter. FILES_${PN} lists those and that should be enough. It appears you are just guessing...
Sidenote:
This PRU CodeGen toolchain is kind of weird - it targets PRUs (Programmable Real-time Units http://elinux.org/Ti_AM33XX_PRUSSv2) and provides binaries in bin/, headers in include/ and libraries in lib/ directories. Some of the names collide with system (e.g. libc.a) and hence cannot be installed in standard locations, thus /usr/share. In fact, many of non-Linux specific components that deal with specialized cores (i.e. non-general-purpose ARM, such as DSP, PRU, IPU, numerous Cortex-M accelerators, etc.) are in fact as weird and are also getting installed in /usr/share to not confuse people and not conflict with the rest of the system...
Signature · 1 line
Denys
Quoted 48 lines · Denys Dmytriyenko
Quoted 35 lines · Khem Raj
Quoted 32 lines · Denys Dmytriyenko
Quoted 3 lines · Khem Raj
Quoted 2 lines · Gary Thomas
I'm trying to build a [host] SDK for my target which uses some TI tools, via -c
populate_sdk_extGary,
We don't use -c
populate_sdkto produce SDKs. Instead, we still rely on the old meta-toolchain mechanism. First, because it can be incorporated into other recipes - i.e. we have a recipe that combines rootfs and SDK into one tarball. Second, it provides more control to what get's packaged into SDK. Third, it doesn't have this undefined magic to packaging stuff - i.e. this post is an example of it failing. And only one slight drawback - requires keeping rootfs image recipe in sync with meta-toolchain SDK recipe...Quoted 16 lines
Quoted 16 lines
In particular, I'm using recipes-ti/devtools/ti-cgt-pru_2.1.4.bb
I include ti-cgt-pru-native to use the tools in my bitbake recipes - that works fine. I include ti-cgt-pru in my target image to get the tools on my board - that also works.The problem is that in my SDK, none of the binaries are included, including clpru:
$ ls -l /home/gthomas/my_ti_sdk/tmp/sysroots/rainier-p8701/usr/share/ti/cgt-pru total 16 drwxrwxr-x 2 gthomas gthomas 12288 Mar 8 08:22 include drwxrwxr-x 3 gthomas gthomas 4096 Mar 8 08:22 libI added this to try and include the files:
TOOLCHAIN_HOST_TASK+= "'nativesdk-ti-cgt-pru"
and I can see that there was a nativesdk-ti-cgt-pru built which does have all the executables included, they just aren't being packaged.Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
$ ls tmp/work/x86_64-nativesdk-mysdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/mydistro/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/binperhaps you need to correct the install location for nativesdk may be via overriding
do_installWhy?
because
/usr/sharedoesnt look normal place for putting executables.True in general, but that shouldn't matter. FILES_${PN} lists those and that should be enough. It appears you are just guessing...
Quoted 11 lines
Sidenote:
This PRU CodeGen toolchain is kind of weird - it targets PRUs (Programmable Real-time Units http://elinux.org/Ti_AM33XX_PRUSSv2) and provides binaries in bin/, headers ininclude/and libraries inlib/directories. Some of the names collide with system (e.g. libc.a) and hence cannot be installed in standard locations, thus/usr/share. In fact, many of non-Linux specific components that deal with specialized cores (i.e. non-general-purpose ARM, such as DSP, PRU, IPU, numerous Cortex-M accelerators, etc.) are in fact as weird and are also getting installed in/usr/shareto not confuse people and not conflict with the rest of the system...
it would be better to have multiple sysroots for all these variants would be way simpler and understandable, but why do I care.
Quoted 62 lines · Khem Raj
Quoted 48 lines · Denys Dmytriyenko
Quoted 35 lines · Khem Raj
Quoted 32 lines · Denys Dmytriyenko
Quoted 3 lines · Khem Raj
Quoted 2 lines · Gary Thomas
I'm trying to build a [host] SDK for my target which uses some TI tools, via -c
populate_sdk_extGary,
We don't use -c
populate_sdkto produce SDKs. Instead, we still rely on the old meta-toolchain mechanism. First, because it can be incorporated into other recipes - i.e. we have a recipe that combines rootfs and SDK into one tarball. Second, it provides more control to what get's packaged into SDK. Third, it doesn't have this undefined magic to packaging stuff - i.e. this post is an example of it failing. And only one slight drawback - requires keeping rootfs image recipe in sync with meta-toolchain SDK recipe...Quoted 16 lines
Quoted 16 lines
In particular, I'm using recipes-ti/devtools/ti-cgt-pru_2.1.4.bb
I include ti-cgt-pru-native to use the tools in my bitbake recipes - that works fine. I include ti-cgt-pru in my target image to get the tools on my board - that also works.The problem is that in my SDK, none of the binaries are included, including clpru:
$ ls -l /home/gthomas/my_ti_sdk/tmp/sysroots/rainier-p8701/usr/share/ti/cgt-pru total 16 drwxrwxr-x 2 gthomas gthomas 12288 Mar 8 08:22 include drwxrwxr-x 3 gthomas gthomas 4096 Mar 8 08:22 libI added this to try and include the files:
TOOLCHAIN_HOST_TASK+= "'nativesdk-ti-cgt-pru"
and I can see that there was a nativesdk-ti-cgt-pru built which does have all the executables included, they just aren't being packaged.Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
$ ls tmp/work/x86_64-nativesdk-mysdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/mydistro/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/binperhaps you need to correct the install location for nativesdk may be via overriding
do_installWhy?
because
/usr/sharedoesnt look normal place for putting executables.True in general, but that shouldn't matter. FILES_${PN} lists those and that should be enough. It appears you are just guessing...
Quoted 10 lines
Sidenote:
This PRU CodeGen toolchain is kind of weird - it targets PRUs (Programmable Real-time Units http://elinux.org/Ti_AM33XX_PRUSSv2) and provides binaries in bin/, headers ininclude/and libraries inlib/directories. Some of the names collide with system (e.g. libc.a) and hence cannot be installed in standard locations, thus/usr/share. In fact, many of non-Linux specific components that deal with specialized cores (i.e. non-general-purpose ARM, such as DSP, PRU, IPU, numerous Cortex-M accelerators, etc.) are in fact as weird and are also getting installed in/usr/shareto not confuse people and not conflict with the rest of the system...
Quoted 2 lines
it would be better to have multiple sysroots for all these variants would be way simpler and understandable, but why do I care.
Unfortunately, OE doesn't easily support separate sysroots for "secondary" processors, besides host and target, like DSP. We had looked into that long time ago w/o much success. If you have any suggestions or recommendations, I'm all ears!
Signature · 1 line
Denys
Quoted 7 lines · Denys Dmytriyenko
Quoted 3 lines · Khem Raj
Quoted 2 lines · Gary Thomas
I'm trying to build a [host] SDK for my target which uses some TI tools, via -c
populate_sdk_extGary,
Quoted 7 lines
We don't use -c
populate_sdkto produce SDKs. Instead, we still rely on the old meta-toolchain mechanism. First, because it can be incorporated into other recipes - i.e. we have a recipe that combines rootfs and SDK into one tarball. Second, it provides more control to what get's packaged into SDK. Third, it doesn't have this undefined magic to packaging stuff - i.e. this post is an example of it failing. And only one slight drawback - requires keeping rootfs image recipe in sync with meta-toolchain SDK recipe...
As I understand, the meta-toolchain style(s) are deprecated. Also using the populate_sdk_ext gets me many improvements such as relocatable tools and 'devtool'
Quoted 25 lines
Quoted 18 lines
Quoted 18 lines
In particular, I'm using recipes-ti/devtools/ti-cgt-pru_2.1.4.bb
I include ti-cgt-pru-native to use the tools in my bitbake recipes - that works fine. I include ti-cgt-pru in my target image to get the tools on my board - that also works.The problem is that in my SDK, none of the binaries are included, including clpru:
$ ls -l /home/gthomas/my_ti_sdk/tmp/sysroots/rainier-p8701/usr/share/ti/cgt-pru total 16 drwxrwxr-x 2 gthomas gthomas 12288 Mar 8 08:22 include drwxrwxr-x 3 gthomas gthomas 4096 Mar 8 08:22 libI added this to try and include the files:
TOOLCHAIN_HOST_TASK+= "'nativesdk-ti-cgt-pru"
and I can see that there was a nativesdk-ti-cgt-pru built which does have all the executables included, they just aren't being packaged.Quoted 4 lines
Quoted 1 line
$ ls tmp/work/x86_64-nativesdk-mysdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/mydistro/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/binperhaps you need to correct the install location for nativesdk may be via overriding
do_installWhy?
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 16 lines · Gary Thomas
Quoted 7 lines · Denys Dmytriyenko
Quoted 3 lines · Khem Raj
Quoted 2 lines · Gary Thomas
I'm trying to build a [host] SDK for my target which uses some TI tools, via -c
populate_sdk_extGary,
Quoted 7 lines
We don't use -c
populate_sdkto produce SDKs. Instead, we still rely on the old meta-toolchain mechanism. First, because it can be incorporated into other recipes - i.e. we have a recipe that combines rootfs and SDK into one tarball. Second, it provides more control to what get's packaged into SDK. Third, it doesn't have this undefined magic to packaging stuff - i.e. this post is an example of it failing. And only one slight drawback - requires keeping rootfs image recipe in sync with meta-toolchain SDK recipe...
Quoted 1 line
As I understand, the meta-toolchain style(s) are deprecated.
Seems to still work fine here...
Quoted 2 lines
Also using the
populate_sdk_extgets me many improvements such as relocatable tools and 'devtool'
Yes, this one I can agree with - it's a nice addition to eSDK. But what about this one:
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-core/meta/meta-extsdk-toolchain.bb
Quoted 30 lines
Quoted 23 lines
Quoted 16 lines
Quoted 16 lines
In particular, I'm using recipes-ti/devtools/ti-cgt-pru_2.1.4.bb
I include ti-cgt-pru-native to use the tools in my bitbake recipes - that works fine. I include ti-cgt-pru in my target image to get the tools on my board - that also works.The problem is that in my SDK, none of the binaries are included, including clpru:
$ ls -l /home/gthomas/my_ti_sdk/tmp/sysroots/rainier-p8701/usr/share/ti/cgt-pru total 16 drwxrwxr-x 2 gthomas gthomas 12288 Mar 8 08:22 include drwxrwxr-x 3 gthomas gthomas 4096 Mar 8 08:22 libI added this to try and include the files:
TOOLCHAIN_HOST_TASK+= "'nativesdk-ti-cgt-pru"
and I can see that there was a nativesdk-ti-cgt-pru built which does have all the executables included, they just aren't being packaged.Quoted 4 lines
Quoted 1 line
$ ls tmp/work/x86_64-nativesdk-mysdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/mydistro/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/binperhaps you need to correct the install location for nativesdk may be via overriding
do_installWhy?
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------