diff --git a/acinclude.m4 b/acinclude.m4 index bf53e6621..2685d73c4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -418,6 +418,10 @@ AC_ARG_WITH(boxtype, tripledragon|coolstream|spark|azbox|generic|armbox) BOXTYPE="$withval" ;; + hd60) + BOXTYPE="armbox" + BOXMODEL="$withval" + ;; *) AC_MSG_ERROR([bad value $withval for --with-boxtype]) ;; @@ -426,7 +430,7 @@ AC_ARG_WITH(boxtype, AC_ARG_WITH(boxmodel, AS_HELP_STRING([--with-boxmodel], [valid for coolstream: hd1, hd2]) -AS_HELP_STRING([], [valid for armbox: hd51]) +AS_HELP_STRING([], [valid for armbox: hd51, hd60]) AS_HELP_STRING([], [valid for generic: raspi]), [case "${withval}" in hd1|hd2) @@ -455,6 +459,13 @@ AS_HELP_STRING([], [valid for generic: raspi]), AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE]) fi ;; + hd60) + if test "$BOXTYPE" = "armbox"; then + BOXMODEL="$withval" + else + AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE]) + fi + ;; raspi) if test "$BOXTYPE" = "generic"; then BOXMODEL="$withval" @@ -480,6 +491,9 @@ AM_CONDITIONAL(BOXTYPE_ARMBOX, test "$BOXTYPE" = "armbox") AM_CONDITIONAL(BOXMODEL_CS_HD1, test "$BOXMODEL" = "hd1") AM_CONDITIONAL(BOXMODEL_CS_HD2, test "$BOXMODEL" = "hd2") +AM_CONDITIONAL(BOXMODEL_HD51, test "$BOXMODEL" = "hd51") +AM_CONDITIONAL(BOXMODEL_HD60, test "$BOXMODEL" = "hd60") + AM_CONDITIONAL(BOXMODEL_RASPI, test "$BOXMODEL" = "raspi") if test "$BOXTYPE" = "azbox"; then @@ -503,6 +517,10 @@ elif test "$BOXMODEL" = "hd2"; then AC_DEFINE(BOXMODEL_CS_HD2, 1, [coolstream tank/trinity/trinity v2/trinity duo/zee2/link]) AC_DEFINE(ENABLE_CHANGE_OSD_RESOLUTION, 1, [enable change the osd resolution]) elif test "$BOXMODEL" = "hd51"; then + AC_DEFINE(BOXMODEL_HD51, 1, [hd51]) + AC_DEFINE(ENABLE_CHANGE_OSD_RESOLUTION, 1, [enable change the osd resolution]) +elif test "$BOXMODEL" = "hd60"; then + AC_DEFINE(BOXMODEL_HD60, 1, [hd60]) AC_DEFINE(ENABLE_CHANGE_OSD_RESOLUTION, 1, [enable change the osd resolution]) elif test "$BOXMODEL" = "raspi"; then AC_DEFINE(BOXMODEL_RASPI, 1, [raspberry pi])