2010-03-29 02:11:05 +03:00
|
|
|
#
|
2010-05-23 17:42:44 +03:00
|
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
2010-03-29 02:11:05 +03:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=lib_ifxos
|
2011-07-07 21:20:02 +03:00
|
|
|
PKG_VERSION:=1.5.14
|
2010-03-29 02:11:05 +03:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2011-07-07 21:20:02 +03:00
|
|
|
PKG_RELEASE:=3
|
2010-03-29 02:11:05 +03:00
|
|
|
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
|
2011-07-10 13:40:37 +03:00
|
|
|
PKG_MD5SUM:=bc107f9d8ff6bed4c2760a2817bbb029
|
2010-03-29 02:11:05 +03:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-02-01 16:32:25 +02:00
|
|
|
define KernelPackage/ltq-ifxos
|
|
|
|
SUBMENU:=Voice over IP
|
2010-03-29 02:11:05 +03:00
|
|
|
TITLE:=Lantiq OS abstraction library
|
|
|
|
URL:=http://www.lantiq.com/
|
|
|
|
MAINTAINER:=Lantiq
|
2011-02-01 16:32:25 +02:00
|
|
|
DEPENDS:=@TARGET_lantiq
|
2010-07-12 17:06:13 +03:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
|
2010-03-29 02:11:05 +03:00
|
|
|
AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
ARCH=$(LINUX_KARCH) \
|
|
|
|
--enable-linux-26 \
|
|
|
|
--enable-kernelbuild="$(LINUX_DIR)" \
|
|
|
|
--enable-kernelincl="$(LINUX_DIR)/include" \
|
|
|
|
--enable-add_drv_cflags="-fno-pic -mno-abicalls -mlong-calls -G 0"
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR); aclocal && autoconf && automake)
|
|
|
|
$(call Build/Configure/Default)
|
|
|
|
endef
|
|
|
|
|
2011-03-13 20:45:27 +02:00
|
|
|
ifdef CONFIG_TARGET_lantiq
|
|
|
|
define Build/InstallDev
|
2010-03-29 02:11:05 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/{lib,include/ifxos}
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/ifxos
|
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/libifxos.a $(1)/usr/lib/libifxos.a
|
2011-03-13 20:45:27 +02:00
|
|
|
endef
|
|
|
|
endif
|
2010-03-29 02:11:05 +03:00
|
|
|
|
2011-02-01 16:32:25 +02:00
|
|
|
$(eval $(call KernelPackage,ltq-ifxos))
|