[yocto] Files missing in SDK
Gary Thomas
gary at mlbassoc.com
Fri Mar 10 20:48:25 PST 2017
As previously discussed, I'm trying to build an SDK for my system
using -c populate_sdk_ext. For the most part, I have this working
except for one package which is missing a number of files.
I've looked at the details of the nativesdk-ti-cgt-pru package
which was built as part of this process:
46610678 Mar 6 16:03 tmp/deploy/ipk/x86_64-nativesdk/nativesdk-ti-cgt-pru_2.1.4-r0.2_x86_64-nativesdk.ipk
Examining the package in detail (unpacking manually), I can see these files
$ ls opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/
bin Open_defects.html
bin.cmd PRU_Code_Generation_Tools_2.1.x_manifest.html
Closed_defects.html PRU_CodeGen_Library_2.1_0222433C-30C1-442d-B5C6-2073BD97F80F.spdx.tag
example README.txt
include ti_cgt_pru_2.1.4_linux-x64_installer_install.log
lib ti_cgt_pru_2.1.4_uninstaller.dat
man ti_cgt_pru_2.1.4_uninstaller.run
Of these, only a few make it into my final SDK (my SDK was unpacked into ~/amltd_sdk
and my target board/MACHINE is called rainier-p8701)
$ ls /home/gthomas/amltd_sdk/tmp/sysroots/rainier-p8701/usr/share/ti/cgt-pru/
include lib
So the files are in the package (.ipk), but somewhere in the magic of
turning those packages into the actual SDK, they went missing. Where
does this happen and how can I figure out how to get them into my final
SDK? I don't think it's the fault of the ti-cgt-pru recipe because it
did get the files into the nativesdk .ipk, they just aren't being kept
in the final SDK.
Observation: perhaps this is related to how the [board] package for this tool
is packaged? I can see very different layouts between the two, looking at the
staging [image] built in the two situations.
board/MACHINE:
$ find tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image -type d
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/share
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/share/ti
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/share/ti/cgt-pru
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/share/ti/cgt-pru/lib
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/share/ti/cgt-pru/lib/src
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/share/ti/cgt-pru/include
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/share/man
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/share/man/man1
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/share/doc
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/share/doc/ti
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/share/doc/ti/cgt-pru
tmp/work/armv7ahf-neon-amltd-linux-gnueabi/ti-cgt-pru/2.1.4-r0/image/usr/bin
nativesdk:
2$ find tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/ -type d
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/man
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/man/man1
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/lib
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/lib/src
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/example
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/include
tmp/work/x86_64-nativesdk-amltdsdk-linux/nativesdk-ti-cgt-pru/2.1.4-r0/image/opt/amltd/2.2+snapshot/sysroots/x86_64-amltdsdk-linux/usr/share/ti/cgt-pru/bin
Maybe the SDK generation is trying to look at how the board files are packaged
and extract the corresponding bits for the SDK from the nativesdk package?
I'm happy to share any of these bits if someone wants to help me understand
how to fix the issue.
Thanks again
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
More information about the yocto
mailing list