1.1 --- a/scripts/populate.in Wed Mar 24 22:21:52 2010 +0100
1.2 +++ b/scripts/populate.in Tue Mar 23 19:27:41 2010 +0100
1.3 @@ -38,6 +38,9 @@
1.4 -d dst_dir
1.5 use 'dst_dir' as the place to put the populated root directory
1.6
1.7 + -r sysroot_dir
1.8 + use 'sysroot_dir' as the sysroot instead of the toolchain default
1.9 +
1.10 -l name1[:name2[...]]
1.11 Always add the specified shared library/ies name1, name2... from the
1.12 toolchain (in the sys-root). Actual library names are searched as
1.13 @@ -71,10 +74,11 @@
1.14 CT_FORCE=no
1.15 CT_PRINTF=:
1.16 OPTIND=1
1.17 -while getopts ":s:d:l:L:fvh" CT_OPT; do
1.18 +while getopts ":s:d:r:l:L:fvh" CT_OPT; do
1.19 case "${CT_OPT}" in
1.20 s) CT_ROOT_SRC_DIR="${OPTARG}";;
1.21 d) CT_ROOT_DST_DIR="${OPTARG}";;
1.22 + r) CT_SYSROOT_DIR="${OPTARG}";;
1.23 l) CT_LIB_LIST="${CT_LIB_LIST}:${OPTARG}";;
1.24 L) CT_LIB_FILE="${OPTARG}";;
1.25 f) CT_FORCE=y;;
1.26 @@ -100,6 +104,10 @@
1.27 echo "$myname: '${CT_ROOT_SRC_DIR}': no such file or directory"
1.28 exit 1
1.29 fi
1.30 +if [ ! -d "${CT_SYSROOT_DIR}" ]; then
1.31 + echo "$myname: '${CT_SYSROOT_DIR}': no such file or directory"
1.32 + exit 1
1.33 +fi
1.34 if [ -d "${CT_ROOT_DST_DIR}" -a "${CT_FORCE}" != "y" ]; then
1.35 echo "$myname: '${CT_ROOT_DST_DIR}': already exists"
1.36 exit 1