lantiq: Update to the latest DSL driver / application versions
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-ifxos / Makefile
1 # Copyright (C) 2009-2012 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5
6 include $(TOPDIR)/rules.mk
7 include $(INCLUDE_DIR)/kernel.mk
8
9 PKG_NAME:=lib_ifxos
10 PKG_VERSION:=1.5.19
11 PKG_RELEASE:=1
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
14 PKG_SOURCE_URL:=https://github.com/xdarklight/$(PKG_NAME)/archive/v$(PKG_VERSION)
15 PKG_MD5SUM:=39eace039ae4c3dde4da96bfdbee2721
16 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
17
18 PKG_USE_MIPS16:=0
19 PKG_FIXUP:=autoreconf
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define KernelPackage/ltq-ifxos
24 SECTION:=sys
25 CATEGORY:=Kernel modules
26 SUBMENU:=Libraries
27 TITLE:=Lantiq OS abstraction library
28 URL:=http://www.lantiq.com/
29 DEPENDS:=@TARGET_lantiq
30 FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
31 AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
32 endef
33
34 CONFIGURE_ARGS += \
35 ARCH=$(LINUX_KARCH) \
36 --enable-linux-26 \
37 --enable-kernelbuild="$(LINUX_DIR)" \
38 --enable-kernelincl="$(LINUX_DIR)/include" \
39 --enable-add_drv_cflags="-fno-pic -mno-abicalls -mlong-calls -G 0"
40
41 ifdef CONFIG_TARGET_lantiq
42 define Build/InstallDev
43 $(INSTALL_DIR) $(1)/usr/{lib,include/ifxos}
44 $(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/ifxos
45 mkdir -p $(1)/usr/lib
46 $(CP) $(PKG_BUILD_DIR)/src/libifxos.a $(1)/usr/lib/libifxos.a
47 endef
48 endif
49
50 $(eval $(call KernelPackage,ltq-ifxos))