This is a CMake package for the Kinetis SDK. It
creates a Kinetis SDK library target (ksdk20) as well as targets for some of the middleware (i.e. mmcau)
found in the SDK. Packages can then be found by other CMake projects using find_package()
.
⚠ Attention
To use this package you will need to download the Kinetis SDK 2.0 from kex.nxp.com and tell CMake where to find it. The SDK is also available as a ubirch-kinetis-sdk repository and used in our ubirch-meta superbuild.
- Checkout the ubirch-arm-toolchain
- Download the Kinetis SDK 2.x
- Create a build directory:
mkdir build
cd build
- Run cmake (providing the toolchain, the SDK root as well as the target MCU):
cmake \
-DCMAKE_TOOLCHAIN_FILE=<toolchain-dir>/cmake/ubirch-arm-toolchain.cmake \
-DSDK_ROOT=<sdk-dir> \
-DMCU=MK82F25615
- Run
make
If you want to build all different configuration types (
Debug
,Release
,MinSizeRel
, ...) you need to create a build directory for every configuration and runcmake
with an extra argument-DCMAKE_BUILD_TYPE=<build-type>
as well asmake
.
cmake
KinetisMiddleware.cmake
- macros to configure middleware targetsKinetisSDK.cmake
- macro to configure the Kinetis SDK target and compile optionsKinetisSDKUtils.cmake
- macros for identifying and configuring SDK and MCU
CMakeLists.txt
- package build filebuild.sh
- default build file, creating a sub directorybuild
and runscmake
andmake
If not otherwise noted in the individual files, the code in this repository is
Copyright © 2016 ubirch GmbH, Author: Matthias L. Jugel
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.