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