@@ -71,6 +71,13 @@ if test "$have_rimage" = "yes"; then
7171fi
7272AM_CONDITIONAL(BUILD_RIMAGE, test "$have_rimage" = "yes")
7373
74+ # check if we are building docs
75+ AC_ARG_ENABLE ( doc , [ AS_HELP_STRING ( [ --enable-doc] ,[ build doc] ) ] , have_doc=$enableval , have_doc=no )
76+ if test "$have_doc" = "yes"; then
77+ AC_DEFINE ( [ CONFIG_DOC] , [ 1] , [ Configure to build doc] )
78+ fi
79+ AM_CONDITIONAL(BUILD_DOC, test "$have_doc" = "yes")
80+
7481# Disable DMIC driver if requested, by default build for supported platforms
7582AC_ARG_ENABLE ( [ dmic] , AS_HELP_STRING ( [ --disable-dmic] , [ Disable DMIC driver] ) )
7683AS_IF ( [ test "x$enable_dmic" != "xno"] , [
@@ -119,7 +126,7 @@ case "$with_arch" in
119126 AC_SUBST ( ARCH )
120127 ;;
121128 *)
122- if test "$have_rimage" = "no"; then
129+ if test "$have_rimage" = "no" && test "$have_doc" = "no" ; then
123130 AC_MSG_ERROR ( [ DSP architecture not specified] )
124131 fi
125132 ;;
@@ -268,7 +275,7 @@ case "$with_platform" in
268275 AC_DEFINE ( [ CONFIG_DMA_GW] , [ 1] , [ Configure DMA Gateway] )
269276 ;;
270277 *)
271- if test "$have_rimage" = "no"; then
278+ if test "$have_rimage" = "no" && test "$have_doc" = "no" ; then
272279 if test "$ARCH" = "host"; then
273280 PLATFORM="host"
274281 AC_SUBST ( PLATFORM )
0 commit comments