1 # Copyright (C) 2012 OpenWrt.org
2 # Copyright (C) 2015-2016 Lantiq Beteiligungs GmbH & Co KG.
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/kernel.mk
10 PKG_NAME
:=ltq-vdsl-vr11
13 PKG_BASE_NAME
:=dsl_cpe_api
16 UGW_BASENAME
=$(PKG_BASE_NAME
)-ugw_
$(UGW_VERSION
)
18 PKG_SOURCE
:=$(UGW_BASENAME
).
tar.bz2
19 PKG_SOURCE_URL
:=https
://gitlab.com
/prpl-foundation
/intel
/$(PKG_BASE_NAME
)/-/archive
/ugw_
$(UGW_VERSION
)/
20 PKG_HASH
:=5e8bbab841d67dc16e329d9b3774f6db4189dd1d01f575d0e921ccf2c426dd9f
21 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(UGW_BASENAME
)
22 PKG_LICENSE
:=GPL-2.0 BSD-2-Clause
23 PKG_LICENSE_FILES
:=LICENSE
26 PKG_BUILD_FLAGS
:=no-mold
28 include $(INCLUDE_DIR
)/package.mk
30 # TODO this driver depends on the vrx518 dsl firmware, add this dependency if
31 # that ever gets a compatible license
32 define KernelPackage
/ltq-vdsl-vr11
35 SUBMENU
:=Network Devices
36 DEPENDS
:=@TARGET_ipq40xx
+kmod-ltq-vdsl-vr11-mei
37 FILES
:=$(PKG_BUILD_DIR
)/src
/drv_dsl_cpe_api.ko
38 AUTOLOAD
:=$(call AutoLoad
,51,drv_dsl_cpe_api
)
41 define Package
/ltq-vdsl-vr11
/description
42 This package contains the Lantiq DSL CPE API driver.
49 $(KERNEL_MAKE_FLAGS
) \
53 --enable-add-drv-cflags
="" \
54 --enable-add_ext_drv_cflags
="-DDSL_DRV_ATM_PTM_INTERFACE_ENABLE=1" \
55 --enable-debug-logger-support
=no
57 CONFIGURE_ARGS
+= --enable-kernel-include
="$(LINUX_DIR)/include" \
59 --enable-vrx-device
=vr11 \
61 --enable-ifxos-include
="-I$(STAGING_DIR)/usr/include/ifxos" \
62 --enable-driver-include
="-I$(STAGING_DIR)/usr/include/vdsl" \
64 --enable-kernelbuild
="$(LINUX_DIR)" \
65 --enable-debug-prints
=no \
71 #CONFIGURE_ARGS += --enable-model=lite
72 #CONFIGURE_ARGS += --enable-model=footprint
73 #CONFIGURE_ARGS += --enable-model=typical
74 #CONFIGURE_ARGS += --enable-model=debug
76 define Build
/InstallDev
77 $(INSTALL_DIR
) $(1)/usr
/include/drv_vdsl_cpe_api
78 $(CP
) $(PKG_BUILD_DIR
)/src
/include/drv_dsl_cpe
*.h
$(1)/usr
/include/drv_vdsl_cpe_api
/
81 $(eval
$(call KernelPackage
,ltq-vdsl-vr11
))