Including kernel-t18x headers if CONFIG_ARCH_TEGRA_18x_SOC is enabled.
This is done so that the headers which are used across modules like
sound, irqchip, platform drivers need not mention the header
dependencies as it would be redundant.
Bug
200076913
Change-Id: I9b5e36e8762268d64da6c8ae0ae50f5d51b2bdfc
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/709787
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
KBUILD_AFLAGS += -gdwarf-2
endif
+ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y)
+KBUILD_CFLAGS += -I$(srctree)/../kernel-t18x/include
+endif
+
ifdef CONFIG_DEBUG_INFO_REDUCED
KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \
$(call cc-option,-fno-var-tracking)