@@ -69,6 +69,13 @@ if test "$have_rimage" = "yes"; then
6969fi
7070AM_CONDITIONAL(BUILD_RIMAGE, test "$have_rimage" = "yes")
7171
72+ # check if we are building docs
73+ AC_ARG_ENABLE ( doc , [ AS_HELP_STRING ( [ --enable-doc] ,[ build doc] ) ] , have_doc=$enableval , have_doc=no )
74+ if test "$have_doc" = "yes"; then
75+ AC_DEFINE ( [ CONFIG_DOC] , [ 1] , [ Configure to build doc] )
76+ fi
77+ AM_CONDITIONAL(BUILD_DOC, test "$have_doc" = "yes")
78+
7279# Disable DMIC driver if requested, by default build for supported platforms
7380AC_ARG_ENABLE ( [ dmic] , AS_HELP_STRING ( [ --disable-dmic] , [ Disable DMIC driver] ) )
7481AS_IF ( [ test "x$enable_dmic" != "xno"] , [
@@ -118,7 +125,7 @@ case "$with_arch" in
118125 AC_SUBST ( ARCH )
119126 ;;
120127 *)
121- if test "$have_rimage" = "no"; then
128+ if test "$have_rimage" = "no" && test "$have_doc" = "no" ; then
122129 AC_MSG_ERROR ( [ DSP architecture not specified] )
123130 fi
124131 ;;
@@ -134,6 +141,9 @@ AC_SUBST(AM_CCASFLAGS)
134141AM_CONDITIONAL(BUILD_XTENSA, test "$ARCH" = "xtensa")
135142AM_CONDITIONAL(BUILD_HOST, test "$ARCH" = "host")
136143
144+ # check for xtensa extension
145+ AM_CONDITIONAL(BUILD_XTENSA_SMP, test "$with_arch" = "xtensa-smp")
146+
137147# Cmocka tests
138148AC_ARG_WITH ( [ cmocka-prefix] ,
139149 AS_HELP_STRING ( [ --with-cmocka-prefix] , [ Path to cmocka] ) ,
@@ -271,7 +281,7 @@ case "$with_platform" in
271281 AC_DEFINE ( [ CONFIG_DMA_GW] , [ 1] , [ Configure DMA Gateway] )
272282 ;;
273283 *)
274- if test "$have_rimage" = "no"; then
284+ if test "$have_rimage" = "no" && test "$have_doc" = "no" ; then
275285 if test "$ARCH" = "host"; then
276286 PLATFORM="host"
277287 AC_SUBST ( PLATFORM )
@@ -428,8 +438,16 @@ AC_CONFIG_FILES([
428438 src/arch/xtensa/include/arch/Makefile
429439 src/arch/xtensa/include/xtensa/Makefile
430440 src/arch/xtensa/include/xtensa/config/Makefile
431- src/arch/xtensa/hal/Makefile
432- src/arch/xtensa/xtos/Makefile
441+ src/arch/xtensa/smp/Makefile
442+ src/arch/xtensa/smp/hal/Makefile
443+ src/arch/xtensa/smp/include/Makefile
444+ src/arch/xtensa/smp/include/arch/Makefile
445+ src/arch/xtensa/smp/xtos/Makefile
446+ src/arch/xtensa/up/Makefile
447+ src/arch/xtensa/up/hal/Makefile
448+ src/arch/xtensa/up/include/Makefile
449+ src/arch/xtensa/up/include/arch/Makefile
450+ src/arch/xtensa/up/xtos/Makefile
433451 src/arch/host/Makefile
434452 src/arch/host/include/Makefile
435453 src/arch/host/include/arch/Makefile
@@ -475,6 +493,7 @@ AC_CONFIG_FILES([
475493 src/platform/cannonlake/include/arch/xtensa/config/Makefile
476494 src/platform/cannonlake/include/platform/Makefile
477495 src/platform/intel/Makefile
496+ src/platform/intel/cavs/Makefile
478497 src/platform/intel/include/Makefile
479498 src/platform/intel/include/platform/Makefile
480499 src/platform/intel/include/platform/cavs/Makefile
0 commit comments