source: trunk/package/ifxos/Makefile @ 20563

Last change on this file since 20563 was 20563, checked in by nbd, 6 years ago

add a package for ifxos (Infineon/Lantiq OS abstraction layer for drivers)

File size: 1.3 KB
Line 
1#
2# Copyright (C) 2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id: $
8
9include $(TOPDIR)/rules.mk
10include $(INCLUDE_DIR)/kernel.mk
11
12PKG_NAME:=lib_ifxos
13PKG_VERSION:=1.5.10
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_RELEASE:=1
16PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
17PKG_MD5SUM:=3602797b0f531f37546c6beb748d50cf
18
19include $(INCLUDE_DIR)/package.mk
20
21define KernelPackage/ifxos
22  SUBMENU:=Lantiq
23  TITLE:=Lantiq OS abstraction library
24  URL:=http://www.lantiq.com/
25  MAINTAINER:=Lantiq
26  DEPENDS:=@TARGET_ifxmips
27  FILES:=$(PKG_BUILD_DIR)/src/drv_ifxos.$(LINUX_KMOD_SUFFIX)
28  AUTOLOAD:=$(call AutoLoad,10,drv_ifxos)
29endef
30
31CONFIGURE_ARGS += \
32        ARCH=$(LINUX_KARCH) \
33        --enable-linux-26 \
34        --enable-kernelbuild="$(LINUX_DIR)" \
35        --enable-kernelincl="$(LINUX_DIR)/include" \
36        --enable-add_drv_cflags="-fno-pic -mno-abicalls -mlong-calls -G 0"
37
38define Build/Configure
39        (cd $(PKG_BUILD_DIR); aclocal && autoconf && automake)
40        $(call Build/Configure/Default)
41endef
42
43define 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
48endef
49
50$(eval $(call KernelPackage,ifxos))
Note: See TracBrowser for help on using the repository browser.