@@ -12,6 +12,9 @@ config BR2_PACKAGE_LIBPJSIP
if BR2_PACKAGE_LIBPJSIP
+config BR2_PACKAGE_LIBPJSIP_CODEC_G711
+ bool "G.711 codec"
+
config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
bool "GSM codec"
depends on !BR2_STATIC_LIBS # libgsm
@@ -38,7 +38,6 @@ LIBPJSIP_CONF_OPTS = \
--disable-ext-sound \
--disable-small-filter \
--disable-large-filter \
- --disable-g711-codec \
--disable-l16-codec \
--disable-g722-codec \
--disable-libsamplerate \
@@ -69,6 +68,10 @@ endif
# and we do not explictly enable it, so we get the configure log in
# both cases.
+ifneq ($(BR2_PACKAGE_LIBPJSIP_CODEC_G711),y)
+LIBPJSIP_CONF_OPTS += --disable-g711-codec
+endif
+
ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_GSM),y)
LIBPJSIP_DEPENDENCIES += libgsm
LIBPJSIP_CONF_OPTS += --with-external-gsm
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> --- package/libpjsip/Config.in | 3 +++ package/libpjsip/libpjsip.mk | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-)