From 307f0f00016e2cad0d7ed594bf18f528294c02cd Mon Sep 17 00:00:00 2001 From: Adeel Raza Date: Fri, 26 Jun 2015 17:00:37 -0700 Subject: [PATCH] DNI: fix kernel paths The path to the main kernel repo is subject to change. Therefore, don't hardcode the path. Instead use the $(srctree) macro. Change-Id: Id1b3ffab668142addbc1a3a38e098b0bbf0e4cef Signed-off-by: Adeel Raza Reviewed-on: http://git-master/r/763205 Reviewed-by: Alexander Van Brunt Tested-by: Alexander Van Brunt --- sound/soc/tegra-alt/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/tegra-alt/Makefile b/sound/soc/tegra-alt/Makefile index f111f0da..954f28d4 100644 --- a/sound/soc/tegra-alt/Makefile +++ b/sound/soc/tegra-alt/Makefile @@ -1,4 +1,4 @@ -KBUILD_CFLAGS += -I$(srctree)/../kernel-3.18/sound/soc/tegra-alt +KBUILD_CFLAGS += -I$(srctree)/sound/soc/tegra-alt snd-soc-tegra186-alt-asrc-objs := tegra186_asrc_alt.o snd-soc-tegra186-alt-arad-objs := tegra186_arad_alt.o @@ -10,7 +10,9 @@ obj-$(CONFIG_SND_SOC_TEGRA186_ARAD_ALT) += snd-soc-tegra186-alt-arad.o obj-$(CONFIG_SND_SOC_TEGRA210_AFC_ALT) += snd-soc-tegra186-alt-afc.o obj-$(CONFIG_SND_SOC_TEGRA210_XBAR_ALT) += snd-soc-tegra186-alt-xbar.o +# The funky manipulation of $(srctree) is for dynamically finding the name of +# the kernel root dir. snd-soc-tegra-alt-t186ref-objs := tegra_t186ref_alt.o tegra_asoc_machine_alt_t18x.o \ - ../../../../kernel-3.18/sound/soc/tegra-alt/tegra_asoc_machine_alt.o + ../../../../$(lastword $(subst /, ,$(srctree)))/sound/soc/tegra-alt/tegra_asoc_machine_alt.o obj-$(CONFIG_SND_SOC_TEGRA_T186REF_ALT) += snd-soc-tegra-alt-t186ref.o