mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
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:
30
acinclude.m4
30
acinclude.m4
@@ -471,17 +471,29 @@ AC_ARG_WITH(boxtype,
|
|||||||
esac], [BOXTYPE="coolstream"])
|
esac], [BOXTYPE="coolstream"])
|
||||||
|
|
||||||
AC_ARG_WITH(boxmodel,
|
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 dreambox: dm500, dm500plus, dm600pvr, dm56x0, dm7000, dm7020, dm7025
|
||||||
valid for ipbox: ip200, ip250, ip350, ip400],
|
valid for ipbox: ip200, ip250, ip350, ip400],
|
||||||
[case "${withval}" in
|
[case "${withval}" in
|
||||||
nevis|apollo)
|
hd1|hd2)
|
||||||
if test "$BOXTYPE" = "coolstream"; then
|
if test "$BOXTYPE" = "coolstream"; then
|
||||||
BOXMODEL="$withval"
|
BOXMODEL="$withval"
|
||||||
else
|
else
|
||||||
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
|
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
|
||||||
fi
|
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)
|
dm500|dm500plus|dm600pvr|dm56x0|dm7000|dm7020|dm7025)
|
||||||
if test "$BOXTYPE" = "dreambox"; then
|
if test "$BOXTYPE" = "dreambox"; then
|
||||||
BOXMODEL="$withval"
|
BOXMODEL="$withval"
|
||||||
@@ -499,7 +511,7 @@ AC_ARG_WITH(boxmodel,
|
|||||||
*)
|
*)
|
||||||
AC_MSG_ERROR([unsupported value $withval for --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
|
[if test "$BOXTYPE" = "dreambox" -o "$BOXTYPE" = "ipbox" && test -z "$BOXMODEL"; then
|
||||||
AC_MSG_ERROR([Dreambox/IPBox needs --with-boxmodel])
|
AC_MSG_ERROR([Dreambox/IPBox needs --with-boxmodel])
|
||||||
fi])
|
fi])
|
||||||
@@ -514,8 +526,8 @@ AM_CONDITIONAL(BOXTYPE_IPBOX, test "$BOXTYPE" = "ipbox")
|
|||||||
AM_CONDITIONAL(BOXTYPE_COOL, test "$BOXTYPE" = "coolstream")
|
AM_CONDITIONAL(BOXTYPE_COOL, test "$BOXTYPE" = "coolstream")
|
||||||
AM_CONDITIONAL(BOXTYPE_GENERIC, test "$BOXTYPE" = "generic")
|
AM_CONDITIONAL(BOXTYPE_GENERIC, test "$BOXTYPE" = "generic")
|
||||||
|
|
||||||
AM_CONDITIONAL(BOXMODEL_NEVIS,test "$BOXMODEL" = "nevis")
|
AM_CONDITIONAL(BOXMODEL_CS_HD1,test "$BOXMODEL" = "hd1")
|
||||||
AM_CONDITIONAL(BOXMODEL_APOLLO,test "$BOXMODEL" = "apollo")
|
AM_CONDITIONAL(BOXMODEL_CS_HD2,test "$BOXMODEL" = "hd2")
|
||||||
|
|
||||||
AM_CONDITIONAL(BOXMODEL_DM500,test "$BOXMODEL" = "dm500")
|
AM_CONDITIONAL(BOXMODEL_DM500,test "$BOXMODEL" = "dm500")
|
||||||
AM_CONDITIONAL(BOXMODEL_DM500PLUS,test "$BOXMODEL" = "dm500plus")
|
AM_CONDITIONAL(BOXMODEL_DM500PLUS,test "$BOXMODEL" = "dm500plus")
|
||||||
@@ -543,10 +555,10 @@ elif test "$BOXTYPE" = "generic"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: do we need more defines?
|
# TODO: do we need more defines?
|
||||||
if test "$BOXMODEL" = "nevis"; then
|
if test "$BOXMODEL" = "hd1"; then
|
||||||
AC_DEFINE(BOXMODEL_NEVIS, 1, [coolstream hd1/neo/neo2/zee])
|
AC_DEFINE(BOXMODEL_CS_HD1, 1, [coolstream hd1/neo/neo2/zee])
|
||||||
elif test "$BOXMODEL" = "apollo"; then
|
elif test "$BOXMODEL" = "hd2"; then
|
||||||
AC_DEFINE(BOXMODEL_APOLLO, 1, [coolstream tank])
|
AC_DEFINE(BOXMODEL_CS_HD2, 1, [coolstream tank/trinity/trinity v2/trinity duo/zee<65>/link])
|
||||||
elif test "$BOXMODEL" = "dm500"; then
|
elif test "$BOXMODEL" = "dm500"; then
|
||||||
AC_DEFINE(BOXMODEL_DM500, 1, [dreambox 500])
|
AC_DEFINE(BOXMODEL_DM500, 1, [dreambox 500])
|
||||||
elif test "$BOXMODEL" = "ip200"; then
|
elif test "$BOXMODEL" = "ip200"; then
|
||||||
|
@@ -245,7 +245,7 @@ if test -e ${srcdir}/lib/libcoolstream/nevis_ir.h; then
|
|||||||
fi
|
fi
|
||||||
HWLIB_CFLAGS='-I$(top_srcdir)/lib/libcoolstream -I$(top_srcdir)/src/zapit/include/private'
|
HWLIB_CFLAGS='-I$(top_srcdir)/lib/libcoolstream -I$(top_srcdir)/src/zapit/include/private'
|
||||||
|
|
||||||
if test "$BOXMODEL" = "apollo"; then
|
if test "$BOXMODEL" = "hd2"; then
|
||||||
if test -e ${srcdir}/lib/libcoolstream2/cs_ir_generic.h; then
|
if test -e ${srcdir}/lib/libcoolstream2/cs_ir_generic.h; then
|
||||||
AC_DEFINE(HAVE_COOLSTREAM_CS_IR_GENERIC_H,1,[Define to 1 if you have the <cs_ir_generic.h> header file.])
|
AC_DEFINE(HAVE_COOLSTREAM_CS_IR_GENERIC_H,1,[Define to 1 if you have the <cs_ir_generic.h> header file.])
|
||||||
fi
|
fi
|
||||||
|
@@ -11,6 +11,6 @@ install_DATA = \
|
|||||||
tuxtxt.ttf \
|
tuxtxt.ttf \
|
||||||
tuxtxt.otb
|
tuxtxt.otb
|
||||||
|
|
||||||
if BOXMODEL_APOLLO
|
if BOXMODEL_CS_HD2
|
||||||
install_DATA += UnDotum.ttf
|
install_DATA += UnDotum.ttf
|
||||||
endif
|
endif
|
||||||
|
@@ -61,7 +61,7 @@ neutrino_SOURCES = neutrino_menue.cpp neutrino.cpp
|
|||||||
|
|
||||||
AM_CPPFLAGS += -D_FILE_OFFSET_BITS=64
|
AM_CPPFLAGS += -D_FILE_OFFSET_BITS=64
|
||||||
|
|
||||||
if BOXMODEL_APOLLO
|
if BOXMODEL_CS_HD2
|
||||||
MTDUTILSLIBS = \
|
MTDUTILSLIBS = \
|
||||||
system/mtdutils/libneutrino_system_mtdutils.a \
|
system/mtdutils/libneutrino_system_mtdutils.a \
|
||||||
system/mtdutils/lib/libneutrino_system_mtdutils_lib.a
|
system/mtdutils/lib/libneutrino_system_mtdutils_lib.a
|
||||||
@@ -145,14 +145,14 @@ if BOXTYPE_COOL
|
|||||||
neutrino_LDADD += -lcoolstream-mt -lca-sc
|
neutrino_LDADD += -lcoolstream-mt -lca-sc
|
||||||
if ENABLE_TMSDK
|
if ENABLE_TMSDK
|
||||||
else
|
else
|
||||||
if BOXMODEL_APOLLO
|
if BOXMODEL_CS_HD2
|
||||||
neutrino_LDADD += -lca-ci -llnxtmvssUsr -llnxUKAL -llnxplatUsr -llnxtmasUsr -llnxdvbciUsr -llnxpvrUsr -llnxcssUsr -llnxnotifyqUsr -ltmpvrDataManager-cst -ltmpvrIndexStorage -llnxscsUsr
|
neutrino_LDADD += -lca-ci -llnxtmvssUsr -llnxUKAL -llnxplatUsr -llnxtmasUsr -llnxdvbciUsr -llnxpvrUsr -llnxcssUsr -llnxnotifyqUsr -ltmpvrDataManager-cst -ltmpvrIndexStorage -llnxscsUsr
|
||||||
else
|
else
|
||||||
neutrino_LDADD += -lnxp
|
neutrino_LDADD += -lnxp
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if BOXMODEL_APOLLO
|
if BOXMODEL_CS_HD2
|
||||||
neutrino_LDADD += -liconv
|
neutrino_LDADD += -liconv
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
if BOXMODEL_APOLLO
|
if BOXMODEL_CS_HD2
|
||||||
SUBDIRS = mtdutils
|
SUBDIRS = mtdutils
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user