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>
This commit is contained in:
Kumar Gala 2016-05-24 14:23:26 -05:00 committed by Anas Nashif
parent 942bbadbf6
commit 7584a1273f
7 changed files with 67 additions and 7 deletions

View file

@ -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.

View file

@ -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

View file

@ -8,3 +8,4 @@ config SOC_QUARK_D2000
select XIP
select MVIC
select X86_IAMCU
select HAS_QMSI

View file

@ -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

23
ext/Kconfig Normal file
View file

@ -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

23
ext/hal/Kconfig Normal file
View file

@ -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

View file

@ -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