Skip to content

Commit 156d946

Browse files
authored
Merge pull request #56 from mmaka1/make-doc
scripts: doc: enabled quick makefile generation for make doc
2 parents 9996783 + fa32525 commit 156d946

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

configure.ac

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ if test "$have_rimage" = "yes"; then
7171
fi
7272
AM_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
7582
AC_ARG_ENABLE([dmic], AS_HELP_STRING([--disable-dmic], [Disable DMIC driver]))
7683
AS_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

Comments
 (0)