1 # Copyright (C) 2012 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
7 include $(INCLUDE_DIR
)/kernel.mk
9 PKG_NAME
:=ltq-vdsl-vr9-mei
13 PKG_BASE_NAME
:=drv_mei_cpe
14 PKG_SOURCE
:=$(PKG_BASE_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_BASE_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
/
17 PKG_MD5SUM
:=cf2fccc1bc72390b2aec46650abf2f20
19 PKG_MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
22 include $(INCLUDE_DIR
)/package.mk
24 define KernelPackage
/ltq-vdsl-vr9-mei
25 TITLE
:=mei driver for vdsl
27 SUBMENU
:=Network Devices
28 DEPENDS
:=@TARGET_lantiq_xrx200
+kmod-ltq-ifxos
29 FILES
:=$(PKG_BUILD_DIR
)/src
/drv_mei_cpe.ko
30 AUTOLOAD
:=$(call AutoLoad
,50,drv_mei_cpe
)
33 define KernelPackage
/ltq-vdsl-vr9-mei
/description
34 Lantiq MEI CPE Kernel Module Driver
37 #DEBUG=-DDEBUG_PRINT=1
43 --enable-kernelincl
="$(LINUX_DIR)/include" \
46 --with-lines-per-device
=1 \
48 --enable-error_print \
49 --enable-ifxos-include
="-I$(STAGING_DIR)/usr/include/ifxos/" \
50 --enable-ifxos-library
="-L$(STAGING_DIR)/usr/lib" \
51 --enable-add_drv_cflags
="$(DEBUG) -DMEI_DRV_ATM_PTM_INTERFACE_ENABLE=1 -fno-pic -mno-abicalls -mlong-calls -O2 -g0" \
53 --enable-kernelbuild
="$(LINUX_DIR)" \
56 define Build
/InstallDev
57 $(INSTALL_DIR
) $(1)/usr
/include/vdsl
58 $(CP
) $(PKG_BUILD_DIR
)/src
/drv_mei_cpe_api_intern.h
$(1)/usr
/include/vdsl
/
59 $(CP
) $(PKG_BUILD_DIR
)/src
/drv_mei_cpe_api_atm_ptm_intern.h
$(1)/usr
/include/vdsl
/
60 $(CP
) $(PKG_BUILD_DIR
)/src
/drv_mei_cpe_interface.h
$(1)/usr
/include/vdsl
61 $(CP
) $(PKG_BUILD_DIR
)/src
/drv_mei_cpe_config.h
$(1)/usr
/include/vdsl
/
62 $(CP
) $(PKG_BUILD_DIR
)/src
/cmv_message_format.h
$(1)/usr
/include/vdsl
/
65 $(eval
$(call KernelPackage
,ltq-vdsl-vr9-mei
))