MLK-20582 Fix busfreq compilation CONFIG_OPTEE=n
authorCedric Neveux <cedric.neveux@nxp.com>
Thu, 13 Dec 2018 12:14:25 +0000 (13:14 +0100)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 08:35:29 +0000 (11:35 +0300)
   Compilation error with busfreq optee when CONFIG_OPTEE=n

Signed-off-by: Cedric Neveux <cedric.neveux@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
(cherry picked from commit db9e345f9bd67048bcb17d9df306b35f64abbb14)

arch/arm/mach-imx/Makefile

index b19d156..c191185 100644 (file)
@@ -136,9 +136,9 @@ obj-$(CONFIG_SOC_VF610) += mach-vf610.o
 
 obj-$(CONFIG_SOC_LS1021A) += mach-ls1021a.o
 
-ifneq ($(CONFIG_OPTEE)$(CONFIG_SOC_IMX6)$(CONFIG_SOC_IMX7),)
+ifneq ($(CONFIG_SOC_IMX6)$(CONFIG_SOC_IMX7),)
 # Bus frequency by OPTEE OS
-obj-y += busfreq_optee.o
+obj-$(CONFIG_OPTEE) += busfreq_optee.o
 endif
 
 obj-y += devices/