2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
17 #PKG_MD5SUM:=3602797b0f531f37546c6beb748d50cf
19 include $(INCLUDE_DIR
)/package.mk
21 define KernelPackage
/ifxos
22 SUBMENU
:=Other modules
23 TITLE
:=Lantiq OS abstraction library
24 URL
:=http
://www.lantiq.com
/
26 DEPENDS
:=@TARGET_ifxmips @BROKEN
27 FILES
:=$(PKG_BUILD_DIR
)/src
/drv_ifxos.
$(LINUX_KMOD_SUFFIX
)
28 AUTOLOAD
:=$(call AutoLoad
,10,drv_ifxos
)
34 --enable-kernelbuild
="$(LINUX_DIR)" \
35 --enable-kernelincl
="$(LINUX_DIR)/include" \
36 --enable-add_drv_cflags
="-fno-pic -mno-abicalls -mlong-calls -G 0"
38 define Build
/Configure
39 (cd
$(PKG_BUILD_DIR
); aclocal
&& autoconf
&& automake
)
40 $(call Build
/Configure
/Default
)
43 define Build
/InstallDev
44 $(INSTALL_DIR
) $(1)/usr
/{lib
,include/ifxos
}
45 $(CP
) $(PKG_BUILD_DIR
)/src
/include/* $(1)/usr
/include/ifxos
47 $(CP
) $(PKG_BUILD_DIR
)/src
/libifxos.a
$(1)/usr
/lib
/libifxos.a
50 $(eval
$(call KernelPackage
,ifxos
))