From 0f341bc97946832ee2bcc64dfad2d2577f8c9e17 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 8 Oct 2017 19:52:13 +0200 Subject: [PATCH] asterisk-chan-lantiq: fix SDK build When building using the SDK the $(SOURCE) variable is set differently, resulting in files not being found. Not using the variable and using "./" instead works fine. This fixes issue #190. Thanks to @Bongo79 for reporting and providing the fix. Signed-off-by: Sebastian Kemper --- net/asterisk-chan-lantiq/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/asterisk-chan-lantiq/Makefile b/net/asterisk-chan-lantiq/Makefile index 40f202d..309f334 100644 --- a/net/asterisk-chan-lantiq/Makefile +++ b/net/asterisk-chan-lantiq/Makefile @@ -53,7 +53,7 @@ Package/$(PKG_NAME)-asterisk13/conffiles = $(Package/conffiles/Default) define Package/Install/Default $(INSTALL_DIR) $(1)/etc/asterisk - $(INSTALL_CONF) $(SOURCE)/files/lantiq-$(BUILD_VARIANT).conf.sample \ + $(INSTALL_CONF) ./files/lantiq-$(BUILD_VARIANT).conf.sample \ $(1)/etc/asterisk/lantiq.conf $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules $(INSTALL_BIN) $(PKG_BUILD_DIR)/chan_lantiq.so \ @@ -63,8 +63,8 @@ endef Package/$(PKG_NAME)-asterisk13/install = $(Package/Install/Default) define Build/Prepare - $(CP) $(SOURCE)/files/chan_lantiq-$(BUILD_VARIANT).c $(PKG_BUILD_DIR)/chan_lantiq.c - $(CP) $(SOURCE)/files/default.exports $(PKG_BUILD_DIR)/chan_lantiq.exports + $(CP) ./files/chan_lantiq-$(BUILD_VARIANT).c $(PKG_BUILD_DIR)/chan_lantiq.c + $(CP) ./files/default.exports $(PKG_BUILD_DIR)/chan_lantiq.exports $(TAR) --extract --no-same-owner --no-same-permissions --xz \ --file=$(DL_DIR)/$(BUILD_VARIANT)-$(call qstrip,$(CONFIG_TARGET_ARCH_PACKAGES))-headers-for-chan-lantiq-$(VERSION_NUMBER).tar.xz \ --directory=$(PKG_BUILD_DIR) -- 2.30.2