Rev 16 | Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16 | Rev 17 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | print_error_and_die "Error: this script requires a x86_64 Linux machine (possibly a virtual machine) as the build host." |
43 | print_error_and_die "Error: this script requires a x86_64 Linux machine (possibly a virtual machine) as the build host." |
44 | fi |
44 | fi |
45 | 45 | ||
46 | # verify that we have the QNX platform SDK |
46 | # verify that we have the QNX platform SDK |
47 | if [ ! -d "${QNXSDK_PATH}/${QNXSDK_HOSTPATH}" ] || [ ! -d "${QNXSDK_PATH}/${QNXSDK_TARGETPATH}" ]; then |
47 | if [ ! -d "${QNXSDK_PATH}/${QNXSDK_HOSTPATH}" ] || [ ! -d "${QNXSDK_PATH}/${QNXSDK_TARGETPATH}" ]; then |
- | 48 | # host tools not deployed, do they exist in the form of a packed archive ? if so, extract it in place |
|
- | 49 | if [ -f "${QNXSDK_PATH}/host/linux.tar.gz" ]; then |
|
- | 50 | cd "${QNXSDK_PATH}/host" |
|
- | 51 | echo "Deploying QNX SDP Linux host tools, please wait..." |
|
- | 52 | tar xzf "linux.tar.gz" || exit 1 |
|
- | 53 | cd "${CURRENT_DIR}" |
|
- | 54 | fi |
|
- | 55 | # now test again |
|
- | 56 | if [ ! -d "${QNXSDK_PATH}/${QNXSDK_HOSTPATH}" ] || [ ! -d "${QNXSDK_PATH}/${QNXSDK_TARGETPATH}" ]; then |
|
48 | 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." |
57 | 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." |
- | 58 | fi |
|
49 | fi |
59 | fi |
50 | 60 | ||
51 | # verify that we have the required tools |
61 | # verify that we have the required tools |
52 | for REQUIRED_TOOL in ${REQUIRED_TOOLS}; do |
62 | for REQUIRED_TOOL in ${REQUIRED_TOOLS}; do |
53 | "${REQUIRED_TOOL}" --version > /dev/null 2>&1 || print_error_and_die \ |
63 | "${REQUIRED_TOOL}" --version > /dev/null 2>&1 || print_error_and_die \ |