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
|
2015-11-24 20:39:59 +00:00
|
|
|
PKG_RELEASE:=2
|
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)
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=ed7fe39311d7a4a13d23ed0ae2445c0d825b472b5a98da9b72bcaabcf5ed2d5f
|
2016-05-11 07:06:21 +00:00
|
|
|
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
2017-06-07 09:01:06 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0 BSD-2-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
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
|
|
|
|
|
2015-11-24 20:39:59 +00:00
|
|
|
MAKE_FLAGS+=-s
|
|
|
|
|
2010-03-28 23:11:05 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
ARCH=$(LINUX_KARCH) \
|
|
|
|
--enable-linux-26 \
|
|
|
|
--enable-kernelbuild="$(LINUX_DIR)" \
|
|
|
|
--enable-kernelincl="$(LINUX_DIR)/include" \
|
2015-11-24 20:39:59 +00:00
|
|
|
--with-kernel-module
|
2010-03-28 23:11:05 +00:00
|
|
|
|
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))
|