asterisk-chan-dongle: simplify Makefile
Simplify the Makefile by using the default Build/Compile routine. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
b2127aadb5
commit
b22af0210e
1 changed files with 5 additions and 26 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2017 OpenWrt.org
|
# Copyright (C) 2017 - 2018 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -74,28 +74,11 @@ CONFIGURE_ARGS+= \
|
||||||
TARGET_CFLAGS+= \
|
TARGET_CFLAGS+= \
|
||||||
-I$(CHAN_DONGLE_AST_HEADERS)
|
-I$(CHAN_DONGLE_AST_HEADERS)
|
||||||
|
|
||||||
|
MAKE_FLAGS+=LD="$(TARGET_CC)"
|
||||||
|
|
||||||
# musl and glibc include their own iconv, but uclibc does not
|
# musl and glibc include their own iconv, but uclibc does not
|
||||||
ifneq ($(CONFIG_USE_UCLIBC),)
|
TARGET_CPPFLAGS+=$(if $(CONFIG_USE_UCLIBC),-I$(STAGING_DIR)/usr/lib/libiconv-full/include)
|
||||||
TARGET_CPPFLAGS+= \
|
TARGET_LDFLAGS+=$(if $(CONFIG_USE_UCLIBC),-L$(STAGING_DIR)/usr/lib/libiconv-full/lib -liconv)
|
||||||
-I$(STAGING_DIR)/usr/lib/libiconv-full/include
|
|
||||||
endif
|
|
||||||
|
|
||||||
# -DAST_MODULE_SELF_SYM=__internal_chan_dongle_self to fix Asterisk 14
|
|
||||||
# compile issues
|
|
||||||
CHAN_DONGLE_EXTRA_CFLAGS:= \
|
|
||||||
-Wno-old-style-declaration \
|
|
||||||
-I$(PKG_BUILD_DIR) \
|
|
||||||
-DAST_MODULE_SELF_SYM=__internal_chan_dongle_self \
|
|
||||||
$(TARGET_CPPFLAGS) \
|
|
||||||
-D_GNU_SOURCE \
|
|
||||||
-DHAVE_CONFIG_H \
|
|
||||||
$(FPIC)
|
|
||||||
|
|
||||||
MAKE_ARGS:= \
|
|
||||||
CC="$(TARGET_CC)" \
|
|
||||||
LD="$(TARGET_CC)" \
|
|
||||||
CFLAGS="$(TARGET_CFLAGS) $(CHAN_DONGLE_EXTRA_CFLAGS)" \
|
|
||||||
LDFLAGS="$(TARGET_LDFLAGS) $(if $(CONFIG_USE_UCLIBC),-L$(STAGING_DIR)/usr/lib/libiconv-full/lib -liconv)"
|
|
||||||
|
|
||||||
# $CHAN_DONGLE_ICONV_INC used by 200-fix-iconv-detection.patch
|
# $CHAN_DONGLE_ICONV_INC used by 200-fix-iconv-detection.patch
|
||||||
CONFIGURE_VARS += \
|
CONFIGURE_VARS += \
|
||||||
|
@ -103,10 +86,6 @@ CONFIGURE_VARS += \
|
||||||
ac_cv_type_size_t=yes \
|
ac_cv_type_size_t=yes \
|
||||||
ac_cv_type_ssize_t=yes
|
ac_cv_type_ssize_t=yes
|
||||||
|
|
||||||
define Build/Compile
|
|
||||||
$(MAKE) $(PKG_JOBS) -C "$(PKG_BUILD_DIR)" $(MAKE_ARGS)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/conffiles/Default
|
define Package/conffiles/Default
|
||||||
/etc/asterisk/dongle.conf
|
/etc/asterisk/dongle.conf
|
||||||
endef
|
endef
|
||||||
|
|
Loading…
Reference in a new issue