-
-
Save dmsherazi/a84e4a48a8a9317a75877bea1a68be22 to your computer and use it in GitHub Desktop.
OpenWrt Makefile for Amfeltec Piranha USB FXO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (C) 2014 - 2018 OpenWrt.org | |
# | |
# This is free software, licensed under the GNU General Public License v2. | |
# See /LICENSE for more information. | |
# | |
# make package/feeds/telephony/amfeltec_usb/compile -j1 V=s | |
# | |
# Patch downloaded sources: | |
# Makefile - | |
# * Use `$KSRC` that we pass to make instead of using `$KDIR` | |
# * `$DAHDI_DIR/linux` is now just `$DAHDI_DIR`# | |
# * `#define DAHDI_VERSION 29` in amf_usb.h | |
# | |
include $(TOPDIR)/rules.mk | |
include $(INCLUDE_DIR)/kernel.mk | |
PKG_NAME:=amfeltec_usb | |
PKG_VERSION:=4.0.4 | |
PKG_RELEASE:=2 | |
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tgz | |
PKG_SOURCE_URL:=http://amfeltec.com/drivers/USB-FXO | |
PKG_SOURCE_SUBDIR:=$(PKG_NAME)_$(PKG_VERSION) | |
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION) | |
PKG_HASH:=83b227b1cd363fe3424b0c0550e0296f | |
PKG_LICENSE:=GPL-2.0 | |
PKG_LICENSE_FILES:=LICENSE | |
PKG_MAINTAINER:=Shoaib Ahmed <[email protected]> | |
DAHDI_DIR:=$(KERNEL_BUILD_DIR)/dahdi-linux-2.11.1-20180111 | |
include $(INCLUDE_DIR)/package.mk | |
define KernelPackage/amfeltec_usb | |
SUBMENU:=Voice over IP | |
TITLE:=AMFELTEC USB-FXO driver | |
DEPENDS:=@USB_SUPPORT +kmod-dahdi | |
FILES:= $(PKG_BUILD_DIR)/driver/amfeltec_usb/amf_usb.$(LINUX_KMOD_SUFFIX) | |
AUTOLOAD:=$(call AutoProbe,amfeltec_usb) | |
endef | |
define KernelPackage/amfeltec_usb/description | |
This package contains amfeltec_usb basic infrastructure. | |
endef | |
define Build/Configure | |
endef | |
define Build/Prepare | |
$(Build/Prepare/Default) | |
endef | |
define Build/Compile | |
$(MAKE) -C $(PKG_BUILD_DIR) \ | |
ARCH="$(LINUX_KARCH)" \ | |
$(TARGET_CONFIGURE_OPTS) \ | |
CROSS_COMPILE="$(TARGET_CROSS)" \ | |
KSRC="$(LINUX_DIR)" \ | |
DAHDI_DIR="$(DAHDI_DIR)" | |
endef | |
define Build/InstallDev | |
endef | |
$(eval $(call KernelPackage,amfeltec_usb)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment