2010-03-28 23:11:05 +00:00
|
|
|
#
|
2010-05-23 14:42:44 +00:00
|
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
2010-03-28 23:11:05 +00: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
|
2010-03-31 17:24:43 +00:00
|
|
|
PKG_VERSION:=1.5.12
|
2010-03-28 23:11:05 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2010-05-23 21:55:40 +00:00
|
|
|
PKG_RELEASE:=2
|
2010-03-28 23:11:05 +00:00
|
|
|
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
|
2010-03-31 21:11:39 +00:00
|
|
|
PKG_MD5SUM:=ba775356bdd5e1b73b3e11a152710ed6
|
2010-03-28 23:11:05 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-02-01 14:32:25 +00:00
|
|
|
define KernelPackage/ltq-ifxos
|
|
|
|
SUBMENU:=Voice over IP
|
2010-03-28 23:11:05 +00:00
|
|
|
TITLE:=Lantiq OS abstraction library
|
|
|
|
URL:=http://www.lantiq.com/
|
|
|
|
MAINTAINER:=Lantiq
|
2011-02-01 14:32:25 +00:00
|
|
|
DEPENDS:=@TARGET_lantiq
|
2010-07-12 14:06:13 +00:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
|
2010-03-28 23:11:05 +00: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
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(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
|
|
|
|
endef
|
|
|
|
|
2011-02-01 14:32:25 +00:00
|
|
|
$(eval $(call KernelPackage,ltq-ifxos))
|