Changeset 14743


Ignorieren:
Zeitstempel:
25.06.2018 18:44:05 (vor 3 Monaten)
Autor:
er13
Nachricht:

asterisk: enable timerfd support

refs #706
refs https://www.ip-phone-forum.de/threads/freetz-mit-asterisk-timerfd-m%C3%B6glich.300002/

Ort:
trunk/make/asterisk
Dateien:
3 bearbeitet

Legende:

Unverändert
Hinzugefügt
Entfernt
  • trunk/make/asterisk/Config.in.generated

    r13431 r14743  
    13251325config FREETZ_PACKAGE_ASTERISK_WITH_TIMERFD 
    13261326    bool 
    1327     default n 
     1327    depends on FREETZ_KERNEL_VERSION_2_6_28_MIN 
     1328    default y 
    13281329 
    13291330config FREETZ_PACKAGE_ASTERISK_WITH_TONEZONE 
  • trunk/make/asterisk/asterisk.mk

    r14441 r14743  
    125125$(PKG)_CONFIGURE_OPTIONS += --with-tds=no 
    126126$(PKG)_CONFIGURE_OPTIONS += --with-termcap=no 
    127 $(PKG)_CONFIGURE_OPTIONS += --with-timerfd=no 
     127$(PKG)_CONFIGURE_OPTIONS += --with-timerfd=$(if $(FREETZ_PACKAGE_ASTERISK_WITH_TIMERFD),"$(TARGET_TOOLCHAIN_STAGING_DIR)/usr",no) 
    128128$(PKG)_CONFIGURE_OPTIONS += --with-tinfo=no 
    129129$(PKG)_CONFIGURE_OPTIONS += --with-tonezone=no 
  • trunk/make/asterisk/generate-menuconfig.py

    r13431 r14743  
    1313    } 
    1414 
    15     dependencyMap = { 
     15    selectMap = { 
    1616        "CRYPTO": ["FREETZ_LIB_libcrypto"], 
    1717        "OPENSSL": ["FREETZ_LIB_libcrypto", "FREETZ_LIB_libssl"], 
     
    3333    } 
    3434 
     35    dependsOnMap = { 
     36        "TIMERFD": ["FREETZ_KERNEL_VERSION_2_6_28_MIN"] 
     37    } 
    3538 
    3639    packagePrefix = "FREETZ_PACKAGE_ASTERISK_" 
     
    137140 
    138141    for externalDependency in sorted(externalDependencies): 
    139         supported = externalDependency in dependencyMap 
    140142        print "config " + packagePrefix + withInfix + externalDependency 
    141143        print "\tbool" 
    142         if supported: 
    143             for select in dependencyMap[externalDependency]: 
     144        if externalDependency in dependsOnMap: 
     145            for dependsOn in dependsOnMap[externalDependency]: 
     146                print "\tdepends on " + dependsOn 
     147        if externalDependency in selectMap: 
     148            for select in selectMap[externalDependency]: 
    144149                print "\tselect " + select 
    145         print "\tdefault " + ("y" if supported else "n") 
     150        print "\tdefault " + ("y" if (externalDependency in dependsOnMap or externalDependency in selectMap) else "n") 
    146151        print 
    147152 
Hinweis: Hilfe zur Verwendung der Changeset-Ansicht finden Sie unter TracChangeset.