ltq-adsl: disable mips16 support
[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.14
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_RELEASE:=3
13 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
14 PKG_MD5SUM:=bc107f9d8ff6bed4c2760a2817bbb029
15 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
16
17 PKG_USE_MIPS16:=0
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define KernelPackage/ltq-ifxos
22   SECTION:=sys
23   CATEGORY:=Kernel modules
24   SUBMENU:=Libraries
25   TITLE:=Lantiq OS abstraction library
26   URL:=http://www.lantiq.com/
27   DEPENDS:=@TARGET_lantiq
28   FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
29   AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
30 endef
31
32 CONFIGURE_ARGS += \
33         ARCH=$(LINUX_KARCH) \
34         --enable-linux-26 \
35         --enable-kernelbuild="$(LINUX_DIR)" \
36         --enable-kernelincl="$(LINUX_DIR)/include" \
37         --enable-add_drv_cflags="-fno-pic -mno-abicalls -mlong-calls -G 0"
38
39 define Build/Configure
40         (cd $(PKG_BUILD_DIR); aclocal && autoconf && automake)
41         $(call Build/Configure/Default)
42 endef
43
44 ifdef CONFIG_TARGET_lantiq
45   define Build/InstallDev
46         $(INSTALL_DIR) $(1)/usr/{lib,include/ifxos}
47         $(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/ifxos
48         mkdir -p $(1)/usr/lib
49         $(CP) $(PKG_BUILD_DIR)/src/libifxos.a $(1)/usr/lib/libifxos.a
50   endef
51 endif
52
53 $(eval $(call KernelPackage,ltq-ifxos))