diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 0ee32ee9dbb..f124b23ad72 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -32,6 +32,8 @@ source "misc/Kconfig" source "lib/Kconfig" +source "ext/Kconfig" + # # The following are for Kconfig files for default values only. # These should be parsed at the end. diff --git a/arch/arc/soc/quark_se_ss/Kconfig.soc b/arch/arc/soc/quark_se_ss/Kconfig.soc index d7940295ec1..4655188abec 100644 --- a/arch/arc/soc/quark_se_ss/Kconfig.soc +++ b/arch/arc/soc/quark_se_ss/Kconfig.soc @@ -2,3 +2,4 @@ config SOC_QUARK_SE_SS bool "Intel Quark SE - Sensor Sub System" select SYS_POWER_LOW_POWER_STATE_SUPPORTED + select HAS_QMSI diff --git a/arch/x86/soc/quark_d2000/Kconfig.soc b/arch/x86/soc/quark_d2000/Kconfig.soc index dd2b8602c9d..eb729c4a5e3 100644 --- a/arch/x86/soc/quark_d2000/Kconfig.soc +++ b/arch/x86/soc/quark_d2000/Kconfig.soc @@ -8,3 +8,4 @@ config SOC_QUARK_D2000 select XIP select MVIC select X86_IAMCU + select HAS_QMSI diff --git a/arch/x86/soc/quark_se/Kconfig.soc b/arch/x86/soc/quark_se/Kconfig.soc index 1c54f2a5f4c..67fbeed57cf 100644 --- a/arch/x86/soc/quark_se/Kconfig.soc +++ b/arch/x86/soc/quark_se/Kconfig.soc @@ -12,3 +12,4 @@ config SOC_QUARK_SE select X86_IAMCU select SYS_POWER_LOW_POWER_STATE_SUPPORTED select SYS_POWER_DEEP_SLEEP_SUPPORTED + select HAS_QMSI diff --git a/ext/Kconfig b/ext/Kconfig new file mode 100644 index 00000000000..6a80005b009 --- /dev/null +++ b/ext/Kconfig @@ -0,0 +1,23 @@ +# Kconfig - external source code configuration options + +# +# Copyright (c) 2016 Linaro Ltd. +# +# 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. +# + +menu "External Sources" + +source "ext/hal/Kconfig" + +endmenu diff --git a/ext/hal/Kconfig b/ext/hal/Kconfig new file mode 100644 index 00000000000..f2655065739 --- /dev/null +++ b/ext/hal/Kconfig @@ -0,0 +1,23 @@ +# Kconfig - external HAL source code configuration options + +# +# Copyright (c) 2016 Linaro Ltd. +# +# 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. +# + +menu "HALs" + +source "ext/hal/qmsi/Kconfig" + +endmenu diff --git a/ext/hal/qmsi/Kconfig b/ext/hal/qmsi/Kconfig index 1c4ab8b59f3..1974283ae60 100644 --- a/ext/hal/qmsi/Kconfig +++ b/ext/hal/qmsi/Kconfig @@ -15,6 +15,20 @@ # See the License for the specific language governing permissions and # limitations under the License. # + +config HAS_QMSI + bool + +menuconfig QMSI + bool "QMSI driver support" + default n + depends on HAS_QMSI + help + automatically set when either of QMSI_LIBRARY or QMSI_BUILTIN + is selected. + +if HAS_QMSI + config QMSI_BUILTIN bool "Enable QMSI drivers through integrated sources" default n @@ -32,13 +46,6 @@ config QMSI_LIBRARY library (libqmsi) which implements several drivers for peripherals from Intel MCUs (e.g. Quark SE and Quark D2000). -config QMSI - bool - default n - help - automatically set when either of QMSI_LIBRARY or QMSI_BUILTIN - is selected. - config QMSI_INSTALL_PATH depends on QMSI_LIBRARY string "QMSI install path" @@ -46,3 +53,5 @@ config QMSI_INSTALL_PATH This option holds the path where the QMSI library and headers are installed. Make sure this option is properly set when QMSI_LIBRARY is enabled otherwise the build will fail. + +endif