ltq-vdsl-mei: force shell to bash to avoid compile errors
[openwrt/staging/lynxis/omap.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_SOURCE_URL:=http://downloads.openwrt.org/sources/
17 PKG_MD5SUM:=cf2fccc1bc72390b2aec46650abf2f20
18 PKG_FIXUP:=autoreconf
19 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
20 PKG_USE_MIPS16:=0
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define KernelPackage/ltq-vdsl-vr9-mei
25 TITLE:=mei driver for vdsl
26 SECTION:=sys
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)
31 endef
32
33 define KernelPackage/ltq-vdsl-vr9-mei/description
34 Lantiq MEI CPE Kernel Module Driver
35 endef
36
37 #DEBUG=-DDEBUG_PRINT=1
38
39 MAKE_FLAGS += \
40 SHELL="$(BASH)"
41
42 CONFIGURE_ARGS += \
43 --enable-kernelincl="$(LINUX_DIR)/include" \
44 --enable-device=vr9 \
45 --with-max-device=1 \
46 --with-lines-per-device=1 \
47 --enable-debug \
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" \
52 --enable-linux-26 \
53 --enable-kernelbuild="$(LINUX_DIR)" \
54 ARCH=$(LINUX_KARCH)
55
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/
63 endef
64
65 $(eval $(call KernelPackage,ltq-vdsl-vr9-mei))