From 2bf391797ba0525bb0bb6a5c7b7a356c45a2ed81 Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Fri, 10 Jun 2016 14:50:43 -0500 Subject: [PATCH] ksdk: Add Kconfig support for the ksdk Add hidden configuration HAS_KSDK for SoCs to select if they have support in the ksdk. Change-Id: Ia4cd11901bc26d21a3bdfad6236d66656bb292cb Signed-off-by: Maureen Helm --- arch/arm/soc/nxp_kinetis/k6x/Kconfig.soc | 1 + ext/hal/Kconfig | 2 ++ ext/hal/ksdk/Kconfig | 22 ++++++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 ext/hal/ksdk/Kconfig diff --git a/arch/arm/soc/nxp_kinetis/k6x/Kconfig.soc b/arch/arm/soc/nxp_kinetis/k6x/Kconfig.soc index f3e38864576..18373049d37 100644 --- a/arch/arm/soc/nxp_kinetis/k6x/Kconfig.soc +++ b/arch/arm/soc/nxp_kinetis/k6x/Kconfig.soc @@ -21,6 +21,7 @@ depends on SOC_SERIES_KINETIS_K6X config SOC_MK64F12 bool "SOC_MK64F12" + select HAS_KSDK endchoice diff --git a/ext/hal/Kconfig b/ext/hal/Kconfig index b201bc59c1f..62d6d1e2765 100644 --- a/ext/hal/Kconfig +++ b/ext/hal/Kconfig @@ -22,6 +22,8 @@ menu "HALs" source "ext/hal/cmsis/Kconfig" +source "ext/hal/ksdk/Kconfig" + source "ext/hal/nordic/mdk/Kconfig" source "ext/hal/qmsi/Kconfig" diff --git a/ext/hal/ksdk/Kconfig b/ext/hal/ksdk/Kconfig new file mode 100644 index 00000000000..aa5b4ca1301 --- /dev/null +++ b/ext/hal/ksdk/Kconfig @@ -0,0 +1,22 @@ +# Kconfig - Kinetis SDK + +# +# Copyright (c) 2016, Freescale Semiconductor, Inc. +# +# 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. +# + +config HAS_KSDK + bool + select HAS_CMSIS + depends on SOC_FAMILY_KINETIS