asterisk-chan-lantiq: fix SDK build 191/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 8 Oct 2017 17:52:13 +0000 (19:52 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 8 Oct 2017 17:52:15 +0000 (19:52 +0200)
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 <sebastian_ml@gmx.net>
net/asterisk-chan-lantiq/Makefile

index 40f202dcfcf241ae02eef89911e4d628facdb6f5..309f3348a3c357c27cd40225c8885c633560ba78 100644 (file)
@@ -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)