Changeset 1284


Ignore:
Timestamp:
Jan 19, 2010, 11:10:13 AM (10 years ago)
Author:
dingo35
Message:

Add Triple Dragon support, thanks to Single

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r1184 r1284  
    1818    if (OSCAM_SYSTEM_NAME MATCHES "Tuxbox")
    1919        set (OSCamOperatingSystem "Tuxbox")
     20        set (CS_OS_HW "tuxbox")
     21        set (CS_OS_SYS "linux")
     22    elseif (OSCAM_SYSTEM_NAME MATCHES "TripleDragon")
     23        set (OSCamOperatingSystem "TripleDragon")
    2024        set (CS_OS_HW "tuxbox")
    2125        set (CS_OS_SYS "linux")
     
    9397    add_definitions ("-DOS_LINUX -DTUXBOX -DPPC")
    9498    set (DEFAULT_CS_CONFDIR "/var/tuxbox/config")
     99elseif (OSCamOperatingSystem MATCHES "TripleDragon")
     100    add_definitions ("-DOS_LINUX -DTRIPLEDRAGON -DHAVE_DVBAPI -DSTB04SCI -DTUXBOX -DPPC")   
     101set (DEFAULT_CS_CONFDIR "/var/tuxbox/config")
    95102elseif (OSCamOperatingSystem MATCHES "NeutrinoHD")
    96103    add_definitions ("-DOS_LINUX -DTUXBOX -DCOOL")
     
    203210    set (HAVE_PCSC "1")
    204211elseif (OSCamOperatingSystem MATCHES "Tuxbox")
     212    target_link_libraries ( ${exe_name} dl)
     213elseif (OSCamOperatingSystem MATCHES "TripleDragon")
    205214    target_link_libraries ( ${exe_name} dl)
    206215elseif (OSCamOperatingSystem MATCHES "SlugOS")
  • trunk/Makefile

    r1147 r1284  
    1212freebsd:    i386-pc-freebsd
    1313tuxbox: cross-powerpc-tuxbox-linux
     14tripledragon: cross-powerpc-405-linux
    1415win:    cross-i386-pc-cygwin
    1516cygwin: i386-pc-cygwin
     
    2021    cross-i386-pc-cygwin \
    2122    cross-powerpc-tuxbox-linux \
     23    cross-powerpc-405-linux \
    2224    cross-i386-pc-freebsd \
    2325    cross-arm-nslu2-linux \
     
    198200        DS_ST=powerpc-tuxbox-linux-uclibc-strip
    199201
     202######################################################################
     203#
     204#   TripleDragon crosscompiler
     205#
     206######################################################################
     207cross-powerpc-405-linux:
     208    @-$(MAKE) --no-print-directory \
     209        -f Maketype TYP=$(subst cross-,,$@) \
     210        OS_LIBS="-lcrypto -ldl -lm" \
     211        OS_CULI="-lncurses" \
     212        OS_PTLI="-lpthread" \
     213        DS_OPTS="-O2 -DOS_LINUX -DTRIPLEDRAGON -DCS_LOGHISTORY -DCS_ANTICASC -DHAVE_DVBAPI_TD -DSTB04SCI -DCS_CONFDIR='\"/var/tuxbox/config\"' -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
     214        DS_CFLAGS="-c" \
     215        DS_LDFLAGS="" \
     216        DS_ARFLAGS="-rvsl" \
     217        DS_CC=powerpc-405-linux-gnu-gcc \
     218        DS_AR=powerpc-405-linux-gnu-ar \
     219        DS_LD=powerpc-405-linux-gnu-ld \
     220        DS_RL=powerpc-405-linux-gnu-ranlib \
     221        DS_ST=powerpc-405-linux-gnu-strip
    200222
    201223######################################################################
  • trunk/oscam-config.h

    r1219 r1284  
    1717#  define CS_HW_DBOX2   1
    1818#  define CS_HW_DREAM   2
     19#  ifdef TRIPLEDRAGON
     20#  define CS_HW_DRAGON 3
     21#  endif
    1922#  ifndef COOL
    2023#    define SCI_DEV 1
  • trunk/oscam.c

    r1272 r1284  
    103103    cs_hw=CS_HW_DBOX2;          // dbox2, default for now
    104104    if (!stat("/dev/sci0", &st)) cs_hw=CS_HW_DREAM; // dreambox
     105#ifdef TRIPLEDRAGON
     106    if (!stat("/dev/stb/tdsc0", &st)) cs_hw=CS_HW_DRAGON; // tripledragon
     107#endif
    105108    switch(cs_hw)
    106109    {
     
    109112#endif
    110113      case CS_HW_DREAM: hw="dreambox"; break;
     114#ifdef TRIPLEDRAGON
     115      case CS_HW_DRAGON: hw="tripledragon"; break;
     116#endif
    111117    }
    112118#endif
Note: See TracChangeset for help on using the changeset viewer.