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