Skip to content

Commit

Permalink
ASoC: SOF: imx: fix undefined reference issue
Browse files Browse the repository at this point in the history
make.cross ARCH=mips allyesconfig fails with the following error:

sound/soc/sof/sof-of-dev.o:(.data.sof_of_imx8mp_desc+0x40): undefined
reference to `sof_imx8m_ops'

This seems to be a Makefile order issue, solve by using the same
structure as for Intel platforms.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
  • Loading branch information
plbossart committed Feb 11, 2020
1 parent 1a6caa2 commit 0c7dcfe
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sound/soc/sof/imx/Kconfig
Expand Up @@ -21,8 +21,7 @@ config SND_SOC_SOF_IMX8_SUPPORT
If unsure select "N".

config SND_SOC_SOF_IMX8
def_tristate SND_SOC_SOF_OF
depends on SND_SOC_SOF_IMX8_SUPPORT
tristate

config SND_SOC_SOF_IMX8M_SUPPORT
bool "SOF support for i.MX8M"
Expand All @@ -33,6 +32,11 @@ config SND_SOC_SOF_IMX8M_SUPPORT
If unsure select "N".

config SND_SOC_SOF_IMX8M
tristate

config SND_SOC_SOF_IMX
def_tristate SND_SOC_SOF_OF
depends on SND_SOC_SOF_IMX8M_SUPPORT
select SND_SOC_SOC_IMX8 if SND_SOC_SOF_IMX8_SUPPORT
select SND_SOC_SOC_IMX8M if SND_SOC_SOF_IMX8M_SUPPORT

endif ## SND_SOC_SOF_IMX_IMX_TOPLEVEL

0 comments on commit 0c7dcfe

Please sign in to comment.