On 04/21/2015 03:10 PM, Jim Wilson wrote:
On Tue, Apr 21, 2015 at 12:52 PM, Robert Schwarz rschwarz.arrow@gmail.com wrote:
Hi, I am using the linaro tolchain to create a root-filesystem for an embedded Linux system. I would like to copy the essential include files and libraries(libc) from the toolchain to the rootFS of the embedded system.
Is there any explanation of the folder structure of the toolchain so I know which folder to copy? How do I know which files to copy and where those files are located in the toolchain?
That would depend on which toolchain version you are using. We used to use crosstools-ng to build them. Now we use abe to build them. The structure of the releases is a bit different as a result.
We don't ship a rootfs, just a sysroot. You need something like 'buildroot' to build a rootfs, the headers and libraries from the sysroot are only part of it. These are contained in two places. One is the sysroot tarball that should be in the same directory as the toolchain. The exact same sysroot is also in the toolchain tarball under ${host}/libc.
Crosstool-ng never built our sysroots, they were produced by a script that cobbled one together from an old Ubuntu Precise installation. Now we do build the sysroot that we ship.
- rob -