Root/package/platform/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
6include $(TOPDIR)/rules.mk
7include $(INCLUDE_DIR)/kernel.mk
8
9PKG_NAME:=lib_ifxos
10PKG_VERSION:=1.5.14
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12PKG_RELEASE:=3
13PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
14PKG_MD5SUM:=bc107f9d8ff6bed4c2760a2817bbb029
15PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
16
17include $(INCLUDE_DIR)/package.mk
18
19define KernelPackage/ltq-ifxos
20  SECTION:=sys
21  CATEGORY:=Kernel modules
22  SUBMENU:=Libraries
23  TITLE:=Lantiq OS abstraction library
24  URL:=http://www.lantiq.com/
25  DEPENDS:=@TARGET_lantiq
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))
52

Archive Download this file



interactive