doc: Clarified Mac OS X set up instructions

Mac OS X set up instructions were missing some important details that
prevent a new user to set up Zephyr development environment on a not
yet configured system.

JIRA: ZEP-616

Change-Id: I0890ec5364a0ce21e38ba4101d285fc8e46a6bd8
Signed-off-by: Genaro Saucedo Tejada <genaro.saucedo.tejada@intel.com>
This commit is contained in:
Genaro Saucedo Tejada 2016-08-04 18:16:01 -05:00 committed by Inaky Perez-Gonzalez
commit ba57243d98

View file

@ -45,7 +45,7 @@ the brew command line.
$ brew tap homebrew/dupes $ brew tap homebrew/dupes
$ brew install grep --default-names $ brew install grep --with-default-names
$ pip3 install ply $ pip3 install ply
@ -89,10 +89,13 @@ Alternatively you can use the script below to create the image:
.. code-block:: bash .. code-block:: bash
#!/bin/bash ImageName=CrossToolNG ImageNameExt=${ImageName}.sparseimage #!/bin/bash
diskutil umount force /Volumes/${ImageName} && true rm -f ${ImageNameExt} ImageName=CrossToolNG ImageNameExt=${ImageName}.sparseimage
&& true hdiutil create ${ImageName} -volname ${ImageName} -type SPARSE diskutil umount force /Volumes/${ImageName} && true
-size 8g -fs HFSX hdiutil mount ${ImageNameExt} cd /Volumes/$ImageName rm -f ${ImageNameExt} && true
hdiutil create ${ImageName} -volname ${ImageName} -type SPARSE -size 8g -fs HFSX
hdiutil mount ${ImageNameExt}
cd /Volumes/$ImageName
When mounted, the file system of the image will be available under When mounted, the file system of the image will be available under
:file:`/Volumes`. Change to the mounted directory: :file:`/Volumes`. Change to the mounted directory:
@ -143,6 +146,9 @@ of the configuration set for the toolchain.
CT_WORK_DIR="${CT_TOP_DIR}/.build" CT_WORK_DIR="${CT_TOP_DIR}/.build"
CT_PREFIX_DIR="/Volumes/CrossToolNG/x-tools/${CT_TARGET}" CT_PREFIX_DIR="/Volumes/CrossToolNG/x-tools/${CT_TARGET}"
CT_INSTALL_DIR="${CT_PREFIX_DIR}" CT_INSTALL_DIR="${CT_PREFIX_DIR}"
# Following options prevent link errors
CT_WANTS_STATIC_LINK=n
CT_CC_STATIC_LIBSTDCXX=n
... ...
Building the Toolchain Building the Toolchain
@ -168,6 +174,8 @@ and use the target location where the toolchain was installed, type:
$ export ZEPHYR_SDK_INSTALL_DIR=/Volumes/CrossToolNG/x-tools $ export ZEPHYR_SDK_INSTALL_DIR=/Volumes/CrossToolNG/x-tools
$ export XTOOLS_TOOLCHAIN_PATH=$ZEPHYR_SDK_INSTALL_DIR
To use the same toolchain in new sessions in the future you can set the To use the same toolchain in new sessions in the future you can set the
variables in the file :file:`${HOME}/.zephyrrc`, for example: variables in the file :file:`${HOME}/.zephyrrc`, for example: