2012-12-15 02:00:26 +00:00
|
|
|
# Copyright (C) 2009-2012 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
|
2011-07-07 18:20:02 +00:00
|
|
|
PKG_VERSION:=1.5.14
|
2010-03-28 23:11:05 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2011-07-07 18:20:02 +00:00
|
|
|
PKG_RELEASE:=3
|
2010-03-28 23:11:05 +00:00
|
|
|
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
|
2011-07-10 10:40:37 +00:00
|
|
|
PKG_MD5SUM:=bc107f9d8ff6bed4c2760a2817bbb029
|
2012-10-11 10:05:00 +00:00
|
|
|
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
|
2010-03-28 23:11:05 +00:00
|
|
|
|
2014-03-11 13:20:01 +00:00
|
|
|
PKG_USE_MIPS16:=0
|
|
|
|
|
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
|
2012-12-15 02:00:26 +00:00
|
|
|
SECTION:=sys
|
|
|
|
CATEGORY:=Kernel modules
|
|
|
|
SUBMENU:=Libraries
|
2010-03-28 23:11:05 +00:00
|
|
|
TITLE:=Lantiq OS abstraction library
|
|
|
|
URL:=http://www.lantiq.com/
|
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
|
|
|
|
|
2011-03-13 18:45:27 +00:00
|
|
|
ifdef CONFIG_TARGET_lantiq
|
|
|
|
define Build/InstallDev
|
2010-03-28 23:11:05 +00: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 18:45:27 +00:00
|
|
|
endef
|
|
|
|
endif
|
2010-03-28 23:11:05 +00:00
|
|
|
|
2011-02-01 14:32:25 +00:00
|
|
|
$(eval $(call KernelPackage,ltq-ifxos))
|