You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.4 KiB
52 lines
1.4 KiB
12 years ago
|
# Copyright (C) 2009-2012 OpenWrt.org
|
||
15 years ago
|
#
|
||
|
# 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
|
||
14 years ago
|
PKG_VERSION:=1.5.14
|
||
15 years ago
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||
14 years ago
|
PKG_RELEASE:=3
|
||
15 years ago
|
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
|
||
14 years ago
|
PKG_MD5SUM:=bc107f9d8ff6bed4c2760a2817bbb029
|
||
12 years ago
|
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
|
||
15 years ago
|
|
||
|
include $(INCLUDE_DIR)/package.mk
|
||
|
|
||
14 years ago
|
define KernelPackage/ltq-ifxos
|
||
12 years ago
|
SECTION:=sys
|
||
|
CATEGORY:=Kernel modules
|
||
|
SUBMENU:=Libraries
|
||
15 years ago
|
TITLE:=Lantiq OS abstraction library
|
||
|
URL:=http://www.lantiq.com/
|
||
14 years ago
|
DEPENDS:=@TARGET_lantiq
|
||
15 years ago
|
FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
|
||
15 years ago
|
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
|
||
|
|
||
14 years ago
|
ifdef CONFIG_TARGET_lantiq
|
||
|
define Build/InstallDev
|
||
15 years ago
|
$(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
|
||
14 years ago
|
endef
|
||
|
endif
|
||
15 years ago
|
|
||
14 years ago
|
$(eval $(call KernelPackage,ltq-ifxos))
|