packages: clean up the package folder
[openwrt/staging/mkresin.git] / package / kernel / lantiq / ltq-vdsl-mei / Makefile
1 # Copyright (C) 2012 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5
6 include $(TOPDIR)/rules.mk
7 include $(INCLUDE_DIR)/kernel.mk
8
9 PKG_NAME:=ltq-vdsl-vr9-mei
10 PKG_VERSION:=1.2.0
11 PKG_RELEASE:=1
12
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_MD5SUM:=cf2fccc1bc72390b2aec46650abf2f20
17 PKG_FIXUP:=autoreconf
18 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define KernelPackage/ltq-vdsl-vr9-mei
23 TITLE:=mei driver for vdsl
24 SECTION:=sys
25 SUBMENU:=Network Devices
26 DEPENDS:=@TARGET_lantiq_xway +kmod-ltq-ifxos
27 FILES:=$(PKG_BUILD_DIR)/src/drv_mei_cpe.ko
28 AUTOLOAD:=$(call AutoLoad,50,drv_mei_cpe)
29 endef
30
31 define KernelPackage/ltq-vdsl-vr9-mei/description
32 Lantiq MEI CPE Kernel Module Driver
33 endef
34
35 #DEBUG=-DDEBUG_PRINT=1
36
37 CONFIGURE_ARGS += \
38 --enable-kernelincl="$(LINUX_DIR)/include" \
39 --enable-device=vr9 \
40 --with-max-device=1 \
41 --with-lines-per-device=1 \
42 --enable-debug \
43 --enable-error_print \
44 --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos/" \
45 --enable-ifxos-library="-L$(STAGING_DIR)/usr/lib" \
46 --enable-add_drv_cflags="$(DEBUG) -DMEI_DRV_ATM_PTM_INTERFACE_ENABLE=1 -fno-pic -mno-abicalls -mlong-calls -O2 -g0" \
47 --enable-linux-26 \
48 --enable-kernelbuild="$(LINUX_DIR)" \
49 ARCH=$(LINUX_KARCH)
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include/vdsl
53 $(CP) $(PKG_BUILD_DIR)/src/drv_mei_cpe_api_intern.h $(1)/usr/include/vdsl/
54 $(CP) $(PKG_BUILD_DIR)/src/drv_mei_cpe_api_atm_ptm_intern.h $(1)/usr/include/vdsl/
55 $(CP) $(PKG_BUILD_DIR)/src/drv_mei_cpe_interface.h $(1)/usr/include/vdsl
56 $(CP) $(PKG_BUILD_DIR)/src/drv_mei_cpe_config.h $(1)/usr/include/vdsl/
57 $(CP) $(PKG_BUILD_DIR)/src/cmv_message_format.h $(1)/usr/include/vdsl/
58 endef
59
60 $(eval $(call KernelPackage,ltq-vdsl-vr9-mei))