Rev 11 | Rev 13 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11 | Rev 12 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | print_error_and_die "Error: this script requires a x86_64 Linux machine (possibly a virtual machine) as the build host." |
40 | print_error_and_die "Error: this script requires a x86_64 Linux machine (possibly a virtual machine) as the build host." |
41 | fi |
41 | fi |
42 | 42 | ||
43 | # verify that we have the QNX platform SDK |
43 | # verify that we have the QNX platform SDK |
44 | if [ ! -d "${QNXSDK_PATH}/${QNXSDK_HOSTPATH}" ] || [ ! -d "${QNXSDK_PATH}/${QNXSDK_TARGETPATH}" ]; then |
44 | if [ ! -d "${QNXSDK_PATH}/${QNXSDK_HOSTPATH}" ] || [ ! -d "${QNXSDK_PATH}/${QNXSDK_TARGETPATH}" ]; then |
45 | # host tools not deployed, do they exist in the form of a packed archive ? if so, extract it in place |
- | |
46 | if [ -f "${QNXSDK_PATH}/host/linux.tar.gz" ]; then |
- | |
47 | cd "${QNXSDK_PATH}/host" |
- | |
48 | echo "Deploying QNX SDP Linux host tools, please wait..." |
- | |
49 | tar xzf "linux.tar.gz" || exit 1 |
- | |
50 | cd "${CURRENT_DIR}" |
- | |
51 | fi |
- | |
52 | # now test again |
- | |
53 | if [ ! -d "${QNXSDK_PATH}/${QNXSDK_HOSTPATH}" ] || [ ! -d "${QNXSDK_PATH}/${QNXSDK_TARGETPATH}" ]; then |
- | |
54 |
|
45 | print_error_and_die "Error: the ${QNXSDK_PATH} path doesn't contain a QNX SDK. It must contain the 'host' and 'target' directories of the QNX SDP for the targeted version of QNX and the ${BUILD_TARGET_ARCH} platform. Please deploy these directories and try again." |
55 | fi |
- | |
56 | fi |
46 | fi |
57 | 47 | ||
58 | # verify that we have the required tools |
48 | # verify that we have the required tools |
59 | for REQUIRED_TOOL in ${REQUIRED_TOOLS}; do |
49 | for REQUIRED_TOOL in ${REQUIRED_TOOLS}; do |
60 | "${REQUIRED_TOOL}" --version > /dev/null 2>&1 || print_error_and_die \ |
50 | "${REQUIRED_TOOL}" --version > /dev/null 2>&1 || print_error_and_die \ |