[PATCH master 13/13] optee: make OP-TEE OF fixup ARM-specific

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The file includes <asm/barebox-arm.h>, which is only provided on ARM.
Until this is made more generic, make build of the file depend
specifically on CONFIG_ARM.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 drivers/tee/optee/Kconfig  | 4 ++++
 drivers/tee/optee/Makefile | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/tee/optee/Kconfig b/drivers/tee/optee/Kconfig
index 3c791a10c4ac..179b7c2ba8f3 100644
--- a/drivers/tee/optee/Kconfig
+++ b/drivers/tee/optee/Kconfig
@@ -27,3 +27,7 @@ config OPTEE_DEVFS
 	  device. This are no current in-tree users of this interface,
 	  but it's useful for compiling libteeclient + optee_tests for
 	  use inside barebox to verify proper operation of CONFIG_OPTEE.
+
+config OF_FIXUP_OPTEE
+	def_bool y
+	depends on HAVE_OPTEE && ARM
diff --git a/drivers/tee/optee/Makefile b/drivers/tee/optee/Makefile
index 83f8e23b1183..5e71af77ee0a 100644
--- a/drivers/tee/optee/Makefile
+++ b/drivers/tee/optee/Makefile
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
-obj-$(CONFIG_HAVE_OPTEE) += of_fixup.o
+obj-$(CONFIG_OF_FIXUP_OPTEE) += of_fixup.o
 obj-$(CONFIG_OPTEE) += optee.o
 optee-objs += core.o
 optee-objs += call.o
-- 
2.39.5





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux