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
|
2015-09-14 20:09:22 +00:00
|
|
|
PKG_VERSION:=1.5.19
|
|
|
|
PKG_RELEASE:=1
|
2010-03-28 23:11:05 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2015-09-14 20:09:22 +00:00
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_URL:=https://github.com/xdarklight/$(PKG_NAME)/archive/v$(PKG_VERSION)
|
|
|
|
PKG_MD5SUM:=39eace039ae4c3dde4da96bfdbee2721
|
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
|
2015-01-11 16:53:45 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2014-03-11 13:20:01 +00:00
|
|
|
|
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"
|
|
|
|
|
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))
|