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:
parent
2939752a3e
commit
ba57243d98
1 changed files with 13 additions and 5 deletions
|
@ -45,7 +45,7 @@ the brew command line.
|
|||
|
||||
$ brew tap homebrew/dupes
|
||||
|
||||
$ brew install grep --default-names
|
||||
$ brew install grep --with-default-names
|
||||
|
||||
$ pip3 install ply
|
||||
|
||||
|
@ -89,10 +89,13 @@ Alternatively you can use the script below to create the image:
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
#!/bin/bash ImageName=CrossToolNG ImageNameExt=${ImageName}.sparseimage
|
||||
diskutil umount force /Volumes/${ImageName} && true rm -f ${ImageNameExt}
|
||||
&& true hdiutil create ${ImageName} -volname ${ImageName} -type SPARSE
|
||||
-size 8g -fs HFSX hdiutil mount ${ImageNameExt} cd /Volumes/$ImageName
|
||||
#!/bin/bash
|
||||
ImageName=CrossToolNG ImageNameExt=${ImageName}.sparseimage
|
||||
diskutil umount force /Volumes/${ImageName} && true
|
||||
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
|
||||
: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_PREFIX_DIR="/Volumes/CrossToolNG/x-tools/${CT_TARGET}"
|
||||
CT_INSTALL_DIR="${CT_PREFIX_DIR}"
|
||||
# Following options prevent link errors
|
||||
CT_WANTS_STATIC_LINK=n
|
||||
CT_CC_STATIC_LIBSTDCXX=n
|
||||
...
|
||||
|
||||
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 XTOOLS_TOOLCHAIN_PATH=$ZEPHYR_SDK_INSTALL_DIR
|
||||
|
||||
|
||||
To use the same toolchain in new sessions in the future you can set the
|
||||
variables in the file :file:`${HOME}/.zephyrrc`, for example:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue