configure: Rename hardware defined macros for coolstream stb

BOXMODEL_NEVIS => BOXMODEL_CS_HD1
   configure parameter: --with-boxmodel=hd1
   --with-boxmodel=nevis is deprecated, but still valid

  BOXMODEL_APOLLO => BOXMODEL_CS_HD2
   configure parameter: --with-boxmodel=hd2
   --with-boxmodel=apollo is deprecated, but still valid
This commit is contained in:
M. Liebmann
2017-02-12 07:32:58 +01:00
parent e15f31fee4
commit bb2a848ae1
5 changed files with 27 additions and 15 deletions

View File

@@ -471,17 +471,29 @@ AC_ARG_WITH(boxtype,
esac], [BOXTYPE="coolstream"])
AC_ARG_WITH(boxmodel,
[ --with-boxmodel valid for coolstream: nevis, apollo
[ --with-boxmodel valid for coolstream: hd1, hd2
valid for dreambox: dm500, dm500plus, dm600pvr, dm56x0, dm7000, dm7020, dm7025
valid for ipbox: ip200, ip250, ip350, ip400],
[case "${withval}" in
nevis|apollo)
hd1|hd2)
if test "$BOXTYPE" = "coolstream"; then
BOXMODEL="$withval"
else
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
fi
;;
nevis|apollo)
if test "$BOXTYPE" = "coolstream"; then
if test "$withval" = "nevis"; then
BOXMODEL="hd1"
fi
if test "$withval" = "apollo"; then
BOXMODEL="hd2"
fi
else
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
fi
;;
dm500|dm500plus|dm600pvr|dm56x0|dm7000|dm7020|dm7025)
if test "$BOXTYPE" = "dreambox"; then
BOXMODEL="$withval"
@@ -499,7 +511,7 @@ AC_ARG_WITH(boxmodel,
*)
AC_MSG_ERROR([unsupported value $withval for --with-boxmodel])
;;
esac], [BOXMODEL="nevis"]
esac], [BOXMODEL="hd1"]
[if test "$BOXTYPE" = "dreambox" -o "$BOXTYPE" = "ipbox" && test -z "$BOXMODEL"; then
AC_MSG_ERROR([Dreambox/IPBox needs --with-boxmodel])
fi])
@@ -514,8 +526,8 @@ AM_CONDITIONAL(BOXTYPE_IPBOX, test "$BOXTYPE" = "ipbox")
AM_CONDITIONAL(BOXTYPE_COOL, test "$BOXTYPE" = "coolstream")
AM_CONDITIONAL(BOXTYPE_GENERIC, test "$BOXTYPE" = "generic")
AM_CONDITIONAL(BOXMODEL_NEVIS,test "$BOXMODEL" = "nevis")
AM_CONDITIONAL(BOXMODEL_APOLLO,test "$BOXMODEL" = "apollo")
AM_CONDITIONAL(BOXMODEL_CS_HD1,test "$BOXMODEL" = "hd1")
AM_CONDITIONAL(BOXMODEL_CS_HD2,test "$BOXMODEL" = "hd2")
AM_CONDITIONAL(BOXMODEL_DM500,test "$BOXMODEL" = "dm500")
AM_CONDITIONAL(BOXMODEL_DM500PLUS,test "$BOXMODEL" = "dm500plus")
@@ -543,10 +555,10 @@ elif test "$BOXTYPE" = "generic"; then
fi
# TODO: do we need more defines?
if test "$BOXMODEL" = "nevis"; then
AC_DEFINE(BOXMODEL_NEVIS, 1, [coolstream hd1/neo/neo2/zee])
elif test "$BOXMODEL" = "apollo"; then
AC_DEFINE(BOXMODEL_APOLLO, 1, [coolstream tank])
if test "$BOXMODEL" = "hd1"; then
AC_DEFINE(BOXMODEL_CS_HD1, 1, [coolstream hd1/neo/neo2/zee])
elif test "$BOXMODEL" = "hd2"; then
AC_DEFINE(BOXMODEL_CS_HD2, 1, [coolstream tank/trinity/trinity v2/trinity duo/zee<65>/link])
elif test "$BOXMODEL" = "dm500"; then
AC_DEFINE(BOXMODEL_DM500, 1, [dreambox 500])
elif test "$BOXMODEL" = "ip200"; then