diff options
author | Kumar Gala <kumar.gala@linaro.org> | 2016-05-24 14:23:26 -0500 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2016-05-25 11:28:34 +0000 |
commit | 7584a1273f8df3e90118652fccf3f0a844365f75 (patch) | |
tree | e3bee95b49e8208c4346c6fa7809de2dc1dd3b3e /ext | |
parent | 942bbadbf6c50b8485446e3386001cbcef0b1655 (diff) |
ext: plumb out Kconfig support for external source code
Add missing Kconfig files and connections to expose Kconfig options
in ext/ directories. Fixup QMSI to only be exposed on platforms that
utilize it.
Change-Id: I6c6c5011b2bf2966f65aa8279dc594a244821956
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Kconfig | 23 | ||||
-rw-r--r-- | ext/hal/Kconfig | 23 | ||||
-rw-r--r-- | ext/hal/qmsi/Kconfig | 23 |
3 files changed, 62 insertions, 7 deletions
diff --git a/ext/Kconfig b/ext/Kconfig new file mode 100644 index 000000000..6a80005b0 --- /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 000000000..f26550657 --- /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 1c4ab8b59..1974283ae 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 |