source: branches/backfire/package/ltq-ifxos/Makefile @ 27547

Last change on this file since 27547 was 27547, checked in by blogic, 5 years ago

adds lantiq packages/drivers

File size: 1.3 KB
Line 
1#
2# Copyright (C) 2009-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=lib_ifxos
12PKG_VERSION:=1.5.14
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_RELEASE:=3
15PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
16PKG_MD5SUM:=ba775356bdd5e1b73b3e11a152710ed6
17
18include $(INCLUDE_DIR)/package.mk
19
20define KernelPackage/ltq-ifxos
21  SUBMENU:=Voice over IP
22  TITLE:=Lantiq OS abstraction library
23  URL:=http://www.lantiq.com/
24  MAINTAINER:=Lantiq
25  DEPENDS:=@TARGET_lantiq @!TARGET_lantiq_ase
26  FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.ko
27  AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
28endef
29
30CONFIGURE_ARGS += \
31        ARCH=$(LINUX_KARCH) \
32        --enable-linux-26 \
33        --enable-kernelbuild="$(LINUX_DIR)" \
34        --enable-kernelincl="$(LINUX_DIR)/include" \
35        --enable-add_drv_cflags="-fno-pic -mno-abicalls -mlong-calls -G 0"
36
37define Build/Configure
38        (cd $(PKG_BUILD_DIR); aclocal && autoconf && automake)
39        $(call Build/Configure/Default)
40endef
41
42ifdef CONFIG_TARGET_lantiq
43  define Build/InstallDev
44        $(INSTALL_DIR) $(1)/usr/{lib,include/ifxos}
45        $(CP) $(PKG_BUILD_DIR)/src/include/* $(1)/usr/include/ifxos
46        mkdir -p $(1)/usr/lib
47        $(CP) $(PKG_BUILD_DIR)/src/libifxos.a $(1)/usr/lib/libifxos.a
48  endef
49endif
50
51$(eval $(call KernelPackage,ltq-ifxos))
Note: See TracBrowser for help on using the repository browser.