mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 06:40:48 -06:00
ADSP: Add dedicated platform module
This commit is contained in:
8
Help/envvar/ADSP_ROOT.rst
Normal file
8
Help/envvar/ADSP_ROOT.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
ADSP_ROOT
|
||||
---------
|
||||
|
||||
.. include:: ENV_VAR.txt
|
||||
|
||||
The ``ADSP_ROOT`` environment variable specifies a default value
|
||||
for the :variable:`CMAKE_ADSP_ROOT` variable when there is no explicit
|
||||
configuration given on the first run while creating a new build tree.
|
||||
@@ -28,6 +28,7 @@ Environment Variables that Control the Build
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
/envvar/ADSP_ROOT
|
||||
/envvar/CMAKE_APPLE_SILICON_PROCESSOR
|
||||
/envvar/CMAKE_BUILD_PARALLEL_LEVEL
|
||||
/envvar/CMAKE_BUILD_TYPE
|
||||
|
||||
@@ -301,6 +301,28 @@ Windows Store may look like this:
|
||||
set(CMAKE_SYSTEM_NAME WindowsStore)
|
||||
set(CMAKE_SYSTEM_VERSION 8.1)
|
||||
|
||||
.. _`Cross Compiling for ADSP SHARC/Blackfin`:
|
||||
|
||||
Cross Compiling for ADSP SHARC/Blackfin
|
||||
---------------------------------------
|
||||
|
||||
Cross-compiling for ADSP SHARC or Blackfin can be configured
|
||||
by setting the :variable:`CMAKE_SYSTEM_NAME` variable to ``ADSP``
|
||||
and the :variable:`CMAKE_SYSTEM_PROCESSOR` variable
|
||||
to the "part number", excluding the ``ADSP-`` prefix,
|
||||
for example, ``21594``, ``SC589``, etc.
|
||||
This value is case insensitive.
|
||||
|
||||
CMake will automatically search for CCES or VDSP++ installs
|
||||
in their default install locations
|
||||
and select the most recent version found.
|
||||
CCES will be selected over VDSP++ if both are installed.
|
||||
Custom install paths can be set via the :variable:`CMAKE_ADSP_ROOT` variable
|
||||
or the :envvar:`ADSP_ROOT` environment variable.
|
||||
|
||||
The compiler (``cc21k`` vs. ``ccblkfn``) is selected automatically
|
||||
based on the :variable:`CMAKE_SYSTEM_PROCESSOR` value provided.
|
||||
|
||||
.. _`Cross Compiling for Android`:
|
||||
|
||||
Cross Compiling for Android
|
||||
|
||||
@@ -346,6 +346,7 @@ Variables that Control the Build
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
/variable/CMAKE_ADSP_ROOT
|
||||
/variable/CMAKE_AIX_EXPORT_ALL_SYMBOLS
|
||||
/variable/CMAKE_ANDROID_ANT_ADDITIONAL_OPTIONS
|
||||
/variable/CMAKE_ANDROID_API
|
||||
|
||||
@@ -5,3 +5,9 @@ adsp-platform-and-compilers
|
||||
both CCES and VDSP++ installations,
|
||||
with required configuration now done in the compiler module itself
|
||||
rather than the Generic-ADSP platform module.
|
||||
|
||||
* A dedicated ``ADSP`` platform has been added
|
||||
to replace the existing ``Generic-ADSP`` implementation.
|
||||
This features automatic detection of the latest CCES/VDSP++ install
|
||||
and compiler selection (``cc21k`` vs. ``ccblkfn``)
|
||||
based off of the :variable:`CMAKE_SYSTEM_PROCESSOR` variable.
|
||||
|
||||
9
Help/variable/CMAKE_ADSP_ROOT.rst
Normal file
9
Help/variable/CMAKE_ADSP_ROOT.rst
Normal file
@@ -0,0 +1,9 @@
|
||||
CMAKE_ADSP_ROOT
|
||||
---------------
|
||||
|
||||
When :ref:`Cross Compiling for ADSP SHARC/Blackfin`,
|
||||
this variable holds the absolute path to the latest CCES or VDSP++ install.
|
||||
The directory is expected to contain the ``cc21k.exe`` and ``ccblkfn.exe`` compilers.
|
||||
This will be set automatically if a default install of CCES or VDSP++ can be found.
|
||||
|
||||
See also the :envvar:`ADSP_ROOT` environment variable.
|
||||
Reference in New Issue
Block a user