summaryrefslogtreecommitdiff
path: root/scripts/populate.in
AgeCommit message (Collapse)AuthorFilesLines
2010-03-28scripts/populate: optimise search loopYann E. MORIN"1-31/+53
Curently, populate will iterate over all ELF (shared objects|executables) to look for missing NEEDED DSOs, adding to the list at every iterations of the search loop. Instead of looking again at previously handled ELF files, recursively resolve every ELf files. Also, in case there are a whole lot of files (more than the shell can accept as arguments list, or creating a command line longer than the shell can cope with), use a temporary file with the list of files to search for missing dependencies.
2010-03-28scripts/populate: cleanups and misc fixesYann E. MORIN"1-28/+33
- it's a POSIX compliant shell script: drop bash, use /bin/sh - fix help text - use an absolute path for sysroot - replace "echo" with "printf" - replace "stat -c '%i'" with "ls -1id" - replace "pushd / popd" with "cd / cd -" - remove superfluous break - bail out if required lib not found, except if forced
2010-03-26scripts/populate: fix handling the forced libraries list-fileYann E. MORIN"1-3/+1
If a list-file is used, then each library in the file will be handled twice (not a real issue, as the second iteration will find the library already present, just avoid doing the job twice).
2010-03-25scripts/populate: properly locate the sysroot and required toolsYann E. MORIN"1-9/+21
This fixes two problems: - the sysroot might be in a sub-directory (think SYSROOT_DIR_PREFIX) - it is not needed to have the target tuple to properly detect the sysroot and the required tools As a side effect, this script is now no longer dependent on the target tuple, and in the future, we might be able to share it across many toolchains (when/if we can install all of them in the same place).
2010-03-24scripts/populate: add -m option, to merge source and destYann E. MORIN"1-9/+27
Merge the source rootfs into the (pre-existing) destination rootfs, and populate the result accordingly.
2010-03-23scripts/populate: add option to use an alternate sysrootNate Case1-1/+9
Add a new command line option, "-r", which allows the user to specify an alternate sysroot location to copy libraries from. This is useful when using the toolchain in combination with a separate root filesystem, or when working with multiple different root filesystems. Signed-off-by: Nate Case <ncase@xes-inc.com>
2010-01-02misc: do not use "tar cf - |tar xf -"Yann E. MORIN"1-2/+2
Using this: tar cf - -C "/some/place" |tar xf - -C "/some/other/place" to copy a directory to another place does not properly fail (when it does). Using this instead: cp -av "/some/place" "/some/other/place" makes it easy to see why and how it failed. Impacted: libc/uClibc debug/ltrace tools/sstrip scripts/populate
2009-06-11populate: fix installing dynamic linker 'ld.so'Yann E. MORIN"1-33/+43
The dynamic linker, ld.so, needs the execute bit to be set. Detect tht the library being installed is in fact ld.so and install it with 0755 instead of 0644. Fix detecting src == dst. Use a simpler command to copy src -> dst. Also change echo to printf, get rid of 'echo -n', which is highly non-portable. -------- diffstat follows -------- /trunk/scripts/populate.in | 76 43 33 0 +++++++++++++++++++++++++++++----------------------- 1 file changed, 43 insertions(+), 33 deletions(-)
2009-02-01Fix populate to correctly use tools discovered via ./configure.Yann E. MORIN"1-2/+4
/trunk/scripts/functions | 11 8 3 0 ++++++++--- /trunk/scripts/populate.in | 6 4 2 0 ++++-- 2 files changed, 12 insertions(+), 5 deletions(-)
2009-01-29Update populate:Yann E. MORIN"1-23/+45
- use tools found by ./configure - some POSIX and eye-candy cleanups /trunk/scripts/functions | 7 4 3 0 +++-- /trunk/scripts/populate.in | 70 46 24 0 ++++++++++++++++++++++++++++++++++------------------ 2 files changed, 50 insertions(+), 27 deletions(-)
2008-12-11Move populate.in from tools/ to scripts/Yann E. MORIN"1-0/+200
/trunk/scripts/crosstool.sh | 2 1 1 0 +- 1 file changed, 1 insertion(+), 1 deletion(-)