Commit 7c332df4 authored by Anas Nashif's avatar Anas Nashif
Browse files

qmsi: use QMSI_LIBRARY instead of QMSI_DRIVERS



For linking with external library, use QMSI_LIBRARY and point
to path of the library using QMSI_INSTALL_PATH

Change-Id: Icd954188a26cc02074aa8fe08a4afdea31879f60
Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent dcf2f484
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -579,7 +579,7 @@ $(if $(CROSS_COMPILE),, \
     $(error ZEPHYR_GCC_VARIANT is not set. ))
endif

ifdef CONFIG_QMSI_DRIVERS
ifdef CONFIG_QMSI_LIBRARY
LIB_INCLUDE_DIR += -L$(CONFIG_QMSI_INSTALL_PATH:"%"=%)/lib
ALL_LIBS += qmsi
endif
+1 −1
Original line number Diff line number Diff line
subdir-ccflags-y += -I$(srctree)/include/drivers

subdir-ccflags-$(CONFIG_QMSI_DRIVERS) += -I$(CONFIG_QMSI_INSTALL_PATH)/include
subdir-ccflags-$(CONFIG_QMSI_LIBRARY) += -I$(CONFIG_QMSI_INSTALL_PATH)/include
subdir-ccflags-$(CONFIG_QMSI_BUILTIN) +=-I$(srctree)/drivers/qmsi/include
subdir-ccflags-$(CONFIG_QMSI_BUILTIN) +=-I$(srctree)/drivers/qmsi/drivers/include
subdir-ccflags-$(CONFIG_QMSI_BUILTIN) +=-I$(srctree)/drivers/qmsi/soc/$(SOC_NAME)/include/
+4 −4
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ config QMSI_BUILTIN
	help
	Link with local QMSI sources instead of external library.

config QMSI_DRIVERS
config QMSI_LIBRARY
	bool "Enable QMSI drivers using external library"
	default n
	select QMSI
@@ -36,13 +36,13 @@ config QMSI
	bool
	default n
	help
	automatically set when either of QMSI_DRIVERS or QMSI_BUILTIN
	automatically set when either of QMSI_LIBRARY or QMSI_BUILTIN
	is selected.

config QMSI_INSTALL_PATH
	depends on QMSI_DRIVERS
	depends on QMSI_LIBRARY
	string "QMSI install path"
	help
	This option holds the path where the QMSI library and headers are
	installed. Make sure this option is properly set when QMSI_DRIVERS
	installed. Make sure this option is properly set when QMSI_LIBRARY
	is enabled otherwise the build will fail.